No Comments

xfs fs creation optimization

Technical Comments (0)

mkfs.xfs -d agcount=4 -l size=32m /dev/sdx

Pass noatime,nodiratime,osyncisdsync to your fstab and mount. -l size=32m, tells mkfs.xfs to configure your filesystem so that it has a 32 MB metadata journal. In my situation, it is important while under heavy load the journal will not fill up; or less of a possibility that it would. agcount minimizes the number of allocation groups that are created, which improves performance in high performance servers. Note; too many of these groups add filesystem overhead.

I used this in a “backup scenario”. If you’re doing a RAID setup, rules change and this creation will probably *not* be the correct one to use; it’s all dependent on your usage intentions/RAID type/number of drives, etc.

Don @ April 25, 2008

Leave a comment

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>