问题
- How to extract a metadata dump from a XFS filesystem?
环境
- Red Hat Enterprise Linux (RHEL) 5
- Red Hat Enterprise Linux (RHEL) 6
- Red Hat Enterprise Linux (RHEL) 7
- xfsprogs
决议
Umount the filesystem before extracting the metadata dump:
# umount /path/to/mountpoint
Run the following command replacing /dev/<device>
per the proper device name:
# xfs_metadump -gwo /dev/<device> - | bzip2 > /path/to/xfs_metadump_<device>.dmp.bz2
Upload the file to the support case, or to the Dropbox FTP.
根源
The dump extracted contains the filesystem metadata structure (not user data) and it is used by Support Engineering to identify potential bugs.