Re: LVM and initrd

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

 



On Mon, 29 Nov 2004, toby wrote:

> 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
> > 

Thanks Marraskuuta,  I know I found that once last night, but couldn't 
again.  1 a.m. is never the zenith of my cognitive skills.

 
> 
> 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
> 

Sound reasonable. I'll take a look.


> 
> 
> 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

Aah, this makes sense.  LVM comes with a lvcreate_initrd which spewed 
forth with many errors.  That certainly didn't seem like the right answer.



> 
> I'm working off enigma here, so don't take my examples literally.
> 
> 
> This info is on the lvm list at sistina.com.

Doh!  I did say something about 1am not being prime thinking time, right?

Much appreciated.



-- 
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