Monday, April 22, 2013

SAN Management - HBA, LUN, ..


Here are some commands used to manage HBA, SAN LUNs, etc...

To show the connectivity and WWN of a FC adapter :
# fcmsutil /dev/fcd0

To show the VPD (incl firmware) of a FC adapter :
# fcmsutil /dev/fcd1 vpd

To disable a HBA :
# fcmsutil /dev/fcd1 -f disable

To enable a HBA :
# fcmsutil /dev/fcd1 enable

To show the WWN of the SAN Tape Drives:
# fcmsutil /dev/td0 get remote all

To show details for a hardware path :
# ioscan -fnkH 1/0/8/1

To list the EVA Array LUNs:
# evainfo -al

To list the XP Array LUNs:
# xpinfo -al

To list all the devices attached to all the HBAs:
# tdlist
# fcdlist

To list all the tape drives:
# ioscan -funC tape

To list all the tape drives:
# tdlist

To list all the drives (along with their WWN) attached to a specific HBA:
# tdutil /dev/td9 get remote all
# fcmsutil /dev/fcd1 get remote all

To replace WWID:
# scsimgr replace_wwid -C lunpath -I 826 dsf