Creating an XFS File System
To create an XFS file system, use the mkfs.xfs /dev/
command. In general, the default options are optimal for common use. device
When using mkfs.xfs
on a block device containing an existing file system, use the -f
option to force an overwrite of that file system.
Example 8.1. Output of the mkfs.xfs
command
Below is a sample output of the
mkfs.xfs
command:
meta-data=/dev/device isize=256 agcount=4, agsize=3277258 blks = sectsz=512 attr=2 data = bsize=4096 blocks=13109032, imaxpct=25 = sunit=0 swidth=0 blks naming =version 2 bsize=4096 ascii-ci=0 log =internal log bsize=4096 blocks=6400, version=2 = sectsz=512 sunit=0 blks, lazy-count=1 realtime =none extsz=4096 blocks=0, rtextents=0