I am trying to setup a custom partition table for a server so I can separate my database server data to a separate disk from the OS. I am having trouble finding the documentation on how this should be formatted. I can’t find it in the manual or in the forum and google isnt’ providing useful information. I know that the default kickstart partition template is:
zerombr
clearpart --all --initlabel
autopart
but I can’t get clarification on how set up the partitions I want or tie them to a specific disk. Any guidance on where I can find proper syntax would be appreciated.
You will probably be interested in the bootloader, part, maybe volgroup and logvol commands.
Since disk naming can be very unpredictable, I would recommend using a dynamic partition table (marking it as dynamic within Foreman). That will basically mean, instead of writing the partition table directly, you can write a shell script that write outs a KS partition table file.
We have a similar disk setup to yours (one disk for OS, one for application/DB data). We used to hardcode /dev/sda, /dev/sdb etc in our PTable, but with more parallelization in the kernel during startup, more and more servers installed with the disks “reversed”. So we are now deriving via script from the SCSI bus order which disk should be for OS and which for the data and use shell variables to have that be reflected in the actiual KS file.
Thanks. Yeah I realized later that it was just the standard Kickstart syntax. I don’t know why I was thinking it was suppose to be custom syntax to Foreman. I must have been tired while reading the documentation.
Thanks for your guidance anyway. Much appreciated.