Re: creating a new fc target

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

 



On Tue, 2011-07-26 at 16:23 -0700, Andy Grover wrote:
> Hi Kiran and Robert,
> 
> I'm having an issue creating a tcm_fc target using rtsadmin. Have you
> tried this and had it work ok? I'm not sure if it's an issue, or if it's
> something stupid I'm doing. loopback create works fine.
> 
> This is with mainline kernel 3.0 code.
> 
> Thanks -- Regards -- Andy
> 
> #> rtsadmin
> /> loopback/ create
> Created target naa.600140566edc5d97.
> /> tcm_fc/ create

The 'create' in /tcm_fc/ involves an explict wwn= parameter
that /var/target/spec/tcm_fc.spec is parsing option inputs directly
from /sys/class/fc_host/*/port_name..  

Note that currently rtslib does not seperate which target drivers these
ports are coming from, but it sounds like you need to enable fcoe on
each individual ethX first in order to have the tcm_fc WWPNs appear here
like so:

/tcm_fc> info 
Fabric module name: tcm_fc
ConfigFS path: /sys/kernel/config/target/fc
Allowed WWNs list (free type): 21:00:00:24:ff:31:4c:49,
21:00:00:24:ff:31:4c:48
Fabric module specfile: /var/target/fabric/tcm_fc.spec
Fabric module features: acls
Corresponding kernel module: tcm_fc

/tcm_fc> 
/tcm_fc> create <TAB>
21:00:00:24:ff:31:4c:48  21:00:00:24:ff:31:4c:49  wwn=                     
................wwn|keyword=
/tcm_fc> create wwn=21:00:00:24:ff:31:4c:48 
Created target 21:00:00:24:ff:31:4c:48.
Entering new node /tcm_fc/21:00:00:24:ff:31:4c:48
/tcm_fc/21:00...4:ff:31:4c:48> 
/tcm_fc/21:00...4:ff:31:4c:48> ls
o- 21:00:00:24:ff:31:4c:48 ........................................... [enabled]
  o- acls .............................................................. [0 ACL]
  o- luns .............................................................. [0 LUN]
/tcm_fc/21:00...4:ff:31:4c:48> 

Thanks,

--nab

> Traceback (most recent call last):
>   File "/usr/lib/python2.6/site-packages/configshell/shell.py", line
> 975, in run_interactive
>     self._cli_loop()
>   File "/usr/lib/python2.6/site-packages/configshell/shell.py", line
> 801, in _cli_loop
>     self.run_cmdline(cmdline)
>   File "/usr/lib/python2.6/site-packages/configshell/shell.py", line
> 919, in run_cmdline
>     self._execute_command(path, command, pparams, kparams)
>   File "/usr/lib/python2.6/site-packages/configshell/shell.py", line
> 897, in _execute_command
>     result = target.execute_command(command, pparams, kparams)
>   File "/usr/lib/python2.6/site-packages/rtsadmin/ui_node.py", line 85,
> in execute_command
>     pparams, kparams)
>   File "/usr/lib/python2.6/site-packages/configshell/node.py", line
> 1314, in execute_command
>     result = method(*pparams, **kparams)
>   File "/usr/lib/python2.6/site-packages/rtsadmin/ui_target.py", line
> 70, in ui_command_create
>     target = Target(self.fabric_module, wwn, mode='create')
>   File "/usr/lib/python2.6/site-packages/rtslib/target.py", line 1252,
> in __init__
>     self._create_in_cfs_ine(mode)
>   File "/usr/lib/python2.6/site-packages/rtslib/node.py", line 71, in
> _create_in_cfs_ine
>     os.mkdir(self.path)
> OSError: [Errno 22] Invalid argument:
> '/sys/kernel/config/target/fc/1becac95-4e7f-45d1-a420-8336d613bbca'
> 
> - Andy
> --
> 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