All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Linda A. Walsh" <lvm@tlinx.org>
To: LVM general discussion and development <linux-lvm@redhat.com>
Subject: Re: [linux-lvm] boot volume in activated containing PV does not activate
Date: Mon, 07 Nov 2016 08:58:08 -0800	[thread overview]
Message-ID: <5820B2A0.4090203@tlinx.org> (raw)
In-Reply-To: <af56dc3b8b8dee6b36edba635380a517@xenhideout.nl>

Xen wrote:
> Now at boot (prior to running of systemd) I activate both 
> coll/msata-lv and msata/root.
---
    Systemd requires that it be PID 1 (the first process to run
on your system).  I'm told that it won't run unless that is true.  So
how can you do anything before systemd has been run?
>
> This works fine when both mirrors are present.
>
> As a test I removed the primary (SSD) mirror of the root volume (and 
> the boot volume). Now the system still boots (off of another disk 
> which has grub on it, but only the grub core and boot image, nothing 
> else, so it still references my VG) and the root volume still gets 
> activated but the boot volume doesn't get activated anymore.
>
> What can cause this? It ought to get activated by udev rules.
>
> You remember I patched the udev file to ensure a PV directly on disk 
> always gets activated but this is not that disk.
>
> Could it be that the msata/boot volume doesn't get activated because 
> the PV had already been activated in the initrd but only as an LV and 
> not its volumes?
    Sounds very similar to opensuse's requirement that /usr be on
the same partition as root -- if not, then you have to boot using
a ramdisk, which mounts /usr, and then does the real system boot, so
of course, booting directly from disk (which is what my machine does)
is not supported.  I also mount "/usr" as a first step in my boot
process, but that disallows a systemd boot, which some define as
systemd being pid 1.

    I'm told systemd has changed the meaning of 'fstab' to not
be a table of disks to mount, but to be a table of disks to keep mounted
(even if umount'd by an administrator).  Since udev's functionality was
incorporated into systemd, might it not be doing something similar --
trying to maintain the boot-state in effect before you added the mirror?

  reply	other threads:[~2016-11-07 17:41 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-06  0:49 [linux-lvm] boot volume in activated containing PV does not activate Xen
2016-11-07 16:58 ` Linda A. Walsh [this message]
2016-11-07 18:59   ` Xen

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=5820B2A0.4090203@tlinx.org \
    --to=lvm@tlinx.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.