Missing /sys/kernel/config/target

1,234 views
Skip to first unread message

alan.brunelle

unread,
Aug 13, 2009, 7:49:53 AM8/13/09
to Linux-iSCSI.org Target Users
I believe I've followed the instruction correctly - I'm at commit:

commit 33818533e835b3dbaddb45acfc90c7406fffbcee
Author: Nicholas Bellinger <n...@linux-iscsi.org>
Date: Mon Aug 10 09:02:27 2009 -0700

for lio-core, and when I load the target module, I do see in the dmesg
output:

TARGET_CORE[0]: Loading Generic Kernel Storage Engine: v3.0.0 on Linux/
x86_64 on 2.6.31-rc5-iscsi-tgt
TARGET_CORE[0]: Initialized ConfigFS Fabric Infrastructure: v1.0.0 on
Linux/x86_64 on 2.6.31-rc5-iscsi-tgt
SE_PC[0] - Registered Plugin Class: TRANSPORT
PLUGIN_TRANSPORT[1] - pscsi registered
PLUGIN_TRANSPORT[2] - stgt registered
CORE_STGT[0]: Bus Initalization complete
PLUGIN_TRANSPORT[4] - iblock registered
PLUGIN_TRANSPORT[5] - rd_dr registered
PLUGIN_TRANSPORT[6] - rd_mcp registered
PLUGIN_TRANSPORT[7] - fileio registered
SE_PC[1] - Registered Plugin Class: OBJ
PLUGIN_OBJ[1] - dev registered

However, when I attempt to issue a tcm_node command, I get errors
trying to find stuff under /sys/kernel/config/target/...:

tcm_node --listhbas
Traceback (most recent call last):
File "/usr/sbin/tcm_node", line 903, in ?
main()
File "/usr/sbin/tcm_node", line 895, in main
(options, args) = parser.parse_args()
File "/usr/lib64/python2.4/optparse.py", line 1275, in parse_args
stop = self._process_args(largs, rargs, values)
File "/usr/lib64/python2.4/optparse.py", line 1315, in _process_args
self._process_long_opt(rargs, values)
File "/usr/lib64/python2.4/optparse.py", line 1390, in
_process_long_opt
option.process(opt, value, values, self)
File "/usr/lib64/python2.4/optparse.py", line 707, in process
return self.take_action(
File "/usr/lib64/python2.4/optparse.py", line 726, in take_action
self.callback(self, opt, value, parser, *args, **kwargs)
File "/usr/sbin/tcm_node", line 416, in tcm_list_hbas
for hba in os.listdir(tcm_root):
OSError: [Errno 2] No such file or directory: '/sys/kernel/config/
target/core'

Am I missing some step? Where should I look? [I'm adding printk's to
the code whilst I await any suggestions...]

Alan D. Brunelle

unread,
Aug 13, 2009, 9:40:00 AM8/13/09
to Linux-iSCSI.org Target Users
alan.brunelle wrote:

>
> Am I missing some step? Where should I look? [I'm adding printk's to
> the code whilst I await any suggestions...]
>

I think this is because (primarily? exclusively?) I don't have a
/etc/target/tcm_start.sh file (or a /etc/target/lio_start.sh neither).
Are there generic ones, or is this something /I/ need to figure out?

Thanks,
Alan

Alan D. Brunelle

unread,
Aug 13, 2009, 11:00:00 AM8/13/09
to Linux-iSCSI.org Target Users
Ah! I mounted configfs and I'm making some progress...

Nicholas A. Bellinger

unread,
Aug 13, 2009, 10:39:43 PM8/13/09
to linux-iscsi-...@googlegroups.com
On Thu, 2009-08-13 at 11:00 -0400, Alan D. Brunelle wrote:
> Ah! I mounted configfs and I'm making some progress...
>

Greetings Alan,

Good to hear you are getting up and running with the latest code!

Btw, the configfs modprobe and mount is happening in
lio-utils.git/scripts/rc.target init.d in target:check_configfs_mount(),
which I figured was easier than expecting everyone to add it
to /etc/fstab.. :)

So have you been able to get TCM storage objects and iSCSI Target ports
up and running on your setup..?

Also, the user's reference manual for v3 CLI ops which might help you
out is now available from:

http://linux-iscsi.org/builds/docs/LIO-3.0-Users_Reference_Manual.pdf

Please feel free to post your progress to the list if you run into any
any issues or comments,

Thanks!

--nab

> >


Reply all
Reply to author
Forward
0 new messages