1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

Temporarily disable dmeventd mirror monitoring during lvchange --resync.

This commit is contained in:
Alasdair Kergon 2008-05-21 14:10:11 +00:00
parent 25fbec5be1
commit ace5664e7d
2 changed files with 8 additions and 0 deletions

View File

@ -6,6 +6,7 @@ Version 2.02.38 -
Version 2.02.37 -
=================================
Temporarily disable dmeventd mirror monitoring during lvchange --resync.
Refactor some vginfo manipulation code.
Add assertions to trap deprecated P_ and V_ lock usage.
Add missing mutex around clvmd lvmcache_drop_metadata library call.

View File

@ -178,6 +178,7 @@ static int lvchange_resync(struct cmd_context *cmd,
struct logical_volume *lv)
{
int active = 0;
int monitored;
struct lvinfo info;
struct logical_volume *log_lv;
@ -221,6 +222,10 @@ static int lvchange_resync(struct cmd_context *cmd,
}
}
/* Activate exclusively to ensure no nodes still have LV active */
monitored = dmeventd_monitor_mode();
init_dmeventd_monitor(0);
if (vg_is_clustered(lv->vg) && !activate_lv_excl(cmd, lv)) {
log_error("Can't get exclusive access to clustered volume %s",
lv->name);
@ -232,6 +237,8 @@ static int lvchange_resync(struct cmd_context *cmd,
return 0;
}
init_dmeventd_monitor(monitored);
log_lv = first_seg(lv)->log_lv;
log_very_verbose("Starting resync of %s%s%s mirror \"%s\"",