lv

expand

Partition is good, partprobe detects partition changes

pvcreate /dev/sdb5

vgextend vgzihs_vg /dev/sdb5

lvextend -L +644M /dev/vgzihs_vg/vgzihs_lv

resize2fs /dev/vgzihs_vg/vgzihs_lv  或xfs  xfs_growfs /dev/vgzihs_vg/vgzihs_lv

 

new

Partition is good, partprobe detects partition changes

pvcreate /dev/sdb5

vgcreate -s 10M vgzihs_vg /dev/sdb5 -s specifies the size of each PE

lvcreate -l 8 -n vgzihs_lv vgzihs_vg -l specifies the number of PEs to use, 8 10M PEs=80M

mkfs.xfs /dev/vgzihs_vg/vgzihs_lv or mkfs.ext4 /dev/vgzihs_vg/vgzihs_lv formatted mount and auto mount

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324979850&siteId=291194637
lv