2016/02/21

Published 2月 21, 2016 by

Linux online IOscan - Fiber LUN Volumn Scan

#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

可以看出host3host5Onlie

重新掃瞄:
echo "1" > /sys/class/fc_host/host3/issue_lip
echo "1" > /sys/class/fc_host/host5/issue_lip

查看StorageLun
#fdisk -l