Thread (9 messages) 9 messages, 3 authors, 2007-06-06

Re: Customize the error emails of `mdadm --monitor`

From: Peter Rabbitson <hidden>
Date: 2007-06-06 20:59:08

Gabor Gombas wrote:
On Wed, Jun 06, 2007 at 04:24:31PM +0200, Peter Rabbitson wrote:
quoted
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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help