1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-02 01:18:26 +03:00

Suppress pvmove abort message in test mode.

This commit is contained in:
Alasdair Kergon 2004-09-14 15:23:42 +00:00
parent b9ade4bc21
commit 17d1ae7ee2
2 changed files with 5 additions and 2 deletions

View File

@ -1,5 +1,6 @@
Version 2.00.23 -
====================================
Suppress pvmove abort message in test mode.
Improve pvcreate/remove device not found error message.
Allow pvmove to move data within the same PV.
Describe how pvmove works on man page.

View File

@ -231,8 +231,10 @@ static int _update_metadata(struct cmd_context *cmd, struct volume_group *vg,
/* Only the first mirror segment gets activated as a mirror */
if (first_time) {
if (!activate_lv(cmd, lv_mirr->lvid.s)) {
log_error("ABORTING: Temporary mirror activation "
"failed. Run pvmove --abort.");
if (!test_mode())
log_error("ABORTING: Temporary mirror "
"activation failed. "
"Run pvmove --abort.");
/* FIXME Resume using *original* metadata here! */
resume_lvs(cmd, lvs_changed);
return 0;