Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I have a nice bootable software raid1 set-up and would like to run mdadm for the monitor and mail feature. As a test I did the following from an xterm:
My questions:
1 - I expected to see a daemon running but saw none - so what did I do wrong?
2 - Is there an *easy* way to confirm that mdadm is working?
3 - What is the best way to get this started at boot?
OK. I got the daemon to start by using the following command: # mdadm -- monitor --scan --mail=user@domain.com --delay=1800 --daemonise /dev/md0 /dev/md1.
Either I did not type the command in properly or the order of the arguments matters. The daemon "mdadm" started. I did not test this setup to make sure an e-mail was sent upon disk failure. For disk failure e-mail notification I decided to use a small script to query /proc/mdstat (every 1/2 hour by cron) and send an e-mail if disk failure is noted. With this method there is no need to create and add a startup script which would be the best way to start mdadm.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.