1
2xfs_info(8) System Manager's Manual xfs_info(8)
3
4
5
7 xfs_info - display XFS filesystem geometry information
8
10 xfs_info [ -t mtab ] [ mount-point | block-device | file-image ]
11 xfs_info -V
12
14 xfs_info displays geometry information about an existing XFS filesys‐
15 tem. The mount-point argument is the pathname of a directory where the
16 filesystem is mounted. The block-device or file-image contain a raw
17 XFS filesystem. The existing contents of the filesystem are undis‐
18 turbed.
19
21 -t Specifies an alternate mount table file (default is /proc/mounts
22 if it exists, else /etc/mtab). This is used when working with
23 filesystems mounted without writing to /etc/mtab file - refer to
24 mount(8) for further details. This option has no effect with
25 the block-device or file-image parameters.
26
27 -V Prints the version number and exits. The mount-point argument is
28 not required with -V.
29
31 Understanding xfs_info output.
32
33 Suppose one has the following "xfs_info /dev/sda" output:
34
35 meta-data=/dev/pmem0 isize=512 agcount=8, agsize=5974144 blks
36 = sectsz=512 attr=2, projid32bit=1
37 = crc=1 finobt=1, sparse=1, rmapbt=1
38 = reflink=1
39 data = bsize=4096 blocks=47793152, imaxpct=25
40 = sunit=32 swidth=128 blks
41 naming =version 2 bsize=4096 ascii-ci=0, ftype=1
42 log =internal log bsize=4096 blocks=23336, version=2
43 = sectsz=512 sunit=0 blks, lazy-count=1
44 realtime =none extsz=4096 blocks=0, rtextents=0
45
46 Here, the data section of the output indicates "bsize=4096", meaning
47 the data block size for this filesystem is 4096 bytes. This section
48 also shows "sunit=32 swidth=128 blks", which means the stripe unit is
49 32*4096 bytes = 128 kibibytes and the stripe width is 128*4096 bytes =
50 512 kibibytes. A single stripe of this filesystem therefore consists
51 of four stripe units (128 blocks / 32 blocks per unit).
52
54 mkfs.xfs(8), md(4), lvm(8), mount(8).
55
56
57
58 xfs_info(8)