From: Pau Montero Pares <pau@imente.com>
To: Dean Carrera <dcarrera@intcx.com>, linux-admin@vger.kernel.org
Subject: Re: RAID 1
Date: Fri, 14 May 2004 11:02:46 +0200 [thread overview]
Message-ID: <40A48B36.9060708@imente.com> (raw)
In-Reply-To: <20302E5456011F4DB4102E0CFA85B78F0B82FC@rv-bp-ixmx-01.CPEX.com>
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
-
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
next prev parent reply other threads:[~2004-05-14 9:02 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-05-13 18:28 RAID 1 Dean Carrera
2004-05-13 18:50 ` Marshall Lake
2004-05-13 19:05 ` Matt Howard
[not found] ` <40A48272.3040101@tid.es>
2004-05-14 14:56 ` Matt Howard
2004-05-14 9:02 ` Pau Montero Pares [this message]
2004-05-17 6:53 ` Luca Ferrari
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=40A48B36.9060708@imente.com \
--to=pau@imente.com \
--cc=dcarrera@intcx.com \
--cc=linux-admin@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).