You are not logged in.

#26 2012-09-05 12:28:02

blueicefield
Member
Registered: 2011-08-23
Posts: 4

Re: linux 3.5 - lvm boot troubles

falconindy wrote:

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

#27 2012-09-05 18:25:11

tobias_
Member
Registered: 2012-09-01
Posts: 25

Re: linux 3.5 - lvm boot troubles

Oh, if there are not enough complains. Here is one more smile

I'm glad I found this thread a few days ago to add lvmwait!

Offline

#28 2012-09-06 04:50:06

unixbhaskar
Member
From: India
Registered: 2009-11-01
Posts: 27
Website

Re: linux 3.5 - lvm boot troubles

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. smile


Musing with GNU/Linux!!

Offline

#29 2012-09-10 14:56:09

Xi0N
Member
From: Bilbao - Spain
Registered: 2007-11-29
Posts: 832
Website

Re: linux 3.5 - lvm boot troubles

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

#30 2012-09-11 00:58:31

quantumphaze
Member
From: Melbourne, Australia
Registered: 2008-11-14
Posts: 175

Re: linux 3.5 - lvm boot troubles

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

#31 2012-09-11 15:52:54

bioe007
Member
Registered: 2007-11-12
Posts: 56

Re: linux 3.5 - lvm boot troubles

same problem here.

Offline

#32 2012-09-16 01:58:47

jmesmon
Member
Registered: 2012-09-16
Posts: 1

Re: linux 3.5 - lvm boot troubles

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

#33 2012-09-16 03:04:38

dram
Member
Registered: 2012-09-15
Posts: 1

Re: linux 3.5 - lvm boot troubles

Same here. Add a duplicate `lvm vgscan` can also walkaround this problem.

Offline

#34 2012-09-28 03:43:08

takuman
Member
Registered: 2012-09-28
Posts: 2

Re: linux 3.5 - lvm boot troubles

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

#35 2012-09-28 03:49:04

cemsbr
Member
From: Brazil
Registered: 2008-05-03
Posts: 111
Website

Re: linux 3.5 - lvm boot troubles

takuman wrote:

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

#36 2012-09-28 03:53:22

quantumphaze
Member
From: Melbourne, Australia
Registered: 2008-11-14
Posts: 175

Re: linux 3.5 - lvm boot troubles

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

#37 2012-09-29 16:41:12

takuman
Member
Registered: 2012-09-28
Posts: 2

Re: linux 3.5 - lvm boot troubles

cemsbr wrote:

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

#38 2012-09-29 23:30:18

TheBeast
Member
Registered: 2005-11-29
Posts: 6

Re: linux 3.5 - lvm boot troubles

How about copying /etc/lvm/* to the ramdisk? Would this work?


Insert Witty Message Here

Offline

#39 2012-10-07 08:39:28

quantumphaze
Member
From: Melbourne, Australia
Registered: 2008-11-14
Posts: 175

Re: linux 3.5 - lvm boot troubles

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

#40 2012-10-09 21:22:50

tobias_
Member
Registered: 2012-09-01
Posts: 25

Re: linux 3.5 - lvm boot troubles

@takuman: works for me, thanks.

Offline

#41 2012-10-14 01:19:58

Dominor
Member
Registered: 2012-04-17
Posts: 3

Re: linux 3.5 - lvm boot troubles

takuman wrote:

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

#42 2012-10-20 04:17:12

Lord_Lizard
Member
From: NJ, USA
Registered: 2012-05-28
Posts: 4

Re: linux 3.5 - lvm boot troubles

takuman wrote:

Hello.

I found the solution at this problem.

This is patch....

Thanks! It worked for me too! I'm using Manjaro.

Offline

#43 2012-11-06 23:29:50

ricardofunke
Member
Registered: 2009-11-03
Posts: 46

Re: linux 3.5 - lvm boot troubles

takuman wrote:

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

#44 2012-11-08 22:41:31

cemsbr
Member
From: Brazil
Registered: 2008-05-03
Posts: 111
Website

Re: linux 3.5 - lvm boot troubles

It seems to be working without any changes in kernel 3.6.6.

Offline

#45 2012-11-13 21:53:04

6arms1leg
Member
Registered: 2011-04-19
Posts: 22

Re: linux 3.5 - lvm boot troubles

yes, it now works here without the "lvmwait" parameter, too.

Offline

Board footer

Powered by FluxBB