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@xxxxxxxxxx [mailto:dm-devel-bounces@xxxxxxxxxx] On Behalf Of Mike Anderson Sent: Friday, May 16, 2008 8:27 AM To: device-mapper development Subject: Re: simple question... to tough to answer? Hannes Reinecke <hare@xxxxxxx> 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@xxxxxxxxxxxxxxxxxx -- dm-devel mailing list dm-devel@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/dm-devel -- dm-devel mailing list dm-devel@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/dm-devel