Hey there, sorry for dropping off like that.
As far as I can tell, the original error you had is a new bug that was introduced in Ubuntu 12.04. Since I am still on the older version, I can't replicated it (well... couldn't even if I tried since I am not at home).
Here is a quick description of it (in language that is hard to comprehend):
http://osdir.com/ml/ubuntu-bugs/2012-02/msg11004.html
and here in language that is a little easier to follow:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=641886
Here is my interpretation (which could be wildly incorrect, it is only based on about 15 minutes of googling):
I think that the new version of mdadm only allows one monitoring process at a time. We tell mdadm explicitly to scan the arrays when we followed the following part of my tutorial:
The new version of mdadm will not do any additional scanning without the --no-sharing option turned on.
There are a couple ways of fixing this. The first, adding --no-sharing, should have done it for you (and I suspect it may have - more on this later). The second is to install an updated version of mdadm. You will have to use apt-get to download it (and you may have to use a different repository than the one built into Ubuntu - try googling on how to do that. I can try to help you if you run into trouble)
Apparently the bug has been fixed, but it isn't in Ubuntu yet as far as I can tell. If you can download and install the latest version of mdadm, that might solve it for you.
But according to what I have read, that should have fixed it for you.
And it may have.
mdadm will not stop until you hit ctrl-c. So that is normal.
It seems to me that the email portion is not working. I.e. mdadm is doing what it should, but it isn't actually sending you an email (or for some reason you are not receiving it). As far as I can tell, you have never received an email from mdadm, is that correct? If so, I would suspect that that is your issue now. Look to see whether you have properly set up that part of the tutorial (I forget exactly where it is and don't have time right now to look, but let me know if you still need help and I can do some research).
Here is one other thing you could try (add the --oneshot flag):
Code:
mdadm --monitor --scan --oneshot --no-sharing --test
But I'm not sure that this is going to help at all. From the man page
http://linux.die.net/man/8/mdadm
we get this:
Which is a little cryptic.
But I suspect the issue is your email settings.
Oh, one more thing. Once you get this working in test mode, I'm not sure whether you need to somehow propagete the --no-sharing into the config file or something. That is another issue you may have to resolve.
Good luck.
Bookmarks