RHEL5.1 and lvm

Victor Sira victor_sira at yahoo.com
Wed Nov 28 07:17:53 UTC 2007


----- Original Message ----
> From: Rainer Duffner <rainer at ultra-secure.de>
> To: Discussion list about Kickstart <kickstart-list at redhat.com>
> Sent: Friday, November 23, 2007 8:11:39 AM
> Subject: Re: RHEL5.1 and lvm
> 
> Am Fr, 23.11.2007, 12:02, schrieb Jan Wildeboer:
> > On Fri, 2007-11-23 at 12:06 +0100, Rainer Duffner wrote:
> >
> >> ...and to great hilarity, system-config-kickstart doesn't do LVMs...
> >
> > Why don't you simply do a manual install and use the autogenerated
> > kickstart in /root (anacondaks.cfg) as a template?
> >
> 
> Yeah, I did that.
> 
> Guess which of these:
> 
> 
> partition /boot --fstype=ext3 --size=200
> partition swap --fstype=swap --size=4096
> clearpart --all --initlabel --drives=sda
> partition pv.03  --size=2048 --grow
> volgroup vgMain pv.03 --pesize=32768
> logvol / --vgname=vgMain --size=7000 --name=root
> logvol /var --vgname=vgMain --size=2048 --name=var
> logvol /var/log --vgname=vgMain --size=4096 --name=varlog
> logvol /data --vgname=vgMain --size=4096 --name=data --grow
> 
> ***
> 
> clearpart --all --drives=sda
> part /boot --fstype ext3 --size=100 --ondisk=sda
> part pv.2 --size=0 --grow --ondisk=sda
> volgroup VolGroup00 --pesize=32768 pv.2
> logvol swap --fstype swap --name=LogVol01
> --vgname=VolGroup00
> 
 --size=512
> --grow --maxsize=1024
> logvol / --fstype ext3 --name=LogVol00 --vgname=VolGroup00
> --size=1024
> 
 --grow
> 
> ***
> 
> clearpart --all --initlabel --drives=sda
> 
> partition /boot --fstype ext3 --size=200  --ondisk=sda
> partition swap --fstype swap --size=4096  --ondisk=sda
> 
> partition pv.03  --size=2048 --grow
> volgroup vgMain --pesize=32768  pv.03
> logvol / --fstype ext3 --name=root --vgname=vgMain --size=7000
> logvol /var --fstype ext3 --name=var --vgname=vgMain --size=2048
> logvol /var/log --fstype ext3 --name=varlog --vgname=vgMain --size=4096
> logvol /data --fstype ext3 --name=data --vgname=vgMain
> --size=4096
> 
 --grow
> 
> 
> ...actually works?
> 
> ;-)
> I just don't know why.
> 

I had a somewhat similar situation today as well. My partition layout would work for RHEL 4u5 but when I tried on 5.1 it failed. What seems to have fixed my problem was moving the swap partition out of the vg group I was using and setup a regular linux partition for it. I wonder if that's what did it for you as well, although of course that would explain why.

--Victor




      ____________________________________________________________________________________
Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs




More information about the Kickstart-list mailing list