lvm, creation of physical volumes
Steve Robson
srobson at cadence.com
Wed Jun 13 16:11:44 UTC 2007
> -----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.
Hi Jan,
As Greg Caetano showed, you need to define at least one logical
volume. Here's an excerpt from my ks.cfg file, which successfully sets
up LVM using three physical HDDs. You'll get the picture:
zerombr yes
clearpart --all
## Note: 255GB FS size limit in LVM
part /boot --fstype ext3 --size 100 --asprimary --ondisk=sda
part pv.00 --size 1 --grow --ondisk=sda
part pv.01 --size 1 --grow --ondisk=sdb
part pv.02 --size 1 --grow --ondisk=sdc
volgroup vg00 pv.00 pv.01 pv.02
logvol / --fstype ext3 --vgname=vg00 --size=9000 --name=lroot
logvol /tmp --fstype ext3 --vgname=vg00 --size=50000 --name=ltmp
logvol /vol0 --fstype ext3 --vgname=vg00 --size=100000 --name=lvol0
logvol /vol1 --fstype ext3 --vgname=vg00 --size=100000 --name=lvol1
logvol swap --vgname=vg00 --size=32768 --name=lswap
--
Regards,
Steve
IT Support - UNIX/Linux Cadence Design Systems
Bagshot Road
Bracknell BERKSHIRE
RG12 0PH UK
More information about the Kickstart-list
mailing list