Linux "xfs_metadump" Command Line Options and Examples
copy XFS filesystem metadata to a file

xfs_metadump is a debugging tool that copies the metadata from an XFS filesystem to a file. The source argu‐ ment must be the pathname of the device or file containing the XFS filesystem and the target argument speci‐ fies the destination file name. If target is -, then the output is sent to stdout.


Usage:

xfs_metadump [ -aefFgow ] [ -m max_extents ] ] [ -l logdev ] source target
    xfs_metadump -V






Command Line Options:

-l
For filesystems which use an external log, this specifies the device where the external log resides.The external log is not copied, only internal logs are copied.
xfs_metadump -l ...
-o
Disables obfuscation of file names and extended attributes.
xfs_metadump -o ...
-w
Prints warnings of inconsistent metadata encountered to stderr. Bad metadata is still copied.
xfs_metadump -w ...
-V
DIAGNOSTICSxfs_metadump returns an exit code of 0 if all readable metadata is successfully copied or 1 if a write erroroccurs or a read error occurs and the -e option used.NOTESAs xfs_metadump copies metadata only, it does not matter if the source filesystem has a realtime section ornot. If the filesystem has an external log, it is not copied. Internal logs are copied and any outstanding logtransactions are not obfuscated if they contain names.xfs_metadump is a shell wrapper around the xfs_db(8) metadump command.
xfs_metadump -V ...