On 9/02/2012 11:29 AM, Nicholas A. Bellinger wrote: > Hello Jim, Hi Nicholas, > Just a brief follow-up to your recent questions. For tracking the > mainline WIP qla2xxx target code in my tree, you want to be using > lio-core.git/master currently @ linus v3.2.0. > > The qla_tgt-3.3 branch has been merged into master earlier this year so > I'm no longer putting updates into the old working branch, and will be > removed soon. Great so it sounds like I should be moving to the master branch then. I'll move to it to see if I get any improvement. > You should still definitely *not* be seeing NON_EXISTENT_LUN errors > after a session reset, regardless of the unsupported bits mentioned > above. > > What does your running qla2xxx configuration look like..? Also, what > lio-core.git HEAD is this with again..? The errors I posted were encountered with a kernel compiled from the latest qla_tgt-3.3 HEAD. The first entry of a 'git log' shows: commit 7a4dc04b51cf01d5cea3332db61c0ac609b09b13 Author: Roland Dreier <roland@xxxxxxxxxxxxxxx> Date: Wed Jan 11 16:58:05 2012 -0800 For your question regarding what does my configuration look like, I'll give you what I think you might need (but I'm just guessing). >From the targetcli command, an 'ls' at the root results in the following: /> ls o- / ..................................................................... [...] o- backstores .......................................................... [...] | o- fileio ............................................... [0 Storage Object] | o- iblock ............................................... [1 Storage Object] | | o- datastore0 ............................ [/dev/vg1/datastore0 activated] | o- pscsi ................................................ [0 Storage Object] | o- rd_dr ................................................ [0 Storage Object] | o- rd_mcp ............................................... [0 Storage Object] o- iscsi .......................................................... [0 Target] o- loopback ....................................................... [0 Target] o- qla2xxx ....................................................... [4 Targets] | o- 21:00:00:1b:32:1b:27:5d ....................................... [enabled] | | o- acls ......................................................... [4 ACLs] | | | o- 21:00:00:1b:32:83:ac:c5 .............................. [1 Mapped LUN] | | | | o- mapped_lun0 ........................................... [lun0 (rw)] | | | o- 21:00:00:1b:32:83:ba:c4 .............................. [1 Mapped LUN] | | | | o- mapped_lun0 ........................................... [lun0 (rw)] | | | o- 21:00:00:1b:32:83:c3:c2 .............................. [1 Mapped LUN] | | | | o- mapped_lun0 ........................................... [lun0 (rw)] | | | o- 21:00:00:1b:32:83:f3:c6 .............................. [1 Mapped LUN] | | | o- mapped_lun0 ........................................... [lun0 (rw)] | | o- luns .......................................................... [1 LUN] | | o- lun0 ...................... [iblock/datastore0 (/dev/vg1/datastore0)] | o- 21:00:00:1b:32:1b:f8:5e ....................................... [enabled] | | o- acls ......................................................... [4 ACLs] | | | o- 21:00:00:1b:32:83:ac:c5 .............................. [1 Mapped LUN] | | | | o- mapped_lun0 ........................................... [lun0 (rw)] | | | o- 21:00:00:1b:32:83:ba:c4 .............................. [1 Mapped LUN] | | | | o- mapped_lun0 ........................................... [lun0 (rw)] | | | o- 21:00:00:1b:32:83:c3:c2 .............................. [1 Mapped LUN] | | | | o- mapped_lun0 ........................................... [lun0 (rw)] | | | o- 21:00:00:1b:32:83:f3:c6 .............................. [1 Mapped LUN] | | | o- mapped_lun0 ........................................... [lun0 (rw)] | | o- luns .......................................................... [1 LUN] | | o- lun0 ...................... [iblock/datastore0 (/dev/vg1/datastore0)] | o- 21:01:00:1b:32:3b:27:5d ....................................... [enabled] | | o- acls ......................................................... [4 ACLs] | | | o- 21:00:00:1b:32:83:ac:c5 .............................. [1 Mapped LUN] | | | | o- mapped_lun0 ........................................... [lun0 (rw)] | | | o- 21:00:00:1b:32:83:ba:c4 .............................. [1 Mapped LUN] | | | | o- mapped_lun0 ........................................... [lun0 (rw)] | | | o- 21:00:00:1b:32:83:c3:c2 .............................. [1 Mapped LUN] | | | | o- mapped_lun0 ........................................... [lun0 (rw)] | | | o- 21:00:00:1b:32:83:f3:c6 .............................. [1 Mapped LUN] | | | o- mapped_lun0 ........................................... [lun0 (rw)] | | o- luns .......................................................... [1 LUN] | | o- lun0 ...................... [iblock/datastore0 (/dev/vg1/datastore0)] | o- 21:01:00:1b:32:3b:f8:5e ....................................... [enabled] | o- acls ......................................................... [4 ACLs] | | o- 21:00:00:1b:32:83:ac:c5 .............................. [1 Mapped LUN] | | | o- mapped_lun0 ........................................... [lun0 (rw)] | | o- 21:00:00:1b:32:83:ba:c4 .............................. [1 Mapped LUN] | | | o- mapped_lun0 ........................................... [lun0 (rw)] | | o- 21:00:00:1b:32:83:c3:c2 .............................. [1 Mapped LUN] | | | o- mapped_lun0 ........................................... [lun0 (rw)] | | o- 21:00:00:1b:32:83:f3:c6 .............................. [1 Mapped LUN] | | o- mapped_lun0 ........................................... [lun0 (rw)] | o- luns .......................................................... [1 LUN] | o- lun0 ...................... [iblock/datastore0 (/dev/vg1/datastore0)] o- tcm_fc ......................................................... [0 Target] >From this you can see that I have four fibre channel (FC) ports on my Linux SAN (2x dual port cards). I have two VMware ESXi hosts, that each have two FC ports. The same LUN is mapped from each local FC port to all the FC ports on the ESXi servers. The contents of my /etc/target/qla2xxx_start.sh file are: modprobe tcm_qla2xxx mkdir /sys/kernel/config/target/qla2xxx #### qla2xxx Target Ports mkdir -p /sys/kernel/config/target/qla2xxx/21:00:00:1b:32:1b:27:5d/tpgt_1/lun/lun_0 ln -s /sys/kernel/config/target/qla2xxx/21:00:00:1b:32:1b:27:5d/tpgt_1/lun/lun_0/../../../../../../target/core/iblock_0/datastore0 /sys/kernel/config/target/qla2xxx/21:00:00:1b:32:1b:27:5d/tpgt_1/lun/lun_0/c607b95b56 #### Attributes for qla2xxx Target Portal Group echo 0 > /sys/kernel/config/target/qla2xxx/21:00:00:1b:32:1b:27:5d/tpgt_1/attrib/prod_mode_write_protect echo 1 > /sys/kernel/config/target/qla2xxx/21:00:00:1b:32:1b:27:5d/tpgt_1/attrib/demo_mode_write_protect echo 1 > /sys/kernel/config/target/qla2xxx/21:00:00:1b:32:1b:27:5d/tpgt_1/attrib/cache_dynamic_acls echo 1 > /sys/kernel/config/target/qla2xxx/21:00:00:1b:32:1b:27:5d/tpgt_1/attrib/generate_node_acls #### Parameters for qla2xxx Target Portal Group #### qla2xxx Initiator ACLs for qla2xxx Target Portal Group mkdir -p /sys/kernel/config/target/qla2xxx/21:00:00:1b:32:1b:27:5d/tpgt_1/acls/21:00:00:1b:32:83:c3:c2 #### qla2xxx Initiator ACL authentication information #### qla2xxx Initiator ACL TPG attributes #### qla2xxx Initiator LUN ACLs for iSCSI Target Portal Group mkdir -p /sys/kernel/config/target/qla2xxx/21:00:00:1b:32:1b:27:5d/tpgt_1/acls/21:00:00:1b:32:83:c3:c2/lun_0 ln -s /sys/kernel/config/target/qla2xxx/21:00:00:1b:32:1b:27:5d/tpgt_1/acls/21:00:00:1b:32:83:c3:c2/lun_0/../../../../../../../target/qla2xxx/21:00:00:1b:32:1b:27:5d/tpgt_1/lun/lun_0 /sys/kernel/config/target/qla2xxx/21:00:00:1b:32:1b:27:5d/tpgt_1/acls/21:00:00:1b:32:83:c3:c2/lun_0/bcec75e837 echo 0 > /sys/kernel/config/target/qla2xxx/21:00:00:1b:32:1b:27:5d/tpgt_1/acls/21:00:00:1b:32:83:c3:c2/lun_0/write_protect mkdir -p /sys/kernel/config/target/qla2xxx/21:00:00:1b:32:1b:27:5d/tpgt_1/acls/21:00:00:1b:32:83:f3:c6 #### qla2xxx Initiator ACL authentication information #### qla2xxx Initiator ACL TPG attributes #### qla2xxx Initiator LUN ACLs for iSCSI Target Portal Group mkdir -p /sys/kernel/config/target/qla2xxx/21:00:00:1b:32:1b:27:5d/tpgt_1/acls/21:00:00:1b:32:83:f3:c6/lun_0 ln -s /sys/kernel/config/target/qla2xxx/21:00:00:1b:32:1b:27:5d/tpgt_1/acls/21:00:00:1b:32:83:f3:c6/lun_0/../../../../../../../target/qla2xxx/21:00:00:1b:32:1b:27:5d/tpgt_1/lun/lun_0 /sys/kernel/config/target/qla2xxx/21:00:00:1b:32:1b:27:5d/tpgt_1/acls/21:00:00:1b:32:83:f3:c6/lun_0/73466b5d9f echo 0 > /sys/kernel/config/target/qla2xxx/21:00:00:1b:32:1b:27:5d/tpgt_1/acls/21:00:00:1b:32:83:f3:c6/lun_0/write_protect mkdir -p /sys/kernel/config/target/qla2xxx/21:00:00:1b:32:1b:27:5d/tpgt_1/acls/21:00:00:1b:32:83:ba:c4 #### qla2xxx Initiator ACL authentication information #### qla2xxx Initiator ACL TPG attributes #### qla2xxx Initiator LUN ACLs for iSCSI Target Portal Group mkdir -p /sys/kernel/config/target/qla2xxx/21:00:00:1b:32:1b:27:5d/tpgt_1/acls/21:00:00:1b:32:83:ba:c4/lun_0 ln -s /sys/kernel/config/target/qla2xxx/21:00:00:1b:32:1b:27:5d/tpgt_1/acls/21:00:00:1b:32:83:ba:c4/lun_0/../../../../../../../target/qla2xxx/21:00:00:1b:32:1b:27:5d/tpgt_1/lun/lun_0 /sys/kernel/config/target/qla2xxx/21:00:00:1b:32:1b:27:5d/tpgt_1/acls/21:00:00:1b:32:83:ba:c4/lun_0/1de7c0e978 echo 0 > /sys/kernel/config/target/qla2xxx/21:00:00:1b:32:1b:27:5d/tpgt_1/acls/21:00:00:1b:32:83:ba:c4/lun_0/write_protect mkdir -p /sys/kernel/config/target/qla2xxx/21:00:00:1b:32:1b:27:5d/tpgt_1/acls/21:00:00:1b:32:83:ac:c5 #### qla2xxx Initiator ACL authentication information #### qla2xxx Initiator ACL TPG attributes #### qla2xxx Initiator LUN ACLs for iSCSI Target Portal Group mkdir -p /sys/kernel/config/target/qla2xxx/21:00:00:1b:32:1b:27:5d/tpgt_1/acls/21:00:00:1b:32:83:ac:c5/lun_0 ln -s /sys/kernel/config/target/qla2xxx/21:00:00:1b:32:1b:27:5d/tpgt_1/acls/21:00:00:1b:32:83:ac:c5/lun_0/../../../../../../../target/qla2xxx/21:00:00:1b:32:1b:27:5d/tpgt_1/lun/lun_0 /sys/kernel/config/target/qla2xxx/21:00:00:1b:32:1b:27:5d/tpgt_1/acls/21:00:00:1b:32:83:ac:c5/lun_0/2cf61c9c1c echo 0 > /sys/kernel/config/target/qla2xxx/21:00:00:1b:32:1b:27:5d/tpgt_1/acls/21:00:00:1b:32:83:ac:c5/lun_0/write_protect #### Trigger to enable qla2xxx Target Portal Group echo 1 > /sys/kernel/config/target/qla2xxx/21:00:00:1b:32:1b:27:5d/tpgt_1/enable #### qla2xxx Target Ports mkdir -p /sys/kernel/config/target/qla2xxx/21:01:00:1b:32:3b:f8:5e/tpgt_1/lun/lun_0 ln -s /sys/kernel/config/target/qla2xxx/21:01:00:1b:32:3b:f8:5e/tpgt_1/lun/lun_0/../../../../../../target/core/iblock_0/datastore0 /sys/kernel/config/target/qla2xxx/21:01:00:1b:32:3b:f8:5e/tpgt_1/lun/lun_0/15db9e3b4b #### Attributes for qla2xxx Target Portal Group echo 0 > /sys/kernel/config/target/qla2xxx/21:01:00:1b:32:3b:f8:5e/tpgt_1/attrib/prod_mode_write_protect echo 1 > /sys/kernel/config/target/qla2xxx/21:01:00:1b:32:3b:f8:5e/tpgt_1/attrib/demo_mode_write_protect echo 1 > /sys/kernel/config/target/qla2xxx/21:01:00:1b:32:3b:f8:5e/tpgt_1/attrib/cache_dynamic_acls echo 1 > /sys/kernel/config/target/qla2xxx/21:01:00:1b:32:3b:f8:5e/tpgt_1/attrib/generate_node_acls #### Parameters for qla2xxx Target Portal Group #### qla2xxx Initiator ACLs for qla2xxx Target Portal Group mkdir -p /sys/kernel/config/target/qla2xxx/21:01:00:1b:32:3b:f8:5e/tpgt_1/acls/21:00:00:1b:32:83:c3:c2 #### qla2xxx Initiator ACL authentication information #### qla2xxx Initiator ACL TPG attributes #### qla2xxx Initiator LUN ACLs for iSCSI Target Portal Group mkdir -p /sys/kernel/config/target/qla2xxx/21:01:00:1b:32:3b:f8:5e/tpgt_1/acls/21:00:00:1b:32:83:c3:c2/lun_0 ln -s /sys/kernel/config/target/qla2xxx/21:01:00:1b:32:3b:f8:5e/tpgt_1/acls/21:00:00:1b:32:83:c3:c2/lun_0/../../../../../../../target/qla2xxx/21:01:00:1b:32:3b:f8:5e/tpgt_1/lun/lun_0 /sys/kernel/config/target/qla2xxx/21:01:00:1b:32:3b:f8:5e/tpgt_1/acls/21:00:00:1b:32:83:c3:c2/lun_0/2efb006e38 echo 0 > /sys/kernel/config/target/qla2xxx/21:01:00:1b:32:3b:f8:5e/tpgt_1/acls/21:00:00:1b:32:83:c3:c2/lun_0/write_protect mkdir -p /sys/kernel/config/target/qla2xxx/21:01:00:1b:32:3b:f8:5e/tpgt_1/acls/21:00:00:1b:32:83:f3:c6 #### qla2xxx Initiator ACL authentication information #### qla2xxx Initiator ACL TPG attributes #### qla2xxx Initiator LUN ACLs for iSCSI Target Portal Group mkdir -p /sys/kernel/config/target/qla2xxx/21:01:00:1b:32:3b:f8:5e/tpgt_1/acls/21:00:00:1b:32:83:f3:c6/lun_0 ln -s /sys/kernel/config/target/qla2xxx/21:01:00:1b:32:3b:f8:5e/tpgt_1/acls/21:00:00:1b:32:83:f3:c6/lun_0/../../../../../../../target/qla2xxx/21:01:00:1b:32:3b:f8:5e/tpgt_1/lun/lun_0 /sys/kernel/config/target/qla2xxx/21:01:00:1b:32:3b:f8:5e/tpgt_1/acls/21:00:00:1b:32:83:f3:c6/lun_0/46e27901ca echo 0 > /sys/kernel/config/target/qla2xxx/21:01:00:1b:32:3b:f8:5e/tpgt_1/acls/21:00:00:1b:32:83:f3:c6/lun_0/write_protect mkdir -p /sys/kernel/config/target/qla2xxx/21:01:00:1b:32:3b:f8:5e/tpgt_1/acls/21:00:00:1b:32:83:ba:c4 #### qla2xxx Initiator ACL authentication information #### qla2xxx Initiator ACL TPG attributes #### qla2xxx Initiator LUN ACLs for iSCSI Target Portal Group mkdir -p /sys/kernel/config/target/qla2xxx/21:01:00:1b:32:3b:f8:5e/tpgt_1/acls/21:00:00:1b:32:83:ba:c4/lun_0 ln -s /sys/kernel/config/target/qla2xxx/21:01:00:1b:32:3b:f8:5e/tpgt_1/acls/21:00:00:1b:32:83:ba:c4/lun_0/../../../../../../../target/qla2xxx/21:01:00:1b:32:3b:f8:5e/tpgt_1/lun/lun_0 /sys/kernel/config/target/qla2xxx/21:01:00:1b:32:3b:f8:5e/tpgt_1/acls/21:00:00:1b:32:83:ba:c4/lun_0/ccdf357f80 echo 0 > /sys/kernel/config/target/qla2xxx/21:01:00:1b:32:3b:f8:5e/tpgt_1/acls/21:00:00:1b:32:83:ba:c4/lun_0/write_protect mkdir -p /sys/kernel/config/target/qla2xxx/21:01:00:1b:32:3b:f8:5e/tpgt_1/acls/21:00:00:1b:32:83:ac:c5 #### qla2xxx Initiator ACL authentication information #### qla2xxx Initiator ACL TPG attributes #### qla2xxx Initiator LUN ACLs for iSCSI Target Portal Group mkdir -p /sys/kernel/config/target/qla2xxx/21:01:00:1b:32:3b:f8:5e/tpgt_1/acls/21:00:00:1b:32:83:ac:c5/lun_0 ln -s /sys/kernel/config/target/qla2xxx/21:01:00:1b:32:3b:f8:5e/tpgt_1/acls/21:00:00:1b:32:83:ac:c5/lun_0/../../../../../../../target/qla2xxx/21:01:00:1b:32:3b:f8:5e/tpgt_1/lun/lun_0 /sys/kernel/config/target/qla2xxx/21:01:00:1b:32:3b:f8:5e/tpgt_1/acls/21:00:00:1b:32:83:ac:c5/lun_0/d93550208d echo 0 > /sys/kernel/config/target/qla2xxx/21:01:00:1b:32:3b:f8:5e/tpgt_1/acls/21:00:00:1b:32:83:ac:c5/lun_0/write_protect #### Trigger to enable qla2xxx Target Portal Group echo 1 > /sys/kernel/config/target/qla2xxx/21:01:00:1b:32:3b:f8:5e/tpgt_1/enable #### qla2xxx Target Ports mkdir -p /sys/kernel/config/target/qla2xxx/21:00:00:1b:32:1b:f8:5e/tpgt_1/lun/lun_0 ln -s /sys/kernel/config/target/qla2xxx/21:00:00:1b:32:1b:f8:5e/tpgt_1/lun/lun_0/../../../../../../target/core/iblock_0/datastore0 /sys/kernel/config/target/qla2xxx/21:00:00:1b:32:1b:f8:5e/tpgt_1/lun/lun_0/202b036550 #### Attributes for qla2xxx Target Portal Group echo 0 > /sys/kernel/config/target/qla2xxx/21:00:00:1b:32:1b:f8:5e/tpgt_1/attrib/prod_mode_write_protect echo 1 > /sys/kernel/config/target/qla2xxx/21:00:00:1b:32:1b:f8:5e/tpgt_1/attrib/demo_mode_write_protect echo 1 > /sys/kernel/config/target/qla2xxx/21:00:00:1b:32:1b:f8:5e/tpgt_1/attrib/cache_dynamic_acls echo 1 > /sys/kernel/config/target/qla2xxx/21:00:00:1b:32:1b:f8:5e/tpgt_1/attrib/generate_node_acls #### Parameters for qla2xxx Target Portal Group #### qla2xxx Initiator ACLs for qla2xxx Target Portal Group mkdir -p /sys/kernel/config/target/qla2xxx/21:00:00:1b:32:1b:f8:5e/tpgt_1/acls/21:00:00:1b:32:83:c3:c2 #### qla2xxx Initiator ACL authentication information #### qla2xxx Initiator ACL TPG attributes #### qla2xxx Initiator LUN ACLs for iSCSI Target Portal Group mkdir -p /sys/kernel/config/target/qla2xxx/21:00:00:1b:32:1b:f8:5e/tpgt_1/acls/21:00:00:1b:32:83:c3:c2/lun_0 ln -s /sys/kernel/config/target/qla2xxx/21:00:00:1b:32:1b:f8:5e/tpgt_1/acls/21:00:00:1b:32:83:c3:c2/lun_0/../../../../../../../target/qla2xxx/21:00:00:1b:32:1b:f8:5e/tpgt_1/lun/lun_0 /sys/kernel/config/target/qla2xxx/21:00:00:1b:32:1b:f8:5e/tpgt_1/acls/21:00:00:1b:32:83:c3:c2/lun_0/2c83960e29 echo 0 > /sys/kernel/config/target/qla2xxx/21:00:00:1b:32:1b:f8:5e/tpgt_1/acls/21:00:00:1b:32:83:c3:c2/lun_0/write_protect mkdir -p /sys/kernel/config/target/qla2xxx/21:00:00:1b:32:1b:f8:5e/tpgt_1/acls/21:00:00:1b:32:83:f3:c6 #### qla2xxx Initiator ACL authentication information #### qla2xxx Initiator ACL TPG attributes #### qla2xxx Initiator LUN ACLs for iSCSI Target Portal Group mkdir -p /sys/kernel/config/target/qla2xxx/21:00:00:1b:32:1b:f8:5e/tpgt_1/acls/21:00:00:1b:32:83:f3:c6/lun_0 ln -s /sys/kernel/config/target/qla2xxx/21:00:00:1b:32:1b:f8:5e/tpgt_1/acls/21:00:00:1b:32:83:f3:c6/lun_0/../../../../../../../target/qla2xxx/21:00:00:1b:32:1b:f8:5e/tpgt_1/lun/lun_0 /sys/kernel/config/target/qla2xxx/21:00:00:1b:32:1b:f8:5e/tpgt_1/acls/21:00:00:1b:32:83:f3:c6/lun_0/fc703c278d echo 0 > /sys/kernel/config/target/qla2xxx/21:00:00:1b:32:1b:f8:5e/tpgt_1/acls/21:00:00:1b:32:83:f3:c6/lun_0/write_protect mkdir -p /sys/kernel/config/target/qla2xxx/21:00:00:1b:32:1b:f8:5e/tpgt_1/acls/21:00:00:1b:32:83:ba:c4 #### qla2xxx Initiator ACL authentication information #### qla2xxx Initiator ACL TPG attributes #### qla2xxx Initiator LUN ACLs for iSCSI Target Portal Group mkdir -p /sys/kernel/config/target/qla2xxx/21:00:00:1b:32:1b:f8:5e/tpgt_1/acls/21:00:00:1b:32:83:ba:c4/lun_0 ln -s /sys/kernel/config/target/qla2xxx/21:00:00:1b:32:1b:f8:5e/tpgt_1/acls/21:00:00:1b:32:83:ba:c4/lun_0/../../../../../../../target/qla2xxx/21:00:00:1b:32:1b:f8:5e/tpgt_1/lun/lun_0 /sys/kernel/config/target/qla2xxx/21:00:00:1b:32:1b:f8:5e/tpgt_1/acls/21:00:00:1b:32:83:ba:c4/lun_0/48724d1556 echo 0 > /sys/kernel/config/target/qla2xxx/21:00:00:1b:32:1b:f8:5e/tpgt_1/acls/21:00:00:1b:32:83:ba:c4/lun_0/write_protect mkdir -p /sys/kernel/config/target/qla2xxx/21:00:00:1b:32:1b:f8:5e/tpgt_1/acls/21:00:00:1b:32:83:ac:c5 #### qla2xxx Initiator ACL authentication information #### qla2xxx Initiator ACL TPG attributes #### qla2xxx Initiator LUN ACLs for iSCSI Target Portal Group mkdir -p /sys/kernel/config/target/qla2xxx/21:00:00:1b:32:1b:f8:5e/tpgt_1/acls/21:00:00:1b:32:83:ac:c5/lun_0 ln -s /sys/kernel/config/target/qla2xxx/21:00:00:1b:32:1b:f8:5e/tpgt_1/acls/21:00:00:1b:32:83:ac:c5/lun_0/../../../../../../../target/qla2xxx/21:00:00:1b:32:1b:f8:5e/tpgt_1/lun/lun_0 /sys/kernel/config/target/qla2xxx/21:00:00:1b:32:1b:f8:5e/tpgt_1/acls/21:00:00:1b:32:83:ac:c5/lun_0/2ca136a2d5 echo 0 > /sys/kernel/config/target/qla2xxx/21:00:00:1b:32:1b:f8:5e/tpgt_1/acls/21:00:00:1b:32:83:ac:c5/lun_0/write_protect #### Trigger to enable qla2xxx Target Portal Group echo 1 > /sys/kernel/config/target/qla2xxx/21:00:00:1b:32:1b:f8:5e/tpgt_1/enable #### qla2xxx Target Ports mkdir -p /sys/kernel/config/target/qla2xxx/21:01:00:1b:32:3b:27:5d/tpgt_1/lun/lun_0 ln -s /sys/kernel/config/target/qla2xxx/21:01:00:1b:32:3b:27:5d/tpgt_1/lun/lun_0/../../../../../../target/core/iblock_0/datastore0 /sys/kernel/config/target/qla2xxx/21:01:00:1b:32:3b:27:5d/tpgt_1/lun/lun_0/b11b4d5539 #### Attributes for qla2xxx Target Portal Group echo 0 > /sys/kernel/config/target/qla2xxx/21:01:00:1b:32:3b:27:5d/tpgt_1/attrib/prod_mode_write_protect echo 1 > /sys/kernel/config/target/qla2xxx/21:01:00:1b:32:3b:27:5d/tpgt_1/attrib/demo_mode_write_protect echo 1 > /sys/kernel/config/target/qla2xxx/21:01:00:1b:32:3b:27:5d/tpgt_1/attrib/cache_dynamic_acls echo 1 > /sys/kernel/config/target/qla2xxx/21:01:00:1b:32:3b:27:5d/tpgt_1/attrib/generate_node_acls #### Parameters for qla2xxx Target Portal Group #### qla2xxx Initiator ACLs for qla2xxx Target Portal Group mkdir -p /sys/kernel/config/target/qla2xxx/21:01:00:1b:32:3b:27:5d/tpgt_1/acls/21:00:00:1b:32:83:c3:c2 #### qla2xxx Initiator ACL authentication information #### qla2xxx Initiator ACL TPG attributes #### qla2xxx Initiator LUN ACLs for iSCSI Target Portal Group mkdir -p /sys/kernel/config/target/qla2xxx/21:01:00:1b:32:3b:27:5d/tpgt_1/acls/21:00:00:1b:32:83:c3:c2/lun_0 ln -s /sys/kernel/config/target/qla2xxx/21:01:00:1b:32:3b:27:5d/tpgt_1/acls/21:00:00:1b:32:83:c3:c2/lun_0/../../../../../../../target/qla2xxx/21:01:00:1b:32:3b:27:5d/tpgt_1/lun/lun_0 /sys/kernel/config/target/qla2xxx/21:01:00:1b:32:3b:27:5d/tpgt_1/acls/21:00:00:1b:32:83:c3:c2/lun_0/94f070c926 echo 0 > /sys/kernel/config/target/qla2xxx/21:01:00:1b:32:3b:27:5d/tpgt_1/acls/21:00:00:1b:32:83:c3:c2/lun_0/write_protect mkdir -p /sys/kernel/config/target/qla2xxx/21:01:00:1b:32:3b:27:5d/tpgt_1/acls/21:00:00:1b:32:83:f3:c6 #### qla2xxx Initiator ACL authentication information #### qla2xxx Initiator ACL TPG attributes #### qla2xxx Initiator LUN ACLs for iSCSI Target Portal Group mkdir -p /sys/kernel/config/target/qla2xxx/21:01:00:1b:32:3b:27:5d/tpgt_1/acls/21:00:00:1b:32:83:f3:c6/lun_0 ln -s /sys/kernel/config/target/qla2xxx/21:01:00:1b:32:3b:27:5d/tpgt_1/acls/21:00:00:1b:32:83:f3:c6/lun_0/../../../../../../../target/qla2xxx/21:01:00:1b:32:3b:27:5d/tpgt_1/lun/lun_0 /sys/kernel/config/target/qla2xxx/21:01:00:1b:32:3b:27:5d/tpgt_1/acls/21:00:00:1b:32:83:f3:c6/lun_0/57f03b42c2 echo 0 > /sys/kernel/config/target/qla2xxx/21:01:00:1b:32:3b:27:5d/tpgt_1/acls/21:00:00:1b:32:83:f3:c6/lun_0/write_protect mkdir -p /sys/kernel/config/target/qla2xxx/21:01:00:1b:32:3b:27:5d/tpgt_1/acls/21:00:00:1b:32:83:ba:c4 #### qla2xxx Initiator ACL authentication information #### qla2xxx Initiator ACL TPG attributes #### qla2xxx Initiator LUN ACLs for iSCSI Target Portal Group mkdir -p /sys/kernel/config/target/qla2xxx/21:01:00:1b:32:3b:27:5d/tpgt_1/acls/21:00:00:1b:32:83:ba:c4/lun_0 ln -s /sys/kernel/config/target/qla2xxx/21:01:00:1b:32:3b:27:5d/tpgt_1/acls/21:00:00:1b:32:83:ba:c4/lun_0/../../../../../../../target/qla2xxx/21:01:00:1b:32:3b:27:5d/tpgt_1/lun/lun_0 /sys/kernel/config/target/qla2xxx/21:01:00:1b:32:3b:27:5d/tpgt_1/acls/21:00:00:1b:32:83:ba:c4/lun_0/b85b3123ad echo 0 > /sys/kernel/config/target/qla2xxx/21:01:00:1b:32:3b:27:5d/tpgt_1/acls/21:00:00:1b:32:83:ba:c4/lun_0/write_protect mkdir -p /sys/kernel/config/target/qla2xxx/21:01:00:1b:32:3b:27:5d/tpgt_1/acls/21:00:00:1b:32:83:ac:c5 #### qla2xxx Initiator ACL authentication information #### qla2xxx Initiator ACL TPG attributes #### qla2xxx Initiator LUN ACLs for iSCSI Target Portal Group mkdir -p /sys/kernel/config/target/qla2xxx/21:01:00:1b:32:3b:27:5d/tpgt_1/acls/21:00:00:1b:32:83:ac:c5/lun_0 ln -s /sys/kernel/config/target/qla2xxx/21:01:00:1b:32:3b:27:5d/tpgt_1/acls/21:00:00:1b:32:83:ac:c5/lun_0/../../../../../../../target/qla2xxx/21:01:00:1b:32:3b:27:5d/tpgt_1/lun/lun_0 /sys/kernel/config/target/qla2xxx/21:01:00:1b:32:3b:27:5d/tpgt_1/acls/21:00:00:1b:32:83:ac:c5/lun_0/a65a9772d7 echo 0 > /sys/kernel/config/target/qla2xxx/21:01:00:1b:32:3b:27:5d/tpgt_1/acls/21:00:00:1b:32:83:ac:c5/lun_0/write_protect #### Trigger to enable qla2xxx Target Portal Group echo 1 > /sys/kernel/config/target/qla2xxx/21:01:00:1b:32:3b:27:5d/tpgt_1/enable Do you need the contents of any of the following files that are under /etc/target? fc_start.sh lio_start.sh loopback_start.sh tcm_start.sh Anything else that you require that I've missed? Thanks. ---------- Jim Barber DDI Health -- To unsubscribe from this list: send the line "unsubscribe target-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html