Return-Path: Received: from mail.saout.de ([127.0.0.1]) by localhost (mail.saout.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id WrPuTwTxjzzJ for ; Thu, 13 Dec 2012 21:36:28 +0100 (CET) Received: from mail-we0-f178.google.com (mail-we0-f178.google.com [74.125.82.178]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.saout.de (Postfix) with ESMTPS for ; Thu, 13 Dec 2012 21:36:27 +0100 (CET) Received: by mail-we0-f178.google.com with SMTP id x43so1188087wey.37 for ; Thu, 13 Dec 2012 12:36:27 -0800 (PST) From: "Philipp Durrer - Nexus Informatik" Date: Thu, 13 Dec 2012 21:36:26 +0100 Message-ID: <002801cdd971$867e5310$937af930$@nexus-informatik.ch> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0029_01CDD979.E84441B0" Content-Language: de-ch Subject: [dm-crypt] Can't mount my LUKS crypted disk after kernel update / reboot List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: dm-crypt@saout.de This is a multipart message in MIME format. ------=_NextPart_000_0029_01CDD979.E84441B0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hi I've got a very serious issue, I can't mount my LUKS crypted software raid disk after a regular kernel update (Ubuntu 11.10, Kernel 3.0.0-12-generic to 3.0.0-17-generic) and a following reboot. After the reboot the raid disks start properly and are active: >cat /proc/mdstat >Personalities : [raid0] [raid1] [linear] [multipath] [raid6] [raid5] [raid4] [raid10] >md0 : active raid1 sda2[0] sdb2[1] > 488269 blocks super 1.2 [2/2] [UU] > >md2 : active raid1 sda4[0] sdb4[1] > 3905214 blocks super 1.2 [2/2] [UU] > >md126 : active raid0 sda5[0] sdb5[1] > 5832190976 blocks super 1.2 512k chunks > >md1 : active raid1 sda3[0] sdb3[1] > 9764529 blocks super 1.2 [2/2] [UU] > >md127 : active raid0 sdd1[1] sdc1[0] > 5860530176 blocks super 1.2 512k chunks > >unused devices: The LUKS header looks fine aswell: >cryptsetup luksDump /dev/md126 >LUKS header information for /dev/md126 > >Version: 1 >Cipher name: aes >Cipher mode: xts-essiv:sha256 >Hash spec: sha1 >Payload offset: 4096 >MK bits: 512 >MK digest: f0 59 ac a8 13 3c e1 XX YY ZZ ce 0f ba cd 63 0a 4a d0 25 b2 >MK salt: e8 3f fc 25 3a 0e a3 XX XX YY ZZ 45 1c 12 31 f6 > cb ea 03 d2 51 66 f9 4c 51 c4 29 4d 97 4f 17 0f >MK iterations: 33375 >UUID: 1686eb8f-be62-462b-9326-319a7cc8e087 > >Key Slot 0: ENABLED > Iterations: 133653 > Salt: c1 d9 a0 ff 6e 7a XX XX YY ZZ a7 67 dc 8f 10 93 > 4e a2 9c 9e d8 39 4f 91 37 3d e3 8f df 24 dc 60 > Key material offset: 8 > AF stripes: 4000 >Key Slot 1: DISABLED >Key Slot 2: DISABLED >Key Slot 3: DISABLED >Key Slot 4: DISABLED >Key Slot 5: DISABLED >Key Slot 6: DISABLED >Key Slot 7: DISABLED I can aswell open the Disk successful without compaints: >cryptsetup -d /keystore/tempstuff1 luksOpen /dev/md126 stuff >cryptsetup status stuff >/dev/mapper/stuff is active. > type: LUKS1 > cipher: aes-xts-essiv:sha256 > keysize: 512 bits > device: /dev/md126 > offset: 4096 sectors > size: 11664377856 sectors > mode: read/write But when I try to mount the device mapper disk I get compaints: >mount /dev/mapper/stuff /home/crypt/ >mount: you must specify the filesystem type > mount -t ext4 /dev/mapper/stuff /home/crypt/ >mount: wrong fs type, bad option, bad superblock on /dev/mapper/stuff, > missing codepage or helper program, or other error > In some cases useful info is found in syslog - try > dmesg | tail or so > dmesg | tail >[12124.435471] EXT4-fs (dm-5): VFS: Can't find ext4 filesystem Filesystem check doesn't work either :( >fsck.ext4 /dev/mapper/stuff >e2fsck 1.41.14 (22-Dec-2010) >fsck.ext4: Superblock invalid, trying backup blocks... >fsck.ext4: Bad magic number in super-block while trying to open /dev/mapper/stuff >. I can't see any updated dependencies of cryptsetup that are related to this issue, I had the default cryptsetup version 1.1.3 on the box and now tried with 1.5.1 with no success :( Any ideas ? I would greatly appreciate any inputs helping me, that I don't lose about 12 TB of precious data. -.- Thank you. Regards ------=_NextPart_000_0029_01CDD979.E84441B0 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi

 

I’ve = got a very serious issue, I can’t mount my LUKS crypted software = raid disk after a regular kernel update (Ubuntu 11.10, Kernel = 3.0.0-12-generic to 3.0.0-17-generic) and a following = reboot.

 

After the reboot the raid disks start properly and are = active:

 

>cat /proc/mdstat

>Personalities : [raid0] [raid1] [linear] = [multipath] [raid6] [raid5] [raid4] [raid10]

>md0 : active raid1 sda2[0] = sdb2[1]

>      488269 blocks super = 1.2 [2/2] [UU]

> 

>md2 = : active raid1 sda4[0] sdb4[1]

>      3905214 blocks = super 1.2 [2/2] [UU]

> 

>md126 : active raid0 sda5[0] = sdb5[1]

>      5832190976 = blocks super 1.2 512k chunks

> 

>md1 = : active raid1 sda3[0] sdb3[1]

>      9764529 blocks = super 1.2 [2/2] [UU]

> 

>md127 : active raid0 sdd1[1] = sdc1[0]

>      5860530176 = blocks super 1.2 512k chunks

> 

>unused devices: <none>

 

The LUKS = header looks fine aswell:

>cryptsetup luksDump /dev/md126

>LUKS header information for = /dev/md126

> 

>Version:        = 1

>Cipher name:    = aes

>Cipher = mode:    xts-essiv:sha256

>Hash spec:      = sha1

>Payload offset: = 4096

>MK = bits:        512

>MK digest:      f0 59 ac = a8 13 3c e1 XX YY ZZ ce 0f ba cd 63 0a 4a d0 25 b2

>MK salt:        = e8 3f fc 25 3a 0e a3 XX XX YY ZZ 45 1c 12 31 f6

>        &nb= sp;       cb ea 03 d2 51 66 f9 4c 51 c4 29 = 4d 97 4f 17 0f

>MK = iterations:  33375

>UUID:       &nbs= p;   1686eb8f-be62-462b-9326-319a7cc8e087

> 

>Key = Slot 0: ENABLED

>        = Iterations:          &n= bsp;  133653

>        = Salt:           &n= bsp;       c1 d9 a0 ff 6e 7a XX XX YY ZZ = a7 67 dc 8f 10 93

>        &nb= sp;           &nbs= p;           4e a2 9c = 9e d8 39 4f 91 37 3d e3 8f df 24 dc 60

>        Key = material offset:    8

>        AF = stripes:           = ;  4000

>Key Slot 1: = DISABLED

>Key Slot 2: = DISABLED

>Key Slot 3: = DISABLED

>Key Slot 4: = DISABLED

>Key Slot 5: = DISABLED

>Key Slot 6: = DISABLED

>Key Slot 7: = DISABLED

 

I can aswell open the Disk successful without = compaints:

>cryptsetup -d = /keystore/tempstuff1 luksOpen /dev/md126 stuff

>cryptsetup status stuff

>/dev/mapper/stuff is active.

>  type:    = LUKS1

>  cipher:  = aes-xts-essiv:sha256

>  = keysize: 512 bits

>  = device:  /dev/md126

>  = offset:  4096 sectors

>  = size:    11664377856 sectors

>  mode:    = read/write

 

But when I try to mount the device mapper disk I get = compaints:

>mount = /dev/mapper/stuff /home/crypt/

>mount: you must specify the filesystem = type

 

> mount -t ext4 /dev/mapper/stuff = /home/crypt/

>mount: wrong fs = type, bad option, bad superblock on /dev/mapper/stuff,

>       missing = codepage or helper program, or other error

>       In some cases = useful info is found in syslog - try

>       dmesg | = tail  or so

 

> dmesg | = tail

>[12124.435471] EXT4-fs = (dm-5): VFS: Can't find ext4 filesystem

 

Filesystem = check doesn’t work either :(

 

>fsck.ext4 /dev/mapper/stuff

>e2fsck 1.41.14 (22-Dec-2010)

>fsck.ext4: Superblock invalid, trying backup = blocks...

>fsck.ext4: Bad magic = number in super-block while trying to open = /dev/mapper/stuff

>…

 

I = can’t see any updated dependencies of cryptsetup that are related = to this issue, I had the default cryptsetup version 1.1.3 on the box and = now tried with 1.5.1 with no success :(

Any ideas ? I would greatly appreciate any inputs = helping me, that I don’t lose about 12 TB  of precious = data… -.-

 

Thank = you.

Regards

------=_NextPart_000_0029_01CDD979.E84441B0--