#for i in /sys/class/fc_host/host*; do (cd $i; echo -e "$(echo $i)\t$(cat port_name)\t$(cat port_state)\t$(cat speed)"); done
/sys/class/fc_host/host3 0x5001438021e1c508 Online 8 Gbit
/sys/class/fc_host/host4 0x5001438021e1c50a Linkdown unknown
/sys/class/fc_host/host5 0x5001438021e1c3e0 Online 8 Gbit
/sys/class/fc_host/host6 0x5001438021e1c3e2 Linkdown unknown
可以看出host3及host5是Onlie的
重新掃瞄:
echo "1" > /sys/class/fc_host/host3/issue_lip
echo "1" > /sys/class/fc_host/host5/issue_lip
查看Storage的Lun
#fdisk -l