View Full Version : [ubuntu] Raid1 setup - both drives failing

August 10th, 2012, 02:41 PM
I am new to Ubuntu and have been learning about it for the past several months.

Few months ago, I installed Ubuntu Server 12.04 LTS with Raid1 setup by following this guide:

Essentially, I have two 1TB drives in a typical (software) Raid1 setup.

I did install the GUI on top of the server (pardon me for doing this, I am still learning).

Recently, the system threw an error about both disks having issues. SMART reports that one disk is going to fail and should be replaced (sda). The second disk has a few bad sectors (sdb). The raid has not yet degraded.

I want to back up the system and then replace the disks to refrain from a full reinstall, but I am not sure if this will work. I have been searching online and I came across couple of threads pertaining to backing up and replacing drives in Raid1 setup.

For backup I found this link:

For replacing the drives I found this link:

My action plan is to replace sda first as its going to fail, rebuild the array, then replace sdb next which has a few bad sectors and rebuild again. Before I attempt this, I would like some advice, especially if anyone has come across a similar situation as mine. My other concern, is that since both drives are failing would replacing the drives one-by-one still have bad sectors copied onto the good drive?


August 10th, 2012, 02:51 PM
If it's aware about the bad sectors it should avoid writing data to them. And it shouldn't copy them.

Since you can't change both disks at the same time, the only option seems to be what you plan to do.

Replace the disk that's about to fail first, lets it sync fully. Then replace the other disk.