Hi,
I have server with RAID 1. I want to monitoring and receive email alert if have any problem in hard disks.
I readed some guides in internet and they says this:
1- Send alert to email if some disk have problems: nano /etc/mdadm.conf -> add to bottom “MAILADDR root” 2- Enable the scan and monitoring: mdadm --monitor --scan --daemonize 3- Enable the scan and monitoring when restart the server: nano /etc/rc.d/rc.local -> add to bottom “mdadm --monitor --scan --daemonize” 4- Change rc.local permits: chmod +x /etc/rc.d/rc.local
1- This is correct steps or you recommend me other configuration?. 2- Is safe change permits in file “/etc/rc.d/rc.local”?.
Thank you very much. Have a nice day!
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hi,
If I use “systemctl start mdmonitor” and “systemctl enable mdmonitor” I will get the same result that the command “mdadm --monitor --scan --daemonize” ?.
If is same result I not need add command “mdadm --monitor --scan --daemonize” to file “/etc/rc.d/rc.local” and not need change her permits.
Thank you very much.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.