MDADM Perl Script
Hi, this script give false positives on a busy RAID1.
I realized that the "State" of my RAID1 array changes from "clean" to "active".. when heavy writes occures.
so I changed the the following line to
my $return = `/usr/bin/sudo /sbin/mdadm --detail /dev/$device |grep \"Active\"|cut -d \":\" -f 2`;
this hopefully alerts me if the number of Active devices not equal 2.
Cheers
Franz
Hi, this script give false positives on a busy RAID1.
I realized that the "State" of my RAID1 array changes from "clean" to "active".. when heavy writes occures.
so I changed the the following line to
my $return = `/usr/bin/sudo /sbin/mdadm --detail /dev/$device |grep \"Active\"|cut -d \":\" -f 2`;
this hopefully alerts me if the number of Active devices not equal 2.
Cheers
Franz

Comment