From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pau Montero Pares Subject: Re: RAID 1 Date: Fri, 14 May 2004 11:02:46 +0200 Sender: linux-admin-owner@vger.kernel.org Message-ID: <40A48B36.9060708@imente.com> References: <20302E5456011F4DB4102E0CFA85B78F0B82FC@rv-bp-ixmx-01.CPEX.com> Mime-Version: 1.0 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: In-Reply-To: <20302E5456011F4DB4102E0CFA85B78F0B82FC@rv-bp-ixmx-01.CPEX.com> List-Id: Content-Type: text/plain; charset="iso-8859-1"; format="flowed" To: Dean Carrera , linux-admin@vger.kernel.org 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=3D9102/sam0404a/0404a.htm if ( open( F, "/proc/mdstat" ) ) { print "RAID detected: "; @file =3D ; 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. --=20 Pau Montero Par=E9s http://www.imente.com - To unsubscribe from this list: send the line "unsubscribe linux-admin" = in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html