Re: Three Identical systems - short cut to setting up the drives?

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



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

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux