linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Mike Hardy <mhardy@h3c.com>
To: dean gaudet <dean@arctic.org>
Cc: Bradshaw <breadlord@gmail.com>, linux-raid@vger.kernel.org
Subject: Re: Checking individual drive state
Date: Sun, 05 Nov 2006 18:47:03 -0800	[thread overview]
Message-ID: <454EA227.5060603@h3c.com> (raw)
In-Reply-To: <Pine.LNX.4.64.0611051237080.13706@twinlark.arctic.org>



dean gaudet wrote:
> On Sun, 5 Nov 2006, Bradshaw wrote:


>> I don't know how to scan the one disk for bad sectors, stopping the array and
>> doing an fsck or similar throws errors, so I need help in determining whether
>> the disc itself is faulty.
> 
> try swapping the cable first.  after that swap ports with another disk and 
> see if the problem follows the port or the disk.
> 
> you can see if smartctl -a (from smartmontools) tells you anything 
> interesting.  (it can be quite difficult, to impossible, to understand 
> smartctl -a output though.  but if you've got errors in the SMART error 
> log that's a good place to start.)

I don't think SMART output is that hard to understand.

And checking the entire drive for errors is as easy as 'smartctl -t long
/dev/<drive>' usually. If it is SATA as you say, you may need to put a
'-d ata' in there.

Wait for however long it says to wait, then do a 'smartctl -a
/dev/<drive>' and you should see the self test log at the bottom. Did it
finish? If not, there are bad sectors. If there are bad sectors, you
should google the string 'BadBlockHowTo' to see if you can clear them
(after failing the drive out of the array)

Note that this won't tell you anything about cables or controllers or
power or anything else that could and may be wrong. It's just for the
drive media and firmware.

-Mike

      reply	other threads:[~2006-11-06  2:47 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-05 15:27 Checking individual drive state Bradshaw
2006-11-05 20:44 ` dean gaudet
2006-11-06  2:47   ` Mike Hardy [this message]

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=454EA227.5060603@h3c.com \
    --to=mhardy@h3c.com \
    --cc=breadlord@gmail.com \
    --cc=dean@arctic.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 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).