We want to use XFS to format some partitions in a server. High performance is of course our goal, but we prefer to stability firstly. For example, we want to recover the FS quickly if power failure happens. It's not acceptable if the partition is corrupt and can't be used any more under this case. Can we change the options of mkfs.xfs to improve the stability?
Some people suggest this:
mkfs.xfs –b size=4096 –s size=4096 /dev/sdx -f
My questions are:
Is the block 4096 bytes too small for performance? If I improve it, will the stability be affected?
Sector size should be considered by low level block device driver, why does XFS has also a "sector size"? Are there any problems to set it to 4096 bytes if the system is a Linux with traditional 512-bytes sector support?