Repetitive lvchange -ay on already active volume would spawn multiple polling processes. Signed-off-by: Mikulas Patocka --- tools/lvchange.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) Index: LVM2.2.02.39/tools/lvchange.c =================================================================== --- LVM2.2.02.39.orig/tools/lvchange.c 2008-07-06 22:30:11.000000000 +0200 +++ LVM2.2.02.39/tools/lvchange.c 2008-07-06 22:30:57.000000000 +0200 @@ -135,6 +135,8 @@ static int lvchange_availability(struct if (!deactivate_lv(cmd, lv)) return_0; } else { + int was_active = lv_is_active(lv); + if (lockingfailed() && (vg_is_clustered(lv->vg))) { log_verbose("Locking failed: ignoring clustered " "logical volume %s", lv->name); @@ -158,7 +160,8 @@ static int lvchange_availability(struct return_0; } - lvchange_activate_background_polling(cmd, lv); + if (!was_active) + lvchange_activate_background_polling(cmd, lv); } return 1;