I set up a new server last week, did some testing with different mkfs.xfs options on mdadm raid5, i finally found some statisfying mkfs options.
Now i am about to set up a new server having exactly the same disk setup
Unfortunately i did not write down the mkfs.xfs options i was using the last time, so here is my question:
Is there a way to get the mkfs.xfs options used from a running (and currently mounted) xfs filesystem?
The command
xfs_info
will give you something close to that. It'll dump the XFS attributes for a given file-system, which you can then map to mkfs.xfs command-options. It doesn't give you the exact flags used, but with enough parsing of the man-page you can recreate the options used for a pre-existing file-system.A lot of these are defaults, though the value of some defaults changes with kernel and mkfs versions.