Fibre Channel on Linux
http://linux-iscsi.org/wiki/Fibre_Channel
# Check serving host not in initiator mode (Should be disabled) cat /sys/module/qla2xxx/parameters/qlini_mode # Check link status cat /sys/class/fc_host/host*/port_state # Get WWPN cat /sys/class/fc_host/host*/port_name | sed -e s/0x// -e 's/../&:/g' -e s/:$// # Rescan echo 1 > /sys/class/fc_host/host*/issue_lip
targetcli
# Create backstore cd backstores/fileio/ create name=testlun.img size=1G file_or_dev=/storage/testlun.img # Create target cd /qla2xxx info create (WWPN) cd WWPN luns/ create /backstores/fileio/testlun # Allow access from initiator acls/ create 21:00:00:e0:8b:89:9b:7e # Save to persist across reboots saveconfig
Bug in rtslib for qla2xxx wwn:
python-rtslib 1:3.0~pre4.1~g1b33ceb-2
https://github.com/bootc/rtslib/commit/727c345bd18137c424e4fba62bfab7bcfabfc024
# Path /usr/lib/python2.7/dist-packages/rtslib/ # Files to update config.py utils.py