xfs_admin

From RaySoft

xfs_admin uses the xfs_db command to modify various parameters of a filesystem.[1]

Devices that are mounted cannot be modified. Administrators must unmount filesystems before xfs_admin or xfs_db can convert parameters. A number of parameters of a mounted filesystem can be examined and modified using the xfs_growfs command.[1]

Documentation

Syntax

xfs_admin [PARAMETER ...] DEVICE

Parameters

-c 0|1
Enable (1) or disable (0) lazy-counters in the filesystem. This operation may take quite a bit of time on large filesystems as the entire filesystem needs to be scanned when this option is changed.
-e
Enables unwritten extent support on a filesystem that does not already have this enabled (for legacy filesystems, it can't be disabled anymore at mkfs time).
-f FILE
Specifies that the filesystem image to be processed is stored in a regular FILE at device (see the mkfs.xfs -d file option).
-j
Enables version 2 log format (journal format supporting larger log buffers).
-l
Print the current filesystem label.
-L LABEL
Set the filesystem label to LABEL. XFS filesystem labels can be at most 12 characters long; if label is longer than 12 characters, xfs_admin will truncate it and print a warning message. The filesystem label can be cleared using the special -- value for label.
-u
Print the current filesystem UUID (Universally Unique IDentifier).
-U UUID
Set the UUID of the filesystem to UUID. A sample UUID looks like this: c1b9d5a2-f162-11cf-9ece-0020afc76f16. The uuid may also be nil, which will set the filesystem UUID to the null UUID. The uuid may also be generate, which will generate a new UUID for the filesystem.

References

  1. 1.0 1.1 man 8 'xfs_admin'