[clug] hot-swap (hotplug) sata, Intel ICH7 controller

Steve Granger steveg at magellan-technology.com
Tue Apr 24 07:17:07 GMT 2007


Drives are coming up as /dev/sda and /dev/sdb.

my partitions are as such.
/dev/md0 (/dev/sda1, /dev/sdb1)  - /boot - 150MB
/dev/md1 (/dev/sda2, /dev/sdb2)  - swap - 2GB
/dev/md2 (/dev/sda3, /dev/sdb3)  - / - 464GB

I just went into the bios and changed the SATA mode from compatible to
Enhanced. I left the SATA RAID disabled and enabled SATA AHCI booted and
was able to unplug the device without the system hanging, the mdadm
monitor process also told me the raid had failed!

However cat /proc/mdstat showed that one of the raid arrays was still up
and running. /dev/md1 still had UU status. This is the drive with the
swap partition on it. No swap was in use. Seeing the drive didn't
actually exist in /dev I couldn't do a
mdadm --manage /dev/md1 --fail /dev/sdb2

I plugged the drive back in and the drive came back up as /dev/sdc  ...
not /dev/sdb which originally was. I rebooted and it came back up as

When a drive fails will I somehow need to notify udev that it has been


Andrew Janke wrote:
> Hi Steve,
> I have certainly had this work in the past so I know it is possible.
> My first question is (I dont think I saw this in all the output
> below!) is the device coming up as hda or sda?
> Regarding dmraid/etc vs software.  I have always found SW Raid to be
> faster/better/stronger/safer than cheap RAID on a chip type MB's. The
> drivers issue is also a lot simpler as you just disable the RAID
> thingo in the BIOS or tell it to run in JBOD mode.
> a
> On 4/24/07, Steve Granger <steveg at magellan-technology.com> wrote:
>> Hi,
>> I'm currently testing the capabilities of a SATA hotswap system and
>> whether it is possible to replace a failed disk without powering down
>> the machine. So far I have been unsuccessful and would be interested in
>> others experiences with similar hardware.
>> Should I try and use the proprietary adaptec driver?  or dmraid? maybe
>> my controller just can't hot plug devices?

This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 

More information about the linux mailing list