linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* RAID1 assembled broken array
@ 2009-09-15 19:22 Matthias Urlichs
  2009-09-15 19:24 ` Majed B.
  2009-09-15 20:00 ` Doug Ledford
  0 siblings, 2 replies; 20+ messages in thread
From: Matthias Urlichs @ 2009-09-15 19:22 UTC (permalink / raw)
  To: linux-raid

I had a somewhat strange error today.

One of my servers has a RAID1 array. Two partitions at the end of the 
disk; the RAID superblocks are at the end of the partition.

After a hard reboot today, one of the disks managed to not have its 
partition table scanned correctly, most probably because the disk was 
hung and the ("intelligent") controller got confused about it. After the 
initial scan, however, it came up correctly.

This error caused mdadm to "successfully" build a RAID1 from /dev/sda3
and /dev/sdb (instead of /dev/sdb3). Needless to say, the resulting 
volume was somewhat unuseable. To say the least.

My server's mdadm.conf has a 'DEVICE=partitions' line. I suppose that 
replacing these with a pattern that explicitly only matches partitions, 
not disks, would make the problem go away, and that the lesson from 
today's disaster recovery effort is to always explicitly list the allowed 
partition names, instead of being lazy and using 'DEVICE=partitions'.

-- 


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

end of thread, other threads:[~2009-09-28 16:12 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-15 19:22 RAID1 assembled broken array Matthias Urlichs
2009-09-15 19:24 ` Majed B.
2009-09-15 19:33   ` Matthias Urlichs
2009-09-15 19:43     ` Majed B.
2009-09-15 20:04       ` Doug Ledford
2009-09-15 20:00 ` Doug Ledford
2009-09-15 20:27   ` Matthias Urlichs
2009-09-15 21:01   ` NeilBrown
2009-09-16  4:50     ` Matthias Urlichs
2009-09-17 16:44       ` Doug Ledford
2009-09-17 17:09         ` Matthias Urlichs
2009-09-17 17:12           ` Majed B.
2009-09-25  8:07           ` Neil Brown
2009-09-17  8:25     ` Andre Noll
2009-09-25  8:12       ` Neil Brown
2009-09-25 10:42         ` Chris Webb
2009-09-26  9:58         ` Andre Noll
2009-09-26 13:01           ` John Robinson
2009-09-26 19:21             ` Clinton Lee Taylor
2009-09-28 16:12               ` Andre Noll

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