Why newly created snapshot of xfs filesystem is not consistent ?

Solution Verified - Updated -

Issue

  • Why xfs_repair on 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_repair on 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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content