On 05/23/2013 02:17 PM, Andy Grover wrote:
On 05/22/2013 12:40 PM, Andy Grover wrote:
On 05/20/2013 10:28 PM, Craig Watson wrote:
I'm switching mailing lists as you suggested. Thanks for the quick response. I updated tagetcli/rtslib from fedora-updates-testing as you suggested (yum info shown below). This definitely fixed some things. Note the proper response to qla2xxx's info and status commands now. Unfortunately creating a qla2xxx target is still eluding me. The create command still returns "Could not create Target in configFS."
Any ideas?
Hi Craig,
Sorry for the delay, still trying to borrow a machine with needed hw to try and repro this myself.
Got a system finally. Worked for me, after I ensured
cat /sys/module/qla2xxx/parameters/qlini_mode
showed "disabled". Adding a setting in modprobe.d/qla2xxx.conf:
options qla2xxx qlini_mode=disabled
didn't seem to take unless I rmmodded/modprobe'd qla2xxx manually.
Can you verify qlini_mode is disabled when you're trying it?
Thanks -- Andy
Hi Andy,
Progress!
I tried your suggestion of rmmod and modprobe and that worked. Even though I have /etc/modprobe.d/qla2xxx.conf set up properly (See my original email. It's buried in there), the initiator mode is not being disabled on boot. There must be something going on in the initramfs/initrd stuff that is setting things up incorrectly prior to reading /etc/modprobe.d/*.conf.
It's not all up and running though. :-( Everything looks right in targetcli now but the initiator is not seeing the target.
I've tried swapping the fiber cable from port to port in case I have misidentified the connection. And, I have set up both of the initiator WWNs in the qla2xxx/<WWN>/acls section.
One of the ports of the initiator (atto FC-82EN) is connected to an external 300GB Seagate FC drive and that works fine. I have had both ports of the initiator tied to both ports of the target machine too, and the initiator didn't see things then either.
Basically, I have executed the following commands: cd /backstores block/ create name=raid dev=/dev/md_d0 cd /qla2xxx create naa.21000024ff46b7ba cd luns create /backstores/block/raid cd ../../acls create naa.2100001086038078 cd .. create naa.2100001086038079
Here's what I have done in detail...
root2buickgn ~ # cat /sys/modules/qla2xxx/parameters/qlini_mode enabled root2buickgn ~ # rmmod qla2xxx root2buickgn ~ # modprobe qla2xxx root2buickgn ~ # cat /sys/modules/qla2xxx/parameters/qlini_mode disabled root2buickgn ~ # targetcli /> clearconfig confirm=true /> ls o- / ................................................................................ [...] o- backstores ..................................................................... [...] | o- block ......................................................... [Storage Objects: 0] | o- fileio ........................................................ [Storage Objects: 0] | o- pscsi ......................................................... [Storage Objects: 0] | o- ramdisk ....................................................... [Storage Objects: 0] o- iscsi ................................................................... [Targets: 0] o- loopback ................................................................ [Targets: 0] o- qla2xxx ................................................................. [Targets: 0] o- vhost ................................................................... [Targets: 0] /> cd backstores /backstores> block/ create name=raid dev=/dev/md_d0 Created block storage object raid using /dev/md_d0. Entering new node /backstores/block/raid /backstores/block/raid> cd / /> ls o- / ................................................................................ [...] o- backstores ..................................................................... [...] | o- block ......................................................... [Storage Objects: 1] | | o- raid ................................ [/dev/md_d0 (1.6TiB) write-thru deactivated] | o- fileio ........................................................ [Storage Objects: 0] | o- pscsi ......................................................... [Storage Objects: 0] | o- ramdisk ....................................................... [Storage Objects: 0] o- iscsi ................................................................... [Targets: 0] o- loopback ................................................................ [Targets: 0] o- qla2xxx ................................................................. [Targets: 0] o- vhost ................................................................... [Targets: 0] /> cd qla2xxx /qla2xxx> info Fabric module name: qla2xxx ConfigFS path: /sys/kernel/config/target/qla2xxx Allowed WWN types: naa Allowed WWNs list: naa.21000024ff46b7ba, naa.21000024ff46b7bb Fabric module features: acls Corresponding kernel module: tcm_qla2xxx /qla2xxx> create naa.21000024ff46b7ba Created target naa.21000024ff46b7ba. Entering new node /qla2xxx/naa.21000024ff46b7ba /qla2xxx/naa.21000024ff46b7ba> ls o- naa.21000024ff46b7ba ......................................................... [enabled] o- acls ....................................................................... [ACLs: 0] o- luns ....................................................................... [LUNs: 0] /qla2xxx/naa.21000024ff46b7ba> cd luns /qla2xxx/naa....ff46b7ba/luns> create /backstores/block/raid Created LUN 0. Entering new node /qla2xxx/naa.21000024ff46b7ba/luns/lun0 /qla2xxx/naa....7ba/luns/lun0> ls o- lun0 ......................................................... [block/raid (/dev/md_d0)] /qla2xxx/naa....7ba/luns/lun0> cd ../../acls /qla2xxx/naa....ff46b7ba/acls> create naa.2100001086038078 Created Node ACL for naa.2100001086038078 Created mapped LUN 0. Entering new node /qla2xxx/naa.21000024ff46b7ba/acls/naa.2100001086038078 /qla2xxx/naa....0001086038078> cd .. /qla2xxx/naa....ff46b7ba/acls> create naa.2100001086038079 Created Node ACL for naa.2100001086038079 Created mapped LUN 0. Entering new node /qla2xxx/naa.21000024ff46b7ba/acls/naa.2100001086038079 /qla2xxx/naa....ff46b7ba/acls> cd / /> ls o- / ................................................................................ [...] o- backstores ..................................................................... [...] | o- block ......................................................... [Storage Objects: 1] | | o- raid .................................. [/dev/md_d0 (1.6TiB) write-thru activated] | o- fileio ........................................................ [Storage Objects: 0] | o- pscsi ......................................................... [Storage Objects: 0] | o- ramdisk ....................................................... [Storage Objects: 0] o- iscsi ................................................................... [Targets: 0] o- loopback ................................................................ [Targets: 0] o- qla2xxx ................................................................. [Targets: 1] | o- naa.21000024ff46b7ba ..................................................... [enabled] | o- acls ................................................................... [ACLs: 2] | | o- naa.2100001086038078 .......................................... [Mapped LUNs: 1] | | | o- mapped_lun0 ........................................... [lun0 block/raid (rw)] | | o- naa.2100001086038079 .......................................... [Mapped LUNs: 1] | | o- mapped_lun0 ........................................... [lun0 block/raid (rw)] | o- luns ................................................................... [LUNs: 1] | o- lun0 ................................................. [block/raid (/dev/md_d0)] o- vhost ................................................................... [Targets: 0] />
Any ideas or suggestions on how I can troubleshoot this?
Thanks again for your help.
Craig Watson