[dm-devel] simple question... to tough to answer?

Craig Simpson csimpson at visto.com
Thu Jun 5 19:06:46 UTC 2008


By chance does anyone have a working configuration of some example of
this working?

I am not so interested in a SNMP trap. But if I could have it email/page
me, now that would rock. 

Craig

-----Original Message-----
From: dm-devel-bounces at redhat.com [mailto:dm-devel-bounces at redhat.com]
On Behalf Of Mike Anderson
Sent: Friday, May 16, 2008 8:27 AM
To: device-mapper development
Subject: Re: [dm-devel] simple question... to tough to answer?

Hannes Reinecke <hare at suse.de> wrote:
> Hi Wim,
>
> Wim Colgate wrote:
>> Hi,
>>
>> I???m not quite sure why no one in the community hasn???t been able
to 
>> answer my questions.
>>
>> Simply (re)stated:
>>
>> 1) Are there hooks for dm/multipath events to notify software?
>>
> Yes. There is the general dm_event mechanism (which I wouldn't
recommend)
> or with newer kernels you'll get netlink events from multipath for any
> path-related events.
>

You can look at the documentation in recent kernels trees to get an
example of the event attributes provided with each event using the
uevent interface: Documentation/device-mapper/dm-uevent.txt

>> 2) does path down/up fire up udev rules?
>>
> Not as such. As stated above we should be sending out netlink events
for
> path up/down events, but to my knowledge no-one is taking advantage
> of them. Certainly not udev in its default setting nor multipath.

One should note that if using the the current git version of the
multipath
tools and one wants to experiment with additional events one would need
to
add a udev rule "(i.e., RUN+="socket:...") You can reference this
previous
email for context.
http://article.gmane.org/gmane.linux.scsi/36165

On some what related note. With all the work around making sure we can
run
in low memory situations we should make a choice to use raw netlink
interface or the udev abstract namespace socket.

-andmike
--
Michael Anderson
andmike at linux.vnet.ibm.com

--
dm-devel mailing list
dm-devel at redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel




More information about the dm-devel mailing list