You are not logged in.
Upstream bugs are tragic. Perhaps if someone who's affected by it were to report it upstream, it would get fixed faster.
I'm not sure that it's an upstream bug. Only Archlinux seems to be affected, I don't have any problem with LVM and the Kernel 3.5 at work on my Gentoo. The problem is may be related with the options used during the compilation of the kernel, I will try later to compile a vanilla kernel to check if the problem is still present or not.
I think, many Archlinux users don't uses LVM, that explains why there isn't more complaints about this issue.
Offline
Oh, if there are not enough complains. Here is one more
I'm glad I found this thread a few days ago to add lvmwait!
Offline
lvmwait done the trick for me!!
My home partition is on lvm and it failed ...once read this thread and put the lvmwait in the grub commnd line and voila!
Untill this bug really get fixed...please use this as sideways to a workable system.
Arch is beautiful.
Musing with GNU/Linux!!
Offline
How to set the lvmwait thingy using syslinux? I might be doing something wrong....
EDIT: Never mind: I figured it out
Last edited by Xi0N (2012-09-11 06:02:51)
Offline
My laptop is fine with LVM and Linux 3.5, but two desktops will not boot without the lvmwait fix. All three use LVM for the / partition (but not /boot). Since I have both working and broken systems I would be glad to assist in any tests you can think of.
▁▂▃▄▅▆▇█▉▊▋▌▍▎▏▏▎▍▌▋▊▉█▇▆▅▄▃▂▁
Offline
Offline
My friend who was installing Arch Linux for the first time under my direction also ran into this issue. I'd debug further, but I don't have a machine in front of me that runs into it.
Offline
Same here. Add a duplicate `lvm vgscan` can also walkaround this problem.
Offline
Hello.
I found the solution at this problem.
This is patch.
--- lvm2.before 2012-09-28 21:19:54.684205232 +0900
+++ lvm2.after 2012-09-28 21:20:21.024061354 +0900
@@ -12,7 +12,7 @@
done
msg "Activating logical volumes..."
- [ -d /etc/lvm ] && lvm vgscan
+ lvm vgscan
if [ -n "$quiet" ]; then
lvm vgchange --sysinit -a y >/dev/null
You can fix this problem applying this patch as below.
# patch /usr/lib/initcpio/hooks/lvm2 < lvm2.patch
# mkinitcpio -p linux
The problem's cause is that "lvm vgscan" isn't evaluated , because of /etc/lvm directory doesn't exist.
So, I removed this code.
There is no problem so far for me.
Offline
The problem's cause is that "lvm vgscan" isn't evaluated , because of /etc/lvm directory doesn't exist.
So, I removed this code.There is no problem so far for me.
Don't you have /etc/lvm?
# pacman -Qo /etc/lvm/lvm.conf
/etc/lvm/lvm.conf is owned by lvm2 2.02.97-1
Offline
The problem may be that the / filesystem, which is on LVM isn't up yet so /etc/lvm can't be found. I'll try takuman's solution next boot.
▁▂▃▄▅▆▇█▉▊▋▌▍▎▏▏▎▍▌▋▊▉█▇▆▅▄▃▂▁
Offline
Don't you have /etc/lvm?
Yes I have.
1. /etc/lvm Doesn't exist at first.
2. When Init script run "vgscan" for the first time, then /etc/lvm directory appear.
You can verify it as below.
$ cp /boot/initramfs-linux.img .
# you need to install pax packages.
# you can decompress initramfs filesystem by running pax command.
$ pax -rzf initramfs-linux.img
$ emacs hooks/lvm2
...
msg "Activating logical volumes..."
# add this line
launch_interactive_shell
[ -d /etc/lvm ] && lvm vgscan
# Then compress and generate initramfs
$ find ./ | cpio -o -H newc | gzip -c > /boot/initramfs-linux.img
$ reboot
# drop emergency shell.
$ ls /etc/lvm
# Oops /etc/lvm doesn't exist!
$ ls /etc/lvm
/etc/lvm: No such file or directory
$ /bin/lvm vgscan
# /etc/lvm appeared by executing "vgscan" command.
$ ls /etc/lvm
/etc/lvm
# Then, you can access LVM filesystem.
$ ls /dev/VolGroup/root
$ exit
Last edited by takuman (2012-09-29 16:44:03)
Offline
How about copying /etc/lvm/* to the ramdisk? Would this work?
Insert Witty Message Here
Offline
Sorry for not replying, but with takuman's patch I get a 3 "error: file not found" messages after grub finishes, then it asks me to press any key to continue and continues to boot fine after that. I'll go back to lvmwait later.
▁▂▃▄▅▆▇█▉▊▋▌▍▎▏▏▎▍▌▋▊▉█▇▆▅▄▃▂▁
Offline
@takuman: works for me, thanks.
Offline
Hello.
I found the solution at this problem.
This is patch.
--- lvm2.before 2012-09-28 21:19:54.684205232 +0900 +++ lvm2.after 2012-09-28 21:20:21.024061354 +0900 @@ -12,7 +12,7 @@ done msg "Activating logical volumes..." - [ -d /etc/lvm ] && lvm vgscan + lvm vgscan if [ -n "$quiet" ]; then lvm vgchange --sysinit -a y >/dev/null
You can fix this problem applying this patch as below.
# patch /usr/lib/initcpio/hooks/lvm2 < lvm2.patch # mkinitcpio -p linux
The problem's cause is that "lvm vgscan" isn't evaluated , because of /etc/lvm directory doesn't exist.
So, I removed this code.There is no problem so far for me.
This patch also works for me. Now the lvmwait workaround is no longer needed, as my lvm logical volumes are detected right away on boot.
Offline
Hello.
I found the solution at this problem.
This is patch....
Thanks! It worked for me too! I'm using Manjaro.
Offline
Hello.
I found the solution at this problem.
This is patch.
--- lvm2.before 2012-09-28 21:19:54.684205232 +0900 +++ lvm2.after 2012-09-28 21:20:21.024061354 +0900 @@ -12,7 +12,7 @@ done msg "Activating logical volumes..." - [ -d /etc/lvm ] && lvm vgscan + lvm vgscan if [ -n "$quiet" ]; then lvm vgchange --sysinit -a y >/dev/null
You can fix this problem applying this patch as below.
# patch /usr/lib/initcpio/hooks/lvm2 < lvm2.patch # mkinitcpio -p linux
The problem's cause is that "lvm vgscan" isn't evaluated , because of /etc/lvm directory doesn't exist.
So, I removed this code.There is no problem so far for me.
Doesn't it have to be fixed in the lvm2 package? Or is it just another workaround?
Edit: This answers my questions https://bugs.archlinux.org/task/30966#comment100158
Last edited by ricardofunke (2012-11-06 23:42:23)
Offline
It seems to be working without any changes in kernel 3.6.6.
Offline
yes, it now works here without the "lvmwait" parameter, too.
Offline