Before using OMV in production I wanted to test a rather simple RAID setup, but when simulating a harddisk issue, omv didn't show the array as "not clean" (or whatever is shown in that case) to allow me to click recover, but didn't show the array at all.
Maybe I did something wrong in my test, although I am not sure what.
Here's what I did:
- Setup omv 7 in Proxmox
- Added 6 additional disks, 1GB each
- created 3 raid-1 arrays (md0, md1, md2)
- created 1 VG with those 3 PVs
- created 1 LV in the VG
- created 1 encrypted ext4 fs on the LV
So, pretty simple setup.
To test the RAID, I booted up the VM with a systemrescue image and wrote 500MB random data onto one of the 6 disks that are used in the arrays.
Then I booted up omv again. I expected to see my 3 devices (arrays) under Storage -> Multiple Device with one being marked as bad (so that I could click "recover"), but only 2 are shown.
Maybe my expectations are wrong, but why? Isn't the raid supposed to determine that one disk in the array has an issue (in this case data was destroyed) and allow me to recover the array? The good data is still on the other disk in that array.
I am sure I could probably ssh into the box and use mdadm to rebuild the array (although I haven't tried that yet), but isn't this one of the main functions of a NAS to get this done in the UI? Well, maybe I'm missing something, so please tell me what was wrong with my test or my expectations.
Currently I'm just a bit puzzled why the UI doesn't give me the option to recover the broken array.