]> sourceware.org Git - lvm2.git/commit
vgchange: separate change locktype and allow recovery
authorDavid Teigland <teigland@redhat.com>
Wed, 12 Jul 2017 21:03:41 +0000 (16:03 -0500)
committerDavid Teigland <teigland@redhat.com>
Mon, 24 Jul 2017 19:12:08 +0000 (14:12 -0500)
commitf611b68f3c02b9af2521d7ea61061af3709fe87c
tree013b6a630464e60282d0946906f75b0db834109d
parent876c4a1b3bdf2d2f9202438a406a803efa01bf9a
vgchange: separate change locktype and allow recovery

Add an independent command definition for "vgchange --locktype",
and split the implementation out of the set of common metadata
changes.  It is unlike normal metadata changes, and can only
be run by itself.  (Changing the lock type is similar in
principle to changing the VG name or the VG system ID; it
effects the ability of any host to see or access the VG.)

At some point this command lost the ability to forcibly change
the lock type of a shared VG to "none" (making it a local VG).
This can be necessary to repair shared VGs (e.g. recovery steps
that occur in vg_read are disabled for shared VGs because
they are not locked properly, or recovering sanlock locks
when the PV holding them is lost.)

"vgchange --locktype none --lockopt force VG" is used as the
method of forcing the shared VG to become local so that it
can be repaired.
man/lvmlockd.8_main
tools/command-lines.in
tools/lvmcmdline.c
tools/tools.h
tools/vgchange.c
This page took 0.039741 seconds and 5 git commands to generate.