linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
From: John Himpel <jwhimpel@gmail.com>
To: linux-lvm@redhat.com
Subject: [linux-lvm] LVM + LUKS - Can't mount encrypted LV
Date: Sat, 13 Nov 2010 21:21:56 -0000	[thread overview]
Message-ID: <AANLkTim17Szku4aAzTkhv5kMR6dfu7qa7pwcy3YqYkxe@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1703 bytes --]

Good afternoon,

I created this structure using anaconda, so I'm a bit unsure of all the
details:
1) Encrypted partition
2) VG <vg_dubby> containing three LV's <lv_root, lv_home, lv_swap>

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:
   <Entered passphrase here>
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.

[-- Attachment #2: Type: text/html, Size: 2359 bytes --]

             reply	other threads:[~2010-11-13 21:21 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-13 21:21 John Himpel [this message]
2010-12-02  7:34 ` [linux-lvm] LVM + LUKS - Can't mount encrypted LV Luca Berra

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=AANLkTim17Szku4aAzTkhv5kMR6dfu7qa7pwcy3YqYkxe@mail.gmail.com \
    --to=jwhimpel@gmail.com \
    --cc=linux-lvm@redhat.com \
    /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;
as well as URLs for NNTP newsgroup(s).