How to extract a metadata dump from a XFS filesystem?

 

問題

  • 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:

Raw

# umount /path/to/mountpoint

Run the following command replacing /dev/<device> per the proper device name:

Raw

# 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.

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章