Disappeared RAID 1 array after replacing motherboard
Solution 1:
I managed to get back the data. I commented out the old array in /etc/mdadm.conf, then:
-
created a new raid array:
mdadm --create /dev/md0 --verbose --level=1 --raid-devices=2 /dev/sdc /dev/sdd
-
saved the layout:
mdadm --detail --scan | sudo tee -a /etc/mdadm/mdadm.conf
update-initramfs -u
mdad said: "partition table exists on /dev/sdc but will be lost or meaningless after creating array" but after mounting all the data was available on /dev/md0.