From: Peter Rabbitson <rabbit@rabbit.us>
To: Gabor Gombas <gombasg@sztaki.hu>
Cc: linux-raid@vger.kernel.org
Subject: Re: Customize the error emails of `mdadm --monitor`
Date: Wed, 06 Jun 2007 22:59:08 +0200 [thread overview]
Message-ID: <4667201C.5050304@rabbit.us> (raw)
In-Reply-To: <20070606204925.GA23777@boogie.lpds.sztaki.hu>
Gabor Gombas wrote:
> On Wed, Jun 06, 2007 at 04:24:31PM +0200, Peter Rabbitson wrote:
>
>> So I was asking if the component _number_, which is unique to a specific
>> device regardless of the assembly mechanism, can be reported in case of a
>> failure.
>
> So you need to write an event-handling script and pass it to mdadm
> (--program). In the script you can walk sysfs and/or call the
> appropriate helper programs to extract all the information you need and
> format it in the way you want. For example, if you want the slot number
> of a failed disk, you can get it from /sys/block/$2/md/dev-$3/slot
> (according to the manpage, not tested).
>
Now that's some real advice. I have not thought of that. Thank you!
Peter
prev parent reply other threads:[~2007-06-06 20:59 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-02 16:05 Customize the error emails of `mdadm --monitor` Peter Rabbitson
2007-06-06 11:31 ` Peter Rabbitson
2007-06-06 12:11 ` Iustin Pop
2007-06-06 12:23 ` Peter Rabbitson
2007-06-06 13:26 ` Iustin Pop
2007-06-06 14:10 ` Gabor Gombas
2007-06-06 14:24 ` Peter Rabbitson
2007-06-06 20:49 ` Gabor Gombas
2007-06-06 20:59 ` Peter Rabbitson [this message]
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=4667201C.5050304@rabbit.us \
--to=rabbit@rabbit.us \
--cc=gombasg@sztaki.hu \
--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).