RE: LVM

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On Thu, 2003-12-04 at 10:20, Baker, Brendon wrote:

The

	mkinitrd --with=lvm-mod

is neither necessary nor sufficient.  You need to get the initrd not
just to load the lvm modules, but actually to do the LVM vgscan to set
up the volumes at boot time; and if it does that, it will include the
lvm modules anyway.

So, you need to tell mkinitrd that the root filesystem itself is on
LVM.  You do that via /etc/fstab.  If you are running on a non-LVM root
filesystem but are trying to make a separate LVM-aware copy on a
different volume, then mkinitrd lets you do this.  Just change the
/mnt/foo/etc/fstab on the copied root filesystem that's on LVM, then
direct mkinitrd to look at that fstab by using

        mkinitrd -v --fstab=/mnt/foo/etc/fstab
        
The "-v" should let you see exactly which modules it ends up loading for
the initrd.  As long as the provided fstab points / to an existing LVM
volume, then mkinitrd should load all of the appropriate modules and
create an init script which includes the necessary LVM vgscan.

Cheers,
 Stephen




[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux