Skip to content

Commit

Permalink
Monitor XFS shutdown
Browse files Browse the repository at this point in the history
Related kernel error messages are as below.

kernel: XFS (dm-4): Internal error xfs_iunlink_remove at line 2038 of file fs/xfs/xfs_inode.c.  Caller xfs_ifree+0x33/0x130 [xfs]
kernel: XFS (dm-4): Corruption detected. Unmount and run xfs_repair
kernel: XFS (dm-4): xfs_inactive_ifree: xfs_ifree returned error -117
kernel: XFS (dm-4): xfs_do_force_shutdown(0x1) called from line 1788 of file fs/xfs/xfs_inode.c.  Return address = 000000009d022bf1
kernel: XFS (dm-4): I/O Error Detected. Shutting down filesystem
kernel: XFS (dm-4): Please umount the filesystem and rectify the problem(s)

Signed-off-by: Jian Wen <[email protected]>
  • Loading branch information
wenjianhn authored and Jian Wen committed Nov 14, 2024
1 parent 7117600 commit 2e15606
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions config/kernel-monitor.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@
"type": "KernelDeadlock",
"reason": "KernelHasNoDeadlock",
"message": "kernel has no deadlock"
},
{
"type": "XfsShutdown",
"reason": "XfsHasNotShutDown",
"message": "XFS has not shutdown"
}
],
"rules": [
Expand Down Expand Up @@ -53,6 +58,12 @@
"reason": "IOError",
"pattern": "Buffer I/O error .*"
},
{
"type": "permanent",
"condition": "XfsShutdown",
"reason": "XfsHasShutdown",
"pattern": "XFS .* Shutting down filesystem.?"
},
{
"type": "temporary",
"reason": "MemoryReadError",
Expand Down

0 comments on commit 2e15606

Please sign in to comment.