linux-xfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* How to read ERROR properly?
@ 2018-09-11 18:37 Hugo Kuo
  2018-09-11 22:23 ` Dave Chinner
  0 siblings, 1 reply; 2+ messages in thread
From: Hugo Kuo @ 2018-09-11 18:37 UTC (permalink / raw)
  To: linux-xfs

Hi XFS team,

We have our storage with XFS. I wonder how’s the proper workflow for troubleshooting xfs_error that shows up in the kernel logs.

I’ve seen various different failed so far. It’s not easy to address the root cause by reading kernel logs. For this case, how can I know the meaning of Internal error XFS_WANT_CORRUPTED_RETURN at line 163 of file fs/xfs/xfs_dir2_data.c. Caller xfs_dir3_block_verify+0x7a/0x90 [xfs] ?


[Mon Sep 10 07:34:14 2018] XFS: Internal error XFS_WANT_CORRUPTED_RETURN at line 163 of file fs/xfs/xfs_dir2_data.c. Caller xfs_dir3_block_verify+0x7a/0x90 [xfs] 
[Mon Sep 10 07:34:14 2018] [<ffffffffa040504b>] xfs_error_report+0x3b/0x40 [xfs] 
[Mon Sep 10 07:34:14 2018] XFS (sdq): xfs_log_force: error 5 returned. 
[Mon Sep 10 07:34:44 2018] XFS (sdq): xfs_log_force: error 5 returned.


* For the same case, it pop up an ERROR while running xfs_repair. Is there any clue about how the disk run into bad situation?


[root@hugo-ubuntu ~]# xfs_repair /dev/sdq 
Phase 1 - find and verify superblock... 
- reporting progress in intervals of 15 minutes 
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.


Thanks // Hugo

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-09-12  3:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-09-11 18:37 How to read ERROR properly? Hugo Kuo
2018-09-11 22:23 ` Dave Chinner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).