I've successfully configured a raid 1 array with mdadm. Both drives have a raid partition and an uefi partition with GRUB installed.
When I execute "cat /proc/mdstat", I have a working array with 2x UU.
However, my array is gone when I do the following :
- disconnect sda's sata & power cable
- Boot degraded with sdb, shutdown
- Then connect sda again, disconnect sdb
- Boot degraded with sda, shutdown
- connect both disks again and run cat /proc/mdstat
result = array gone :
md0 : active raid1 sdb2 3905908736 blocks super 1.2 [2/1] [_U] bitmap: 11/30 pages [44KB], 65536KB chunk
I did this twice and I'm fed up with this behaviour. At this point I have to recreate the array and re-add sda. But the rebuilding of the array takes ages since it are 4TB drives.
Maby something important I should mention is that only one drive boots (sda) properly in degraded mode . The other one (sdb) boots in emergency mode. But I figured out how to fix this. The problem is in the /etc/fstab file.
UUID=64C3-7807 /boot/efi vfat umask=0077 0 1
It points to the UUID of sda. I can boot sdb normally when changing the UUID in the fstab file. Perhaps I can put both drives in fstab ?
So what's happening here? Or is there a way to re-add sda quickly ?