On 12/15/2010 08:47 AM, Or Gerlitz wrote:
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

The iscsiadm -m session output does not rely on udev or anything that udev creates like the /dev nodes. iscsiadm just reads sysfs. The missing output could be due to a change in the sysfs layout again. Could you send me your kernel .config?

The other udev messages could also be caused by a older udev and a sysfs change.

--
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.

Reply via email to