Ubuntu – Read a Single MDADM RAID 1 Disk from Software RAID Array

mdadmraidUbuntu

I've been using a HPE MicroServer Gen10 for a while, and I'm about to setup a RAID 1 configuration for my OwnCloud storage. The server is running Ubuntu 17.10.

The disks are simply two Western Digital RED 1TB 64MB.

From what I've read, hardware RAID using the Marvell controller isn't really an optimal choice, since the support is limited (please correct me if I'm wrong) – and it could also cause me trouble if the controller itself breaks down.

Then I found MDADM which seems great. However, I haven't been able to find a clear answer to my one, simple question:

If one of my disks breaks down, can I just keep reading data from the other one, – removed, or not removed – from the software RAID array?

And can I just remove the working disk from the server and simply plug it in like any other disk in another system, and read from it?

Bonus: Does MDADM itselfs detects faulty disks and reports it to the user?

Best Answer

Yes,you can.

If 1 disk breaks down, the RAID device will remain visible (albeit degraded). If it's not working, pulling the bad disk out will fix it issues.

It is also possible to read the contents from the MD partiotion by directly mounting it and specifying, if necessary, the filesystem type (or activating lvm). Normally the metadata is at the end of the disk, so it just works.

Bonus - If you edit (from memory) /etc/mdadm.conf you can add an appropriate email and get a notice when the array degrades. You can also cat /proc/mdstat to see the current status.

Related Question