On trusty this is what i did to fix:
wget http://archive.ubuntu.com/ubuntu/pool/universe/r/rtslib/rtslib_2.2.orig.tar.gz tar xvzf rtslib_2.2.orig.tar.gz cd rtslib-2.2/ ./setup.py build sudo ./setup.py install
wget http://archive.ubuntu.com/ubuntu/pool/universe/t/targetcli/targetcli_3.0+git0.7e32595e.orig.tar.gz tar xvzf targetcli_3.0+git0.7e32595e.orig.tar.gz cd targetcli-3.0+git0.7e32595e/ ./setup.py build sudo ./setup.py install
anubhav@stargazer:~$ sudo targetcli targetcli GIT_VERSION (rtslib 3.0.pre4.1~g1b33ceb) Copyright (c) 2011-2014 by Datera, Inc. All rights reserved.
/> cd backstores /backstores> ls o- backstores ................................................................................................................ [...] o- fileio .................................................................................................... [2 Storage Objects] | o- lun0 ...................................................................................... [/storage/lun1.img 2.0Gactivated] | o- lun1 ..................................................................................... [/storage/lun2.img 10.0Gactivated] o- iblock ..................................................................................................... [0 Storage Object] o- pscsi ...................................................................................................... [0 Storage Object] o- rd_mcp ..................................................................................................... [0 Storage Object] /backstores>
On trusty this is what i did to fix:
wget http:// archive. ubuntu. com/ubuntu/ pool/universe/ r/rtslib/ rtslib_ 2.2.orig. tar.gz 2.2.orig. tar.gz
tar xvzf rtslib_
cd rtslib-2.2/
./setup.py build
sudo ./setup.py install
wget http:// archive. ubuntu. com/ubuntu/ pool/universe/ t/targetcli/ targetcli_ 3.0+git0. 7e32595e. orig.tar. gz 3.0+git0. 7e32595e. orig.tar. gz 3.0+git0. 7e32595e/
tar xvzf targetcli_
cd targetcli-
./setup.py build
sudo ./setup.py install
anubhav@ stargazer: ~$ sudo targetcli 1~g1b33ceb)
targetcli GIT_VERSION (rtslib 3.0.pre4.
Copyright (c) 2011-2014 by Datera, Inc.
All rights reserved.
/> cd backstores ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... [...] ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... .. [2 Storage Objects] ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... .. [/storage/lun1.img 2.0Gactivated] ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... . [/storage/lun2.img 10.0Gactivated] ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ... [0 Storage Object] ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... .... [0 Storage Object] ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ... [0 Storage Object]
/backstores> ls
o- backstores .......
o- fileio .......
| o- lun0 .......
| o- lun1 .......
o- iblock .......
o- pscsi .......
o- rd_mcp .......
/backstores>