Skip to content

Commit

Permalink
check case xfs_repair
Browse files Browse the repository at this point in the history
  • Loading branch information
wayyoungboy committed Sep 27, 2024
1 parent 35ab570 commit f2606aa
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions handler/checker/tasks/observer/disk/xfs_repair.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@

info: ""
task:
- type: ssh
ssh: 'dmesg -T | grep -m 1 "xfs_repair" '
result:
set_value: xfs_repair_log
verify: '[ -z "${xfs_repair_log}" ]'
err_msg: "xfs need repair. Please check disk. xfs_repair_log: #{xfs_repair_log}"

0 comments on commit f2606aa

Please sign in to comment.