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