linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* libata hotplug and md raid?
@ 2006-09-13 10:11 Leon Woestenberg
  2006-09-13 10:51 ` Ric Wheeler
  0 siblings, 1 reply; 13+ messages in thread
From: Leon Woestenberg @ 2006-09-13 10:11 UTC (permalink / raw)
  To: linux-raid

Hello all,

I am testing the (work-in-progress / upcoming) libata SATA hotplug.
Hotplugging alone seems to work, but not well in combination with md
RAID.

Here is my report and a question about intended behaviour. Mainstream
2.6.17.11 kernel patched with libata-tj-2.6.17.4-20060710.tar.bz2 from
http://home-tj.org/files/libata-tj-stable/.

Supermicro P8SCT motherboard with Intel ICH6R, using AHCI libata driver.

In short, I use ext3 over /dev/md0 over 4 SATA drives /dev/sd[a-d]
each driven by libata ahci. I unplug then replug the drive that is
rebuilding in RAID-5.

When I unplug a drive, /dev/sda is removed, hotplug seems to work to
the point where proc/mdstat shows the drive failed, but not removed.

Every other notion of the drive (in kernel and udev /dev namespace)
seems to be gone after unplugging. I cannot manually removed the drive
using mdadm, because it tells me the drive does not exist.

Replugging the drive brings it back as /dev/sde, md0 will not pick it up.

The expected behaviour (from me) is that the drive re-appears as /dev/sda.

What is the intended behaviour of md in this case?

Should some user-space application fail-remove a drive as a pre-action
of the unplug event from udev, or should md fully remove the drive
within kernel space??

See kernel/udev/userspace messages in chronological order,
with my actions marked between >>> <<<, at this web
page:

http://pastebin.ca/168798

Thanks,
--
Leon


-- 
Leon

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2007-01-10 22:55 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-13 10:11 libata hotplug and md raid? Leon Woestenberg
2006-09-13 10:51 ` Ric Wheeler
2006-09-13 11:06   ` Tejun Heo
2006-09-13 11:45     ` Leon Woestenberg
2006-09-14 11:44     ` Turbo Fredriksson
2006-09-14 12:24     ` Leon Woestenberg
2006-09-14 23:23       ` Greg KH
2006-09-15 19:38         ` Leon Woestenberg
2006-10-17  0:23       ` Mark Lord
2006-10-17  1:58         ` Neil Brown
2006-10-17  8:07           ` Gabor Gombas
2006-10-17  8:11             ` Gabor Gombas
2007-01-10 22:55           ` Mike Accetta

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).