mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-02 01:18:26 +03:00
Fix pvmove if LV is activated exclusively but cmirror is not running.
In this case we should allow to use local mirror, check for cmirror should apply only for lvconvert/lvcreate. Introduced in 2.02.86 by removing !(lv->status & ACTIVATE_EXCL). (Partially workaround, it is minimalistic patch for now.)
This commit is contained in:
parent
2dba563206
commit
7076d1439b
@ -1,5 +1,6 @@
|
|||||||
Version 2.02.96 -
|
Version 2.02.96 -
|
||||||
================================
|
================================
|
||||||
|
Fix pvmove for exclusively activated LV pvmove in clustered VG. (2.02.86)
|
||||||
Always free hash table on update_pvid_to_vgid() in lvmetad.
|
Always free hash table on update_pvid_to_vgid() in lvmetad.
|
||||||
Update and fix monitoring of thin pool devices.
|
Update and fix monitoring of thin pool devices.
|
||||||
Check hash insert success in lock_vg clvmd.
|
Check hash insert success in lock_vg clvmd.
|
||||||
|
@ -2070,7 +2070,10 @@ int lv_add_mirrors(struct cmd_context *cmd, struct logical_volume *lv,
|
|||||||
|
|
||||||
if (vg_is_clustered(lv->vg)) {
|
if (vg_is_clustered(lv->vg)) {
|
||||||
/* FIXME: review check of lv_is_active_remotely */
|
/* FIXME: review check of lv_is_active_remotely */
|
||||||
if (!_cluster_mirror_is_available(lv)) {
|
/* FIXME: move this test out of this function */
|
||||||
|
/* Skip test for pvmove mirrors, it can use local mirror */
|
||||||
|
if (!(lv->status & (PVMOVE | LOCKED)) &&
|
||||||
|
!_cluster_mirror_is_available(lv)) {
|
||||||
log_error("Shared cluster mirrors are not available.");
|
log_error("Shared cluster mirrors are not available.");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user