
我在 4 個磁碟的 RAID1 上遇到了問題。我們更換了故障的磁碟並重新啟動了伺服器,重建完成,兩台 linux centos 7 機器沒有出現 xfs 損壞錯誤。其他機器正常上漲。我嘗試掛載分割區:
# mount /dev/mapper/cs_mbox_opt /mnt
returned: XFS metadata corruption detected at xfs_dir3_leaf_check_init.....
我運行了 XFS_repair 命令並收到了無法修復的訊息並指示使用 -L。我使用 xfs_repair -L 完成了該過程,在出現許多錯誤訊息後,它通知無法使用該訊息進行修正:
Metadata CRC error detected at 0x559d9f7ac1e9. xfs_dir3_block 0x41df0c80/0x1000 corrupt block 0 in directory inode 807368306: junking block segmentation failure(saved core image)
我會匯出元資料並將其匯入到另一個目錄中,但出現錯誤:
Commands:
#xfs_metadump -gwa /dev/mapper/[volume] /tmp/xfsmetadata.img
# xfs_mdrestore -g /tmp/xfsmetadata.img /tmp/xfs_file
# xfs_repair -vf /tmp/xfs_file
Sorry, Could not file valid secondary superblock.
See attached images.
此刻我不知道還能做什麼。有小費嗎?
我上面提到了步驟。