From owner-freebsd-hackers@freebsd.org Thu Jul 5 06:34:10 2018 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D04E410295C6 for ; Thu, 5 Jul 2018 06:34:09 +0000 (UTC) (envelope-from peter@rulingia.com) Received: from vtr.rulingia.com (vtr.rulingia.com [IPv6:2001:19f0:5801:ebe:5400:1ff:fe53:30fd]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "vtr.rulingia.com", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1A3F28B312 for ; Thu, 5 Jul 2018 06:34:08 +0000 (UTC) (envelope-from peter@rulingia.com) Received: from server.rulingia.com (ppp59-167-167-3.static.internode.on.net [59.167.167.3]) by vtr.rulingia.com (8.15.2/8.15.2) with ESMTPS id w656XvTe031128 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 5 Jul 2018 16:34:03 +1000 (AEST) (envelope-from peter@rulingia.com) X-Bogosity: Ham, spamicity=0.000000 Received: from server.rulingia.com (localhost.rulingia.com [127.0.0.1]) by server.rulingia.com (8.15.2/8.15.2) with ESMTPS id w656Xq84077237 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Thu, 5 Jul 2018 16:33:52 +1000 (AEST) (envelope-from peter@server.rulingia.com) Received: (from peter@localhost) by server.rulingia.com (8.15.2/8.15.2/Submit) id w656Xq5u077236; Thu, 5 Jul 2018 16:33:52 +1000 (AEST) (envelope-from peter) Date: Thu, 5 Jul 2018 16:33:52 +1000 From: Peter Jeremy To: "Rodney W. Grimes" Cc: Eugene Grosbein , FreeBSD Hackers , George Mitchell Subject: Re: Confusing smartd messages Message-ID: <20180705063352.GA76985@server.rulingia.com> References: <5B3D6975.2060508@grosbein.net> <201807050105.w6515uRD045567@pdx.rh.CN85.dnsmgr.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="AhhlLboLdkugWU4S" Content-Disposition: inline In-Reply-To: <201807050105.w6515uRD045567@pdx.rh.CN85.dnsmgr.net> X-PGP-Key: http://www.rulingia.com/keys/peter.pgp User-Agent: Mutt/1.10.0 (2018-05-17) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Jul 2018 06:34:10 -0000 --AhhlLboLdkugWU4S Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2018-Jul-04 18:05:56 -0700, "Rodney W. Grimes" wrote: >It would be really nice if we had a way to tell ZFS to >do the equivelent of: > dd if=3D/dev/ada1 of=3D/dev/ada1 bs=3D128k conv=3Dnoerror,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,=20 dd if=3D/dev/ada1 of=3D/dev/null bs=3D128k conv=3Dnoerro 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) --=20 Peter Jeremy --AhhlLboLdkugWU4S Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQKTBAEBCgB9FiEE7rKYbDBnHnTmXCJ+FqWXoOSiCzQFAls9u9BfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEVF QjI5ODZDMzA2NzFFNzRFNjVDMjI3RTE2QTU5N0EwRTRBMjBCMzQACgkQFqWXoOSi CzQbsA/9FifYQ2JV3Z1zHytFLjdDvc3w5scXtUR8aCbKIU4t//iWZO1aqhFSyr2/ W2POZz+WVILYMDn6gtNoQV3bm4HIGawcUe4tlQjiCGSfRkM12Sn5nvm2rR8myM4V u2lQNjjuHPA54jAy2ouKpiAn+IHilgof7KIJJNG+//CLZPxACySDx1Ve8Dch4pSs gu8Th3SeGBjQg5WahWhQ7n3BqfFFyPGqpm11yZHv0vt9kM5DwH8WrkjUvDAZyxxW WegwYXYK1HhEs+p3mHjUW2ELE8C4DrNx3eYNsnYHbucnXUbHVyK7zGbdVdERWpqS adkdhNB0qBHGpW7SMrgh1Q9woSeADJdvPFiLR4+ZjOJfsvhuL4XVdsc4tJjmHRKn mFnqCVGQE9StoHGk38UJtTlGJa1Ejv9CfWfGGO9imvnU0Omb4Wgm8gNZ9jXaZrSO K/FmxlQMNRolfyZFfFmHQS1XlMcV0DEh4U0uJAUEdEq5sVzYT7+ooRab97GNhB9i KvCSL8dMmekRA5HuOq8of4jQQWSHWZgEDWXuNZxolzdy5QU0Qb4E7LtiC0zpl78C FjOsXLAbcoLyHe0T6RiyRqEqtftdyc8yXM9rDJVJgN43vudz8kQAlTz9t+wZ2aPJ C1uKOgP41U8Rkfl2hjwP542uOdUR6A8LKubR6vUzZEb7Vc3HhWs= =/V3W -----END PGP SIGNATURE----- --AhhlLboLdkugWU4S--