1. 扩容sdc
[root@DB2 ~]# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sdc 8:32 0 200G 0 disk
└─sdc1 8:33 0 200G 0 part
└─centos-root 253:0 0 1.2T 0 lvm /
2. 触发扫描
echo '1' > /sys/class/scsi_disk/0:0:2:0/device/rescan
[root@DB2 ~]# lsblk
sdc 8:32 0 400G 0 disk
└─sdc1 8:33 0 200G 0 part
└─centos-root 253:0 0 1.2T 0 lvm /
3. 添加硬盘无法识别
[root@DB2 ~]# ls /sys/class/scsi_host
host0 host1
4. 重新扫描
echo "- - -" > /sys/class/scsi_host/host0/scan
echo "- - -" > /sys/class/scsi_host/host1/scan