Hi Mike, With kernel 2.6.37-rc5 (the latest upstream release) I see some udev related issue, when doing login (I'm using iscsi-initiator-utils-6.2.0.871-0.16.el5), the following appears in the system logs
>> udevd-event[12383]: wait_for_sysfs: waiting for >> '/sys/devices/platform/host18/ioerr_cnt' failed >> udevd-event[12409]: wait_for_sysfs: waiting for >> '/sys/devices/platform/host18/session16/target18:0:0/ioerr_cnt' failed practically what happens is that it takes some "extra" time for the luns to appear after the login, but I wasn't sure if/what is the problem, maybe my udev (udev-095-14.21.el5_5.1) is too old for this kernel? when doing "iscsidadm -m session -P 3" the luns are printed "empty", e.g see the below, note that since the target is tgt we don't expect any disk for lun zero, but lun one has a disk associated with it as you can see from the sg_map output > Attached SCSI devices: > Host Number: 18 State: running > scsi18 Channel 00 Id 0 Lun: 0 > scsi18 Channel 00 Id 0 Lun: 1 > # sg_map -i -x [...] > /dev/sg4 18 0 0 0 12 Voltaire vsa 1 > /dev/sg5 18 0 0 1 0 /dev/sdd Fio FS3-202-161-ES 1.0 > Dec 15 16:28:58 cto-1 kernel: scsi18 : iSCSI Initiator over TCP/IP > Dec 15 16:28:58 cto-1 kernel: scsi 18:0:0:0: RAID Voltaire vsa > 1 PQ: 0 ANSI: 5 > Dec 15 16:28:58 cto-1 kernel: scsi 18:0:0:0: Attached scsi generic sg4 type 12 > Dec 15 16:28:58 cto-1 kernel: scsi 18:0:0:1: Direct-Access Fio > FS3-202-161-ES 1.0 PQ: 0 ANSI: 5 > Dec 15 16:28:58 cto-1 kernel: sd 18:0:0:1: Attached scsi generic sg5 type 0 > Dec 15 16:28:58 cto-1 kernel: sd 18:0:0:1: [sdd] 155175680 512-byte logical > blocks: (79.4 GB/73.9 GiB) > Dec 15 16:28:58 cto-1 kernel: sd 18:0:0:1: [sdd] Write Protect is off > Dec 15 16:28:58 cto-1 kernel: sd 18:0:0:1: [sdd] Write cache: enabled, read > cache: enabled, doesn't support DPO or FUA > Dec 15 16:28:58 cto-1 kernel: sdd: unknown partition table > Dec 15 16:28:58 cto-1 kernel: sd 18:0:0:1: [sdd] Attached SCSI disk > Dec 15 16:28:59 cto-1 iscsid: connection16:0 is operational now > Dec 15 16:29:02 cto-1 udevd-event[12383]: wait_for_sysfs: waiting for > '/sys/devices/platform/host18/ioerr_cnt' failed > Dec 15 16:29:06 cto-1 udevd-event[12409]: wait_for_sysfs: waiting for > '/sys/devices/platform/host18/session16/target18:0:0/ioerr_cnt' failed > # iscsiadm -m session -P 3 > iSCSI Transport Class version 2.0-870 > version 2.0-871 > Target: iqn.nsg2 > Current Portal: 192.168.20.222:3260,1 > Persistent Portal: 192.168.20.222:3260,1 > ********** > Interface: > ********** > Iface Name: default > Iface Transport: tcp > Iface Initiatorname: iqn.1994-05.com.redhat:f5f051c97f8 > Iface IPaddress: 192.168.20.1 > Iface HWaddress: (null) > Iface Netdev: (null) > SID: 16 > iSCSI Connection State: LOGGED IN > iSCSI Session State: LOGGED_IN > Internal iscsid Session State: NO CHANGE > ************************ > Negotiated iSCSI params: > ************************ > HeaderDigest: None > DataDigest: None > MaxRecvDataSegmentLength: 262144 > MaxXmitDataSegmentLength: 8192 > FirstBurstLength: 65536 > MaxBurstLength: 262144 > ImmediateData: Yes > InitialR2T: Yes > MaxOutstandingR2T: 1 > ************************ > Attached SCSI devices: > ************************ > Host Number: 18 State: running > scsi18 Channel 00 Id 0 Lun: 0 > scsi18 Channel 00 Id 0 Lun: 1 # iscsiadm -m session -P 3 -d 8191 [...] > Attached SCSI devices: > ************************ > iscsiadm: sysfs_device_get: open '/class/iscsi_session/session16' > iscsiadm: sysfs_resolve_link: path link '/class/iscsi_session/session16' > points to '../../devices/platform/host18/session16/iscsi_session/session16' > iscsiadm: sysfs_resolve_link: base '/class/iscsi_session/session16', tail > 'devices/platform/host18/session16/iscsi_session/session16', back 2 > iscsiadm: sysfs_resolve_link: after moving back '' > iscsiadm: sysfs_device_get: found in cache > '/devices/platform/host18/session16/iscsi_session/session16' > iscsiadm: sysfs_device_get_parent: open > '/devices/platform/host18/session16/iscsi_session/session16' > iscsiadm: sysfs_device_get_parent: open > '/devices/platform/host18/session16/iscsi_session' > iscsiadm: sysfs_device_get_parent: open '/devices/platform/host18/session16' > iscsiadm: sysfs_attr_get_value: open '/class/scsi_host/host18'/'state' > iscsiadm: sysfs_attr_get_value: new uncached attribute > '/sys/class/scsi_host/host18/state' > iscsiadm: sysfs_attr_get_value: add to cache > '/sys/class/scsi_host/host18/state' > iscsiadm: sysfs_attr_get_value: cache '/sys/class/scsi_host/host18/state' > with attribute value 'running' > Host Number: 18 State: running > scsi18 Channel 00 Id 0 Lun: 0 > scsi18 Channel 00 Id 0 Lun: 1 -- You received this message because you are subscribed to the Google Groups "open-iscsi" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/open-iscsi?hl=en.
