All of lore.kernel.org
 help / color / mirror / Atom feed
From: Wols Lists <antlists@youngman.org.uk>
To: Artur Paszkiewicz <artur.paszkiewicz@intel.com>,
	Guido D'Arezzo <gdarrezzo@gmail.com>,
	linux-raid@vger.kernel.org
Subject: Re: Intel IMSM RAID 5 won't start
Date: Mon, 4 Jan 2016 15:36:36 +0000	[thread overview]
Message-ID: <568A9184.1060000@youngman.org.uk> (raw)
In-Reply-To: <568A8C65.3010103@intel.com>

On 04/01/16 15:14, Artur Paszkiewicz wrote:
> It looks like the metadata on the drives got messed up for some reason.
> If you believe the drives are good, you can try recreating the arrays
> with the same layout to write fresh metadata to the drives, without
> overwriting the actual data. In this case it can be done like this (make
> a backup of the drives using dd before trying it):
> 
> # mdadm -Ss
> # mdadm -C /dev/md/imsm0 -eimsm -n4 /dev/sdd /dev/sda /dev/sdc /dev/sdb -R
> # mdadm -C /dev/md/md0 -l5 -n4 /dev/sdd /dev/sda /dev/sdc /dev/sdb --size=900G
> --chunk=128 --assume-clean -R
> # mdadm -C /dev/md/md1 -l5 -n4 /dev/sdd /dev/sda /dev/sdc /dev/sdb --chunk=128
> --assume-clean -R
> 
> Drives should be listed in the order as they appear in the output from
> mdadm -E. Look at the "DiskXX Serial" lines.
> 
> Then you can run fsck on the filesystems. Finally, repair any mismatched
> parity blocks:

That sounds like it'll write to the superblock. Okay - I guess needs must.

BUT!!! Once you've done that, create the array using loopback/overlays
or whatever (I hope someone else chimes in here :-) Whatever, the disks
themselves will be read-only, so you can run fsck, check that your
re-assemble really did work properly - if it did fsck won't find much
wrong - and if it worked right then you can do it for real.

Thing is, this means that if you do go wrong, you haven't actually done
anything to the data on the disk itself, so you can throw the overlay
away and try afresh, without having to restore your backup.

Cheers,
Wol

  reply	other threads:[~2016-01-04 15:36 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-03 19:44 Intel IMSM RAID 5 won't start Guido D'Arezzo
2016-01-04 15:14 ` Artur Paszkiewicz
2016-01-04 15:36   ` Wols Lists [this message]
     [not found]   ` <CAEUPnrwx76fmCX8yxC7F9mjGiFN9khkgWtUaTO9WpEPB=Y84cg@mail.gmail.com>
2016-01-11  8:30     ` Artur Paszkiewicz

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=568A9184.1060000@youngman.org.uk \
    --to=antlists@youngman.org.uk \
    --cc=artur.paszkiewicz@intel.com \
    --cc=gdarrezzo@gmail.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 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.