[Spacewalk-list] Kickstart File - Increase Root Partition Size
lists at alderfamily.org
lists at alderfamily.org
Thu May 14 21:42:53 UTC 2020
In a kickstart you cannot use autopart and also define any partition to be a particular size. It is one or the other.
https://pykickstart.readthedocs.io/en/latest/kickstart-docs.html#autopart
I prefer to have more control over the disk layout, myself, and use the same method as Stefan. But it depends upon your needs. Sounds like you have a need to define your partitions.
Kickstart is powerful. I have found only a very few limitations in it, and those have always been in the sysroot’d environment itself not in Kickstart.
Steve
From: spacewalk-list-bounces at redhat.com <spacewalk-list-bounces at redhat.com> On Behalf Of Stefan Bluhm
Sent: Thursday, May 14, 2020 15:11
To: spacewalk-list <spacewalk-list at redhat.com>
Subject: Re: [Spacewalk-list] Kickstart File - Increase Root Partition Size
Hello Sulove,
as far as I am aware, by default on RHEL it is using the full HDD as root after a /boot and a swap default.
This is how I do custom partition my servers:
Go to Systems --> Kickstart --> Profiles --> <Label> --> System Details --> Partitioning --> Partition Details
Enter
part /boot --fstype=ext4 --size=500
part pv.01 --grow --size=1
part swap --size=1000 --maxsize=2000
volgroup vg_main --pesize=4096 pv.01
logvol /var/log --fstype=ext4 --name=lv_log --vgname=vg_main --size=1000
logvol / --fstype=ext4 --name=lv_root --vgname=vg_main --size=1 --grow
logvol swap --name=lv_swap --vgname=vg_main --size=2016
This creates:
- /boot 500MB as ext4
- swap between 1GB to 2GB (I think this is autoscaled to memory 1:1)
- /log 1GB as ext4
- / [root] for the rest
I hope this helps.
Best wishes,
Stefan
_____
Von: "Sulove Khanal" <skhanal at aplura.com <mailto:skhanal at aplura.com> >
An: "spacewalk-list" <spacewalk-list at redhat.com <mailto:spacewalk-list at redhat.com> >
Gesendet: Donnerstag, 14. Mai 2020 15:22:29
Betreff: [Spacewalk-list] Kickstart File - Increase Root Partition Size
Hello,
I’m looking to increase the size of the root partition in my Spacewalk kickstart file to 20GB. It is currently defaulted to 8GB when I boot up a new VM based off the kickstart file. The kickstart is also set to autopart –type=lvm. I am using Centos 7. I haven’t found how to increase the size of the root partition while still using the autopart option in the kickstart from my research online.
Is this possible?
Thank you,
Sulove
_______________________________________________
Spacewalk-list mailing list
Spacewalk-list at redhat.com <mailto: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/20200514/4e6854a5/attachment.htm>
More information about the Spacewalk-list
mailing list