lvm分区创建
parted /dev/vdb mklabel gpt
parted /dev/vdb mkpart primary 1 100%
pvcreate /dev/vdb1
vgcreate vg-data /dev/vdb1
lvcreate -l 100%VG -n lv-data vg-data
mkfs.ext4 /dev/vg-data/lv-data
mount /dev/vg-data/lv-data /data
sudo sh -c "echo '/dev/vg-data/lv-data /data ext4 defaults 0 0' >> /etc/fstab"
lvm扩容
创建pv
pvcreate /dev/vdc
扩容进vg centos
vgextend vg001 /dev/vdc
扩容lv
lvextend -l +100%FREE /dev/vg001/data
centos7 xfs执行扩容实时生效
xfs_growfs /dev/vg001/data
centos7 ext4执行扩容实时生效
resize2fs /dev/vg001/data
标签:扩容,vg,分区,dev,lv,vg001,lvm,data From: https://www.cnblogs.com/wes1502/p/17212488.html