LMV2 boot from another Volume Group?
Tony Nelson
tonynelson at georgeanelson.com
Mon Jul 27 17:46:10 UTC 2009
On 09-07-27 13:08:33, Aldo Foot wrote:
> On Sun, Jul 26, 2009 at 8:40 PM, Tony
> Nelson<tonynelson at georgeanelson.com> wrote:
> > I have two hard drives I want to boot from, each with its own LVM2
> > Volume Group. I can boot from the one on the same drive as Grub,
> > but not from the other one. Apparantly, only Logical Volumes from
> > the boot drive's Volume Group are detected before / is mounted
> > (something about "activation", perhaps?). Googling only shows how
> > to detect Volume Groups and activate Logical Volumes after / is
> > mounted. I can't find any kernel LVM parameters that would affect
> > this (and I'd need the LVM stuff built-in to the kernel, not as a
> > module).
> >
> > Can Linux use a Volume Group that isn't on Grub's boot volume?
> >
> > Must I add a boot partition on the second disk and chainload to it?
>
> ____
>
> Are you saying that you have /boot in a VG and you can boot from it?
No.
> Not sure what you mean by "activate". The LVs are treated like any
> other partition with its filesystem that it's checked at boot time.
> There is no "switch" o turn LVs on and off, except for the entry in /
> etc/fstab that looks for a device to check and mount according to
> what you specify.
This is wrong. In order to use an LVM Logicial Volume, first a
`vgscan` may be needed to make the Volume Groups known, and then the
desired Logical Volumes must be Activated with `vgchange -ay`. Only
Available Logical Volumes can be mounted.
--
____________________________________________________________________
TonyN.:' <mailto:tonynelson at georgeanelson.com>
' <http://www.georgeanelson.com/>
More information about the fedora-list
mailing list