diff --git a/plugins/disk/raid b/plugins/disk/raid index f3ff22df..2bf7a1de 100755 --- a/plugins/disk/raid +++ b/plugins/disk/raid @@ -35,10 +35,12 @@ my(@text) = <$mdstat>; close($mdstat); my($devinfo_re, $devstat_re, $action_re) = ( - '(md\d+)\s+:\s+active\s+(\(auto-read-only\)\s+|)(\w+)\s+(.*)', + '(md\d+)\s+:\s+active\s+(\(read-only\)\s+|\(auto-read-only\)\s+|)(\w+)\s+(.*)', '.*\[(\d+)\/(\d+)]\s+\[(\w+)]', '(.*(check|resync)\s=\s+(\d+\.\d+)%)', ); +# Interestingly, swap is presented as "active (auto-read-only)" +# and mdadm has '--readonly' option to make the array 'active (read-only)' my($dev, $type, $members, $nmem, $nact, $status, $proc); while (@text) {