Re: Newbie question on mdadm

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux