课程: Linux Tips

免费学习该课程!

今天就开通帐号,24,700 门业界名师课程任您挑!

Repairing a RAID array

Repairing a RAID array - Linux教程

课程: Linux Tips

Repairing a RAID array

- [Instructor] In the last episode we created a RAID 5 array with three disks to protect against disk loss. Now let's take a look at what happens when one of those disks fails. The system may notify you that the disk has failed or it may just disappear if there's some kind of catastrophic hardware failure. If you're getting errors about bad blocks or something like that, you'll know which device is having issues and then you'll use that information to start replacing a disk. Let's say I've been getting errors from dev sdd. I'll first mark that disk as failed with mdadm manage /dev md0 fail /dev/sdd1. We can take a look at how the details have changed with mdadm detail /dev/md0. Here I can see that one of my disks has been removed from my array and that sdd1 has been marked as faulty. I'll remove that disk from the array with mdadm dash dash manage /dev/md0 remove /dev/sdd1. And again I'll take a look at the status. My array has degraded and I'm missing one of the members. My files are…

内容