From: Wols Lists <antlists@youngman.org.uk>
To: John Crisp <jcrisp@safeandsoundit.co.uk>,
linux-raid@vger.kernel.org, Phil Turmel <philip@turmel.org>,
NeilBrown <neilb@suse.com>
Subject: Re: Raid 6 recovery
Date: Tue, 31 Oct 2017 18:11:53 +0000 [thread overview]
Message-ID: <59F8BCE9.1070607@youngman.org.uk> (raw)
In-Reply-To: <1f997b50-f271-a238-2d7e-1684a0c64e66@safeandsoundit.co.uk>
On 31/10/17 17:42, John Crisp wrote:
>> This worries me. We have 5 drives, which would normally be enough to
>> > recreate the array - a quick "--force" and we're up and running. Except
>> > one drive is rebuilding, so we have one drive's worth of data scattered
>> > across two drives :-(
>> >
> Oh yuck.....
>
>
>> > Examine tells us that sdd, sdg, and sdj have been partitioned. What does
>> > "fdisk -l" tell us about those drives? Assuming they have one large
>> > partition each, what does "--examine" tell us about sdd1, sdg1 and sdj1
>> > (assuming that's what the partitions are)?
> mdadm --examine was pasted at the bottom of my original post.
>
>
> cat /etc/fstab
>
> # <file system> <mount point> <type> <options> <dump> <pass>
> /dev/mapper/xubuntu-vg__raider-root / ext4 errors=remount-ro 0 1
> # /boot was on /dev/sda1 during installation
> UUID=86b99e91-e21e-4381-97e3-9b38ea8dae1b /boot ext2 defaults 0 2
> /dev/mapper/xubuntu-vg__raider-swap_1 none swap sw 0 0
> UUID=b19a1b13-e650-4288-864a-b84a3a86edad /media/Data ext4 rw,noatime 0 0
>
>
> fdisk:
>
> root@garage:~# fdisk -l /dev/sd[cdefghij]
OUCH!!!
Okay, this is getting scary, sorry. We need to find where the data on
disks sdd, sdg, and sdj has gone. And according to all the information
you've given me, we have an array that's been saving its data in thin
air. Obviously that's not true, it's gone somewhere, the question is where.
What's also noticeable, is that the three drives that have "vanished"
have all got an MBR. There's a whole bunch of possible explanations, but
I really don't have the experience or knowledge to make a call here.
Were those drives re-purposed from somewhere else? Could there have been
a blank partition table on them before you used them?
Is it possible somebody did a
# fdisk /dev/sdd
: write
and wrote a blank mbr to a drive that was already in the array?
Or it could be that these drives really did have a partition sdd1 etc,
and something's blown the partition table away (I remember a GPT case
where that happened ...)
I hate to say it, but I think you are now in the world of hexdump and
searching manually for a superblock on those three drives. See
https://raid.wiki.kernel.org/index.php/Advanced_data_recovery
It's possible - I wouldn't know - that the existence of the MBR stops
mdadm looking for a superblock that applies to the whole drive, which
could explain why those drives have disappeared.
Or it could be that the superblock is in a partition, and because the
MBR has been blanked mdadm is not looking for said partition.
In a v1.2 array, the superblock is offset 4K from the start of the
device (to stop things like a rouge fdisk overwriting it :-) so you need
to see if you can find one at about the 4K mark.
If you can, the experts here should be able to recover the array fairly
easily, but it's beyond my ability, sorry.
NB - If you did get the big new drive, I was suggesting you turn all
your eight raid devices into partitions on the new drive, so you would
only have one drive to worry about while recovering :-)
Cheers,
Wol
next prev parent reply other threads:[~2017-10-31 18:11 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-31 15:42 Raid 6 recovery John Crisp
2017-10-31 16:27 ` Wols Lists
2017-10-31 17:42 ` John Crisp
2017-10-31 18:11 ` Wols Lists [this message]
2017-11-02 23:47 ` Wols Lists
2017-11-03 10:44 ` John Crisp
2017-11-04 12:46 ` Wols Lists
2017-11-05 17:13 ` John Crisp
2017-11-05 18:08 ` Wol's lists
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=59F8BCE9.1070607@youngman.org.uk \
--to=antlists@youngman.org.uk \
--cc=jcrisp@safeandsoundit.co.uk \
--cc=linux-raid@vger.kernel.org \
--cc=neilb@suse.com \
--cc=philip@turmel.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.