Re: question about xfs/098

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]



[cc list]

On Wed, Aug 24, 2016 at 03:45:00PM +0800, Xiao Yang wrote:
> 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)
> 
> 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

> 
> Please advise. Thanks very much.
> 
> Regards,
> Xiao Yang
> 
> 
> 
> 
--
To unsubscribe from this list: send the line "unsubscribe fstests" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Filesystems Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux