linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Simulating Drive Failure on Mirrored OS drive
@ 2006-10-01 23:55 andy liebman
  2006-10-02  8:02 ` David Greaves
  0 siblings, 1 reply; 4+ messages in thread
From: andy liebman @ 2006-10-01 23:55 UTC (permalink / raw)
  To: linux-raid

Various documents on Mirrored OS Drives suggest you can simulate the 
failure of one of your mirrored pairs by marking one or more partitions 
as "failed" with mdadm.

Indeed when I mark a drive as "failed", if I have the mdadm monitoring 
daemon running, I get an email warning me that my RAIDS are degraded.

Also, I can reboot with only one drive plugged in and the OS comes up 
fine (albeit degraded).

This gives me a REASONABLE degree of confidence that the Mirrored 
Partitions will continue working okay if one drive should fail. However, 
I would like to run a more definitive test.

I tried simply unplugging one drive from its power and from its SATA 
connector. The OS didn't like that at all. My KDE session kept running, 
but I could no longer open any new terminals. I couldn't become root in 
an existing terminal that was already running. And I couldn't SSH into 
the machine.

It was like I had an OS running on only a 1/4th of a cylinder. I 
couldn't even make the OS cleanly shutdown or reboot.

I know that simply unplugging a drive is not the same as a drive failing 
or timing out. But is there a more realistic way to simulate a failure 
so that I can know that the mirror will work when it's needed?

Andy Liebman

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

end of thread, other threads:[~2006-10-02 20:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-01 23:55 Simulating Drive Failure on Mirrored OS drive andy liebman
2006-10-02  8:02 ` David Greaves
2006-10-02 17:54   ` andy liebman
2006-10-02 20:20     ` Michael Tokarev

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).