I wrote:
Is there any way to extract the key from the slot of the
working dm-crypt pv (the same as used for the defective one) and add it
to the defective crypto pv, to get back the data on it?
After some sleep, it seems to me a solution could be to simply dd the
luks_phdr from working pv to fried pv. However, as I do not know where
exactly to find the luks_phdr, I have to depend on the knowledge on this
list. So, how can I find start and end of a luks_phdr on a logical
volume inside of a raid1 physical volume?
My configuration:
sd[a|b]1 /boot
sd[a|b]2 extended
sd[a|b]5 swap (using dm_crypt as crypt1/crypt2)
sd(a+b)6 md0
On /dev/md0:
pv0 containing vg0 containing logical volumes usr, srv, squid and crypt.
On crypt there should be a LUKS partition containing pv0 with vg1
containing logical volumes root, tmp, var, log, pub and home.
However, this is where the phdr is missing. Only on a old snapshot of
md0 is it still present. I do not fear overwriting lvm metadata in the
process of restoring it, as I have a copy of the lvm configuration file
on a usb stick. Any hints?
---------------------------------------------------------------------
dm-crypt mailing list - http://www.saout.de/misc/dm-crypt/
To unsubscribe, e-mail: dm-crypt-unsubscribe@xxxxxxxx
For additional commands, e-mail: dm-crypt-help@xxxxxxxx