支持在线扩展LV,用户使用不停止(不间断);
1.创建物理卷(用分区做)
pvcreate /dev/sdc

2.扩展卷组
vgextend vg0 /dev/sdc

3.扩展逻辑卷
lvextend -l +1000 /dev/vg0/lv0

4.同步文件系统
新增加的空间要与待扩展LV的文件系统相同;
resize2fs /dev/vg0/lv0 ext系统
xfs_growfs /mnt/lv0 xfs系统

5.扩展逻辑卷和同步文件系统(合并3,4步)
lvextend -r -l +1000 /dev/vg0/lv0

注意
LV:LE;
VG:PE;
对应同一个东西;最小的单位空间不同叫法;
网友评论