Re: RAID 1

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dean Carrera wrote:

Is there a command I can use to check the health of the software RAID 1
that I am running. Any command to check the health of the individual
disks?

Look at http://www.samag.com/documents/s=9102/sam0404a/0404a.htm


  if ( open( F, "/proc/mdstat" ) ) {
    print "RAID detected: ";
    @file = <F>;
    if ( / \[(\d)\/(\d)\] / && $2 ne $1 ) {
      print "NOT OK\n";
    } else {
      print "OK\n";
    }
  }

You can use a bit of perl to detect mdstat errors. Hope it helps.

--
Pau Montero Parés
http://www.imente.com
-
: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Newbie]     [Audio]     [Hams]     [Kernel Newbies]     [Util Linux NG]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Device Drivers]     [Samba]     [Video 4 Linux]     [Git]     [Fedora Users]

  Powered by Linux