All of lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Rabbitson <rabbit@rabbit.us>
To: linux-raid@vger.kernel.org
Subject: Re: Customize the error emails of  `mdadm --monitor`
Date: Wed, 06 Jun 2007 16:24:31 +0200	[thread overview]
Message-ID: <4666C39F.6040504@rabbit.us> (raw)
In-Reply-To: <20070606141035.GA9404@boogie.lpds.sztaki.hu>

Gabor Gombas wrote:
> On Wed, Jun 06, 2007 at 02:23:31PM +0200, Peter Rabbitson wrote:
> 
>> This would not work as arrays are assembled by the kernel at boot time, at 
>> which point there is no udev or anything else for that matter other than 
>> /dev/sdX. And I am pretty sure my OS (debian) does not support udev in 
>> initrd as of yet.
> 
> But I think sending mails from the initrd isn't supported either, so if
> you already hack the initrd, you can get the path information from
> sysfs. udev is nothing magical, it just walks the sysfs tree and calls
> some little helper programs when collecting the information for building
> /dev/disk; you can do that yourself if you want.
> 
> Gabor
> 

I think I did not make my problem clear enough. The _device name_ 
reported in the emails is the one with which the array was initially 
assembled. For this I have two choices:

* Kernel auto-assembly - the parts are properly detected and assembled, 
but there is no strong relationship between component number and sdX, 
especially if asynchronous scsi scanning takes place.

* Assembly by mdadm.conf - I can put whatever block devices I want in 
there, and they will be preserved in the email, but it is very 
cumbersome to do it for root and other system partitions.

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.


  reply	other threads:[~2007-06-06 14:24 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 [this message]
2007-06-06 20:49           ` Gabor Gombas
2007-06-06 20:59             ` Peter Rabbitson

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=4666C39F.6040504@rabbit.us \
    --to=rabbit@rabbit.us \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.