Introduction
Here are various small FC/SAN/fabric-related procedures.
Procedures
Scanning for new LUNs
It looks like the evolving standard way to do this is:
apt-get install sg3-utils ln -s ../../share/doc/sg3-utils/examples/archive/rescan-scsi-bus.sh /usr/local/sbin rescan-scsi-bus.sh
Older ways include this, suggested by Brem Belguebli on one of the Redhat mailing lists:
echo '- - -' > /sys/class/scsi_host/hostX/scan should be enough to discover new Luns. For some unknown reason, with some specific SAN storage arrays (HP XP in my case) , for newly SAN connected servers (new zoning), it is not enough. I have to issue lip (loop init) to my FC hosts echo 1 > /sys/class/fc_host/hostX/issue_lip This lip command can be destructive(and is asynchronous) , so use it only before first SAN discovery. After that as I said, scan is enough.
Creating new zones on Brocade fabrics
admin start zoning edit # Display known WWNs to make copy and pasting easier show ns alias create muc10-p1 alias add muc10-p1 10:00:00:90:fa:79:44:89 zone create muc10-p1_fujisan4-cmX-ca2-p0 zone add muc10-p1_fujisan4-cmX-ca2-p0 muc10-p1 zone add muc10-p1_fujisan4-cmX-ca2-p0 fujisan4-cmX-ca2-p0 zone members muc10-p1_fujisan4-cmX-ca2-p0 zoneset add active muc10-p1_fujisan4-cmX-ca2-p0 zoning save zoneset activate active