Raid alert dbm6/25/2023 If you want to go the whole hog, schedule some downtime, try pulling one of the drives, and check that the system can still boot. You can resync the array later with mdadm /dev/md0 -a /dev/sdb1, and check that it's sync'ed back with another cat /proc/mdstat. Check the output of cat /proc/mdstat so you know what a half-bad array looks like. That will fail the second partition out of the array, and should generate a formal notification to you (check your system's mail logs to see if it's gone). You can do that with mdadm /dev/md0 -f /dev/sdb1. If I were you, I'd at least perform a soft failure test. (I'm a little curious about the second slash in /dev/md/0, but if that's what your system wrote, it's very likely right.)īut it's axiomatic in professional sysadmin that, unless you've tested something, you can't really know that it works.Īt the very least, you will want to check that you can send mail from that system, as root, to the specified address, and receive it. Certainly, mine looks very little different to that, and I know from a recent failout test that I get notifications. Well done, you! But there is a little more that could usefully be said.Īs far as I know, that nf will suffice for you to get automated notifications. Is this enough to get email notifications if one hdd fails for my case ?īlazer, it looks like in the process of improving your question (which is now a good one, by the way), you've found your own answer. nf file generated 1 minute ago with mdadm -examine -scan > /etc/nf : MAILADDR /dev/md/0 metadata=1.1 UUID=0944131a:0513ca86:cb8ad6c5:3baca49f name=trader:0 Mdadm: An option must be given to set the mode before a second device I also undestand I have to start it using this ssh line: mdadm –monitor –scan –daemonize I executed that line and my nf file was empty whith that response from ssh : "mdadm: An option must be given to set the mode before a second device (–scan) is listed" ![]() If those sections do not exist a new /etc/nf file can beĬreated by using the following command: mdadm –detail –scan > NOTE: It has been found that mdadm will not send an e-mail if theĭEVICE partitions section does not exist in the /etc/nf file. ![]() I did some mistake folowing this tutorial, because it was a bottom note I need to know how can I get email alert if one of raid 1 disks fail to work/crashes.
0 Comments
Leave a Reply. |