* Re: mdadm feature suggestion
[not found] <481EF5A5.3030501@serverleih.de>
@ 2008-05-06 2:45 ` Neil Brown
2008-05-09 15:06 ` Bill Davidsen
0 siblings, 1 reply; 2+ messages in thread
From: Neil Brown @ 2008-05-06 2:45 UTC (permalink / raw)
To: Denis Klimek; +Cc: linux-raid
On Monday May 5, denis@serverleih.de wrote:
> Hello,
>
> I've written a "mdadm2sms", which sends me SMS to my mobilephone when
> something happens to raid.
> Yesterday I've got a sms / also written into syslog (standard), that a
> rebuild has been started, just for data-checking. My suggestion is now,
> it is possible to add 3 more Events just for this DataCheck event? Like
> DataCheckStarted, CheckStarted, CheckedFinished and Check20-100 or
> something? Cause the problem is, you can't trigger a regulary
> mdadm-datacheck without using syslog. It would be very nice, when it
> would be possible to trigger a Datacheck with a event command.
>
I'm sorry, but I don't understand what you are asking for.
When a data-check is run, it should generate events just like when a
resync or recovery is run. These will be passed to any --program that
you give to mdadm --monitor.
In that program you can differentiate between
data-check/resync/recovery by looking in /proc/mdstat.
Do you want the events to be different for the different types of
'resync' (check/sync/recover)?? So you can get an SMS on a resync
start but not on a data-check start? Is that it?
I don't understand
"It would be very nice, when it would be possible to trigger a
Datacheck with a event command. "
at all. How would an event command trigger a Datacheck???
confused.
NeilBrown
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: mdadm feature suggestion
2008-05-06 2:45 ` mdadm feature suggestion Neil Brown
@ 2008-05-09 15:06 ` Bill Davidsen
0 siblings, 0 replies; 2+ messages in thread
From: Bill Davidsen @ 2008-05-09 15:06 UTC (permalink / raw)
To: Neil Brown; +Cc: Denis Klimek, linux-raid
Neil Brown wrote:
> On Monday May 5, denis@serverleih.de wrote:
>
>> Hello,
>>
>> I've written a "mdadm2sms", which sends me SMS to my mobilephone when
>> something happens to raid.
>> Yesterday I've got a sms / also written into syslog (standard), that a
>> rebuild has been started, just for data-checking. My suggestion is now,
>> it is possible to add 3 more Events just for this DataCheck event? Like
>> DataCheckStarted, CheckStarted, CheckedFinished and Check20-100 or
>> something? Cause the problem is, you can't trigger a regulary
>> mdadm-datacheck without using syslog. It would be very nice, when it
>> would be possible to trigger a Datacheck with a event command.
>>
>>
>
> I'm sorry, but I don't understand what you are asking for.
>
> When a data-check is run, it should generate events just like when a
> resync or recovery is run. These will be passed to any --program that
> you give to mdadm --monitor.
> In that program you can differentiate between
> data-check/resync/recovery by looking in /proc/mdstat.
>
> Do you want the events to be different for the different types of
> 'resync' (check/sync/recover)?? So you can get an SMS on a resync
> start but not on a data-check start? Is that it?
>
> I don't understand
> "It would be very nice, when it would be possible to trigger a
> Datacheck with a event command. "
> at all. How would an event command trigger a Datacheck???
>
I would handle this by configuring syslog to write to a fifo, then
running a daemon to read the messages and send whatever SMS you like. I
do this on my mail server and firewall systems, both do adaptive
configuration of the iptables firewall based on behavior of connected hosts.
See syslog.conf, the "|" feature. My daemon is a perl script which just
sucks on the fifo (see mkdev) for the information to process.
--
Bill Davidsen <davidsen@tmr.com>
"Woe unto the statesman who makes war without a reason that will still
be valid when the war is over..." Otto von Bismark
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-05-09 15:06 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <481EF5A5.3030501@serverleih.de>
2008-05-06 2:45 ` mdadm feature suggestion Neil Brown
2008-05-09 15:06 ` Bill Davidsen
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).