Re: LVM and initrd

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

 



Markku Kolkka wrote:
> 
> Viestissä Perjantai 29. Marraskuuta 2002 11:12, Keith Morse kirjoitti:
> > I'm having a dickens of a time trying to figure
> > out where LVM gets initialized at in the startup scripts.
> 
> /etc/rc.d/rc.sysinit:
> 
> # LVM initialization
> if [ -e /proc/lvm -a -x /sbin/vgchange -a -f /etc/lvmtab ]; then
>         action $"Setting up Logical Volume Management:" /sbin/vgscan && \
> /sbin/vgchange -a y
> fi
> 


It's recommended you don't run vgscan at boot time - it wipes out your
configuration that's stored in files in /etc & replaces then with what
it find on the LVM disks. Which is ok if everything else is ok too. But
if your LVM system has a problem & you reboot, you've just dug yourself
a bigger hole by destroying the very data you need to rebuild/recover
the LVM. Take it out of /etc/rc.sysinit ( if psyche still has it in
there ) and have it just try to activate LVM to its last state:


        action $"Setting up Logical Volume Management:"/sbin/vgchange -a
y



But I don't even think that's the orginal problem. You probably need to
recreate your initrd image with the LVM module included:

mkinitrd  /boot/initrd-2.4.18-17.7.x.img 2.4.18-17.7.x --with=lvm-mod


I'm working off enigma here, so don't take my examples literally.


This info is on the lvm list at sistina.com.


-tkb



-- 
Psyche-list mailing list
Psyche-list@redhat.com
https://listman.redhat.com/mailman/listinfo/psyche-list

[Index of Archives]     [Fedora General Discussion]     [Red Hat General Discussion]     [Centos]     [Kernel]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat 9]     [Gimp]     [Yosemite News]

  Powered by Linux