From 1b80b1086fc47b304414b55f4d833eb8011598ee Mon Sep 17 00:00:00 2001 From: Alasdair Kergon Date: Tue, 13 Mar 2012 20:21:26 +0000 Subject: [PATCH] Fix error message when pvmove LV activation fails with name already in use. --- WHATS_NEW | 1 + tools/pvmove.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/WHATS_NEW b/WHATS_NEW index b39bc9d40..1bfcc6e2a 100644 --- a/WHATS_NEW +++ b/WHATS_NEW @@ -1,5 +1,6 @@ Version 2.02.96 - ================================ + Fix error message when pvmove LV activation fails with name already in use. Better structure layout for device_info in dev_subsystem_name(). Change message severity for creation of VG over uninitialised devices. Fix error path for failing toolcontext creation. diff --git a/tools/pvmove.c b/tools/pvmove.c index 31bb739a3..8d543b0df 100644 --- a/tools/pvmove.c +++ b/tools/pvmove.c @@ -369,7 +369,7 @@ static int _update_metadata(struct cmd_context *cmd, struct volume_group *vg, } if (!_suspend_lvs(cmd, first_time, lv_mirr, lvs_changed, vg)) { - log_error("ABORTING: Volume group metadata update failed. (first_time: %d)", first_time); + log_error("ABORTING: Temporary pvmove mirror %s failed.", first_time ? "activation" : "reload"); /* FIXME Add a recovery path for first time too. */ if (!first_time && !revert_lv(cmd, lv_mirr)) stack;