[stgt] bs_sg_open(380) Not recognized /dev/sg0 as an sg device
FUJITA Tomonori
fujita.tomonori at lab.ntt.co.jp
Thu Mar 17 12:50:27 CET 2011
On Sun, 13 Mar 2011 11:26:42 +0100
Frank Michel <michelfranck at neuf.fr> wrote:
> We are currently using STGT v1.0.13 on a RHEL 6 test box.
> We are encountering the following difficulty :
>
> tgtadm --lld iscsi --mode target --op new --tid=1 --targetname
> iqn.2011-03.com:test
>
> lsscsi -g
> ...
>
> tgtadm --lld iscsi --mode logicalunit --op new --tid 1 --lun 1
> --device-type=pt --bstype=sg -b /dev/sg4
> tgtadm: invalid request
>
> And the /var/adm/messages shows:
>
> chk_sg_device(295) stat failed errorno: 13
> bs_sg_open(380) Not recognized /dev/sg4 as an sg device
>
> The problem is that sometime it works, sometimes not with the previous error
>
> Are we doing something wrong ? /dev/sg4 exists for sure.
errno 13 means:
fujita at rose:/usr/include/asm-generic$ grep 13 errno-base.h
#define EACCES 13 /* Permission denied */
--
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