Open yangni2017 opened 3 months ago
hi,i have a storage with many lun, when i login host, but when i attach lun to vm,the libiscsi get error.
query the storage info when login host:
Target: iqn.2006-08.com.huawei:oceanstor:2100e48326e7ddd6::1022003:10.30.16.17 (non-flash) Current Portal: 10.30.16.17:3260,8206 Persistent Portal: 10.30.16.17:3260,8206 ********** Interface: ********** Iface Name: default Iface Transport: tcp Iface Initiatorname: iqn.2012-01.com.topos3:f0a6cfac63e7 Iface IPaddress: 10.30.16.23 Iface HWaddress: default Iface Netdev: default SID: 1 iSCSI Connection State: LOGGED IN iSCSI Session State: LOGGED_IN Internal iscsid Session State: NO CHANGE ********* Timeouts: ********* Recovery Timeout: 120 Target Reset Timeout: 30 LUN Reset Timeout: 30 Abort Timeout: 15 ***** CHAP: ***** username: <empty> password: ******** username_in: <empty> password_in: ******** ************************ Negotiated iSCSI params: ************************ HeaderDigest: None DataDigest: None MaxRecvDataSegmentLength: 262144 MaxXmitDataSegmentLength: 262144 FirstBurstLength: 4096 MaxBurstLength: 262144 ImmediateData: Yes InitialR2T: Yes MaxOutstandingR2T: 1 ************************ Attached SCSI devices: ************************ Host Number: 16 State: running scsi16 Channel 00 Id 0 Lun: 1 Attached scsi disk sde State: running scsi16 Channel 00 Id 0 Lun: 10 Attached scsi disk sdn State: running scsi16 Channel 00 Id 0 Lun: 11 Attached scsi disk sdo State: running scsi16 Channel 00 Id 0 Lun: 12 Attached scsi disk sdp State: running scsi16 Channel 00 Id 0 Lun: 13 Attached scsi disk sdq State: running scsi16 Channel 00 Id 0 Lun: 14 Attached scsi disk sdr State: running scsi16 Channel 00 Id 0 Lun: 15 Attached scsi disk sds State: running scsi16 Channel 00 Id 0 Lun: 16 Attached scsi disk sdt State: running scsi16 Channel 00 Id 0 Lun: 17 Attached scsi disk sdu State: running scsi16 Channel 00 Id 0 Lun: 18 Attached scsi disk sdv State: running scsi16 Channel 00 Id 0 Lun: 19 Attached scsi disk sdw State: running scsi16 Channel 00 Id 0 Lun: 2 Attached scsi disk sdf State: running scsi16 Channel 00 Id 0 Lun: 20 Attached scsi disk sdx State: running scsi16 Channel 00 Id 0 Lun: 21 Attached scsi disk sdy State: running scsi16 Channel 00 Id 0 Lun: 22 Attached scsi disk sdz State: running scsi16 Channel 00 Id 0 Lun: 23 Attached scsi disk sdaa State: running scsi16 Channel 00 Id 0 Lun: 24 Attached scsi disk sdab State: running scsi16 Channel 00 Id 0 Lun: 25 Attached scsi disk sdac State: running scsi16 Channel 00 Id 0 Lun: 26 Attached scsi disk sdad State: running scsi16 Channel 00 Id 0 Lun: 27 Attached scsi disk sdae State: running scsi16 Channel 00 Id 0 Lun: 28 Attached scsi disk sdaf State: running scsi16 Channel 00 Id 0 Lun: 29 Attached scsi disk sdag State: running scsi16 Channel 00 Id 0 Lun: 3 Attached scsi disk sdg State: running scsi16 Channel 00 Id 0 Lun: 30 Attached scsi disk sdah State: running scsi16 Channel 00 Id 0 Lun: 31 Attached scsi disk sdai State: running scsi16 Channel 00 Id 0 Lun: 32 Attached scsi disk sdaj State: running scsi16 Channel 00 Id 0 Lun: 33 Attached scsi disk sdak State: running scsi16 Channel 00 Id 0 Lun: 34 Attached scsi disk sdal State: running scsi16 Channel 00 Id 0 Lun: 35 Attached scsi disk sdam State: running scsi16 Channel 00 Id 0 Lun: 36 Attached scsi disk sdan State: running scsi16 Channel 00 Id 0 Lun: 37 Attached scsi disk sdao State: running scsi16 Channel 00 Id 0 Lun: 38 Attached scsi disk sdap State: running scsi16 Channel 00 Id 0 Lun: 39 Attached scsi disk sdaq State: running scsi16 Channel 00 Id 0 Lun: 4 Attached scsi disk sdh State: running scsi16 Channel 00 Id 0 Lun: 40 Attached scsi disk sdar State: running scsi16 Channel 00 Id 0 Lun: 41
but when i attach to vm,the libiscsi get the error:
ERROR libiscsi SENSE KEY:ILLEGAL_REQUEST(5) ASCQ:LOGICAL_UNIT_NOT_SUPPORTED(0x2500) [iqn.2006-08.com.huawei:oceanstor:2100e48326e7ddd6::1022003:10.30.16.17:10.30.16.17:3260]
my xml info:
<disk type="network" device="disk"> <driver io="threads" queues="0"></driver> <source protocol="iscsi" name="iqn.2006-08.com.huawei:oceanstor:2100e48326e7ddd6::1022003:10.30.16.17/40"> <host name="10.30.16.17" port="3260"></host> </source> <target dev="sdb" bus="scsi"></target> <iotune></iotune> <boot order="4"></boot> </disk>
hi,i have a storage with many lun, when i login host, but when i attach lun to vm,the libiscsi get error.
query the storage info when login host:
but when i attach to vm,the libiscsi get the error:
my xml info: