From: Stuart Gathman <stuart@gathman.org>
To: linux-lvm@redhat.com
Subject: Re: [linux-lvm] LVM VG is not activated during system boot
Date: Thu, 19 Mar 2015 15:06:21 -0400 [thread overview]
Message-ID: <550B1E2D.2030206@gathman.org> (raw)
In-Reply-To: <CAE8gLhmWKur6vWEzv=NF-psPyMxHrS3S4Tgr82HD168J4c59=w@mail.gmail.com>
On 03/19/2015 02:34 PM, MegaBrutal wrote:
> Now I think I figured out what's going on. It seems to be
> Debian/Ubuntu specific, but I post here, maybe Debian/Ubuntu devs are
> here and see this.
>
> Bug report:
> https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1396213
>
> What actually makes the VG activation so long is that I have a
> snapshot. Activating the snapshot takes very long, and bringing up the
> entire VG takes about 5 minutes. This wouldn't be such a big problem,
> as I could just patiently wait for the activation (with rootdelay).
> But it seems something (maybe some kind of watchdog) kills vgchange
> before it could finish bringing up all VGs. I had the fortune to boot
> a developmental Vivid, and I've seen some 'watershed' messages stating
> that 'vgchange' was killed because it was taking "too long". If we'd
> let 'vgchange' to finish properly, I had the 2nd VG activated
> properly, which contains my root FS.
>
> It's a server. If it has a long boot time, so be it, it doesn't get
> rebooted often anyway during normal circumstances. But it is required
> to boot up without user interaction, e.g., when I issue a reboot
> remotely. The main problem is that currently, user interaction is
> necessary to pass initrd (as the root VG needs to be manually
> activated), which means, I can only reboot the server when I'm
> physically near.
I've had the same problem on Fedora - so it is not ubuntu specific. On
Fedora, systemd has a timeout for VG activation. That can be
increased. However, you can flag the snapshot to *not* be activated
automatically (Skip activation: -k) at volume group activation. That
allows the system to boot (remote reboot), and then you can manually
activate the big snapshot (or automatically in a later script) - waiting
the requisite 5 or 10 minutes.
next prev parent reply other threads:[~2015-03-19 19:06 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-24 22:27 [linux-lvm] LVM VG is not activated during system boot MegaBrutal
2014-11-25 8:01 ` Peter Rajnoha
2014-11-25 14:19 ` MegaBrutal
2014-11-25 14:33 ` Peter Rajnoha
2014-11-25 15:54 ` MegaBrutal
2014-11-25 16:15 ` Daniel Savard
2014-11-25 17:00 ` MegaBrutal
2015-03-19 18:34 ` MegaBrutal
2015-03-19 19:06 ` Stuart Gathman [this message]
2015-03-20 3:56 ` MegaBrutal
2015-03-20 8:30 ` Zdenek Kabelac
2015-03-20 14:13 ` MegaBrutal
2015-03-20 16:52 ` MegaBrutal
2015-03-20 19:24 ` Zdenek Kabelac
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=550B1E2D.2030206@gathman.org \
--to=stuart@gathman.org \
--cc=linux-lvm@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).