Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#22735 - [initscripts] Unable to open encrypted volume on LVM
Attached to Project:
Arch Linux
Opened by Aravind Gottipati (aravind) - Thursday, 03 February 2011, 14:05 GMT
Last edited by Thomas Bächler (brain0) - Friday, 04 February 2011, 22:14 GMT
Opened by Aravind Gottipati (aravind) - Thursday, 03 February 2011, 14:05 GMT
Last edited by Thomas Bächler (brain0) - Friday, 04 February 2011, 22:14 GMT
|
DetailsDescription:
I use LVM and an encrypted filesystem on top of LVM. I narrowed down the problem to cryptsetup isLuks command failing on the LVM device. When that happens cryptsetup tries to create the encrypted device and fails. The root of all this seems to be that the lvm devices are not ready by the time the cryptsetup calls are made. Adding a 10s sleep after LVM initializes in rc.sysinit fixed the problem for me. I am running 2.6.37-ARCH, with lvm2 (2.02.81-1) and initscripts (2010.07-2). Additional info: * package version(s) initscripts - 2010.07-2 kernel - 2.6.37-ARCH lvm2 - 2.02.81-1 * config and/or log files etc. My /etc/crypttab: enc_home /dev/lvm_home/home ASK The fix to /etc/rc.sysinit that fixes the problem for me: [root@dogmatix ~]# diff -uNr /etc/rc.sysinit.orig /etc/rc.sysinit --- /etc/rc.sysinit.orig 2011-02-03 05:21:55.820001446 -0800 +++ /etc/rc.sysinit 2011-02-03 05:38:58.073335378 -0800 @@ -152,6 +152,7 @@ stat_done fi fi + sleep 10 fi # Set up non-root encrypted partition mappings [root@dogmatix ~]# Steps to reproduce: re-boot your machine with an encrypted partition.. |
This task depends upon
[root@dogmatix ~]# diff -uNr /etc/rc.d/functions.orig /etc/rc.d/functions
--- /etc/rc.d/functions.orig 2011-02-03 06:43:02.883333211 -0800
+++ /etc/rc.d/functions 2011-02-03 06:43:31.556666882 -0800
@@ -253,6 +253,7 @@
else
stat_fail
fi
+ udevadm settle
}
# Arch cryptsetup packages traditionally contained the binaries
[root@dogmatix ~]#
"udevadmin settle" calls in it. lvm2 itself being broken and causing the problem explains stuff.