From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Surekha.PC" Date: Thu, 20 Nov 2003 15:11:05 +0000 Subject: RE: udev does not create scsi disk entries during bootup Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org Hi, >> >> root disk will show >up as being found by udev for right now, unless >> you put udev into initramfs somehow. >> >> Ok, that being the case, the local scsi disks would not be seen by >> udev during bootup unless it is part of initrd, right ? >udev would need to be initrd, and sysfs needs to be mounted. Have you done that? Ok thanks for that, I will try making udev part of initrd and test this feature. >> However I am bring up my iSCSI services, after root disk is mounted, >> so these disks have to be recognised by udev. Stopping the iSCSI >> service, will deconfigure the iSCSI disks, this should remove the disk >> entries in udev. Is it possible to achive this funtionality with the >> latest hotplug and udev? >Yes, make sure that sysfs is mounted before you start finding the iscsi devices. I have automounted sysfs. The /sys/block/ shows the iSCSI device entries. But hotplug event is not notified by the kernel. This is the reason why udev is not getting triggered for configuring device nodes. I have few queries about the way hotplug mechanism works. The /etc/hotplug/scsi.agent script does not seem to handle the "ACTION" add/remove of a scsi device ? Also the "/usr/src/linux/drivers/scsi" driver code does not have any hotplug initialization functions, then how does it indicate "/sbin/hotplug" program about the addition/deletion of device ? I have referred the hotplug documentation in the follg URL FYI http://linux-hotplug.sourceforge.net/?selected=hotplug Thanks, surekha ------------------------------------------------------- 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