From: Luca Berra <bluca@comedia.it>
To: linux-raid@vger.kernel.org
Subject: Re: 4 partition raid 5 with 2 disks active and 2 spare, how to force?
Date: Mon, 29 Mar 2010 07:32:27 +0200 [thread overview]
Message-ID: <20100329053227.GA21664@maude.comedia.it> (raw)
In-Reply-To: <45872BBE-0957-43E4-8D31-54B28F5F5936@brillgene.com>
On Sun, Mar 28, 2010 at 10:05:58PM +0530, Anshuman Aggarwal wrote:
>> Michael,
>> I am running mdadm 3.1.2 (latest stable I think) compiled from source (FYI on Ubuntu Karmic, 2.6.31-20-generic)
>>
>> Here is what happened....the device /dev/sda1 has failed once, but I was wondering if it was a freak accident so I tried adding it back..and then it started resyncing ...somewhere in this process...the disk /dev/sda1 stalled and the server needed a reboot. After that boot, I got 2 spares (/dev/sda1, /dev/sdd5) and 2 active devices (/dev/sdb1, /dev/sdc1)
>>
>> Maybe I need to do a build with a --assume-clean with the devices in the right order (which I'm positive I can remember) ...be nice if you could plz double check:
>> mdadm --build -n 4 -l 5 -e1.2 --assume-clean /dev/md127 /dev/sda1 /dev/sdb5 /dev/sdc5 /dev/sdd5
>>
>> Again, thanks for your time...
>>
>> John,
>> I did try what you said without any luck(--assemble --force but it refuses to accept the spare as a valid device and 2 active on a 4 member device isn't good enough)
>>
>>
>>
>
>Some more info:
>
>I did try this command with the following result:
>
>mdadm --build -n 4 -l 5 -e1.2 --assume-clean /dev/md127 /dev/sda1 /dev/sdb5 /dev/sdc5 /dev/sdd5
>mdadm: Raid level 5 not permitted with --build.
>
>Should I try this?
>mdadm --create -n 4 -l 5 -e1.2 --assume-clean /dev/md127 /dev/sda1 /dev/sdb5 /dev/sdc5 /dev/sdd5
From your description above /dev/sda was the failed one, so you should
not add it to the array. use the word "missing" in its place.
L.
--
Luca Berra -- bluca@comedia.it
Communication Media & Services S.r.l.
/"\
\ / ASCII RIBBON CAMPAIGN
X AGAINST HTML MAIL
/ \
next prev parent reply other threads:[~2010-03-29 5:32 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <S1753093Ab0CYHZE/20100325072504Z+37@vger.kernel.org>
2010-03-25 9:30 ` 4 partition raid 5 with 2 disks active and 2 spare, how to force? Anshuman Aggarwal
2010-03-25 11:37 ` Michael Evans
2010-03-25 14:09 ` Anshuman Aggarwal
2010-03-26 3:38 ` Michael Evans
2010-03-26 16:28 ` Anshuman Aggarwal
2010-03-26 19:04 ` Michael Evans
2010-03-28 15:18 ` Anshuman Aggarwal
2010-03-28 16:35 ` Anshuman Aggarwal
2010-03-29 5:32 ` Luca Berra [this message]
2010-03-29 6:41 ` Michael Evans
2010-04-06 18:07 ` linux raid recreate Anshuman Aggarwal
2010-04-06 22:55 ` Neil Brown
2010-04-07 0:24 ` Berkey B Walker
2010-04-07 7:27 ` Anshuman Aggarwal
2010-04-07 13:15 ` Neil Brown
2010-03-26 19:29 ` 4 partition raid 5 with 2 disks active and 2 spare, how to force? John Robinson
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=20100329053227.GA21664@maude.comedia.it \
--to=bluca@comedia.it \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.