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