Could not create Target in configFS
by Steffan Cline
I posted this in as an issue on Github but saw there’s a mailing list too and figured I’d try this as well.
I installed targetcli via yum on CentOS 7 and this is the version in the repo:
# targetcli
targetcli shell version 2.1.fb49
Copyright 2011-2013 by Datera, Inc and others.
For help on commands, type 'help'.
I downloaded the .zip of the targetcli-fb version and tried it too from the scripts folder and same results.
Python:
# python --version
Python 2.7.5
The error comes up when using create.
/> /qla2xxx create naa.xxxxxxxxxxxxxxx
Could not create Target in configFS
Below is the info on my FC
/> qla2xxx/ info
Fabric module name: qla2xxx
ConfigFS path: /sys/kernel/config/target/qla2xxx
Allowed WWN types: naa
Allowed WWNs list: naa.xxxxxxxxxxxxxxx, naa.xxxxxxxxxxxxxxx, naa.xxxxxxxxxxxxxxx, naa.xxxxxxxxxxxxxxx, naa.xxxxxxxxxxxxxxx, naa.xxxxxxxxxxxxxxx, naa.xxxxxxxxxxxxxxx, naa.xxxxxxxxxxxxxxx
Fabric module features: acls
Corresponding kernel module: tcm_qla2xxx
I have attached the log but don't see anything that really stands out.
I checked per the link http://www.linux-iscsi.org/wiki/Fibre_Channel#Enable_target_mode to ensure that I have initiator mode disabled
# cat /sys/module/qla2xxx/parameters/qlini_mode
disabled
The kernel modules are loaded.
# lsmod | grep qla2xxx
tcm_qla2xxx 32768 1
target_core_mod 335872 4 tcm_qla2xxx,iscsi_target_mod
qla2xxx 634880 1 tcm_qla2xxx
scsi_transport_fc 65536 3 bfa,qla2xxx,tcm_qla2xxx
configfs is mounted:
# cat /proc/mounts | grep configfs
configfs /sys/kernel/config configfs rw,relatime 0 0
Does the error suggest it cannot access the configFS path?
Suggestions?
Thank you,
Steffan Cline
steffan(a)hldns.com
602-793-0014
4 years, 3 months
Re: Latest versions of rtslib, configshell and targetcli
by TomK
Allright. Gave the -fb versions a try.
790037 -rw-r--r--. 1 root root 18100 Dec 14 23:22 scsi_target.lio
786433 drwxr-xr-x. 155 root root 12288 Dec 14 23:52 ..
787390 -rw-------. 1 root root 71 Dec 15 01:43 saveconfig.json
They use json instead of the old .lio format for storing the config.
And so won't let me restore my old config:
/> restoreconfig /etc/target/scsi_target.lio
Error parsing savefile: /etc/target/scsi_target.lio
/>
The -fb version however supports the force_pr_aptpl option:
config# load /etc/target/scsi_target.lio
Replace the current configuration with /etc/target/scsi_target.lio? [y/N] y
*** Unknown attribute: storage fileio disk mdsesxip01-d01.img attribute
force_pr_aptpl
config#
[root@nexus01 target]# grep -EiR force_pr_aptpl *
targetcli-fb/build/targetcli-fb-2.1.51.2.g94d971d/targetcli/ui_backstore.py:
'force_pr_aptpl': ('number', 'If set to 1, force SPC-3 PR
Activate Persistence across Target Power Loss operation.'),
targetcli-fb/targetcli/ui_backstore.py: 'force_pr_aptpl':
('number', 'If set to 1, force SPC-3 PR Activate Persistence across
Target Power Loss operation.'),
So just want to bring up the question once more: which version of
targetcli, rtslib and configshell did folks here find most compatible?
Still the -fb version?
Thx,
TK
On 4/7/2019 12:30 AM, TomK wrote:
> On 3/28/2019 1:53 PM, J. Roeleveld wrote:
>> On March 28, 2019 5:42:52 PM UTC, Christoph Hellwig
>> <hch(a)infradead.org> wrote:
>>
>> On Fri, Mar 22, 2019 at 11:26:13PM -0400, TomK wrote:
>>
>> Hey All,
>>
>> I'm wondering if there are newer versions of the following
>> packages still
>> available and where I could download them from? The github link
>> hasn't
>> been updated in quite some time:
>>
>>
>> I think you want to look for the versions with the -fb postfix. They
>> aren't 100% compatible, but a lot more actively maintained.
>>
>> I've Cced the mailing list for the project, although I haven't gotten
>> a single mail from that list for more than a year either..
>>
>> ------------------------------------------------------------------------
>> targetcli-fb-devel mailing list --
>> targetcli-fb-devel(a)lists.fedorahosted.org
>> To unsubscribe send an email to
>> targetcli-fb-devel-leave(a)lists.fedorahosted.org
>> Fedora Code of Conduct:https://getfedora.org/code-of-conduct.html
>> List
>> Guidelines:https://fedoraproject.org/wiki/Mailing_list_guidelines
>> List
>> Archives:https://lists.fedorahosted.org/archives/list/targetcli-fb-devel@...
>>
>>
>>
>> I have been using the -fb versions for a while now and not had any
>> issues with them.
>> You do need to use either the -fb versions for all, or the non-fb
>> versions for all. Mix and match is not supported and can lead to
>> strange results (if it even works).
>>
>> I also don't remember getting any emails on this list for a while either.
>>
>> --
>> Joost
>> --
>> Sent from my Android device with K-9 Mail. Please excuse my brevity.
>
> Thanks all!
>
> If targetcli or the -fb version isn't maintained much anymore, I'm
> wondering what else I could use in it's place?
>
--
Thx,
TK.
4 years, 4 months