问题原文
原帖链接 · James · CC BY-SA 3.0
I have 4 physical drives in a single virtual drive using an LSI MegaRaid SAS controller. It seems (at least) one of the drives has bad sectors because:
- io errors occur when attempting to back up some files
- running
badblocksreports some bad sectors
I'm hoping that resolving the issue will be as simple as swapping out the problematic disk(s) and rebuilding the raid array. I thought LSI MegaRaid WebBIOS would allow me to identify the problematic disk(s) but I can't find any options to check for bad sectors.
Below is a screenshot of the WebBIOS:
Could anyone offer any advice as to how the problematic disk(s) can be identified?
社区高分解答
原帖链接 · Simon Richter · CC BY-SA 3.0
If the RAID passes the errors on to you, then obviously something is wrong that cannot be silently corrected.
If you get read errors, that means that all redundant copies of these blocks have been destroyed. The faulty drives are not ejected, because there are no spares.
If you get write errors, that means that one drive continues to report write errors, and the RAID cannot eject it because it is not currently redundant. You should never see a write error in a redundant setup, so if you do, replace the controller.
If you can add more disks, create a third mirror -- recovery will complain, and you will need to check the file systems, but you should end up with as much of your data intact as can be, and I'd expect any good controller to then kick out all broken disks.
Once you are back on a clean setup, set up scheduled checks to catch these errors before they become a problem.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
