diff options
author | David Teigland <teigland@redhat.com> | 2019-03-22 12:07:31 -0500 |
---|---|---|
committer | David Teigland <teigland@redhat.com> | 2019-04-04 13:21:38 -0500 |
commit | c33770c02d9d6b9deddbc1b3c52c77c1a17ea246 (patch) | |
tree | 669587fc57bb32ede9f5447edf142346a789ef1a /lib/metadata/mirror.c | |
parent | 50800e33d56176e034970f93c5f87f59ecd569db (diff) | |
download | lvm2-c33770c02d9d6b9deddbc1b3c52c77c1a17ea246.tar.gz |
lvmlockd: do not allow mirror LV to be activated shared
This reverts 518a8e8cfbb672c2bf5e3455f1fe7cd8d94eb5b0
"lvmlockd: activate mirror LVs in shared mode with cmirrord"
because while activating a mirror LV with cmirrord worked,
changes to the active cmirror did not work.
Diffstat (limited to 'lib/metadata/mirror.c')
-rw-r--r-- | lib/metadata/mirror.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/lib/metadata/mirror.c b/lib/metadata/mirror.c index 69505462f..845945728 100644 --- a/lib/metadata/mirror.c +++ b/lib/metadata/mirror.c @@ -2056,18 +2056,6 @@ int lv_add_mirrors(struct cmd_context *cmd, struct logical_volume *lv, return 0; } - if (lv->vg->lock_type && !strcmp(lv->vg->lock_type, "dlm") && cmd->lockd_lv_sh) { - if (!cluster_mirror_is_available(cmd)) { - log_error("Shared cluster mirrors are not available."); - return 0; - } - - if (log_count > 1) { - log_error("Log type, \"mirrored\", is unavailable to cluster mirrors."); - return 0; - } - } - /* For corelog mirror, activation code depends on * the global mirror_in_sync status. As we are adding * a new mirror, it should be set as 'out-of-sync' |