On Tue, 2006-08-01 at 16:33 -0400, Greg Freemyer wrote:
On 8/1/06, Roger Oberholtzer
wrote: On Mon, 2006-07-31 at 18:51 -0400, Greg Freemyer wrote:
On 7/31/06, Roger Oberholtzer
wrote: Of course hot swapping SATA disks is not currently supported in Linux. As such, udevmonitor reports nothing when the disks are inserted or removed on a system that does support this at the hardware level. There is work in libata, but nothing functioning for use in a production system.
Not sure how "production" you need it to be.
The 2.6.17 kernel has been out for a couple months I think.
Wonder if it works with intel chipsets (ahci). I installed 2.6.17.7, and still did not see udev activity. Maybe it is only working for certain chip sets. Not much in the Docs in the kernel source.
Oh well. Back to plan A: a script.
Any suggestions on the best way to get the system to rescan for sata drives? I used to have something that used /proc/scsi. But isn't that going away?
Sorry, not really any ideas for the script, but for 2.6.17.7 you have to have both the vanilla kernel from kernel.org and you have to apply the patch from
http://home-tj.org/files/libata-tj-stable/libata-tj-2.6.17.4-20060710.tar.bz...
I have not tried the SUSE 2.6.17 kernel yet. But I have sorted out the hot swap of the sata disks using a vanilla kernel with this patch. I needed to put my sata controller in AHCI mode. At first I did not see this in the BIOS. Then, I did. So, now I can put in a disk and it mounts. I have 4 hot swap bays and it seems that it keeps track of which drive bay it is. All is good. Here is the question: udev handles mounting the disks via the rule in /etc/udev/rules.d/85-mount-fstab.rules (SUSE 10.0). Or at least I am pretty sure this is doing this. How can I get this to unmount the disks as well? I know all the issues, but these are mounted read only so I am not worried about disk corruption. I just want the disk to be unmounted when it is removed. Some counterpart to the RUN+="mount.sh" statement in the rules file. Any ideas?
Greg -- Greg Freemyer The Norcross Group Forensics for the 21st Century
-- Roger Oberholtzer OPQ Systems AB Ramböll Sverige AB Kapellgränd 7 P.O. Box 4205 SE-102 65 Stockholm, Sweden Tel: Int +46 8-615 60 20 Fax: Int +46 8-31 42 23