unix

How do I customize my Linux Kickstart configuration to specify which disk to install on?

When kickstarting a multi-disk Linux server, you may want certain partitions set up on specific disks.

For example, below is a snippet from a config on a multi-disk HP DL160 G6 server which us using the HP Smart Array controller.

clearpart –all –initlabel
part /boot –fstype ext3 –size=100 –ondisk=cciss/c0d0
part swap –size=8192 –ondisk=cciss/c0d0
part / –fstype ext3 –size=61440 –ondisk=cciss/c0d0
part /var –fstype ext3 –size=20480 –ondisk=cciss/c0d0
part /tmp –fstype ext3 –size=20480 –ondisk=cciss/c0d0
part /apps/local –fstype ext3 –size=20480 –ondisk=cciss/c0d0
part /apps –fstype ext3 –size=4201 –grow –ondisk=cciss/c0d1

If for example you were installing on a traditional SCSI/SATA disk with sd[abcd…] device names, your config would be updated accordingly to be:

clearpart –all –initlabel
part /boot –fstype ext3 –size=100 –ondisk=sda
part swap –size=8192 –ondisk=sda
part / –fstype ext3 –size=61440 –ondisk=sda
part /var –fstype ext3 –size=20480 –ondisk=sda
part /tmp –fstype ext3 –size=20480 –ondisk=sda
part /apps/local –fstype ext3 –size=20480 –ondisk=sda
part /apps –fstype ext3 –size=4201 –grow –ondisk=sdb

Click to comment

Leave a Reply

Your email address will not be published. Required fields are marked *

To Top