From ba6595ff2b199d0bc97ab77051ceba5d1aefae3b Mon Sep 17 00:00:00 2001 From: trollagit Date: Wed, 3 May 2023 16:59:45 +0200 Subject: [PATCH] Update md_iostat_ for '--write-mostly' drives Doesn't work with '--write-mostly' drives like sde1 in : md94 : active raid1 sde1[1](W)(S) sdd1[2] I assume to remove everything behind the opening bracket --- plugins/disk/md_iostat_ | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/disk/md_iostat_ b/plugins/disk/md_iostat_ index 33d5a472..143c74c8 100755 --- a/plugins/disk/md_iostat_ +++ b/plugins/disk/md_iostat_ @@ -130,7 +130,7 @@ while () { # Remove unwanted things like raid device number, partition number # and sort nicely. -@devs = sort by_dev map { s/\d*\[.*\]$//; $_; } @devs; +@devs = sort by_dev map { s/\d*\[.*$//; $_; } @devs; # Insert the raid device into the mix. unshift(@devs,$md);