public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] "lvm failed to start"
@ 2012-04-04  1:09 walt
  2012-04-04  2:51 ` Dale
                   ` (3 more replies)
  0 siblings, 4 replies; 13+ messages in thread
From: walt @ 2012-04-04  1:09 UTC (permalink / raw
  To: gentoo-user

This is an ~amd64 machine, up to date as of today.  The strange thing
is that lvm did *not* fail to start -- it's working perfectly.

Now, being an Incorrigible Old Fart(TM) I'm still using openrc, and
who knows what evil lurks in that paleolithic package?  :p

Anyone else getting this (false) alarm during boot?




^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [gentoo-user] "lvm failed to start"
  2012-04-04  1:09 [gentoo-user] "lvm failed to start" walt
@ 2012-04-04  2:51 ` Dale
  2012-04-04  8:39 ` Neil Bothwick
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 13+ messages in thread
From: Dale @ 2012-04-04  2:51 UTC (permalink / raw
  To: gentoo-user

walt wrote:
> This is an ~amd64 machine, up to date as of today.  The strange thing
> is that lvm did *not* fail to start -- it's working perfectly.
> 
> Now, being an Incorrigible Old Fart(TM) I'm still using openrc, and
> who knows what evil lurks in that paleolithic package?  :p
> 
> Anyone else getting this (false) alarm during boot?
> 
> 

Well, for me its not a false alarm, sort of.  Mine fails to start and
then works later on or after I restart lvm, sort of iffy here.  This is
what mine looks like:

Setting up the Logical Volume Manager . . .
File-based locking initialisation failed
*Failed to setup the LVM       [!!]
* Error: lvm failed to start

After all that, it's downhill sort of.  Me, I get that with or without a
init thingy.  I'm on Gentoo kernel 3.2.11.  I'm using lvm2-2.02.95-r1.

From what I found, it does this because / is mounted ro.  It can't write
the locking file.  I thought those were in /var but . . .

Also, If I restart lvm after it boots, it starts fine and all the lvm
stuff shows up.  Maybe this one isn't just me.  o_O

Dale

:-)  :-)


-- 
I am only responsible for what I said ... Not for what you understood or
how you interpreted my words!

Miss the compile output?  Hint:
EMERGE_DEFAULT_OPTS="--quiet-build=n"



^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [gentoo-user] "lvm failed to start"
  2012-04-04  1:09 [gentoo-user] "lvm failed to start" walt
  2012-04-04  2:51 ` Dale
@ 2012-04-04  8:39 ` Neil Bothwick
  2012-04-04 10:22 ` covici
  2012-04-04 16:58 ` Dan Johansson
  3 siblings, 0 replies; 13+ messages in thread
From: Neil Bothwick @ 2012-04-04  8:39 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 912 bytes --]

On Tue, 03 Apr 2012 18:09:26 -0700, walt wrote:

> This is an ~amd64 machine, up to date as of today.  The strange thing
> is that lvm did *not* fail to start -- it's working perfectly.
> 
> Now, being an Incorrigible Old Fart(TM) I'm still using openrc, and
> who knows what evil lurks in that paleolithic package?  :p
> 
> Anyone else getting this (false) alarm during boot?

It is not really a false alarm, LVM does fail here but tries again later
on and succeeds. https://bugs.gentoo.org/show_bug.cgi?id=409921 covers it
and the workaround in comment 2 does it for me.

Basically, LVM is trying to write its lockfile to a readonly filesystem.
I'm going to try mounting /run on tmpfs in my initramfs as that is where
it is mounted now, but apparently too late for the first attempt at
starting LVM.


-- 
Neil Bothwick

"If Micro built cars, the worlds population would be in decline"

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [gentoo-user] "lvm failed to start"
  2012-04-04  1:09 [gentoo-user] "lvm failed to start" walt
  2012-04-04  2:51 ` Dale
  2012-04-04  8:39 ` Neil Bothwick
@ 2012-04-04 10:22 ` covici
  2012-04-04 16:58 ` Dan Johansson
  3 siblings, 0 replies; 13+ messages in thread
From: covici @ 2012-04-04 10:22 UTC (permalink / raw
  To: gentoo-user

walt <w41ter@gmail.com> wrote:

> This is an ~amd64 machine, up to date as of today.  The strange thing
> is that lvm did *not* fail to start -- it's working perfectly.
> 
> Now, being an Incorrigible Old Fart(TM) I'm still using openrc, and
> who knows what evil lurks in that paleolithic package?  :p
> 
> Anyone else getting this (false) alarm during boot?
> 
I get lvm failed to start because it says file based locking does not
work because the root file system is read only, but when it gets to
default runlevel it tries again and starts it OK.]

Weird.


-- 
Your life is like a penny.  You're going to lose it.  The question is:
How do
you spend it?

         John Covici
         covici@ccs.covici.com



^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [gentoo-user] "lvm failed to start"
  2012-04-04  1:09 [gentoo-user] "lvm failed to start" walt
                   ` (2 preceding siblings ...)
  2012-04-04 10:22 ` covici
@ 2012-04-04 16:58 ` Dan Johansson
  2012-04-04 23:36   ` Neil Bothwick
  3 siblings, 1 reply; 13+ messages in thread
From: Dan Johansson @ 2012-04-04 16:58 UTC (permalink / raw
  To: gentoo-user

On Tuesday 03 April 2012 18.09:26 walt wrote:
> This is an ~amd64 machine, up to date as of today.  The strange thing
> is that lvm did *not* fail to start -- it's working perfectly.
> 
> Now, being an Incorrigible Old Fart(TM) I'm still using openrc, and
> who knows what evil lurks in that paleolithic package?  :p
> 
> Anyone else getting this (false) alarm during boot?
I have a similar thing on my ~x86, but the difference is that I know why I get it.
I have successfully be able to create an initramfs that does a vgscan, vgchange -a y and mounts /usr (which is on LVM).
But now I (naturally) I get "LVM failed to start" (and of cause "failed to mount /usr) when openrc processes the init-scripts.
So, my question is really - should I remove lvm from the init-process and put noauto in /etc/fstab for /usr?
Even if it is on my playground box I still want to be able to boot it.
When these two "issues" are solved I'm going to let my system update udev.

-- 
Dan Johansson, <http://www.dmj.nu>
***************************************************
This message is printed on 100% recycled electrons!
***************************************************



^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [gentoo-user] "lvm failed to start"
  2012-04-04 16:58 ` Dan Johansson
@ 2012-04-04 23:36   ` Neil Bothwick
  2012-04-05 15:59     ` Dan Johansson
  0 siblings, 1 reply; 13+ messages in thread
From: Neil Bothwick @ 2012-04-04 23:36 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 534 bytes --]

On Wed, 04 Apr 2012 18:58:38 +0200, Dan Johansson wrote:

> I have a similar thing on my ~x86, but the difference is that I know
> why I get it. I have successfully be able to create an initramfs that
> does a vgscan, vgchange -a y and mounts /usr (which is on LVM). But now
> I (naturally) I get "LVM failed to start" (and of cause "failed to
> mount /usr) when openrc processes the init-scripts.

This is not down to your initramfs, see the previously linked bug.


-- 
Neil Bothwick

A closed mouth gathers no foot.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [gentoo-user] "lvm failed to start"
  2012-04-04 23:36   ` Neil Bothwick
@ 2012-04-05 15:59     ` Dan Johansson
  2012-04-05 21:42       ` Neil Bothwick
  0 siblings, 1 reply; 13+ messages in thread
From: Dan Johansson @ 2012-04-05 15:59 UTC (permalink / raw
  To: gentoo-user

ectrons!
***************************************************
On Thursday 05 April 2012 00.36:33 Neil Bothwick wrote:
> On Wed, 04 Apr 2012 18:58:38 +0200, Dan Johansson wrote:
> 
> > I have a similar thing on my ~x86, but the difference is that I know
> > why I get it. I have successfully be able to create an initramfs that
> > does a vgscan, vgchange -a y and mounts /usr (which is on LVM). But now
> > I (naturally) I get "LVM failed to start" (and of cause "failed to
> > mount /usr) when openrc processes the init-scripts.
> 
> This is not down to your initramfs, see the previously linked bug.

What do you mean by "This is not down to your initramfs"?
With the new "C:\" concept of udev /usr needs to be mounted before /sbin/init is run and as I am using LVM, LVM needs to be started before /sbin/init as well - or have I missed something here?

-- 
Dan Johansson, <http://www.dmj.nu>
***************************************************
This message is printed on 100% recycled el



^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [gentoo-user] "lvm failed to start"
  2012-04-05 15:59     ` Dan Johansson
@ 2012-04-05 21:42       ` Neil Bothwick
  2012-04-07  8:47         ` Carlos Sura
  0 siblings, 1 reply; 13+ messages in thread
From: Neil Bothwick @ 2012-04-05 21:42 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1402 bytes --]

On Thu, 05 Apr 2012 17:59:42 +0200, Dan Johansson wrote:

> > > I have a similar thing on my ~x86, but the difference is that I know
> > > why I get it. I have successfully be able to create an initramfs
> > > that does a vgscan, vgchange -a y and mounts /usr (which is on
> > > LVM). But now I (naturally) I get "LVM failed to start" (and of
> > > cause "failed to mount /usr) when openrc processes the
> > > init-scripts.  
> > 
> > This is not down to your initramfs, see the previously linked bug.  
> 
> What do you mean by "This is not down to your initramfs"?
> With the new "C:\" concept of udev /usr needs to be mounted
> before /sbin/init is run and as I am using LVM, LVM needs to be started
> before /sbin/init as well - or have I missed something here?

You are getting this error from openrc, which means the initramfs
has already done its stuff and passed control to init on the real root
partition. At this point /usr is already mounted, it is the openrc
startup of LVM that is failing, because it is trying to write a lockfile
to a read-only filesystem, which would be the case even if you were not
using an initramfs.

The problem is that it is trying to write to /var/lock, which is on / at
this point, rather than /run/lock, which is on a writeable tmpfs.


-- 
Neil Bothwick

Bus: (n.) a connector you plug money into, something like a slot machine.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [gentoo-user] "lvm failed to start"
  2012-04-05 21:42       ` Neil Bothwick
@ 2012-04-07  8:47         ` Carlos Sura
  2012-04-07 10:38           ` Neil Bothwick
  0 siblings, 1 reply; 13+ messages in thread
From: Carlos Sura @ 2012-04-07  8:47 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1657 bytes --]

On 5 April 2012 15:42, Neil Bothwick <neil@digimed.co.uk> wrote:

> On Thu, 05 Apr 2012 17:59:42 +0200, Dan Johansson wrote:
>
> > > > I have a similar thing on my ~x86, but the difference is that I know
> > > > why I get it. I have successfully be able to create an initramfs
> > > > that does a vgscan, vgchange -a y and mounts /usr (which is on
> > > > LVM). But now I (naturally) I get "LVM failed to start" (and of
> > > > cause "failed to mount /usr) when openrc processes the
> > > > init-scripts.
> > >
> > > This is not down to your initramfs, see the previously linked bug.
> >
> > What do you mean by "This is not down to your initramfs"?
> > With the new "C:\" concept of udev /usr needs to be mounted
> > before /sbin/init is run and as I am using LVM, LVM needs to be started
> > before /sbin/init as well - or have I missed something here?
>
> You are getting this error from openrc, which means the initramfs
> has already done its stuff and passed control to init on the real root
> partition. At this point /usr is already mounted, it is the openrc
> startup of LVM that is failing, because it is trying to write a lockfile
> to a read-only filesystem, which would be the case even if you were not
> using an initramfs.
>
> The problem is that it is trying to write to /var/lock, which is on / at
> this point, rather than /run/lock, which is on a writeable tmpfs.
>
>
> --
> Neil Bothwick
>
> Bus: (n.) a connector you plug money into, something like a slot machine.
>


I got this error, and saw a bugfile on Gentoo, just downgrade to your
previous working version and you will get it working again.
-- 
Carlos Sura.-
www.carlossura.com

[-- Attachment #2: Type: text/html, Size: 2270 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [gentoo-user] "lvm failed to start"
  2012-04-07  8:47         ` Carlos Sura
@ 2012-04-07 10:38           ` Neil Bothwick
  2012-04-07 15:28             ` Alan McKinnon
  0 siblings, 1 reply; 13+ messages in thread
From: Neil Bothwick @ 2012-04-07 10:38 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 655 bytes --]

On Sat, 7 Apr 2012 02:47:41 -0600, Carlos Sura wrote:

> > The problem is that it is trying to write to /var/lock, which is on /
> > at this point, rather than /run/lock, which is on a writeable tmpfs.

> I got this error, and saw a bugfile on Gentoo, just downgrade to your
> previous working version and you will get it working again.

That bug report also showed the correct solution. There's no need to
downgrade, just change the locking_dir location from /var/lock
to /run/lock. Not only is this simpler and faster, it means another
update can't cause the same problem.


-- 
Neil Bothwick

When there's a will, I want to be in it.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [gentoo-user] "lvm failed to start"
  2012-04-07 10:38           ` Neil Bothwick
@ 2012-04-07 15:28             ` Alan McKinnon
  2012-04-07 16:10               ` Mick
  2012-04-07 17:06               ` Neil Bothwick
  0 siblings, 2 replies; 13+ messages in thread
From: Alan McKinnon @ 2012-04-07 15:28 UTC (permalink / raw
  To: gentoo-user

On Sat, 7 Apr 2012 11:38:40 +0100
Neil Bothwick <neil@digimed.co.uk> wrote:

> On Sat, 7 Apr 2012 02:47:41 -0600, Carlos Sura wrote:
> 
> > > The problem is that it is trying to write to /var/lock, which is
> > > on / at this point, rather than /run/lock, which is on a
> > > writeable tmpfs.
> 
> > I got this error, and saw a bugfile on Gentoo, just downgrade to
> > your previous working version and you will get it working again.
> 
> That bug report also showed the correct solution. There's no need to
> downgrade, just change the locking_dir location from /var/lock
> to /run/lock. Not only is this simpler and faster, it means another
> update can't cause the same problem.
> 
> 

So this makes the how many'eth time you've posted this exact same
information to the list this week?

-- 
Alan McKinnnon
alan.mckinnon@gmail.com




^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [gentoo-user] "lvm failed to start"
  2012-04-07 15:28             ` Alan McKinnon
@ 2012-04-07 16:10               ` Mick
  2012-04-07 17:06               ` Neil Bothwick
  1 sibling, 0 replies; 13+ messages in thread
From: Mick @ 2012-04-07 16:10 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: Text/Plain, Size: 1030 bytes --]

On Saturday 07 Apr 2012 16:28:39 Alan McKinnon wrote:
> On Sat, 7 Apr 2012 11:38:40 +0100
> 
> Neil Bothwick <neil@digimed.co.uk> wrote:
> > On Sat, 7 Apr 2012 02:47:41 -0600, Carlos Sura wrote:
> > > > The problem is that it is trying to write to /var/lock, which is
> > > > on / at this point, rather than /run/lock, which is on a
> > > > writeable tmpfs.
> > > 
> > > I got this error, and saw a bugfile on Gentoo, just downgrade to
> > > your previous working version and you will get it working again.
> > 
> > That bug report also showed the correct solution. There's no need to
> > downgrade, just change the locking_dir location from /var/lock
> > to /run/lock. Not only is this simpler and faster, it means another
> > update can't cause the same problem.
> 
> So this makes the how many'eth time you've posted this exact same
> information to the list this week?

I think Neil makes generous allowances for those of us with volatile memory 
and needs of frequent reboots!  ;-)
-- 
Regards,
Mick

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [gentoo-user] "lvm failed to start"
  2012-04-07 15:28             ` Alan McKinnon
  2012-04-07 16:10               ` Mick
@ 2012-04-07 17:06               ` Neil Bothwick
  1 sibling, 0 replies; 13+ messages in thread
From: Neil Bothwick @ 2012-04-07 17:06 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 924 bytes --]

On Sat, 7 Apr 2012 17:28:39 +0200, Alan McKinnon wrote:

> > That bug report also showed the correct solution. There's no need to
> > downgrade, just change the locking_dir location from /var/lock
> > to /run/lock. Not only is this simpler and faster, it means another
> > update can't cause the same problem.

> So this makes the how many'eth time you've posted this exact same
> information to the list this week?

About the third, hopefully it won't be needed again :) After a post that
quoted the correct bug report but then the wrong "solution" I couldn't
help myself.

Ironically, I rebooted a headless server yesterday, one on which I'd
updated LVM about a week ago and not changed the config. The box has a
separate /usr on LVM and no initramfs (still on old udev) so nothing
worked after a reboot, especially SSH :(


-- 
Neil Bothwick

How do you know when it's time to tune your bagpipes?

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2012-04-07 17:08 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-04  1:09 [gentoo-user] "lvm failed to start" walt
2012-04-04  2:51 ` Dale
2012-04-04  8:39 ` Neil Bothwick
2012-04-04 10:22 ` covici
2012-04-04 16:58 ` Dan Johansson
2012-04-04 23:36   ` Neil Bothwick
2012-04-05 15:59     ` Dan Johansson
2012-04-05 21:42       ` Neil Bothwick
2012-04-07  8:47         ` Carlos Sura
2012-04-07 10:38           ` Neil Bothwick
2012-04-07 15:28             ` Alan McKinnon
2012-04-07 16:10               ` Mick
2012-04-07 17:06               ` Neil Bothwick

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox