echo "- - -" > /sys/class/scsi_host/host0/scan

echo "- - -" > /sys/class/scsi_host/host1/scan

echo "- - -" > /sys/class/scsi_host/host2/scan

echo "- - -" > /sys/class/scsi_host/host3/scan

pvcreate /dev/sdb

vgextend centos /dev/sdb

lvextend -L +300G /dev/mapper/centos-root

xfs_growfs /dev/mapper/centos-root


查看lv的名称(如centos还是cl)命令是:dh -Th


pvcreate /dev/sdb

vgextend cl /dev/sdb

lvextend -L +300G /dev/mapper/cl-root  或者  lvextend -l +100%FREE /dev/mapper/cl-root

xfs_growfs /dev/mapper/cl-root