Dual-mode FC configuration

From OSNEXUS Online Documentation Site
Jump to: navigation, search

Setting up the FC Target driver to use dual initiator + target mode

To make this configuration change you'll need to login to the appliance via ssh then use 'sudo -i' to elevate your permissions to root level. Next, run this command to configure the QLogic driver to enable initiator mode like so:

echo "options qla2xxx_scst qlini_mode=enabled" > /etc/modprobe.d/qla2xxx_scst.conf

Next, stop the scsi target service and rmmod/modprobe the driver with these changes and restart the scsi target service:

service iscsi-target stop
rmmod qla2xxx_scst
modprobe qla2xxx_scst
service iscsi-target start

This will have cleared out all active sessions and targets. Next, restart the Quantastor management service to re-expose FC and iSCSI targets

service quantastor restart

Now verify the new configuration to ensure that both initiator and target mode are enabled via the below commands. Note that the hostN location of your FC port entry will likely be different than the host16 value used in this example.

cat /sys/class/fc_host/host16/device/scsi_host/host16/active_mode

If the active_mode output only reports Initiator mode, you will need to go to the web interface and use the "Enable FC Target Port" dialog available by right clicking on the FC card. Alternatively you can temporarily enable target access via the command below, note that your FC WWN will be different than the one used in this example.

echo "1" > /sys/kernel/scst_tgt/targets/qla2x00t/21\:00\:00\:24\:ff\:2e\:d1\:16/enabled

Finally, check to make sure that the driver is now in dual Initiator+Target mode. Again, host16 is used in this example but your FC port may be at some other hostN number.

cat /sys/class/fc_host/host16/device/scsi_host/host16/active_mode

This should print out both modes like so:

Initiator, Target


Setting up the FC Target driver to use target only mode

Follow the sames steps noted above but change the "enabled" to "disabled" like so:

echo "options qla2xxx_scst qlini_mode=disabled" > /etc/modprobe.d/qla2xxx_scst.conf

In this mode the FC driver will startup in Target mode and will not need to transition from Initiator to Target after booting.