Why newly created snapshot of xfs filesystem is not consistent ?
Issue
- Why
xfs_repairon snapshot always throw an error while I am running below sequence of events step by step ?
1. Create LVM snapshot
2. Verify the integrity of the snapshot using xfs_repair -n
3. If no error is returned, we conclude that the file system is still healthy
4. If error is returned, the source file system might be corrupt. Perform check on the source volume
5. Remove snapshot
- Why I am getting error while running
xfs_repairon newly created snapshot ?
[root@rhel7 check1]# xfs_repair /dev/vg_test1/lv_data-verify
Phase 1 - find and verify superblock...
Phase 2 - using internal log
- zero log...
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.
Environment
- Red Hat Enterprise Linux 7
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
