lvm, creation of physical volumes

Jan Michael Jan.Michael at cern.ch
Wed Jun 13 15:15:11 UTC 2007


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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4028 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/kickstart-list/attachments/20070613/8df15829/attachment.p7s>


More information about the Kickstart-list mailing list