Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This 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.


  Search this Thread
Old 12-16-2003, 08:32 PM   #1
Registered: Jan 2003
Location: Ohio
Distribution: SuSE
Posts: 33

Rep: Reputation: 15
mdadm mail with software RAID

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:

# mdadm --monitor --scan --daemonise --mail=root@localhost --delay=600 /dev/md0 /dev/md1.

I did not use a adadm.conf.

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?

Thanks for any comments.
Old 12-20-2003, 07:17 AM   #2
Registered: Jan 2003
Location: Ohio
Distribution: SuSE
Posts: 33

Original Poster
Rep: Reputation: 15
OK. I got the daemon to start by using the following command: # mdadm -- monitor --scan --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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Why can't I mount this md0 raid? (mdadm and software raid) cruiserparts Linux - Software 35 01-05-2013 04:35 PM
Mdadm Raid question stefaandk Linux - General 12 08-16-2005 03:11 AM
Mailing with MDADM RAID rootking Linux - Hardware 1 07-26-2005 05:47 PM
help me setup software raid 1 on slackware with mdadm xrado Slackware 2 03-02-2005 06:50 AM
Software RAID with mdadm problems... robbow52 Debian 2 04-19-2004 08:06 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:02 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration