Re: [stgt] bs_sg_open(380) Not recognized /dev/sg0 as an sg device

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, 13 Mar 2011 11:26:42 +0100
Frank Michel <michelfranck@xxxxxxx> 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@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@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux SCSI]     [Linux RAID]     [Linux Clusters]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]

  Powered by Linux