From: Wolfgang Schindler <schindler@schintech.net>
To: christophe@saout.de
Cc: dm-crypt@saout.de
Subject: [dm-crypt] Questions about LUKS on RAID5
Date: Fri, 31 Jul 2009 11:12:38 +0200 [thread overview]
Message-ID: <200907311112.38952.schindler@schintech.net> (raw)
[-- Attachment #1: Type: text/plain, Size: 1824 bytes --]
Hello out there, sunny greetings from good old germany,
Don't know if i'm in the right place here. I need some help as it's a black
doomed day, today, things went wrong as they sometimes do.......
For a real long time i had two running RAID5's with LUKS encrypted data on
them. I had to change the system, so i setup a new machine, with two new
raid5's also encrypted with LUKS, of course with some more data space. I sent
the data over network. Anything worked fine for some days.
Now my system disk crashed. So i took another system disk from another raid
system and started up. One of the data raids was found immediately and i could
luksOpen it with my passphrase, the other one could not be assembled.
I tried some assembles with --force and --scan. Did not work.
Now I had a real bad idea, late at night and lot's of other things to do
asides. I zeroed the superblocks of the devices belonging to the raid that
could not be assembled.
I rebuilt the raid with the same parameters as before and it was rebuilt. The
raid was then found immediately.
No problems until there, but when i was trying to luksOpen the raid, my
passphrase did not work.
So i checked the sourcecode of cryptsetup-1.0.7 and saw that in function
LUKS_generate_phdr the UUID of the underlying Raid or Device is used in some
way.
But, by recreating the RAID, the UUID of the RAID has changed. So far so bad.
Question 1:
is this UUID used in any way for decryption?
Question 2:
Would it be a reasonable and walkable way to set back the UUID to the older
one (thanks God or whomever, it was noticed in the old mdadm.conf) to get the
decryption running again?
Question 3:
Do you know how to set back the UUID?
Thanks for answering, otherwise my good datastuff was gone?? and i had a real
bad day.
Cheers
--
Wolfgang Schindler
[-- Attachment #2: Type: text/html, Size: 3056 bytes --]
next reply other threads:[~2009-07-31 9:12 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-31 9:12 Wolfgang Schindler [this message]
2009-07-31 12:48 ` [dm-crypt] Questions about LUKS on RAID5 Anthony Mutiso
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=200907311112.38952.schindler@schintech.net \
--to=schindler@schintech.net \
--cc=christophe@saout.de \
--cc=dm-crypt@saout.de \
/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