My troubleshooting ability in Linux is not impressive, just so you know. I can follow instructions very well on the other hand. I have a Linux server with Linux raid. It was working well with no problems for about half a year but then I had a power failure and have been getting the same problem ever since. After rebuilding the raid all my files are still there, so that's a good thing. When I reboot the server the raid device md0 is gone.
pi@pinas:~ $ cat /proc/mdstat Personalities : unused devices: <none> pi@pinas:~ $ ls /dev/md* pi@pinas:~ $
I found an issue here that seems to have helped other people but I tried it and it did not help. I also looked at several other sites all saying the similar things. I use webmin to create the raid and the mdadm.conf "looks" ok. I don't know if I am searching the internet for the right things or even if I am looking in the right log files. Does anyone have any ideas?
Thanks in adavance.
root@pinas:/home/pi# service mdadm start Failed to start mdadm.service: Unit mdadm.service is masked.
I am wondering if the mdadm service is even running. The process is not currently active on the system and I have no idea how to tell if it is configured to start on boot, how to start it or configure it to start on boot.
systemctl list-unit-files mdadm-grow-continue@.service static mdadm-last-resort@.service static mdadm-waitidle.service masked mdadm.service masked mdmon@.service static mdmonitor.service static
I found this. I don't know exactly if this is bad but it is suspicious looking. Is this how it should be? None of them say enabled and I would think they should. Any Ideas?
systemctl list-unit-files mdadm-grow-continue@.service static mdadm-last-resort@.service static mdadm-waitidle.service masked mdadm.service masked mdmon@.service static mdmonitor.service static dpkg-reconfigure mdadm update-initramfs: deferring update (trigger activated) update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults Processing triggers for initramfs-tools (0.120+deb8u3) ...
I ran the commands that @telcoM suggested and this is the output. I also tried doing a reinstall then those commands, but still the output is the same.
I have tried looking at several other similarly named treads on the net but so far I have not found anything that seems helpful. I think the problem is related to the service not starting on boot but I am not experienced enough with Linux services to know how to fix it. @roaima suggested that it was a problem with initramfs but I do not know how to check or correct that. Does anyone have any ideas?
CREATE owner=root group=disk mode=0660 auto=yes HOMEHOST <system> MAILADDR root ARRAY /dev/md/0 metadata=1.2 UUID=d3434dfc:2fb4792e:0b64f806:67e35ee3 name=raspberrypi:0 ARRAY /dev/md/0 metadata=1.2 UUID=40fb937f:870c7c13:46774666:87445bc5 name=pinas:0
Here is the out put of my mdadm.conf file. which is interesting because the first listed array does not have the right name...