From 8fd44902b42c5bfb3afae4f1e3a2aed8881df03b Mon Sep 17 00:00:00 2001 From: Jian Wen Date: Thu, 11 Jan 2024 14:20:48 +0800 Subject: [PATCH] Monitor XFS shutdown 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 --- config/kernel-monitor.json | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/config/kernel-monitor.json b/config/kernel-monitor.json index 832a063b2..0952064c6 100644 --- a/config/kernel-monitor.json +++ b/config/kernel-monitor.json @@ -58,6 +58,11 @@ "reason": "IOError", "pattern": "Buffer I/O error .*" }, + { + "type": "permanent", + "reason": "XfsShutdown", + "pattern": "XFS .* Shutting down filesystem\.?$" + }, { "type": "temporary", "reason": "MemoryReadError",