xfs
[Top] [All Lists]

xfs_repair fails after trying to format log cycle?

To: xfs@xxxxxxxxxxx
Subject: xfs_repair fails after trying to format log cycle?
From: Andrew Ryder <tireman@xxxxxxx>
Date: Sat, 26 Mar 2016 15:09:27 -0400
Delivered-to: xfs@xxxxxxxxxxx
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=shaw.ca; s=s20150330; t=1459016182; bh=8cIOhYPgHYm+VQIwLwM8Q2fxks6WYSdkQGuyUgxV8zs=; h=To:From:Subject:Date; b=mjCM6/hOxVWZ/ntcPSVzCMziXZvhGO4fu9Q6TCs5AE09Ae8gkB/qGXVRbkSosL13T fb+ErV5c3/sXMaxuHeq0pK+oBqc+B5bf656GVSPQ5Q39zIGAiXZKRgYgrIWpR4X1PF aNbT3ZkUAjWKSxpNwKvM4rCiBqzyidgibj6+iP0Jt7WT34ITUDZ/5mvu8BdJsHJc/i YPwyXfUNAWVWGaGnWZRL8C6SfZ+Koc9y1/ABmGw5ZlCEb+u23m4kXVznaBKxkAKLC/ u/dsGapw4zmq5nsUaxKqKNpTV5UqFy6DvYVQfDq7aaQLq7bt9pF5BC/pkqF9SxXoMR ZhBtO9/XUUCHQ==
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0
Hello,

I have an mdadm array with a xfs v5 filesystem on it and its begun to give me issues when trying to mount it as well as complete xfs_repair. Not sure if anyone might be able to shed some light on what is going on or how to correct the issue?

When I try and mount the fs, it complains with:

[  388.479847] XFS (md2): Mounting V5 Filesystem
[ 388.494686] XFS (md2): metadata I/O error: block 0x15d6d39c0 ("xlog_bread_noalign") error 5 numblks 8192
[  388.495013] XFS (md2): failed to find log head
[  388.495018] XFS (md2): log mount/recovery failed: error -5
[  388.495090] XFS (md2): log mount failed


This is where its not making any sense for me, If I try and run "xfs_repair /dev/md2" it fails with:

Phase 1 - find and verify superblock...
        - reporting progress in intervals of 15 minutes
Phase 2 - using internal log
        - zero log...
xfs_repair: read failed: Input/output error
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
attempt a repair.


But if I run "xfs_repair -L /dev/md2" which gives:

Phase 1 - find and verify superblock...
        - reporting progress in intervals of 15 minutes
Phase 2 - using internal log
        - zero log...
xfs_repair: read failed: Input/output error
failed to find log head
zero_log: cannot find log head/tail (xlog_find_tail=-5)
xfs_repair: libxfs_device_zero write failed: Input/output error

then try and re-run "xfs_repair /dev/md2" it starts traversing the filesystem all the way to "Phase 7" then errors with:

Phase 7 - verify and correct link counts...
- 14:36:55: verify and correct link counts - 33 of 33 allocation groups done
Maximum metadata LSN (64:2230592) is ahead of log (0:0).
Format log to cycle 67.
xfs_repair: libxfs_device_zero write failed: Input/output error


Yet at this point I can now mount the filesystem..


Checking the drives with smartctl shows no errors nor does 'dmesg' show any hardware i/o or controller related errors...

I've tried scrubbing the array and no bad sectors are found either..

I'm running kernel 3.19.8 with xfsprogs 4.5.

Thanks,
Andrew

<Prev in Thread] Current Thread [Next in Thread>