RHEL5.1 and lvm

Rainer Duffner rainer at ultra-secure.de
Fri Nov 23 10:06:53 UTC 2007


Am Do, 22.11.2007, 17:25, schrieb Jan Wildeboer:
> On Thu, 2007-11-22 at 17:30 +0100, Rainer Duffner wrote:
>> but my co-worker tells me that the syntax he used with RHEL4 has
>> stopped working with RHEL5.
>
> This is directly from one one of my (working) RHEL5 kickstarts:
>
> partition /boot --fstype=ext3 --size=200
> partition pv.01 --size=1000 --grow
> partition swap --size=1000   --maxsize=2000
>
> volgroup myvg pv.01
>
> logvol / --vgname=myvg --name=rootvol --size=1000 --grow

I don't know what I'm doing wrong.

partition /boot --fstype=ext3 --size=200
partition swap --fstype=swap --size=4096

partition pv.01  --size=2048 --grow
volgroup vgMain pv.01 --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

Disk is a virtual 36 GB disk, newly created.

Rest of the ks-file is unchanged, but I deleted the %pre-section.

Same error again.
/dev/mapper is empty, apart from the "control" file.
If I vgscan && vgchange -ay, the devices show up.
Can you take my ks-file and try it at your site?
I'm using vmware, because it boots faster ;-)


cheers,
Rainer




More information about the Kickstart-list mailing list