I'm streamlining the kickstart process for a series of EL6.2 (RHEL, CentOS, SL, etc.) systems. I'd prefer to use XFS over ext4 for the growth/data partition. However, I'd like some control over the options passed to mkfs.xfs
for the creation of the partition. I'd typically create this partition after the server was built, so that I'd have this control. But this should really be automated.
When creating a manual XFS partition of 400GB, I'd usually use a command string like:
mkfs.xfs -f -L /data -d agcount=100 -l size=128m,version=2 /dev/cciss/c0d1p0
With /etc/fstab
mount options like:
LABEL=/data /data xfs noatime,logbufs=8,logbsize=256k,nobarrier 1 2
How can I get something similar built into the anaconda kickstart installation process without resorting to placing it in %post?
Best Answer
Your options for creating filesystems are limited to those described in the kickstart documentation (in particular, the
part
,logvol
, andraid
commands). The assumption there is generally that you're happy with the default options when creating filesystems. If you need anything fancier, you'll need to use the%pre
or%post
section to call mkfs.xfs directly.