Version 2.02.57 -
====================================
+ Remove log volume from metadata if initial deactivation fails.
Give better error message for pvmove when all data is skipped.
Fix memory lock imbalance in lv_suspend if already suspended.
Fix pvmove test mode to not fail and do not poll.
/* If the LV is active, deactivate it first. */
if (lv_info(cmd, log_lv, &info, 0, 0) && info.exists) {
- if (!deactivate_lv(cmd, log_lv))
- return_0;
+ (void)deactivate_lv(cmd, log_lv);
+ /*
+ * FIXME: workaround to fail early
+ * Ensure that log is really deactivated because deactivate_lv
+ * on cluster do not fail if there is log_lv with different UUID.
+ */
+ if (lv_info(cmd, log_lv, &info, 0, 0) && info.exists) {
+ log_error("Aborting. Unable to deactivate mirror log.");
+ goto revert_new_lv;
+ }
was_active = 1;
}
}
if (!_init_mirror_log(cmd, log_lv, in_sync, &lv->tags, 1)) {
- log_error("Failed to create mirror log.");
+ log_error("Failed to initialise mirror log.");
return NULL;
}