Chapter 2. XFS Practical Exercises - 02 - mkfs & mount
In order to use XFS we must first create a filesystem. Filesystems can be used for various different purposes and the tool used to create an XFS filesystem, mkfs.xfs, can be used to customise the characteristics of the filesystem.
The goal of this lab is to understand the procedure for creating an XFS filesystem including the options available for customising it for a particular purpose.
In this lab exercise we will explore the options to:
adjust the filesystem block size
filesystem directory block size
set the stripe unit and width sizes
configure an external log
set the allocation group count and/or size
grow a filesystem
It is assumed that the reader is familiar with basic UNIX commands, in particular mkfs and mount.
Recent Linux kernel with XFS enabled (and loaded if installed as a module)
XFS user-space commands package, xfsprogs, installed.
One or more spare block device(s).