Re: Trouble getting LIO working on Ubuntu 13.40

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

 



Hi Blake,

On Sun, 2013-09-15 at 12:32 -0700, Blake Garner wrote:
> I'm attempting to get LIO working on Ubuntu 13.40 and running into
> what seems like configuration issues. 
>
> Added these to /etc/modules and rebuilt the boot ramdisk
> using  update-initramfs -u
> qla2xxx
> tcm_qla2xxx
> target_core_mod
> 
> 
> Installed targetcli via 
> apt-get install targetcli
> 
> 
> When attempting to start targetcli I'm getting the following errors. 
>
> 
> # targetcli
> Welcome to the targetcli shell:
> 
>  Copyright (c) 2011 by RisingTide Systems LLC.
> 
> Visit us at http://www.risingtidesystems.com.
> 
> Traceback (most recent call last):
>   File "/usr/bin/targetcli", line 80, in <module>
>     main()
>   File "/usr/bin/targetcli", line 73, in main
>     root_node.refresh()
>   File "/usr/lib/python2.7/dist-packages/targetcli/ui_root.py", line
> 46, in refresh
>     UIBackstores(self)
>   File "/usr/lib/python2.7/dist-packages/targetcli/ui_backstore.py",
> line 50, in __init__
>     self.refresh()
>   File "/usr/lib/python2.7/dist-packages/targetcli/ui_backstore.py",
> line 54, in refresh
>     UIPSCSIBackstore(self)
>   File "/usr/lib/python2.7/dist-packages/targetcli/ui_backstore.py",
> line 183, in __init__
>     UIBackstore.__init__(self, 'pscsi', parent)
>   File "/usr/lib/python2.7/dist-packages/targetcli/ui_backstore.py",
> line 68, in __init__
>     self.refresh()
>   File "/usr/lib/python2.7/dist-packages/targetcli/ui_backstore.py",
> line 72, in refresh
>     for so in RTSRoot().storage_objects:
>   File "/usr/lib/python2.7/dist-packages/rtslib/root.py", line 67, in
> __init__
>     self._create_in_cfs_ine('any')
>   File "/usr/lib/python2.7/dist-packages/rtslib/node.py", line 71, in
> _create_in_cfs_ine
>     os.mkdir(self.path)
> OSError: [Errno 2] No such file or directory:
> '/sys/kernel/config/target'

This means that configfs has not been loaded and/or mounted under
/sys/kernel/config.

/etc/init.d/target will normally be doing this at 'target start' time,
so I'm unsure why this is not happening as usual on your Ubuntu 13.40
setup.

You can confirm by adding configfs to your /etc/modules, and include
the following line in /etc/fstab:

  configfs	/sys/kernel/config configfs	defaults	0	0

--nab


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