How to configure custom partition table on Red Hat Satellite 6 to include hostname in volume group
Environment
- Red Hat Satellite 6
Issue
- How to configure custom partition table on Red Hat Satellite 6 to include hostname in volume group.
Resolution
-
Create a New partition table from Hosts >> Partition Tables >> click New Partition Table
-
Configure Partition table :
Provide a Name (Ex. custom-partition-template) -
Select Operating system family as Red Hat
<%#
kind: ptable
name: Kickstart default custom
oses:
- CentOS 5
- CentOS 6
- CentOS 7
- Fedora 16
- Fedora 17
- Fedora 18
- Fedora 19
- Fedora 20
- RedHat 5
- RedHat 6
- RedHat 7
%>
zerombr
clearpart --drives=vda --all
part /boot --fstype=xfs --size=512 --ondisk=vda --asprimary
part pv.01 --size=1024 --grow --ondisk=vda --asprimary
volgroup vg_<%= @host.shortname %> pv.01
logvol / --fstype=xfs --vgname=vg_<%= @host.shortname %> --name=lv_root --size=6144
logvol /var --fstype=xfs --vgname=vg_<%= @host.shortname %> --name=lv_var --size=2048
logvol /home --fstype=xfs --vgname=vg_<%= @host.shortname %> --name=lv_home --size=2048
logvol /tmp --fstype=xfs --vgname=vg_<%= @host.shortname %> --name=lv_tmp --size=2048
logvol swap --fstype=swap --vgname=vg_<%= @host.shortname %> --name=lv_swap01 --size=2048
- For creating Standard partition with defined partition labels without any LVM you can use this format.
<%#
kind: ptable
name: Kickstart default
oses:
- CentOS 5
- CentOS 6
- CentOS 7
- Fedora 16
- Fedora 17
- Fedora 18
- Fedora 19
- Fedora 20
- RedHat 5
- RedHat 6
- RedHat 7
%>
zerombr
clearpart --all --initlabel
part swap --size 1024
part /boot --fstype ext4 --size 500 --asprimary
part /data --fstype ext4 --size 1024 --grow
part / --fstype ext4 --size 1024 --grow
-
Select
OrganizationandLocationper requirement for this template. -
Next go to Hosts >> Operating Systems >> Select the Operating System >> Partition table >> Uncheck all the associated and then only Check the custom partition table.
-
Provision the new host and verify the partition schema reflecting the changes above.
-
To verify, Go to Hosts >> All Hosts >> Select the newly provisioned host >> Templates >> For "provision Template", select the drop-down and Click Review
-
Verify if the hostname is included in the Volume group name for the partition configuration in the rendered kickstart.
For more KB articles/solutions related to Red Hat Satellite 6.x Provisioning Issues, please refer to the Consolidated Troubleshooting Article for Red Hat Satellite 6.x Provisioning related Issues
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.