Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Aug 2011 11:34:56 -0700
From:      Jeremy Chadwick <freebsd@jdc.parodius.com>
To:        Alex Samorukov <ml@os2.kiev.ua>
Cc:        freebsd-stable@freebsd.org, Dan Langille <dan@langille.org>
Subject:   Re: bad sector in gmirror HDD
Message-ID:  <20110820183456.GA38317@icarus.home.lan>
In-Reply-To: <4E4FF4D6.1090305@os2.kiev.ua>
References:  <1B4FC0D8-60E6-49DA-BC52-688052C4DA51@langille.org> <20110819232125.GA4965@icarus.home.lan> <B6B0AD0F-A74C-4F2C-88B0-101443D7831A@langille.org> <20110820032438.GA21925@icarus.home.lan> <4774BC00-F32B-4BF4-A955-3728F885CAA1@langille.org> <4E4FF4D6.1090305@os2.kiev.ua>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Aug 20, 2011 at 07:54:30PM +0200, Alex Samorukov wrote:
> You can run long self-test in smartmontools (-t long). Then you can
> get failed sector number from the smartmontools (-l selftest) and
> then you can use DD to write zero to the specific sector.

This is inaccurate advice.  I covered this in my reply already as well:

http://lists.freebsd.org/pipermail/freebsd-stable/2011-August/063665.html

Quote:

"The SMART tests you did didn't really amount to anything; no surprise.
short and long tests usually do not test the surface of the disk.  There
are some drives which do it on a long test, but as I said before,
everything varies from drive to drive."

TL;DR version: smartctl -t long  !=  smartctl -t select.

The OP's drive does not support selective scans (-t select), and long
turned up nothing (no surprise there either).  So, using dd to find the
bad LBAs is the only choice he has.

> Also i am highly recommending to setup smartd as daemon and to monitor
> number of relocated sectors. If they will grow again - then it is a
> good time to utilize this disk.

You have to know what you're looking at and how to interpret the data
smartd gives you for it to be useful.

-- 
| Jeremy Chadwick                                jdc at parodius.com |
| Parodius Networking                       http://www.parodius.com/ |
| UNIX Systems Administrator                   Mountain View, CA, US |
| Making life hard for others since 1977.               PGP 4BD6C0CB |




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110820183456.GA38317>