All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tejun Heo <htejun@gmail.com>
To: Marc MERLIN <marc@merlins.org>
Cc: Tejun Heo <tj@kernel.org>, linux-ide@vger.kernel.org
Subject: Re: help with PMP failures
Date: Wed, 18 Nov 2009 13:03:00 +0900	[thread overview]
Message-ID: <4B0371F4.9060703@gmail.com> (raw)
In-Reply-To: <20091117173955.GA19029@merlins.org>

Hello,

11/18/2009 02:39 AM, Marc MERLIN wrote:
>> This is the actual failure.  Your 6.02 drive reported media error
>> which combined with the controller errata caused port wide failure.
>  
> Ah, I see, so it should be the one for me to focus on.
> If it hadn't had an error, everything wouldn't have gone down the toilet,
> next, right?

Yes, that's my guess.

> scsi 6:2:0:0: Direct-Access     ATA      Hitachi HDS72101 GKAO PQ: 0 ANSI: 5
> sd 6:2:0:0: [sdj] 1953525168 512-byte hardware sectors: (1.00 TB/931 GiB)
>
> If it's a media error, shouldn't it show up in the smart counters?

Does smartctl -a output shows any logged errors?

> I can't really move it to another PMP port but I have indeed had failures
> that required not just a reboot of my server but an actual power cycle
> of the drive.

Yeah, some old drives do that after abruptly aborted while executing
commands.  :-(

> Ok, so this all sounds like it's a bit fragile due to hardware issues :)
> 
> I now have to figure out if /dev/sdj has a bad sector or not.
> 
> Last time I had this happen, though I did run 
> dd if=/dev/drive of=/dev/null bs=1M
> for my 5 drives, and it ran clean.
> 
> If I had a bad sector, shouldn't it show up in Current_Pending_Sector
> and shouldn't reading the entire drive with dd fail?

I'm not sure which smart counter would be affected.  It also depends
on the firmware implementation and read errors might happen one time
but not on the next trial (if the drive for some reason didn't move
the failed sector elsewhere) or maybe the drive is continuously
developing bad sectors.

Thanks.

-- 
tejun

  reply	other threads:[~2009-11-18  4:03 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20091116184242.GA22250@merlins.org>
     [not found] ` <20091116184853.GA23126@merlins.org>
     [not found]   ` <4B0238EC.6060803@kernel.org>
2009-11-17 17:39     ` help with PMP failures Marc MERLIN
2009-11-18  4:03       ` Tejun Heo [this message]
2009-11-18  7:41         ` Marc MERLIN
2009-11-18  8:33           ` Tejun Heo
2009-11-18 18:29             ` Marc MERLIN

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=4B0371F4.9060703@gmail.com \
    --to=htejun@gmail.com \
    --cc=linux-ide@vger.kernel.org \
    --cc=marc@merlins.org \
    --cc=tj@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.