lvm, creation of physical volumes
Jan Michael
Jan.Michael at cern.ch
Wed Jun 13 16:41:21 UTC 2007
Hi Greg, hi Steve, hi list,
I'm sorry. It seems to be that I put concern in wrong words.
I don't want anaconda/kickstart to set up the whole lvm environment
for the system.
Anaconda should simply create the partition and initialize this
partition to make it ready for lvm usage.
The reason why it is not necessary to create a volume group is, that
this will be done by another component later in the installation
process.
I would like to know, if the part command takes care of the creation
of the partition and its initialization (i.e. with pvcreate) or if it
is not possible to seperate this step from the volume group creation.
>> 31 part pv.00 --size 1024 --
>> ondisk cciss/c0d0 --fstype ext3
Cheers,
Jan
On 13.06.2007, at 18:11, Steve Robson wrote:
>> -----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
>
> _______________________________________________
> Kickstart-list mailing list
> Kickstart-list at redhat.com
> https://www.redhat.com/mailman/listinfo/kickstart-list
-------------- 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/5672c015/attachment.p7s>
More information about the Kickstart-list
mailing list