[Spacewalk-list] Kickstart File - Increase Root Partition Size
Sulove Khanal
skhanal at aplura.com
Mon May 18 21:08:04 UTC 2020
Hello,
Coming back to this, I had a few questions. I am trying to explicitly define the partitions now in my kickstart, creating these mount points (/boot, /, /home, and swap). I want to ensure I use LVM for all but the /boot partition, and give / 20GB of space. I have referenced the link in the below chain for kickstarts, as well as Stefan’s custom partition table.
The file system type on our other systems are xfs, so I am following in that same way.
Does every LVM need to have a vg name specified?
Why do I need to define a volgroup?
Does this look correct below?
part /boot --fstype=xfs --size=1000
volgroup vg vg_main --pesize=4096
logvol / --fstype=xfs --name=lv_root --vgname=vgroot --size=20000
logvol /home --fstype=xfs --name=lv_home --vgname=vghome --size=1000
logvol swap --name=lv_swap --vgname=vgswap --size=1000
Regards,
Sulove
From: Sulove Khanal <skhanal at aplura.com>
Date: Friday, May 15, 2020 at 9:39 AM
To: <spacewalk-list at redhat.com>
Subject: Re: [Spacewalk-list] Kickstart File - Increase Root Partition Size
Thank you all! Always helpful.
Regards,
Sulove
From: <spacewalk-list-bounces at redhat.com> on behalf of <lists at alderfamily.org>
Reply-To: <steve at alderfamily.org>, <spacewalk-list at redhat.com>
Date: Thursday, May 14, 2020 at 5:48 PM
To: <spacewalk-list at redhat.com>
Subject: Re: [Spacewalk-list] Kickstart File - Increase Root Partition Size
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>
An: "spacewalk-list" <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
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/20200518/be915dcd/attachment.htm>
More information about the Spacewalk-list
mailing list