Saturday, August 21, 2010

Linux and Solaris HBA


Solaris
----------
fcinfo hba-port == display WWN for HBA
prtpicl -v |grep -i WWN == display WWN for HBA

luxadm -e port == HBA port status and port physical path
luxadm probe == see what devices are connected
luxadm -e dump_map == get more details of HBA port
luxadm -e forcelip == perform loop connection (LIP)
cfgadm -c unconfigure/configure == configure controller
luxadm display == more details about that WWN
cfgadm -o show_FCP_dev -alv == more details about the controller
iostat -En

Linux
---------
echo 1 > /sys/class/fc_host/hostN/issue_lip == Loop connection for FC (LIP)
echo "- - -" > /sys/class/scs_host/hostN/scan == scan for new SCSI devices

echo "scsi-qlascan" > /proc/scsi// == qlogic card rescan

echo "scsi add-single-device 0 1 2 3" > /proc/scsi/scsi == scsi mid layer rescan

export PATH=$PATH:/usr/openv/netbackup/bin:/usr/openv/netbackup/bin/goodies:/usr/openv/netbackup/bin/admincmd:/usr/openv/volmgr/bin

No comments: