From: Andreas Klauer <Andreas.Klauer@metamorpher.de>
To: Jean-Pierre Human <jphuman@gmail.com>
Cc: linux-raid@vger.kernel.org
Subject: Re: Superblocks lost on all disks in array.
Date: Sat, 15 Jul 2017 19:26:43 +0200 [thread overview]
Message-ID: <20170715172643.GA24000@metamorpher.de> (raw)
In-Reply-To: <CAH_1ubwzXd9C8OBheZv+Z5oFTVt2rG+RATHrhKy6uiVv84y_SA@mail.gmail.com>
On Sat, Jul 15, 2017 at 07:09:08PM +0200, Jean-Pierre Human wrote:
> The array was setup with the below commands:
> #mdadm --create --verbose /dev/md2 --level=10 --raid-devices=4
> /dev/sdj /dev/sdk /dev/sdl /dev/sdi
So you didn't use a partition table?
> root@store02:~# mdadm --examine /dev/sd[iklj]
> /dev/sdi:
> MBR Magic : aa55
> Partition[0] : 4294967295 sectors at 1 (type ee)
> /dev/sdj:
> MBR Magic : aa55
> Partition[0] : 4294967295 sectors at 1 (type ee)
> /dev/sdk:
> MBR Magic : aa55
> Partition[0] : 4294967295 sectors at 1 (type ee)
> /dev/sdl:
> MBR Magic : aa55
> Partition[0] : 4294967295 sectors at 1 (type ee)
And then "something" created one. Is that partition table empty?
Or did it also create and format partitions, that would be worse.
GPT partition table overwrites a bunch of sectors at both start and end.
So that's where you'll find corruption, depending which mdadm metadata
version you were using (which can also be located either start or end).
To recover, you'll have to determine the correct RAID level / layout /
order / data offset. It's best to do this with overlays
https://raid.wiki.kernel.org/index.php/Recovering_a_failed_software_RAID#Making_the_harddisks_read-only_using_an_overlay_file
and only write to the real disks once you've found the setting that works.
In the future, consider always using a partition table. Linux doesn't care *
but the partition table is the most standard way to declare a disk is
already in use and for what. Without a partition table, any software not
md-raid aware will see your drive as free, unused, and might format it.
(*) it will happily run anything you like on bare disks
but it won't do anything to protect you, either
Regards
Andreas Klauer
next prev parent reply other threads:[~2017-07-15 17:26 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-15 17:09 Superblocks lost on all disks in array Jean-Pierre Human
2017-07-15 17:26 ` Andreas Klauer [this message]
2017-07-15 18:05 ` Jean-Pierre Human
2017-07-15 23:03 ` Anthony Youngman
2017-07-16 16:46 ` Jean-Pierre Human
2017-07-16 17:25 ` Wols Lists
2017-07-16 17:53 ` Jean-Pierre Human
2017-07-17 0:41 ` Adam Goryachev
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=20170715172643.GA24000@metamorpher.de \
--to=andreas.klauer@metamorpher.de \
--cc=jphuman@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox