Skip to contentSkip to conversation

question about xfs/098

DISCUSSION Darrick J. Wong 1 participant 1 message Aug 24, 2016 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

[cc list]

Quoted 13 lines · Xiao Yang

Hi Darrick

When i run xfstests test case xfs/098 on RHEL7.3Alpha with xfsprog-dev(4.5.0), I always get following error:
------------------------------------------------------------------
+ repair fs
Phase 1 - find and verify superblock...
Phase 2 - using internal log
- zero log...
Log inconsistent (didn't find previous header)
failed to find log head
zero_log: cannot find log head/tail (xlog_find_tail=5)

Quoted 8 lines

fatal error -- ERROR: The log head and/or tail cannot be discovered. Attempt to mount the filesystem to replay the log or use the -L option to destroy the log and
------------------------------------------------------------------

When metadata is changed by corrupting the journal, xfs_repair fails to repair corrupt xfs filesystem. I'd like to know this is expected behavior for xfs_repair? Can we use -L option to repair corrupt xfs filesystem successfully.

xfs_repair is not capable of replaying the journal at all. The only option is to try to mount the fs, and if that fails, xfs_repair -L will zero the log and check the filesystem.

So yes, that is the expected behavior.

--D

Quoted 9 lines

Please advise. Thanks very much.

Regards,
Xiao Yang