summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Teigland <teigland@redhat.com>2015-07-10 11:48:50 -0500
committerDavid Teigland <teigland@redhat.com>2015-07-10 15:53:21 -0500
commitb8538f5dcd2e1c0880607a2bbd067d6aa60e689a (patch)
treed123dcf5d2e696ecb3a7c6f544a7ebdf5dde233d
parentc4fdcb04be174dd3ec68eb0c3f17dd8a08314b59 (diff)
downloadlvm2-b8538f5dcd2e1c0880607a2bbd067d6aa60e689a.tar.gz
vgchange: allow changing to lockd type when mirrors exist
and update lvmlockd man page to reflect the fact that mirror LVs work correctly in lockd VGs.
-rw-r--r--man/lvmlockd.8.in4
-rw-r--r--tools/vgchange.c17
2 files changed, 1 insertions, 20 deletions
diff --git a/man/lvmlockd.8.in b/man/lvmlockd.8.in
index 4d9b3f59e..c3b0ac08c 100644
--- a/man/lvmlockd.8.in
+++ b/man/lvmlockd.8.in
@@ -682,13 +682,11 @@ it are not autoactivated.
Things that do not yet work in lockd VGs:
.br
-- old style mirror LVs (only raid1)
-.br
- creating a new thin pool and a new thin LV in a single command
.br
- using lvcreate to create cache pools or cache LVs (use lvconvert)
.br
-- splitting raid1 mirror LVs
+- splitting mirrors and snapshots from LVs
.br
- vgsplit
.br
diff --git a/tools/vgchange.c b/tools/vgchange.c
index 4b90b56e8..95cffafe1 100644
--- a/tools/vgchange.c
+++ b/tools/vgchange.c
@@ -604,23 +604,6 @@ static int _vgchange_locktype(struct cmd_context *cmd,
return 0;
}
- /*
- * Check if there are any LV types in the VG that cannot be handled
- * with the new lock type. Remove this once all LV types can be
- * handled.
- */
- if (is_lockd_type(lock_type)) {
- dm_list_iterate_items(lvl, &vg->lvs) {
- lv = lvl->lv;
-
- if (lv_is_mirror_type(lv)) {
- log_error("Changing to lock type %s is not allowed with mirror type LV %s/%s",
- lock_type, vg->name, display_lvname(lv));
- return 0;
- }
- }
- }
-
/* none to clvm */
if (!strcmp(vg->lock_type, "none") && !strcmp(lock_type, "clvm")) {
log_warn("New clvm lock type will not be usable with lvmlockd.");