Am 26.01.2011 11:38, schrieb Eric Bélanger:
On Wed, Jan 26, 2011 at 3:33 AM, Jan Spakula <bender02@archlinux.us> wrote:
Excerpts from Eric Bélanger's message of Mi Jan 26 05:16:44 +0100 2011:
lvm2/device-mapper 2.02.82-1 are in testing for minor upstream update. Please test and signoff. Users signoffs are welcome.
Hi, I have problems with both 2.02.81 and 2.02.82: I have encrypted root (normal partition) + some extra encrypted partitions on lvm via crypttab. The ones in crypttab don't unlock, the error message is something along the lines of "... /dev/vg/swap doesn't exist or access denied" (it gets overwritten immediately, so I don't see the beginning of the message). This is right after lvm2 hook is run. Then a bit later in the emergency shell, the /dev/vg/* links are already there; so perhaps there's some extra delay until the symlinks are created in /dev/ with the newer lvm2?
This is weird. I think lvm2 is supposed to wait for udev to finish creating all links before returning. Inserting a 'sleep 1' or '/sbin/udevadm settle' in rc.sysinit after the vgchange call should fix this, but it shouldn't be necessary.
Downgrading to lvm2-2.02.79-1 "fixes" the problem. I took a quick look at the lvm2 changelog, but I didn't notice anything unusual... but admittedly I don't understand things too well.
Is it related to https://bugs.archlinux.org/task/22351 ? I don't know much about encryption. Better add your experience in the links above if related or open a new bug report.
I don't think there is a relation.