在线添加新磁盘
#扫描 SCSI总线并添加 SCSI 设备 for host in $(ls /sys/class/scsi_host) ; do echo "- - -" > /sys/class/scsi_host/$host/scan; done #重新扫描 SCSI 总线 for scsi_device in $(ls /sys/class/scsi_device/); do echo 1 > /sys/class/scsi_device/$scsi_device/device/rescan; done #查看已添加的磁盘,能够看到sdb说明添加成功 lsblk