I created an XFS file system using default parameters at the time of creation of a system. Now looking at the output of xfs_info
, it show 0 for the values of sunit
and swidth
. I can't seem to find an explanation of what 0 means in this context. (The discussions of sunit
and swidth
that I have found are focused on setting the correct values for these parameters, not setting them to 0.)
# xfs_info .
meta-data=/dev/mapper/centos-root isize=256 agcount=8, agsize=268435455 blks
= sectsz=512 attr=2, projid32bit=1
= crc=0 finobt=0
data = bsize=4096 blocks=1927677952, imaxpct=5
= sunit=0 swidth=0 blks
naming =version 2 bsize=4096 ascii-ci=0 ftype=0
log =internal bsize=4096 blocks=521728, version=2
= sectsz=512 sunit=0 blks, lazy-count=1
realtime =none extsz=4096 blocks=0, rtextents=0
This must be an ignorant question, for which I apologize because I am an XFS newbie, but what is the meaning of 0 values for sunit
and swidth
? How can I find out what XFS is really using for those parameter values, and how those values relate to the values that would be appropriate for my RAID array? (This is an XFS system on top of LVM on top of hardware RAID.)