I have multiple ESXi 4.0 hosts connecting to multiple iSCSI targets/devices via the software iSCSI initiator, using fixed path.
The iSCSI targets are CentOS Linux 5.4 VMs running scsi-target-utils , they work fine if each host discovers/connects only to a single target . Each target presents a LUN 0 + LUN 1 , the latter obviously being the vmfs3 datastore.
Here's where the plot thickens...
If I add multiple targets to the Discovery list, however, the host show paths to all of them on the Storage Adapter | Paths tab, but only 1 is designated as "Active I/O". And only 1 target shows up on the Device tab .
I have assigned unique IQN names to the targets, I'm not sure what else might be an issue here. Any pointers/tips appreciated. Thanks!
I had the same problem when attempting to connect my ESXi server to two different CentOS 5 targets that were configured identically. I could see both paths but only one LUN was available when I attempted to add storage. My problem was due to the same "SCSI ID" and "SCSI SN" being assigned to the target on both CentOS servers:
CentOS Server #1:
Target 1: iqn.2010-04.dfwlabsan01:iscsi01
System information:
Driver: iscsi
State: ready
I_T nexus information:
I_T nexus: 1
Initiator: iqn.1998-01.com.vmware:pcp306543pcs-7d5e65a6
Connection: 0
IP Address: 10.0.0.4
LUN information:
LUN: 0
Type: controller
SCSI ID: IET 00010000
SCSI SN: beaf10
Size: 0 MB
Online: Yes
Removable media: No
Backing store: No backing store
LUN: 1
Type: disk
SCSI ID: IET 00010001
SCSI SN: beaf11*
Size: 440234 MB
Online: Yes
Removable media: No
Backing store: /dev/vg.iscsi01/lv.iscsi01
Account information:
ACL information:
CentOS Server #2:
Target 1: iqn.2010-04.dfwlabsan02:iscsi02
System information:
Driver: iscsi
State: ready
I_T nexus information:
I_T nexus: 1
Initiator: iqn.1998-01.com.vmware:pcp306543pcs-7d5e65a6
Connection: 0
IP Address: 10.0.0.4
LUN information:
LUN: 0
Type: controller
SCSI ID: IET 00010000
SCSI SN: beaf10*
Size: 0 MB
Online: Yes
Removable media: No
Backing store: No backing store
LUN: 1
Type: disk
SCSI ID: IET 00010001
SCSI SN: beaf11*
Size: 440234 MB
Online: Yes
Removable media: No
Backing store: /dev/vg.iscsi02/lv.iscsi02
Account information:
ACL information:
To correct this, I used a different target ID and lun number when creating the target on the second CentOS server to force the SCSI ID and SCSI SN to be unique on each server:
tgtadm --lld iscsi --op new --mode target --tid 2 -T iqn.2010-04.dfwlabsan02:iscsi02
tgtadm --lld iscsi --op new --mode logicalunit --tid 2 --lun 3 -b /dev/vg.iscsi02/lv.iscsi02
Target 2: iqn.2010-04.dfwlabsan02:iscsi02
System information:
Driver: iscsi
State: ready
I_T nexus information:
I_T nexus: 1
Initiator: iqn.1998-01.com.vmware:pcp306543pcs-7d5e65a6
Connection: 0
IP Address: 10.0.0.4
LUN information:
LUN: 0
Type: controller
SCSI ID: IET 00020000
SCSI SN: beaf20*
Size: 0 MB
Online: Yes
Removable media: No
Backing store: No backing store
LUN: 3
Type: disk
SCSI ID: IET 00020003
SCSI SN: beaf23*
Size: 440234 MB
Online: Yes
Removable media: No
Backing store: /dev/vg.iscsi02/lv.iscsi02
Account information:
ACL information:
Len