[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

RAID+LVM+CRYPT issues on etch (amd64)



Hi everybody,

I decided to give dm-crypt a try on a new machine. I am used to setup
everything with lvm over software raid and inserting the crypto layer
between the 2 seem to be the most logical place (physical LVM volume
over and encypted block device). Placing the encryption at a lower level
would require typing the passphrase once per disk (8times) and at a
higher level it would leave the lvm metadata exposed. 

The problem I have is that the system does not boot after the install.
It search for the volume group and does not find it. It does not ask for
any passphrase either. If I start the cypto layer in busybox, I can
create the md1_crypt block device but vgchange does not want to consider
it as a physical volume (volume group not found).

I have read about the little issue with the installer
(http://wiki.debian.org/DebianInstaller/RAIDvsCrypto) but the fix
proposed does not do it for me. The cryptab file does not contain the
entry needed, but adding it and recreating the initramfs does not change
the problem. Also, I heard that lvm2 does not scan dm block devices by
default, so one need to add types = ["device-mapper",16] in
/etc/lvm/lvm.conf. That sound fine for the real system, but the initrd
does not use vgscan, so is there abother way to change the default?

thanks for your help

jacques

Attachment: signature.asc
Description: Digital signature


Reply to: