linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Matthias Urlichs <matthias@urlichs.de>
To: linux-raid@vger.kernel.org
Subject: RAID1 assembled broken array
Date: Tue, 15 Sep 2009 19:22:21 +0000 (UTC)	[thread overview]
Message-ID: <h8ophd$n8p$6@ger.gmane.org> (raw)

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

-- 


             reply	other threads:[~2009-09-15 19:22 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-15 19:22 Matthias Urlichs [this message]
2009-09-15 19:24 ` RAID1 assembled broken array 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='h8ophd$n8p$6@ger.gmane.org' \
    --to=matthias@urlichs.de \
    --cc=linux-raid@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).