Scroll to navigation

xfs_spaceman(8) System Manager's Manual xfs_spaceman(8)

NAME

xfs_spaceman - show free space information about an XFS filesystem

SYNOPSIS

xfs_spaceman [ -c cmd ] file
xfs_spaceman -V

DESCRIPTION

xfs_spaceman reports and controls free space usage in an XFS filesystem.

OPTIONS

xfs_spaceman commands may be run interactively (the default) or as arguments on the command line. Multiple -c arguments may be given. The commands are run in the sequence given, then the program exits.

COMMANDS

With no arguments, freesp shows a histogram of all free space extents in the filesystem. The command takes the following options:

Collect free space information from this allocation group. This option can be specified multiple times to collect from multiple groups.

This argument establishes that the histogram bin sizes are successive powers of two. This is the default, and is mutually exclusive with the -e, -h, and -m options.

Print debugging information such as the raw free space extent information.

Print the free space block and extent counts for each AG.

Set all histogram bin sizes to a specific value. This option is mutually exclusive with the -b, -h, and -m options.

Create a histogram bin with a lower bound of this value. The upper bound of this bin will be one less than the lower bound of the next highest histogram bin. This option can be given multiple times to control the exact bin sizes. This option is mutually exclusive with the -b, -e, and -m options.

Create each histogram bin with a size that is this many times the size of the prvious bin created. This option is mutually exclusive with the -b, -e, and -h options.

Query the realtime device for free space information.

Display a summary of the free space information found.
Displays selected geometry information about the filesystem. The opened file must be a mount point of a XFS filesystem. The output will have the same format that xfs_info(8) prints when querying a filesystem.
Reports the health of the given group of filesystem metadata.
Report on the health of the given allocation group.
Scan all inodes in the filesystem and report each file's health status. If the -a option is given, scan only the inodes in that AG.
Report on the health of metadata that affect the entire filesystem.
Report on the health of a specific inode.
Report only unhealthy metadata.
Report on the health of the files at the given path.
Display a brief description of one or all commands.
Removes speculative preallocation. If no -u, -g, or -p options are given, this command acts on all files. The command takes the following options:

Clear all speculative preallocations for files with this user id. This option can be given in combination with the -g and -p options.

-g gid
Clear all speculative preallocations for files with this group id. This option can be given in combination with the -u and -p options.

Clear all speculative preallocations for files with this project id. This option can be given in combination with the -u and -g options.

Ignore all files smaller than this size. Units can be supplied for this argument.

Wait for removal to complete.
Display a list of all open files.
Exit xfs_spaceman.
Instructs the underlying storage device to release all storage that may be backing free space in the filesystem. The command takes the following options: (One of -a, -f, or the offset/length pair are required.)

Trim free space extents in the given allocation group. This option is mutually exclusive with the -f option and the offset/length options.

Trim all free space in the filesystem. This option is mutually exclusive with the -a option and the offset/length options.

Trim all free space within the physical range defined by the offset and length from this filesystem. Units can be appended to these arguments. This option is mutually exclusive with the -a and -f options.

Do not trim free space extents shorter than this length. Units can be appended to this argument.