From 55ba4339dd48cc887654f9d2fe528309f3e8981d Mon Sep 17 00:00:00 2001 From: Gleb Chesnokov Date: Mon, 23 May 2022 18:43:13 +0300 Subject: [PATCH] qla2x00t/doc/qla2x00t-howto.html: Add information about initiator and target modes Qlogic documentation lack of the information about initiator and target modes usage. --- qla2x00t/doc/qla2x00t-howto.html | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/qla2x00t/doc/qla2x00t-howto.html b/qla2x00t/doc/qla2x00t-howto.html index 10c8d192b..ded4c1a18 100644 --- a/qla2x00t/doc/qla2x00t-howto.html +++ b/qla2x00t/doc/qla2x00t-howto.html @@ -231,6 +231,31 @@ Now let's create our virtual device:
[root@proj ]# make -C scstadmin -s install
+
  • Initiator and target modes

    + The qla2xxx_scst module has parameter "qlini_mode", which determines when initiator mode will be enabled.
    + Possible values: + + +
    + Usage of mode "disabled" is recommended, if you have incorrectly functioning your target's initiators, which if once seen a port in initiator mode, later refuse to see it as a target. +

    + +qla2x00t (old qlogic driver):

    + Use mode "enabled" if you need your QLA adapters to work in both initiator and target modes at the same time.
    + You can always see which modes are currently active in active_mode sysfs attribute.
    + In all the modes you can at any time use sysfs attribute ini_mode_force_reverse to force enable or disable initiator mode on any particular port. Setting this attribute to 1 will reverse current status of the initiator mode from enabled to disabled and vice versa.
    +
    +qla2x00t-32gbit (new qlogic driver):

    + Use mode "dual" if you need your QLA adapters to work in both initiator and target modes at the same time. In this mode, each qlogic host has individual qlini_mode, ql2xexchoffld, ql2xiniexchg attributes that can be changed dynamically.
    + For example, you can change qlini_mode to "disabled" for specific qlogic host: +
    echo "disabled" > /sys/devices/pci0000:80/0000:80:02.0/0000:81:00.0/host1/scsi_host/host1/qlini_mode
    +
  • +
  • To see the device on the initiator we have to add it in the LUNs set of our target.
    We must have a LUN with number 0 (LUs numeration must not start