All of lore.kernel.org
 help / color / mirror / Atom feed
From: Brian Candler <B.Candler@pobox.com>
To: Jan Ceuleers <jan.ceuleers@computer.org>
Cc: linux-raid@vger.kernel.org
Subject: Re: Monitoring for failed drives
Date: Wed, 25 Apr 2012 17:54:55 +0100	[thread overview]
Message-ID: <20120425165455.GB11238@nsrc.org> (raw)
In-Reply-To: <4F9823BD.8040300@computer.org>

On Wed, Apr 25, 2012 at 06:18:05PM +0200, Jan Ceuleers wrote:
> Brian Candler wrote:
> >The problem is, how to detect and report this? At the md RAID level,
> >`cat /proc/mdstat` and `mdadm --detail` show nothing amiss.
> >
> >     # cat /proc/mdstat
> >     Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
> >     md127 : active raid0 sdk[8] sdf[4] sdb[0] sdj[9] sdc[1] sde[2] sdd[3] sdi[6] sdg[5] sdh[7] sdv[20] sdw[21] sdl[11] sdu[19] sdt[18] sdn[13] sds[17] sdq[14] sdm[10] sdx[22] sdr[16] sdo[12] sdp[15] sdy[23]
> >           70326362112 blocks super 1.2 512k chunks
> 
> Brian,
> 
> I know that you know this, but this is a RAID0 which does not have
> any redundancy. What would you expect md to do?

In an ideal world, maybe it would mark the drive as "failing" or "erroring"
but still keep it in service.

There is some data on the failing disk which is still accessible, so as you
say there is value in keeping the array online, but if you try to access
data in the bad area of that disk you get I/O errors.  This is a serious
problem and I want to know about it somehow.

I'm not saying that md is necessarily the right layer to give me this
information. I'm not sure that SMART is necessarily the right place either,
although it may suffice.

If there are some drive error counters I can read, preferably exposed via
SNMP, that would be great.  Otherwise, I seek your advice on the best place
to look for this information...

Thanks,

Brian.

  reply	other threads:[~2012-04-25 16:54 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-25 12:39 Monitoring for failed drives Brian Candler
2012-04-25 16:18 ` Jan Ceuleers
2012-04-25 16:54   ` Brian Candler [this message]
2012-05-03  9:06 ` Brian Candler

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=20120425165455.GB11238@nsrc.org \
    --to=b.candler@pobox.com \
    --cc=jan.ceuleers@computer.org \
    --cc=linux-raid@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.