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:
parent
b9ade4bc21
commit
17d1ae7ee2
@ -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.
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user