Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 May 2023 23:45:40 +0200 (CEST)
From:      Sysadmin Lists <sysadmin.lists@mailfence.com>
To:        freebsd-questions@FreeBSD.org
Subject:   Re: read and write back full disk to trigger relocation
Message-ID:  <1957739901.520492.1685310340560@ichabod.co-bxl>
In-Reply-To: <a111b6a7-0bf8-d3b9-9611-a7fbf36635b3@artem.ru>
References:  <a111b6a7-0bf8-d3b9-9611-a7fbf36635b3@artem.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
> ----------------------------------------
> From: Artem Kuchin <artem@artem.ru>
> Date: May 28, 2023, 4:12:21 AM
> To: <freebsd-questions@FreeBSD.org>
> Subject: read and write back full disk to trigger relocation
>=20
> If course i can run full disk read once in a while, but i'd rather=20
> prefer to read=C2=A0 and write the data back, so it sector
>=20
> is damaged it can trigger relocation.
>=20
>=20

>From the dd(1) manpage:

     Do a refresh of a disk drive, in order to prevent presently recoverabl=
e
     read errors from progressing into unrecoverable read errors:

           dd if=3D/dev/ada0 of=3D/dev/ada0 bs=3D1m

That won't trigger relocation, but it will refresh the decaying data.

--=20
Sent with https://mailfence.com =20
Secure and private email



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