sheepdog icon indicating copy to clipboard operation
sheepdog copied to clipboard

Enhance tgt-admin script to support option 'bs-type sheepdog'

Open marcin-github opened this issue 10 years ago • 1 comments

cat /etc/tgt/targets.conf

default-driver iscsi

bs-type sheepdog backing-store tcp:127.0.0.1:7000:usun

but tgt-admin throws:

tgt-admin -p -e

Adding target: iqn.backup.sheep:usun

tgtadm -C 0 --lld iscsi --op new --mode target --tid 1 -T iqn.backup.sheep:usun

Skipping device: tcp:127.0.0.1:7000:usun

tcp:127.0.0.1:7000:usun does not exist - please check the configuration file

tgtadm -C 0 --lld iscsi --op bind --mode target --tid 1 -I ALL

marcin-github avatar Sep 30 '15 07:09 marcin-github

Works for me, I used this man:

  • https://github.com/sheepdog/sheepdog/wiki/General-protocol-support-(iSCSI-and-NBD)

and this command :

tgtadm --op new --mode lu --tid 1 --lun 2 --bstype sheepdog --backing-store tcp:127.0.0.1:7000:tgt0

kvaps avatar Jun 01 '18 17:06 kvaps