Gentoo Archives: gentoo-user

From: Neil Bothwick <neil@××××××××××.uk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] "lvm failed to start"
Date: Thu, 05 Apr 2012 21:44:29
In Reply to: Re: [gentoo-user] "lvm failed to start" by Dan Johansson
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.


File name MIME type
signature.asc application/pgp-signature


Subject Author
Re: [gentoo-user] "lvm failed to start" Carlos Sura <carlos.sura1@××××××××××.com>