Thanks MAtthew for your answer but this is exactly what I'm triying to
avoid... :)
I would like to have the equivalent to :
pvcreate /dev/vdb
vgcreate test /dev/vdb
lvcreate -n lv_test -L 10G test
So at the end of the installation I would have a vg over no partition
(not the whole disk but over the disk device).
Thanks
--
Francisco Javier Lloreda
Red Hat Consultant
( RHCA , RHCDS , RHCVA ) #110-651-718
flloreda@xxxxxxxxxx
Mobile: 0034 600 48 39 73
c/ Jose Bardasano Baos, No. 9
Edificio Gorbea 3
Madrid, 28016 SPAIN
El 18/01/13 18:37, Conley, Matthew M CTR JXSNM, JSORD escribió:
Like this?
#Clean install, remove all exisiting partitions
clearpart --all --initlabel
#create partitions for boot and swap
part /boot --fstype ext3 --size=100 --ondisk=sda
#This is a cheat to allow the partition for the logical volume to grow and consume the rest of the disk
part pv.0 --size=1 --encrypted --passphrase=PASSPHRASE --grow --ondisk=sda
part pv.1 --size=1 --encrypted --passphrase=PASSPHRASE --grow --ondisk=sdb
#create volume group vg0
#then create logical volumes for root, home, and log
volgroup vg0 pv.0
logvol / --fstype=ext4 --name=lv_root --vgname=vg0 --size=10000
logvol swap --fstype=swap --name=lv_swap --vgname=vg0 --size=4096
logvol /home --fstype=ext4 --name=lv_home --vgname=vg0 --size=1000 --grow
logvol /var/log --fstype=ext4 --name=lv_log --vgname=vg0 --size=5000
volgroup vg1 pv.1
logvol /var/lib/mysql --fstype=ext4 --name=lv_lib --vgname=vg1 --size=85000
logvol /var/files --fstype=ext4 --name=lv_data --vgname=vg1 --size=20000 --grow
Regards
Matthew M. Conley Linux+, A+, Net+, LPIC1
Systems Engineer
Next Wave Systems
912.398.6704
-----Original Message-----
From: Francisco Javier Lloreda Sanchez [mailto:flloreda@xxxxxxxxxx]
Sent: Fri 1/18/2013 6:31 AM
To: kickstart-list@xxxxxxxxxx
Subject: Crete Volgroup from anaconda ks using the whole disk
Hi all,
Has someone managed to create a volume group from a kickstart that uses
the whole disk and not a partition ?
I tried to create the pv, vg and lv from a pre script and then use the
--useexisting flag for logvol and anaconda complains about the vg is not
created and I guess is because I didn't use the volgroup command in the
partitioning section.
If I use the volgroup tag with --useexisting in the partitioning section
I'm forced to use a list of partitions that is what I'm triying to
avoid....
So any suggestions?
Thanks
_______________________________________________
Kickstart-list mailing list
Kickstart-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/kickstart-list