Re: OSError: [Errno 22] Invalid argument: '/sys/kernel/config/target/qla2xxx/<WWN>

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 2012-09-10 at 13:05 -0400, Daniel Lane wrote:
> Hello, I am having the same problem reported here (with any
> resolution) http://www.spinics.net/lists/target-devel/msg02618.html
> and https://bugs.launchpad.net/ubuntu/+source/targetcli/+bug/1040404
> 

Hi Daniel,

The mainline version of qla2xxx by default runs in initiator mode
enabled only.  In order to enable qla2xxx to run in target mode, you'll
need to follow the instructions from the wiki here:

http://linux-iscsi.org/wiki/Fibre_Channel#Enable_target_mode

--nab

> My specific details:
> 
> Running Ubuntu 12.10 (started on 12.04) and using kernel 3.5.0-14
> (although I've tried several previous kernels with the same results)
> Hardware: Dual dual-core Opteron 2214HE, Arima NM461 motherboard,
> QLogic 2312 HBA
> 
> Steps to reproduce:
> /qla2xxx create <WWN>
> 
> Results:
> Traceback (most recent call last):
>   File "/usr/lib/python2.7/configshell/shell.py", line 983, in run_interactive
>     self._cli_loop()
>   File "/usr/lib/python2.7/configshell/shell.py", line 806, in _cli_loop
>     self.run_cmdline(cmdline)
>   File "/usr/lib/python2.7/configshell/shell.py", line 927, in run_cmdline
>     self._execute_command(path, command, pparams, kparams)
>   File "/usr/lib/python2.7/configshell/shell.py", line 902, in _execute_command
>     result = target.execute_command(command, pparams, kparams)
>   File "/usr/lib/python2.7/targetcli/ui_node.py", line 216, in execute_command
>     return UINode.execute_command(self, command, pparams, kparams)
>   File "/usr/lib/python2.7/targetcli/ui_node.py", line 101, in execute_command
>     pparams, kparams)
>   File "/usr/lib/python2.7/configshell/node.py", line 1405, in execute_command
>     result = method(*pparams, **kparams)
>   File "/usr/lib/python2.7/targetcli/ui_target.py", line 119, in
> ui_command_create
>     target = Target(self.rtsnode, wwn, mode='create')
>   File "/usr/lib/python2.7/rtslib/target.py", line 1176, in __init__
>     self._create_in_cfs_ine(mode)
>   File "/usr/lib/python2.7/rtslib/node.py", line 71, in _create_in_cfs_ine
>     os.mkdir(self.path)
> OSError: [Errno 22] Invalid argument: '/sys/kernel/config/target/qla2xxx/<WWN>'
> 
> I also tried to compile from scratch so I could try the latest git,
> but when I run "make deb" on any of the three components, I get an
> error that about python not meeting the python 2.6 dependency
> requirement (12.10 includes python 2.7).
> 
> This is for a home lab and not that critical, but I'm in a VCP5 class
> and I really need this working so I can practice at home.
> 
> Thanks a lot for the help!
> Dan
> --
> 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


--
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


[Index of Archives]     [Linux SCSI]     [Kernel Newbies]     [Linux SCSI Target Infrastructure]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Device Mapper]

  Powered by Linux