From: Andreas Klauer <Andreas.Klauer@metamorpher.de>
To: Simon Becks <beckssimon5@gmail.com>
Cc: Linux-RAID <linux-raid@vger.kernel.org>
Subject: Re: restore 3disk raid5 after raidpartitions have been setup with xfs filesystem by accident
Date: Wed, 21 Sep 2016 19:15:11 +0200 [thread overview]
Message-ID: <20160921171511.GA6381@metamorpher.de> (raw)
In-Reply-To: <CAKA=zHpgVoNA5Y6MBmB4fnG85F-z=hj4FXEiUOggsWUn3tfWXg@mail.gmail.com>
On Wed, Sep 21, 2016 at 06:56:43PM +0200, Simon Becks wrote:
> Data Offset : 2048 sectors
Your RAID disks have a 1 MiB data offset there.
If nothing was ever written on the XFS filesystem,
it might still be intact.
If you have an overlay for these disks you can try your luck
with mdadm --create /dev/md42 --metadata=1.2 --data-offset=1M --chunk=512 --level=5 ...
--assume-clean /dev/overlay/disk{1,2,3}
Check --examine if it says the same things for device size.
You already verified partitions should be the same but still...
Then see if there is data on it or no (even if there is no filesystem,
try a carver like photorec, if it gets an intact file larger than 3*512K
the raid settings might be correct).
photorec won't work if the data was encrypted.
If there is no data, try a different disk order if you're not sure you got it right.
Good luck
Andreas Klauer
next prev parent reply other threads:[~2016-09-21 17:15 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-21 10:39 restore 3disk raid5 after raidpartitions have been setup with xfs filesystem by accident Simon Becks
2016-09-21 13:34 ` Benjamin ESTRABAUD
2016-09-21 15:38 ` Chris Murphy
2016-09-21 16:56 ` Simon Becks
2016-09-21 17:15 ` Andreas Klauer [this message]
2016-09-21 17:23 ` Simon Becks
2016-09-21 18:03 ` Andreas Klauer
2016-09-21 18:31 ` Simon Becks
2016-09-21 19:00 ` Andreas Klauer
2016-09-21 19:50 ` Simon Becks
2016-09-21 20:41 ` Simon Becks
2016-09-21 20:56 ` Andreas Klauer
2016-09-21 21:07 ` Chris Murphy
2016-09-21 21:30 ` Simon Becks
2016-09-22 5:46 ` Simon Becks
2016-09-22 9:56 ` Andreas Klauer
2016-09-21 20:53 ` 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=20160921171511.GA6381@metamorpher.de \
--to=andreas.klauer@metamorpher.de \
--cc=beckssimon5@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;
as well as URLs for NNTP newsgroup(s).