[Spacewalk-list] Partitioning

Mike Wilson mrwboilers at gmail.com
Tue Nov 13 22:38:56 UTC 2012


Please disregard. It was a hardware problem. Sorry for bugging the list.


On Tue, Nov 13, 2012 at 2:43 PM, Jens Skott <jens.skott at schibsted.se> wrote:

> You could do a pre script that checks the size of your disk and saves it
> to a variable? Think i did something simular with a script checking memsize
> then setting swap accordingly. Have to check when i get to work tommorrow
> unless someone smarter then me replies during the night :)
>
> Mobile Jens
>
> 13 nov 2012 kl. 21:38 skrev Mike Wilson <mrwboilers at gmail.com>:
>
> Thanks for your response.
>
> When you do a manual install of CentOS, you have the option to just clear
> all existing partitions, then use all available space with the default
> layout. Anaconda just does it for you. Is there an option to do that via
> kickstart? I don't want to have to change the kickstart profile for every
> different size drive.
>
>
> On Tue, Nov 13, 2012 at 2:13 PM, Jens Skott <jens.skott at schibsted.se>wrote:
>
>> This is how my KS looks like.
>> But my disks are Think provisioned in vmware so i assign a 4gb vmdk
>> for the sda. I know I had issues with drives allmost exaclty the size
>> of the partitions so i added an extra 500 megs to the system disks in
>> vmware and it worked like a charm.
>>
>> clearpart --all --initlabel --drives=sda
>> part /boot --fstype ext3 --size=150
>> part swap --size=1024
>> part pv.01 --size=1 --grow
>> volgroup vg_root pv.01
>> logvol  /  --vgname=vg_root  --size=1000  --name=lv_root --fstype=ext4
>> logvol  /var  --vgname=vg_root  --size=500  --name=lv_var --fstype=ext4
>> logvol  /home  --vgname=vg_root  --size=1000  --name=lv_home --fstype=ext4
>> logvol  /usr  --vgname=vg_root  --size=1000   --name=lv_usr --fstype=ext4
>>
>> Jens Skott
>> Tel: +46-8-5142 4396
>> Schibsted Centralen IT
>>
>>
>>
>> 2012/11/13 Mike Wilson <mrwboilers at gmail.com>:
>> > First, let me apologize in advance if this is in the wiki and I just
>> > overlooked it. (But I did look)
>> >
>> > I'm setting up a kickstart profile. Can someone point me towards some
>> sort
>> > of reference on how to configure the partitioning? I thought I had it
>> > correct, but I'm trying to kickstart a different machine (with a
>> different
>> > size disk) and it errored out saying that there isn't enough space left
>> for
>> > /boot.
>> >
>> > All I want it to do, is to erase any existing partitions, and use the
>> full
>> > disk with the default layout. I want this regardless of how big the
>> disk is.
>> > There must be a simple way to do that, right?
>> >
>> > Here is what I had in the kickstart profile | System Details |
>> partitioning:
>> >
>> > clearpart --all
>> > part /boot --fstype=ext3 --size=200
>> > part pv.01 --size=1000 --grow
>> > part swap --size=1000   --maxsize=2000
>> > volgroup myvg pv.01
>> > logvol / --vgname=myvg --name=rootvol --size=1000 --grow
>> >
>> > This was set by doing a manual install of CentOS (with the default
>> layout)
>> > and then copying the partition section of /root/anaconda-ks.cfg.
>> >
>> > I then changed this to just
>> >
>> > clearpart --all
>> > autopart
>> >
>> > I got the same result:
>> >
>> > "Could not allocate requested partitions:
>> >
>> > Partitioning failed: Could not allocate partitions as primary
>> partitions.
>> > Not enough space left to create partition for /boot."
>> >
>> > I realize this isn't necessarily specific to kickstart. Is there any
>> > documentation out there on anaconda? My googling led to trying
>> autopart. So
>> > far I haven't found any other ideas.
>> >
>> > _______________________________________________
>> > Spacewalk-list mailing list
>> > Spacewalk-list at redhat.com
>> > https://www.redhat.com/mailman/listinfo/spacewalk-list
>>
>> _______________________________________________
>> Spacewalk-list mailing list
>> Spacewalk-list at redhat.com
>> https://www.redhat.com/mailman/listinfo/spacewalk-list
>>
>
> _______________________________________________
> Spacewalk-list mailing list
> Spacewalk-list at redhat.com
> https://www.redhat.com/mailman/listinfo/spacewalk-list
>
>
> _______________________________________________
> Spacewalk-list mailing list
> Spacewalk-list at redhat.com
> https://www.redhat.com/mailman/listinfo/spacewalk-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20121113/114c6baa/attachment.htm>


More information about the Spacewalk-list mailing list