Subject: iSCSI LUN
To: None <current-users@netbsd.org>
From: John R. Shannon <john@johnrshannon.com>
List: current-users
Date: 04/26/2006 05:50:55
I setup a iSCSI server on a NetBSD-CURRENT Xen domainU. My 
/etc/iscsi/targets file has:

# extent        file or device          start           length
extent0         /dev/xbd1a              0               38156MB
extent1         /dev/xbd2a              0               38156MB
extent2         /dev/xbd3a              0               38156MB

# target        flags   storage         netmask
target0         rw      extent0         10.1.1.2/32
target1         rw      extent1         10.1.1.3/32
target2         rw      extent2         10.1.1.4/32

Using an open-isci initiator on Linux, I'm able to discover the targets:

[root@g1 init.d]# iscsiadm -m discovery --type sendtargets --portal 10.1.1.3
[b24591] 10.1.1.3:3260,1 iqn.1994-04.org.netbsd.iscsi-target:target1
[b24590] 10.1.1.3:3260,1 iqn.1994-04.org.netbsd.iscsi-target:target0
[b24592] 10.1.1.3:3260,1 iqn.1994-04.org.netbsd.iscsi-target:target2

and login:
[root@g1 init.d]# iscsiadm -m node --record=b24590 --login
[root@g1 init.d]# iscsiadm
[00:b24590] 10.1.1.3:3260,1 iqn.1994-04.org.netbsd.iscsi-target:target0

However, the initiator is unhappy with the LUN (from dmesg):

SCSI subsystem initialized
iscsi: registered transport (tcp)
scsi0 : iSCSI Initiator over TCP/IP, v.0.3
   Vendor: NetBSD    Model: NetBSD/Intel iS   Rev: 0
   Type:   Direct-Access                      ANSI SCSI revision: 03
scsi: host 0 channel 0 id 0 lun 0x4e65744253440000 has a LUN larger than 
currently supported.
scsi: host 0 channel 0 id 0 lun 0x4e65744253442f49 has a LUN larger than 
currently supported.
scsi: host 0 channel 0 id 0 lun 0x6e74656c20695300 has a LUN larger than 
currently supported.
scsi: host 0 channel 0 id 0 lun12288 has a LUN larger than allowed by 
the host adapter

1) Does this LUN look correct?
2) If so, is there any control over it?

-- 
John R. Shannon, CISSP
john@johnrshannon.com
jshannon@dsci-usa.com
john.r.shannon@us.army.mil
shannonjr@NetBSD.org