lsblk
fdisk /dev/sdb
输入 n p 三回车 t L 8e w
pvcreate /dev/sdb1
vgcreate vg_sdb1 /dev/sdb1
lvcreate -l 100%VG -n lv_sdb1 vg_sdb1
df -Th
mkfs.xfs(或其他) /dev/vg_sdb1/lv_sdb1
vim /etc/fstab
/dev/vg_sdb1/lv_sdb1 /home/s xfs defaults 0 0
mkdir /home/s
mount -a
#lvm磁盘扩容
pv创建步骤同上
vgs
vgextend vg_lanxin /dev/sdc1
lsblk
lvextend -L +100G /dev/mapper/vg_lanxin-lv_lanxin
或者lvextend -l +100%FREE /dev/mapper/vg_lanxin-lv_lanxin
xfs_growfs /dev/mapper/vg_lanxin-lv_lanxin(如果是ext4格式就使用resize2fs)