From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx1.redhat.com (ext-mx07.extmail.prod.ext.phx2.redhat.com [10.5.110.11]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id oADLLoIR013323 for ; Sat, 13 Nov 2010 16:21:50 -0500 Received: from mail-pv0-f174.google.com (mail-pv0-f174.google.com [74.125.83.174]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id oADLLZaG015288 for ; Sat, 13 Nov 2010 16:21:36 -0500 Received: by pva4 with SMTP id 4so842037pva.33 for ; Sat, 13 Nov 2010 13:21:35 -0800 (PST) MIME-Version: 1.0 Message-ID: From: John Himpel Content-Type: multipart/alternative; boundary=001636e1fdadb7343b0494f5ca8e Subject: [linux-lvm] LVM + LUKS - Can't mount encrypted LV Reply-To: LVM general discussion and development List-Id: LVM general discussion and development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Date: Sat, 13 Nov 2010 21:21:56 -0000 List-Id: To: linux-lvm@redhat.com --001636e1fdadb7343b0494f5ca8e Content-Type: text/plain; charset=ISO-8859-1 Good afternoon, I created this structure using anaconda, so I'm a bit unsure of all the details: 1) Encrypted partition 2) VG containing three LV's I suppose it's possible the encryption is at another (or even additional) level than the partition. Like I said, I created this with anaconda and it's been almost 18 months, so my memory is not certain. I am trying to mount the LV and am getting errors. I am running Fedora Rawhide as of 11/1/2010 Steps taken: modprobe dm-crypt modprobe dm-mod cryptsetup luksOpen /dev/sdf6 F14 <-- /dev/sdf6 is the location of encrypted partition Enter passphrase for /dev/sdf6: vgscan Reading all physical volumnes. This may take a while... Found volume group "vg_dubby" using metadata type lvm2 vgchange -a y vg_dubby 3 logical volume(s) in volume group "vg_dubby" now active mount /dev/vg_dubby/lv_root /mnt/root mount: unknown filesystem type 'crypto_LUKS' In scanning the web, I see almost all of the examples show output from cryptsetup as including: key slot 0 unlocked. Command successful. Mine did not. Output from cryptsetup luksDump /dev/sdf6 shows Key Slot 0: ENABLED All other Key Slots are DISABLED. lvs and pvscan look reasonable to me, but I'm a novice, so I'm not quite sure what to look for. pvs PV VG Fmt Attr PSize PFree /dev/dm-2 vg_dubby lvm2 a- 724.09g 32.00m lvs LV VG Attr LSize Origin Snap% Move Log Copy% Convert lv_home vg_dubby -wi--- 664.25g lv_root vg_dubby -wi--- 50.00g lv_swap vg_dubby -wi--- 9.81g Any suggestions would be greatly appreciated. Thanks. --001636e1fdadb7343b0494f5ca8e Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Good afternoon,
=A0
I created this structure using anaconda, so I'm a bit unsure of al= l the details:
1) Encrypted partition
2) VG <vg_dubby> containing three LV's <lv_root, lv_home,= lv_swap>
=A0
I suppose it's possible the encryption is at another (or even addi= tional)=A0level than the partition.
Like I said, I created this with anaconda and it's been almost 18 = months, so my memory is not certain.

I am trying to mount the LV and am getting errors.
=A0
I am running Fedora Rawhide as of 11/1/2010
=A0
Steps taken:
modprobe dm-crypt
modprobe dm-mod
cryptsetup luksOpen /dev/sdf6=A0F14=A0=A0=A0 <-- /dev/sdf6 is the l= ocation of encrypted partition
=A0=A0 Enter passphrase for /dev/sdf6:
=A0=A0 <Entered passphrase here>
vgscan
=A0 Reading all physical volumnes.=A0 This may take a while...
=A0 Found volume group "vg_dubby" using metadata type lvm2
vgchange -a y vg_dubby
=A0 3 logical volume(s) in volume group "vg_dubby" now activ= e
mount /dev/vg_dubby/lv_root /mnt/root
=A0 mount: unknown filesystem type 'crypto_LUKS'
=A0
In scanning the web, I see almost all of the examples show output from= cryptsetup as including:
=A0=A0=A0=A0=A0=A0 key slot 0 unlocked.
=A0=A0=A0=A0=A0=A0 Command = successful.
Mine did not.
=A0
Output from
cryptsetup luksDump /dev/sdf6 shows Key Slot 0: ENABLED
=A0
All other Key Slots are DISABLED.
=A0
lvs and pvscan look reasonable to me, but I'm a novice, so I'm= not quite sure what to look for.
pvs
=A0 PV=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 VG=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0Fmt=A0 Attr=A0 PSize=A0=A0=A0 PFree
=A0 /dev/dm-2=A0 vg_dubby=A0 lvm2 a-=A0=A0=A0=A0724.09g 32.00m
lvs
=A0 LV=A0=A0=A0=A0=A0=A0=A0=A0=A0 VG=A0=A0=A0=A0=A0=A0=A0=A0=A0 Attr= =A0=A0=A0 LSize=A0 Origin Snap% Move Log Copy% Convert
=A0 lv_home=A0 vg_dubby=A0 -wi--- 664.25g
=A0 lv_root=A0=A0=A0 vg_dubby=A0 -wi---=A0 50.00g
=A0 lv_swap=A0 vg_dubby=A0 -wi---=A0=A0 9.81g
=A0
Any suggestions would be greatly appreciated.
=A0
Thanks.
--001636e1fdadb7343b0494f5ca8e--