Confusing smartd messages
Peter Jeremy
peter at rulingia.com
Thu Jul 5 06:34:10 UTC 2018
On 2018-Jul-04 18:05:56 -0700, "Rodney W. Grimes" <freebsd-rwg at pdx.rh.CN85.dnsmgr.net> wrote:
>It would be really nice if we had a way to tell ZFS to
>do the equivelent of:
> dd if=/dev/ada1 of=/dev/ada1 bs=128k conv=noerror,sync
>in some type of lowlevel scrub operation, with proper locking
>which could easily repair most of these Pending Sector errors,
Agreed.
>It would of also been nice if the ata standard would of made a way
>to get the LBA of pending sectors so that a very quick rewrite attempt
>could be done to fix them. IIRC this info is avalible, but in a vendor
>specific way.
As a workaround,
dd if=/dev/ada1 of=/dev/null bs=128k conv=noerro
will report any errors. You can then write zeroes or garbage to those
sectors (optionally followed by a scrub if you overwrote more than the
faulty sectors)
--
Peter Jeremy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 963 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20180705/688dc805/attachment.sig>
More information about the freebsd-hackers
mailing list