1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-23 21:35:29 +03:00

Revert "lvconvert: disable linear to mirror of active LV in cluster VG"

This reverts commit 8623e33651.

The problem this was avoiding now seems to be fixed by
commit d6bce03615
  mirror: fix monitoring change
This commit is contained in:
David Teigland 2019-06-19 10:40:37 -05:00
parent 1727df7c98
commit f3a87a2c2e

View File

@ -863,17 +863,6 @@ static int _lvconvert_mirrors_aux(struct cmd_context *cmd,
if (!lv_is_mirrored(lv)) {
/* FIXME Share code with lvcreate */
/*
* Avoid bug 1711427 in which an exclusively active linear LV in a
* clustered VG, when upconverted to a mirror, will mistakenly use
* a userspace/cmirror log in _add_log() beause laopts.exclusive is
* not set.
*/
if (vg_is_clustered(lv->vg) && lv_is_active(lv)) {
log_error("Cannot convert active LV to mirror in clustered VG.");
return 0;
}
/*
* FIXME should we give not only pvh, but also all PVs
* currently taken by the mirror? Would make more sense from