From: NeilBrown <neilb@suse.de>
To: jahammonds prost <gmitch64@yahoo.com>
Cc: Linux RAID <linux-raid@vger.kernel.org>
Subject: Re: Failed Array Rebuild advice Please
Date: Wed, 11 Apr 2012 09:02:19 +1000 [thread overview]
Message-ID: <20120411090219.78392784@notabene.brown> (raw)
In-Reply-To: <1334097164.41181.YahooMailNeo@web125506.mail.ne1.yahoo.com>
[-- Attachment #1: Type: text/plain, Size: 1488 bytes --]
On Tue, 10 Apr 2012 15:32:44 -0700 (PDT) jahammonds prost
<gmitch64@yahoo.com> wrote:
> Since I know I did nothing with the temp one drive array when the server was booted (and I don't think that the md code did anything either??) would it be safe to
>
> mdadm --assemble /dev/md0 /dev/sd[a-c]1 /dev/sd[e-h]1 /dev/sd[j-l]1 /dev/sd[n-p]1 --force
>
> to let the array come back up and get it running?
Yes. Though you don't need to exclude the oldest devices. mdadm will
figure out which ones to use and which ones to avoid.
>
> What would then be the correct sequence to replace the 2 failed drives (sdd1 and sdm1) and get the array running fully again?
If you trust that sdd and sdm really are working now, you can
mdadm /dev/md0 --add /dev/sdd1 /dev/sdm1
This will probably start rebuilding just one of the devices. You can check
with
mdadm -D /dev/md0
which will report "spare building" against one or more devices.
If it is only rebuilding one of them, then
echo idle > /sys/block/md0/md/sync_action
will cause it to stop and restart the recovery. It will then recovery both
devices in parallel.
(Next version of mdadm will do this automatically).
NeilBrown
>
>
> Thanks for your help.
>
>
> YP.
> --
> To unsubscribe from this list: send the line "unsubscribe linux-raid" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 828 bytes --]
next prev parent reply other threads:[~2012-04-10 23:02 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-10 22:32 Failed Array Rebuild advice Please jahammonds prost
2012-04-10 23:02 ` NeilBrown [this message]
2012-04-10 23:46 ` jahammonds prost
2012-04-11 4:14 ` jahammonds prost
2012-04-11 4:43 ` NeilBrown
2012-04-12 2:10 ` jahammonds prost
2012-04-12 2:25 ` NeilBrown
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=20120411090219.78392784@notabene.brown \
--to=neilb@suse.de \
--cc=gmitch64@yahoo.com \
--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).