From: Jeff Hill <jhill@hronline.com>
To: linux-raid@vger.kernel.org
Subject: mdadm mail option configuration
Date: Tue, 28 May 2002 12:04:00 -0400 [thread overview]
Message-ID: <5.1.0.14.0.20020528111927.01f28280@205.233.215.4> (raw)
I'm having problems configuring mdadm to send e-mail alerts. From past list
discussions I configured it with:
devo:/# cat /etc/mdadm.conf
DEVICE /dev/hd*[0-9] /dev/sd*[0-9]
ARRAY /dev/md1 level=raid1 num-devices=2
UUID=8e0114bb:e5b3a608:048bed2d:5fe33724
ARRAY /dev/md2 level=raid1 num-devices=2
UUID=434dd79d:0c046e9b:867e8d98:86bdb5da
ARRAY /dev/md3 level=raid1 num-devices=2
UUID=9a9a2078:44c22d83:25a32457:db7e3783
ARRAY /dev/md5 level=raid1 num-devices=2
UUID=e3254469:34147651:c9298800:5a84cd06
ARRAY /dev/md6 level=raid1 num-devices=2
UUID=80c78ac7:c0f4442a:3dd6517d:57edc79e
MAILADDR jhill@hrpost.com
PROGRAM /usr/local/sbin/raidalert
------
Then, I just have an init script that runs:
/sbin/mdadm -Fs --delay=600 &
I thought having that running would be right for monitoring and e-mailing,
but I've tried a few variations without success. When one of the component
devices fails and is booted out of the array, no alert is mailed. The
raidalert script is one I picked up from past discussions on the list, and
I wouldn't think it would be causing any problems:
devo:/# cat /usr/local/sbin/raidalert
#!/bin/bash
# Log Raid Problems
logger -p kern.crit -t RAID $*
--------
I know this should be simple. I must be missing the obvious, but hours of
tinkering and searching the list archives have gotten me nowhere.
Thanks for any assistance,
Jeff Hill
next reply other threads:[~2002-05-28 16:04 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <message from Jeff Hill on Wednesday May 29>
[not found] ` <message from Jeff Hill on Tuesday May 28>
2002-05-28 16:04 ` Jeff Hill [this message]
2002-05-29 10:46 ` mdadm mail option configuration Neil Brown
2002-05-29 12:29 ` Jeff Hill
2002-05-29 22:53 ` Neil Brown
2002-05-30 14:11 ` Jeff Hill
2002-05-29 14:04 ` Danilo Godec
2002-05-29 23:10 ` Neil Brown
2002-05-30 6:25 ` Danilo Godec
2002-05-31 14:09 ` Jakob Østergaard
2002-06-01 1:43 Haofeng Kou
2002-06-01 11:56 ` Jakob Østergaard
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5.1.0.14.0.20020528111927.01f28280@205.233.215.4 \
--to=jhill@hronline.com \
--cc=linux-raid@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).