Linux下新增扩容本地盘和FC存储状态刷新

用于新增磁盘,如此类推host3、4、5
echo “- – -” > /sys/class/scsi_host/host0/scan
echo “- – -” > /sys/class/scsi_host/host1/scan
echo “- – -” > /sys/class/scsi_host/host2/scan

用于磁盘扩容
echo 1 > /sys/class/scsi_device/X:X:X:1/device/rescan
echo 1 > /sys/class/scsi_device/X:X:X:2/device/rescan
或者
echo 1 > /sys/block/sda/device/rescan

刷新光纤卡端口(用于FC存储的变更)
echo ‘—‘ > /sys/class/fc_host/host1/issue_lip
echo ‘—‘ > /sys/class/fc_host/host2/issue_lip