linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: John Robinson <john.robinson@anonymous.org.uk>
To: Thomas Heilberg <theilberg42@gmail.com>
Cc: linux-raid@vger.kernel.org
Subject: Re: Raid 5 rebuild with only 2 spare devices
Date: Thu, 10 Feb 2011 20:07:34 +0000	[thread overview]
Message-ID: <4D544586.4010506@anonymous.org.uk> (raw)
In-Reply-To: <4D542872.3090102@gmail.com>

On 10/02/2011 18:03, Thomas Heilberg wrote:
[...]
> root@backup-server:/media# mdadm -D /dev/md2
> /dev/md2:
> Version : 0.90
[...]
> Chunk Size : 64K
[...]
> I also tried to recreate the raid:
>
> root@backup-server:/media# mdadm -Cv /dev/md2 -n3 -l5 /dev/loop0
> /dev/loop1 /dev/loop2
> mdadm: layout defaults to left-symmetric
> mdadm: chunk size defaults to 512K
[...]
> mdadm: Defaulting to version 1.2 metadata

Those loop devices are now trashed since you didn't re-create the array 
with exactly the parameters with which it was initially created. Your 
settings make me think the array was created with an older version of 
mdadm; the defaults for metadata version and chunk size changed a little 
while ago. Anyway, if you're trying again, you should specify -e 0.90 -c 
64. While you're at it, add --assume-clean to avoid any rebuild, which 
in your case may in fact destroy good data (though the array's parity 
would end up consistent). Or if as you noted in your other reply you're 
going to have to wait 15 hours before trying anything, maybe wait until 
The Boss[1] makes a more intelligent suggestion than I can; he usually 
posts at times that appear to be overnight to me but are presumably 
sensible times of day for him.

Cheers,

John.

[1] Neil Brown, who lives in Sydney where it's revoltingly early in the 
morning.


  parent reply	other threads:[~2011-02-10 20:07 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-10 18:03 Raid 5 rebuild with only 2 spare devices Thomas Heilberg
2011-02-10 18:53 ` Phil Turmel
2011-02-10 19:40   ` Thomas Heilberg
2011-02-10 20:07 ` John Robinson [this message]
2011-02-12 18:30   ` Thomas Heilberg
2011-02-12 18:48     ` Phil Turmel

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=4D544586.4010506@anonymous.org.uk \
    --to=john.robinson@anonymous.org.uk \
    --cc=linux-raid@vger.kernel.org \
    --cc=theilberg42@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).