Date: Sun, 28 May 2023 09:06:50 -0700 From: David Christensen <dpchrist@holgerdanske.com> To: questions@freebsd.org Subject: Re: read and write back full disk to trigger relocation Message-ID: <2d9ca502-bce6-48ac-177c-84cf14f45063@holgerdanske.com> 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
On 5/28/23 04:12, Artem Kuchin wrote: > Hello! > > I have a 3TB gmirror raid and i noticed that it can be a case that some > data decays and i would never know it. > > If course i can run full disk read once in a while, but i'd rather > prefer to read and write the data back, so it sector > > is damaged it can trigger relocation. > > Is there a ready made utility for such task or i need to write my one? > > Artem If you are worried about disk drives, I would look for a manufacturer diagnostic tool. Such tools can do things via an OS, but they can also tell the drive controller to do things directly. For example, Seagate: https://www.seagate.com/support/downloads/seatools/ You might want to consider switching to ZFS; it includes data and metadata integrity checks that can detect "bit rot" (and fix it, if you have redundancy; such as mirrors). David
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2d9ca502-bce6-48ac-177c-84cf14f45063>