On Fri, May 15, 2020 at 12:32:03 +0100,
Patrick O'Callaghan <pocallaghan@xxxxxxxxx> wrote:
On Fri, 2020-05-15 at 06:20 -0500, Bruno Wolff III wrote:
That's not a good sign, but sometimes you can still get a lot of use out
of such a drive. If you don't want to spend effort figuring out where
the bad sectors are, you can pull the drive out of the array,
I assume that's with mdadm, right?
No, you use smartctl to find the fbad sector that stopped a self test.
That typically gets logged on the drive. With mirroring you can get
a copy from the other drive at the same spot. You can use dd to do the
copy. If the device has 512 byte sectors you need to copy over an aligned
8 sectors at once since the kernel normally uses 4096 byte sectors. If
you try to copy just 512, it will try a read first to get the surrounding
sectors and this will fail because of the bad block. Figuring out where
in a file system a bad block is, is a real pain. If you weren't mirroring
and wanted to know which files got corrupted and needed to be recovered
from backups, you'd need to do that.
I wondered if the dock's clone function would have the same effect.
I don't know.
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx