[CentOS] Three Identical systems - short cut to setting up the drives?

William L. Maltby CentOS4Bill at triad.rr.com
Sun Jul 6 10:36:17 UTC 2008


On Sat, 2008-07-05 at 23:58 -0400, Robert Moskowitz wrote:
> William L. Maltby wrote:
> > On Fri, 2008-07-04 at 17:38 -0400, Robert Moskowitz wrote:
> >   
> >> <snip>
> >>     
> >
> >   
> >> Now actually, I would have perfered renaming the LVM partition and its 
> >> internal ext3 partitions.  I even had a naming convention laid out if I 
> >> had do this via Install instead.
> >>     
> >
> > If it's a boot drive, remember to rebuild your initrd and modify the
> > init file to ignore lvm lock failures with the new VG name. Otherwise
> > you'll be fighting some more battles.
> >   
> ARGH!!!!
> 
> Yes, I remember getting burned by this once.
> 
> And I don't have any notes of what I did to do all this.  :(

Man gzip and cpio in case I misremember.

In a work directory:

   gzip -dc <initrd name> | cpio -idmc

Down in the resulting directory, there is an init file.

Locate the ignorelockingfailure and change the VG name there.

Still in the top level working directory (<the created initrd dir/..>)

   find <initdirname> | cpio -oac | gzip --best ><new initrd name>

Move it to the boot dir, change grub.conf appropriately. More perilous,
but possible: make it the same name (pls save the original somewhere)
and no grub name change needed.

> ><snip>

HTH
-- 
Bill




More information about the CentOS mailing list