Hi Greg, I was able to make hotplug work !!! The latest udev-007 release provides udev startup script, which was not present in earlier udev-005 release. The script however does not get installed in the rc.d path. I had to install it manually to make it work. This needs to be taken care in future releases. I am now able to automatically add and remove my iSCSI devices through udev. I am submitting the patch with 2 changes. 1)To include new field in the NUMBER rule specially for iSCSI devices. The current rule provided by udev is as below. NUMBER, BUS="scsi", ID=2:0:0:0", NAME="disk%n" For iSCSI devices, since hostid is not consistent, we are defining a new iSCSI device attribute in sysfs, which will be checked while naming the device. NUMBER, BUS="scsi", ID="0:0:0", device_type="ISCSI", NAME="ib0t0l0%n" 2) Device partition name needs to be appended with "s" before partition id. If the device name consists of bus,target info like "c0b0t0l0" it will be easier to identify the partition as in "c0b0t0l0s1". Please find the patch alongwith. Thanks, surekha -----Original Message----- From: linux-hotplug-devel-admin@lists.sourceforge.net [mailto:linux-hotplug-devel-admin@lists.sourceforge.net] On Behalf Of Greg KH Sent: Tuesday, November 25, 2003 3:44 AM To: Surekha.PC Cc: 'Martin Hicks'; linux-hotplug-devel@lists.sourceforge.net Subject: Re: udev does not create scsi disk entries during bootup On Mon, Nov 24, 2003 at 06:18:54PM +0530, Surekha.PC wrote: > > > >The 'tree' function is much nicer for seeing things like this :) > > Is this a utility? Appreciate if you can inform me where to get it. Hm, it should be included in your distro. What are you running? > >> Here sda, sdb are my native scsi disks while sdc, sdd are iSCSI > disks. > > >Why is your iscsi host controller haning off of the legacy bus? > >Isn't > it connected to a >ethernet device in reality? You should link it to > that. > > iSCSI is a pseudo SCSI HBA, it is registered with Scsi_Host template > just like any native SCSI HBA. Since there isn't any pci bus > associated with it, it appears on legacy bus. But it's attached to a network connection, correct? If so, why not link it to the network device? > >> I am able to manually create the device nodes for iSCSI disks with > >> udev. > >> > >> Making udev work with hotplug is the only issue now :( > > >Don't know why it isn't working for you. Does any other devices work > >with hotplug? What distro are you using? Can you install the hotplug > >rpms instead of using the tarballs? > > I have native scsi disk devices on my system. These are not tested for > hotplugging since it requires to build udev with initrd, which I am > yet to test with. > > I am using Redhat 9.0 with linux-kernel 2.6.0-test5. > > I was not able to install from rpm, rpm on 2.6 kernel has an issue, it > gives following error and fails... That's another issue. Sounds like you aren't running as root to do that. Anyway, try grabbing the version of hotplug from rawhide/fedora that should be a good base to work off of. Other than that, I really have no idea what's going wrong. It doesn't look to be a kernel or udev error, so I'll be of no help :) Good luck, greg k-h ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel