Excerpts from Thomas Bächler's message of Mi Jan 26 16:29:43 +0100 2011:
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.
Inserting 'sleep 1' after 'activate_vgs' (new initscripts) does indeed save the day. I don't know how to figure out why in my case lvm2 doesn't wait for udev... Any suggestions for further testing welcome.