Skip to contentSkip to conversation

how to determine polling and dmeventd monitoing state?

DISCUSSION ben 3 participants 3 messages Jul 10, 2012 – Jul 11, 2012

lore
Share & tools
lore

ben

author
#0 lore raw

I know that I can look through the deamon log to see if dmeventd ismonitoring a volume but is there any practical way for a program to query the system to get that information? Is the polling status displayed or accessable anywhere? I certainly can't find it. Thank you.

Thank you.
benscott at nwlink.com

#1 lore raw
Quoted 4 lines · ben

I know that I can look through the deamon log to see if dmeventd ismonitoring a volume but is there any practical way for a program to query the system to get that information? Is the polling status displayed or accessable anywhere? I certainly can't find it. Thank you.

Good point. It's available internally through
seg->segtype->ops->target_monitored()
and we need to expose this through lvs.

Alasdair

#2 lore raw
Quoted 9 lines · Alasdair G Kergon
Quoted 4 lines · ben

I know that I can look through the deamon log to see if dmeventd ismonitoring a volume but is there any practical way for a program to query the system to get that information? Is the polling status displayed or accessable anywhere? I certainly can't find it. Thank you.

Good point. It's available internally through
seg->segtype->ops->target_monitored()
and we need to expose this through lvs.

In addition to that, we could also revive the 'dmevent_tool' that is a part of the dmraid at the moment and include this one in lvm2 upstream (probably as a part of dmsetup or dmeventd or a separate tool even). Existing tool from dmraid upstream is supposed to show dm devices in general and their status with respect to dmeventd monitoring. Though the tool itself needs a bit of a cleanup before porting.

There's also a bugzilla report open for this functionality:
https://bugzilla.redhat.com/show_bug.cgi?id=805425

Peter