From: Andreas Klauer <Andreas.Klauer@metamorpher.de>
To: Tony Bush <thecompguru@gmail.com>
Cc: linux-raid@vger.kernel.org
Subject: Re: Need help Recover raid5 array
Date: Sun, 19 Dec 2021 12:58:38 +0100 [thread overview]
Message-ID: <Yb8ebs7lhEHHTqif@metamorpher.de> (raw)
In-Reply-To: <CAA9kLn1nZZKHLahjkyJzChgTMC2WKEoyJG2PhHzeXbD_qY_-yw@mail.gmail.com>
On Sat, Dec 18, 2021 at 11:31:39PM -0500, Tony Bush wrote:
> I forgot that this new-to-this-system SSD had Windows 10 OS on
> it and I believe it tried to boot while I was working on hooking up my
> monitor. So I think that it saw my raid drives and tried to fdisk
> them. I did mdadm directly to drive and not to a partition(big
> mistake I know now). So I think the drives were seen as corrupted and
> fdisk corrected the formatting.
Windows is known to do this but it can just as well happen within Linux.
Hopefully no filesystem formatting took place...
> To fix, I have been leaning toward making the drives ready only and
> using an overlay file. Like here:
> https://raid.wiki.kernel.org/index.php/Recovering_a_failed_software_RAID#Making_the_harddisks_read-only_using_an_overlay_file
This method is so useful there should be standard command in Linux
to create and manage overlays; but there is none so you have to make do
with the 'overlay manipulation functions' as shown in the wiki.
> But i dont understand all the commands well enough to work this for my
> situation. Seems like since I don't know the original drive
> arrangement that may be adding an additional level of complexity. If
> I can figure out the read only and overlay, I still don't know exactly
> the right way to proceed on the mdadm front. Please anyone who has a
> handle on a situation like this, let me know what I should do. Thanks
I summarized `mdadm --create` for data recovery here:
https://unix.stackexchange.com/a/131927/30851
In addition you should remove the bogus GPT and MBR partition headers.
You can use 'wipefs' for this task. (Test it with overlays first...)
wipefs --all --types pmbr,gpt,dos /dev/...
You are lucky to have all the relevant `mdadm --examine` output,
so you already know the correct data offset and only need to guess
the correct order of drives.
Regards
Andreas Klauer
next prev parent reply other threads:[~2021-12-19 11:58 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-19 4:31 Need help Recover raid5 array Tony Bush
2021-12-19 10:13 ` Wols Lists
2021-12-20 0:25 ` Phil Turmel
2021-12-19 11:58 ` Andreas Klauer [this message]
2021-12-24 3:55 ` Tony Bush
2021-12-24 7:45 ` Andreas Klauer
2021-12-28 23:56 ` Tony Bush
2021-12-29 4:37 ` Andreas Klauer
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=Yb8ebs7lhEHHTqif@metamorpher.de \
--to=andreas.klauer@metamorpher.de \
--cc=linux-raid@vger.kernel.org \
--cc=thecompguru@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 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.