Comment 0 for bug 318074

Revision history for this message
Nikolaus Rath (nikratio) wrote : "Cannot setup lvm"

Binary package hint: cryptsetup

I am using Ubuntu Hardy. My system has one LUKS encrypted volume, /dev/sda4.
This volume is opened using cryptsetup as /dev/mapper/luks_pv0 and is the only
physical volume in the LVM volume group vg0, which contains logical volumes
/dev/mapper/vg0-{swap,home,root}.

According to https://help.ubuntu.com/community/EncryptedFilesystemLVMHowto, I have
used the lvm= option in /etc/crypttab (unfortunately I did not find this option documented
anywhere else):

# cat /etc/crypttab
# <target name> <source device> <key file> <options>
luks_pv0 /dev/sda4 none luks,lvm=vg0

Moreover I have configured:

# cat /etc/initramfs-tools/conf.d/resume
RESUME=/dev/mapper/vg0-swap

# cat /etc/uswsusp.conf | grep dev
resume device = /dev/mapper/vg0-swap

# cat /etc/fstab | grep swap
/dev/mapper/vg0-swap none swap sw 0 0

The system is booting up fine, but after entering the password cryptsetup always
prints the message "Cannot set up LVM". Moreover, I cannot resume from
swap after hibernation, the system just continues to boot up normally.