Bug 199957 - RFE: print a dmeventd message to console when mirror monitoring is turned off
Summary: RFE: print a dmeventd message to console when mirror monitoring is turned off
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: lvm2
Version: 4.0
Hardware: All
OS: Linux
medium
low
Target Milestone: ---
: ---
Assignee: Milan Broz
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-07-24 16:05 UTC by Corey Marthaler
Modified: 2013-03-01 04:04 UTC (History)
5 users (show)

Fixed In Version: RHEL4.5
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2007-11-28 06:55:38 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Corey Marthaler 2006-07-24 16:05:04 UTC
Description of problem:
There is a message when mirror monitoring is turned on, likewise should happen
when it's turned off.
 
Jul 24 05:56:08 taft-04 dmeventd[4274]: Monitoring mirror device, vg-mirror for
events

Comment 1 Jonathan Earl Brassow 2006-11-27 23:36:02 UTC
the crappy part about that is that the monitoring program may reconfigure the
mirror (in the event of a failure) before exiting itself, thus giving you
something like:

taft-04 dmeventd[4274]: Monitoring mirror device, vg-mirror for events
taft-04 dmeventd[4274]: Monitoring mirror device, vg-mirror for events
taft-04 dmeventd[4274]: Unmonitoring mirror device, vg-mirror for events

Just be careful when coding this, and be sure to test the failure scenario...

Comment 2 Milan Broz 2007-02-05 15:40:01 UTC
There is some message already in mirror DSO

Feb  5 15:52:17 vmware199 dmeventd[18937]: Monitoring mirror device
vg_test-lv_test for events
Feb  5 15:52:27 vmware199 lvm[18937]: vg_test-lv_test is now in-sync
Feb  5 15:52:44 vmware199 lvm[18937]: No longer monitoring mirror device
vg_test-lv_test for events

Marking this bug as modified but I am not sure if this message is displayed
correctly in every cases (during reconfigurstion)...

Comment 3 Corey Marthaler 2007-04-23 19:55:51 UTC
The message is in there:

Apr 23 10:18:45 link-08 lvm[9886]: No longer monitoring mirror device VG-mirror
for events

Marking verified.


Note You need to log in before you can comment on or make changes to this bug.