I left my server running all night 'recovering' after i built a new raid 5 array using the command:
mdadm --create --verbose /dev/md0 --level=5 --raid-devices=3 /dev/sd[bcd]1
My server spent all night rebuilding and I got the desired results:
amir@SuperMassive:~$ sudo mdadm --detail --scan [sudo] password for amir: ARRAY /dev/md0 metadata=1.2 name=SuperMassive:0 UUID=2f693f45:accebaf0:70060db8:c5cb42e0
I tried to add this to my mdadm.conf file but kept getting permission denied errors.
amir@SuperMassive:~$ sudo mdadm --detail --scan >> /etc/mdadm/mdadm.conf -bash: /etc/mdadm/mdadm.conf: Permission denied
For some reason which i can not explain i thought a reboot would be a good idea. I did not think about the fact that I had not added my array to the mdadm.conf file. Now when I look at my arrow the name has changed from /dev/MD to /dev/md/SuperMassive:0
amir@SuperMassive:~$ sudo mdadm --detail --scan [sudo] password for amir: ARRAY /dev/md/SuperMassive:0 metadata=1.2 name=SuperMassive:0 UUID=2f693f45:accebaf0:70060db8:c5cb42e0
Can anyone tell me how to fix this ? I really don't want to have to go through another recovery :( I edited the mdadm.conf file to include the proper line from the first mdadm detail scan but after reboot i still get the output from the last mdadm detail scan with the name being /dev/md/SuperMassive:0.
Another thing ot note is that in /dev instead of having md0 and md0p1 i have md127 and md127p1. :(