From 6c562c9821a3788efb92b2fc20f7d0f7847ffea5 Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Tue, 11 Apr 2023 20:04:38 -0500 Subject: [PATCH] alerts: Ignore missing mdraid disk for BURP The way I am handling swapping out the BURP disk now is by using the Linux MD RAID driver to manage a RAID 1 mirror array. The array normally operates with one disk missing, as it is in the fireproof safe. When it is time to swap the disks, I reattach the offline disk, let the array resync, then disconnect and store the other disk. This works considerably better than the previous method, as it does not require BURP or the NFS server to be offline during the synchronization. --- group_vars/metricspi/alerts.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/group_vars/metricspi/alerts.yml b/group_vars/metricspi/alerts.yml index a084eaa..cb59042 100644 --- a/group_vars/metricspi/alerts.yml +++ b/group_vars/metricspi/alerts.yml @@ -43,6 +43,6 @@ vmalert_rules: - name: mdraid rules: - alert: mdraid missing disk - expr: collectd_md_md_disks{type="missing"} != 0 + expr: collectd_md_md_disks{type="missing", instance!~"burp.*"} != 0 - alert: mdraid failed disk expr: collectd_md_md_disks{type="failed"} != 0