[stgt] tgt-admin -e error

nia dev niadev67 at gmail.com
Sat Jul 28 18:39:12 CEST 2012


Hi all,


# cat /etc/tgt/targets.conf
default-driver iscsi

<target iqn.1993-08.org.debian:01:748549db76f:mhvtl:stgt:1>
        backing-store /dev/sg7
        backing-store /dev/sg2
        backing-store /dev/sg3
        backing-store /dev/sg4
        backing-store /dev/sg5
        backing-store /dev/sg6
</target>

# /usr/sbin/tgt-admin -e
tgtadm: invalid request
Command:
        tgtadm -C 0 --lld iscsi --op new --mode logicalunit --tid 1
--lun 1 -b /dev/sg2
exited with code: 22.


I think it needs extra flags --bstype=sg --device-type=pt

Thanks
-nia
--
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html



More information about the stgt mailing list