xfs growfs command examples

xfs growfs command examples

xfs_growfs, xfs_info – expand an XFS filesystem

Understanding xfs_info output.

Suppose one has the following “xfs_info /dev/sda” output:

 meta-data=/dev/sda isize=256 agcount=32, agsize=16777184 blks
= sectsz=512 attr=2
data = bsize=4096 blocks=536869888, imaxpct=5
= sunit=32 swidth=128 blks
naming =version 2 bsize=4096
log =internal bsize=4096 blocks=32768, version=2
= sectsz=512 sunit=32 blks, lazy-count=1
realtime =none extsz=524288 blocks=0, rtextents=0

Here, the data section of the output indicates “bsize=4096”, meaning the data block size for this filesystem is 4096 bytes. This section also shows “sunit=32 swidth=128 blks”, which means the stripe unit is 32*4096 bytes = 128 kibibytes and the stripe width is 128*4096 bytes = 512 kibibytes. A single stripe of this filesystem therefore consists of four stripe units (128 blocks / 32 blocks per unit).


Leave a Reply

Your email address will not be published. Required fields are marked *