lvm, creation of physical volumes
Caetano, Greg
Greg.Caetano at hp.com
Wed Jun 13 15:56:17 UTC 2007
Here is an example of anaconda creating the LV as reported in
anaconda-ks.cfg after an interactive installation:
# The following is the partition information you requested
# Note that any partitions you deleted are not expressed
# here so unless you clear all partitions first, this is
# not guaranteed to work
#clearpart --all --drives=cciss/c0d0,cciss/c0d1
#part /boot --fstype ext3 --size=100 --ondisk=cciss/c0d0
#part pv.4 --size=0 --grow --ondisk=cciss/c0d1
#part pv.3 --size=0 --grow --ondisk=cciss/c0d0
#volgroup VolGroup01 --pesize=32768 pv.4 pv.3
#logvol swap --fstype swap --name=LogVol01 --vgname=VolGroup01
--size=1000 --grow --maxsize=1984
#logvol / --fstype ext3 --name=LogVol00 --vgname=VolGroup01 --size=1024
--grow
Greg Caetano
HP TSG Linux Solutions Alliances Engineering
Chicago, IL
greg.caetano at hp.com
Red Hat Certified Engineer
RHCE#803004972711193
-----Original Message-----
From: kickstart-list-bounces at redhat.com
[mailto:kickstart-list-bounces at redhat.com] On Behalf Of Jan Michael
Sent: Wednesday, June 13, 2007 10:15 AM
To: kickstart-list at redhat.com
Subject: lvm, creation of physical volumes
Hello kickstart mailing list,
my questions regards the creation of physical volumes via lvm.
I specified the following disk layout in my kickstart file:
26 clearpart --all --drives cciss/c0d0 --initlabel
27
28 part /boot --size 100 --ondisk
cciss/c0d0 --fstype ext3
29 part / --size 7168 --ondisk
cciss/c0d0 --fstype ext3
30 part swap --size 2048 --ondisk
cciss/c0d0 --fstype swap
31 part pv.00 --size 1024 --ondisk
cciss/c0d0 --fstype ext3 --grow
This works well and will successfully create the following partition
table:
Disk /dev/cciss/c0d0: 73.3 GB, 73372631040 bytes
255 heads, 63 sectors/track, 8920 cylinders Units = cylinders of 16065 *
512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/cciss/c0d0p1 * 1 13 104391 83 Linux
/dev/cciss/c0d0p2 14 927 7341705 83 Linux
/dev/cciss/c0d0p3 928 1188 2096482+ 82 Linux
swap
/dev/cciss/c0d0p4 1189 8920 62107290 5 Extended
/dev/cciss/c0d0p5 1189 8920 62107258+ 8e Linux
LVM
So far so good. But then there is no physical volume created. The output
of 'pvs' and 'lvmdiskscan' shows me nothing about my lv.
Therefore it is necessary to know when anaconda creates the physical
volume (pv), like I can do with 'pvcreate'. Will it be created with the
above shown line in the kickstart file and something else is wrong or
does the pv will not created until I issue something like that:
volgroup VolGroup00 pv.00
Thank you for your help. Cheers,
Jan
More information about the Kickstart-list
mailing list