All of lore.kernel.org
 help / color / mirror / Atom feed
From: Phil Turmel <philip@turmel.org>
To: Semyon Enskiy <semyon.enskiy@yandex.ru>,
	"linux-raid@vger.kernel.org" <linux-raid@vger.kernel.org>
Subject: Re: Recovering RAID5 with 2, actually 1, faulty disks.
Date: Wed, 25 Nov 2015 12:49:37 -0500	[thread overview]
Message-ID: <5655F4B1.4030403@turmel.org> (raw)
In-Reply-To: <398591448472730@web17m.yandex.ru>

On 11/25/2015 12:32 PM, Semyon Enskiy wrote:

> Does you think, that problem is that "Raid Devices : 10", but
> "Array State : AAAAAAAA.A.", where the extra, 11th, device is sdj3, which
> was rejected from system in past, but record about it leave in superblock?

No.  It just can't get past the fact that your array is double-degraded,
even though it isn't really, once the revert succeeds.

At this point, I don't see a way out without --create.  Fortunately, we
have complete details on your array, so we can supply the correct paramters:

mdadm --stop /dev/md3

mdadm --create --assume-clean --chunk=512 --data-offset=262144 \
  --level=5 --raid-devices=10 --metadata=1.2 /dev/md3 \
  /dev/sd{f,i,h,g,d,e,b,c}3 missing /dev/sdj3

Note that you cannot use [] notation -- it doesn't maintain the order of
the letters.  The keyword 'missing' takes the place of /dev/sda3.  It's
possible it would be fine, but I'd rather not risk it.

You should be able to access the content at this point.  Copy out any
super-critical files.  Then add sda3:

mdadm --add /dev/md3 /dev/sda3

This should initiate the rebuild.

Update your mdadm.conf file to use the new UUID, and update your initramfs.

Phil

  reply	other threads:[~2015-11-25 17:49 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-23 15:28 Recovering RAID5 with 2, actually 1, faulty disks Semyon Enskiy
2015-11-23 15:35 ` Semyon Enskiy
2015-11-23 15:47   ` Wols Lists
2015-11-23 15:57     ` Semyon Enskiy
2015-11-23 16:08       ` Wols Lists
2015-11-23 18:24 ` Phil Turmel
2015-11-25 12:12   ` Semyon Enskiy
2015-11-25 13:22     ` Phil Turmel
2015-11-25 14:48       ` Semyon Enskiy
2015-11-25 14:55         ` Semyon Enskiy
2015-11-25 15:44           ` Phil Turmel
2015-11-25 16:29             ` Semyon Enskiy
2015-11-25 16:58               ` Phil Turmel
2015-11-25 17:32                 ` Semyon Enskiy
2015-11-25 17:49                   ` Phil Turmel [this message]
2015-11-26 13:21                     ` Semyon Enskiy
  -- strict thread matches above, loose matches on Subject: below --
2015-12-02 13:35 Semyon Enskiy

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=5655F4B1.4030403@turmel.org \
    --to=philip@turmel.org \
    --cc=linux-raid@vger.kernel.org \
    --cc=semyon.enskiy@yandex.ru \
    /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.