Unable to repair XFS filesystem using "xfs_repair"
(Doc ID 2597988.1)
Last updated on JUNE 10, 2021
Applies to:Linux OS - Version Oracle Linux 6.0 and later
Information in this document applies to any platform.
Getting the following error while trying to repair a corrupted XFS filesystem.
# xfs_repair -v /dev/dm-x
Phase 1 - find and verify superblock...
- block cache size set to 12343096 entries
Phase 2 - using internal log
- zero log...
zero_log: head block 36105 tail block 35957
ERROR: The filesystem has valuable metadata changes in a log which needs to
be replayed. Mount the filesystem to replay the log, and unmount it before
re-running xfs_repair. If you are unable to mount the filesystem, then use
the -L option to destroy the log and attempt a repair.
Note that destroying the log may cause corruption -- please attempt a mount
of the filesystem before doing this.
To view full details, sign in with your My Oracle Support account.
Don't have a My Oracle Support account? Click to get started!
In this Document