From: Michael Tokarev <mjt@tls.msk.ru>
To: "Sean H." <silverwraithii@gmail.com>
Cc: linux-raid <linux-raid@vger.kernel.org>
Subject: Re: Re-assembling a software RAID in which device names have changed.
Date: Tue, 08 Apr 2008 22:37:34 +0400 [thread overview]
Message-ID: <47FBBB6E.8040307@msgid.tls.msk.ru> (raw)
In-Reply-To: <fa037c550804081055p2d2550ccs8dfab22d2edb6920@mail.gmail.com>
[Please respect the Reply-To header]
Sean H. wrote:
[]
> My mdadm.conf is configured with UUIDs:
Ok.
> DEVICE partitions
Ok.
> ARRAY /dev/md0 level=raid5 num-devices=5
> uuid=58dcdaf3:bdf3f176:f2dd1b6b:f095c127
> Tried the following: 'mdadm --assemble /dev/md0 --uuid
> 58dcdaf3:bdf3f176:f2dd1b6b:f095c127'
> ... and got this: mdadm: /dev/md0 assembled from 2 drives - not enough
> to start the array.
> (Which is what I've been getting for a while, now.)
Ok. So it's a different problem you have. What's the
reason you think it's due to re-numbering/naming of the
disks?
When you unplugged 3 your disks, I suspect linux noticed
that fact and md layer marked them as "failed" in the
array, with the 2 still here. Now, when you have all 5
of them again, 2 of them (the ones which were left in
the system) are "fresh", and 3 (the ones which were
removed) are "old". So you really don't have enough
fresh drives to start the array.
Now take a look at verbose output of mdadm (see -v option).
If my guess is right, use --force option. And take a look
at the Fine Manual, after all -- at the section describing
assemble mode.
> It's possible to correct this issue by unplugging the three drives and
> plugging them back in and rebooting, so the drives get their original
> /dev/sd* locations, is it not? (Even if it it possible, I'd like to
> learn how to fix problems like this at the software level over the
> hardware level.)
Please answer this question. Why do you think that the array
does not start because of disk renumbering?
/mjt
next prev parent reply other threads:[~2008-04-08 18:37 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-08 4:34 Re-assembling a software RAID in which device names have changed Sean H.
2008-04-08 17:25 ` Michael Tokarev
2008-04-08 17:55 ` Sean H.
2008-04-08 18:37 ` Michael Tokarev [this message]
2008-04-08 19:06 ` Sean H.
2008-04-08 20:19 ` Michal Soltys
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=47FBBB6E.8040307@msgid.tls.msk.ru \
--to=mjt@tls.msk.ru \
--cc=linux-raid@vger.kernel.org \
--cc=silverwraithii@gmail.com \
/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).