sheepdog
sheepdog copied to clipboard
Enhance tgt-admin script to support option 'bs-type sheepdog'
cat /etc/tgt/targets.conf
default-driver iscsi
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
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