linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Dave Fisher <davef@davefisher.co.uk>
To: Neil Brown <neilb@suse.de>
Cc: linux-raid@vger.kernel.org
Subject: Re: RAID 10 array won't assemble, all devices marked spare, confusing mdadm metadata
Date: Sat, 18 Apr 2009 15:43:03 +0100	[thread overview]
Message-ID: <20090418144303.GA18440@davefisher.co.uk> (raw)
In-Reply-To: <18921.1283.548260.293728@notabene.brown>

On Sat, Apr 18, 2009 at 08:38:59AM +1000, Neil Brown wrote:
> To restart your array, simple use the "--force" flag.
> It might be valuable to also add "--verbose" so you can see what is
> happening.
> So:
> 
>   mdadm -S /dev/md1
>   mdadm -A /dev/md1 -fv /dev/sd[abcde]4
> 
> and report the result.

Hi Neil,

Thanks for the kind and exceptionally helpful response. It was much
appreciated.  It greatly improved my understanding of both the problem
and md generally.

As it happens, I'd issued the following command some time before your
message arrived:

  $ mdadm --assemble --run /dev/md1 /dev/sd[bcde]4

Fortunately, my impatience (after nearly a week of grief) was not
rewarded by the punishment it probably deserved ;-) [Note 1]

After many more hours /dev/md1 had resynched and recovered, using sdbe4
as the spare.

The system then rebooted perfectly.

Unfortunately, I then stupidly installed a new kernel, forgetting that
Debian/Ubuntu would then update grub.  

So now I can boot kernels which reside on /dev/md0 from grub, but they
don't find the root file system, which is also on /dev/md0.  

Needless to say, I'd find this a little easier to understand if the
booting kernel didn't actually sit on the root filesystem itself.

Obviously I need to fix grub, but I'm not sure how.  I'm guessing that I
have to do one or both of the following:

  1. Tweak the root parameters for grub or the kernel in menu.lst

  2. Update/reinstall parts of the bootloader on my MBRs or partitions.  

Sadly, my understanding of grub is a bit flaky, and my understanding of
how it handles raid arrays is even flakier.

I'd appreciate some advice, but fully understand that the new problem
is slightly off-topic for this list, so I'm not expecting anything.

By the way, once I've sorted grub (and backed up my business-critical
data), I'll run your suggested command on the original disks and report
back.

In the real world I have decades of experience as a technical writer and
teacher.  So, once I've educated myself a bit more, I'd like to
contribute by helping to improve the fragmented and outdated
documentation that I've found over the course of the last week. 

Best wishes,

Dave

[Note 1] I should add that my impatient act was not 100% reckless,
since I had previously dd'd all 5 1TB disks and was operating only on
the copies.




  reply	other threads:[~2009-04-18 14:43 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-17 14:14 RAID 10 array won't assemble, all devices marked spare, confusing mdadm metadata Dave Fisher
2009-04-17 22:38 ` Neil Brown
2009-04-18 14:43   ` Dave Fisher [this message]
2009-04-18 20:13   ` RAID 10 array won't assemble ... spare ... metadata - Disappointing Report Back Dave Fisher
2009-04-18 20:20     ` RAID 10 array won't assemble ... spare ... metadata - Correction " Dave Fisher

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=20090418144303.GA18440@davefisher.co.uk \
    --to=davef@davefisher.co.uk \
    --cc=linux-raid@vger.kernel.org \
    --cc=neilb@suse.de \
    /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).