diff options
author | David Teigland <teigland@redhat.com> | 2018-06-13 15:30:28 -0500 |
---|---|---|
committer | David Teigland <teigland@redhat.com> | 2018-06-13 15:30:28 -0500 |
commit | e53cfc6a88d7acafde6ba3fa293bcf15b9a033bc (patch) | |
tree | 92827a6ded5f4af25e6bd8277f937279a26e6be5 /tools/vgchange.c | |
parent | 9b79f0244a17c91d790e2114e1c912e5efe00a2f (diff) | |
download | lvm2-e53cfc6a88d7acafde6ba3fa293bcf15b9a033bc.tar.gz |
lvmlockd: update method for changing clustered VG
The previous method for forcibly changing a clustered VG
to a local VG involved using -cn and locking_type 0.
Since those options are deprecated, replace it with
the same command used for other forced lock type changes:
vgchange --locktype none --lockopt force.
Diffstat (limited to 'tools/vgchange.c')
-rw-r--r-- | tools/vgchange.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/vgchange.c b/tools/vgchange.c index b427a81bd..891f22a14 100644 --- a/tools/vgchange.c +++ b/tools/vgchange.c @@ -1039,6 +1039,7 @@ int vgchange_locktype_cmd(struct cmd_context *cmd, int argc, char **argv) cmd->lockd_vg_disable = 1; cmd->lockd_lv_disable = 1; cmd->handles_missing_pvs = 1; + cmd->force_access_clustered = 1; goto process; } |