xfs_info is equivalent to invoking xfs_growfs with the -n option, no change to be made to the filesystem, just print the filesystem geometry,  but  no growth occurs.

xfs_info to print the filesystem geometry

To view your XFS file system information, the command "xfs_info" can be issued:

# xfs_info /vdisk0
meta-data=/dev/sda               isize=512    agcount=66, agsize=268435392 blks
         =                       sectsz=4096  attr=2, projid32bit=1
         =                       crc=1        finobt=0 spinodes=0
data     =                       bsize=4096   blocks=17580367872, imaxpct=1
         =                       sunit=64     swidth=576 blks
naming   =version 2              bsize=4096   ascii-ci=0 ftype=1
log      =internal               bsize=4096   blocks=521728, version=2
         =                       sectsz=4096  sunit=1 blks, lazy-count=1
realtime =none                   extsz=4096   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=64 swidth=576 blks", which means the stripe unit is 64*4096 bytes = 256 kibibytes and  the  stripe  width  is  576 * 4096  bytes  =  98k  kibibytes.  A single stripe of this filesystem therefore consists of nine stripe units (576 blocks / 64 blocks per unit).

Check xfs_info

xfs_info version can be checked by running with '-V' option

# xfs_info -V
xfs_info version 4.5.0

xfs_info uses alternate mount table file

Option '-t' specifies an alternate mount table file other than default /proc/mounts

Comments powered by CComment