From: Louis-David Mitterrand <vindex+lists-linux-kernel@apartia.org>
To: linux-raid@vger.kernel.org
Subject: dm-crypt over raid6 unreadable after crash
Date: Wed, 6 Jul 2011 18:12:28 +0200 [thread overview]
Message-ID: <20110706161228.GA1491@apartia.fr> (raw)
Hi,
After a hardware crash I can no longer open a dm-crypt partition located
directly over a md-raid6 partition. I get this error:
root@grml ~ # cryptsetup isLuks /dev/md1
Device /dev/md1 is not a valid LUKS device
It seems the LUKS header has been shifted a few bytes forward, but looks
otherwise fine to specialists on the dm-crypt mailing list. Normally the
"LUKS" signature should be at 0x00000000
Is there some way that the md layer could have shifted its contents?
Is there a way to shift it back in place?
Thanks,
Here is a hexdum of /dev/md1 done with "hd /dev/md1 | head -n 40"
00000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
00100000 4c 55 4b 53 ba be 00 01 61 65 73 00 00 00 00 00 |LUKS....aes.....|
00100010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00100020 00 00 00 00 00 00 00 00 63 62 63 2d 65 73 73 69 |........cbc-essi|
00100030 76 3a 73 68 61 32 35 36 00 00 00 00 00 00 00 00 |v:sha256........|
00100040 00 00 00 00 00 00 00 00 73 68 61 31 00 00 00 00 |........sha1....|
00100050 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00100060 00 00 00 00 00 00 00 00 00 00 18 00 00 00 00 20 |............... |
00100070 d3 67 34 b9 7b 55 fe 0d e7 cc 5d df 6e ae f7 1f |.g4.{U....].n...|
00100080 96 78 43 c5 d2 55 58 4b a9 2a 73 8b 28 45 6b 8c |.xC..UXK.*s.(Ek.|
00100090 cd 26 45 61 6b f4 5a 58 6d 8e 1b 85 c2 60 4f 7c |.&Eak.ZXm....`O||
001000a0 00 39 48 89 00 00 6d dd 66 37 38 31 66 62 34 30 |.9H...m.f781fb40|
001000b0 2d 37 65 34 31 2d 34 30 63 62 2d 62 65 66 66 2d |-7e41-40cb-beff-|
001000c0 61 39 66 37 61 65 61 63 64 35 63 36 00 00 00 00 |a9f7aeacd5c6....|
001000d0 00 ac 71 f3 00 01 b8 3f f7 9d c2 ef e0 07 78 c3 |..q....?......x.|
001000e0 f6 90 73 57 39 be 8e 79 59 44 a1 23 35 11 6f 6a |..sW9..yYD.#5.oj|
001000f0 6c b0 36 fc 7d 9b 15 0f 00 00 00 08 00 00 0f a0 |l.6.}...........|
00100100 00 00 de ad 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00100110 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00100120 00 00 00 00 00 00 00 00 00 00 01 08 00 00 0f a0 |................|
00100130 00 00 de ad 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00100140 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00100150 00 00 00 00 00 00 00 00 00 00 02 08 00 00 0f a0 |................|
00100160 00 00 de ad 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00100170 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00100180 00 00 00 00 00 00 00 00 00 00 03 08 00 00 0f a0 |................|
00100190 00 00 de ad 00 00 00 00 00 00 00 00 00 00 00 00 |................|
001001a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
001001b0 00 00 00 00 00 00 00 00 00 00 04 08 00 00 0f a0 |................|
001001c0 00 00 de ad 00 00 00 00 00 00 00 00 00 00 00 00 |................|
001001d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
001001e0 00 00 00 00 00 00 00 00 00 00 05 08 00 00 0f a0 |................|
001001f0 00 00 de ad 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00100200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00100210 00 00 00 00 00 00 00 00 00 00 06 08 00 00 0f a0 |................|
00100220 00 00 de ad 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00100230 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00100240 00 00 00 00 00 00 00 00 00 00 07 08 00 00 0f a0 |................|
00100250 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
next reply other threads:[~2011-07-06 16:12 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-06 16:12 Louis-David Mitterrand [this message]
2011-07-06 17:00 ` dm-crypt over raid6 unreadable after crash Phil Turmel
2011-07-07 9:05 ` Louis-David Mitterrand
2011-07-07 12:41 ` Phil Turmel
2011-07-07 13:09 ` Louis-David Mitterrand
2011-07-07 13:32 ` Phil Turmel
2011-07-08 5:40 ` Luca Berra
2011-07-10 12:03 ` Louis-David Mitterrand
2011-07-10 12:28 ` Phil Turmel
2011-07-10 23:44 ` Stan Hoeppner
2011-07-11 7:57 ` Louis-David Mitterrand
2011-07-11 11:49 ` Stan Hoeppner
2011-07-11 7:54 ` Louis-David Mitterrand
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=20110706161228.GA1491@apartia.fr \
--to=vindex+lists-linux-kernel@apartia.org \
--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