From: Andreas Klauer <Andreas.Klauer@metamorpher.de>
To: Peter Hoffmann <Hoffmann.P@gmx.net>
Cc: linux-raid@vger.kernel.org
Subject: Re: Panicked and deleted superblock
Date: Sun, 30 Oct 2016 22:11:03 +0100 [thread overview]
Message-ID: <20161030211103.GA7196@metamorpher.de> (raw)
In-Reply-To: <7f1dd791-ed1c-5db6-555d-ed377995420e@gmx.net>
On Sun, Oct 30, 2016 at 09:45:27PM +0100, Peter Hoffmann wrote:
> there shouldn't anything be lost as growing consumes more
> than it writes, stripe wise speaking
That's what I meant by 'overlap' - it's the wrong word I guess.
> /dev/sda2 --luks--> /dev/mapper/HDD_0 \
> /dev/sdb2 --luks--> /dev/mapper/HDD_1 --raid--> /dev/md127 -ext4-> /raid
> /dev/sdc2 --luks--> /dev/mapper/HDD_2 /
You're hoping it be faster since three threads instead of one?
Adds the overhead of encrypting parity. Not sure if worth it.
This idea belongs to another era (before AES-NI).
But it's good, that way, you have "unencrypted" data on your RAID and can
make deductions from that raw data as to chunk size and such things.
> * anything else?
This is where I don't know how to provide specific help.
Since you did not provide specific data I can work with.
Your data offset sounds strange to me but with overlay,
it's faster to just go ahead and try.
You'll have to figure out the details by yourself, pretty much.
Once you have the correct offset you might be able to deduct the other
offset. Create 4 loop devices size of your disks (sparse files in tmpfs,
truncate -s thefile, losetup), create a 3 disk raid, grow to 4 disks,
check with mdadm --examine if & how the data offset changed.
> So I'm looking for a sequence of bytes that is duplicated on both
> overlays. This way I find the border between both parts.
Yes, there should be an identical region (let's hope not zeroes)
and you should roughly determine the end of that region and that's
your entry point for a linear device mapping.
Regards
Andreas Klauer
next prev parent reply other threads:[~2016-10-30 21:11 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-30 18:23 Panicked and deleted superblock Peter Hoffmann
2016-10-30 19:43 ` Andreas Klauer
2016-10-30 20:45 ` Peter Hoffmann
2016-10-30 21:11 ` Andreas Klauer [this message]
2016-10-31 22:36 ` Peter Hoffmann
2016-10-31 23:03 ` Andreas Klauer
2016-11-04 4:34 ` NeilBrown
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=20161030211103.GA7196@metamorpher.de \
--to=andreas.klauer@metamorpher.de \
--cc=Hoffmann.P@gmx.net \
--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).