2015-09-04 19:02:48 +03:00
.TH "LVMLOCKCTL" "8" "LVM TOOLS #VERSION#" "Red Hat, Inc" "\""
2021-04-13 16:26:54 +03:00
.
2015-09-04 19:02:48 +03:00
.SH NAME
2021-04-13 16:26:54 +03:00
.
lvmlockctl \(em Control for lvmlockd
.
.SH SYNOPSIS
.
.BR lvmlockctl " [" \fIoptions ]
.
2015-09-04 19:02:48 +03:00
.SH DESCRIPTION
2021-04-13 16:26:54 +03:00
.
2015-09-04 19:02:48 +03:00
This command interacts with
.BR lvmlockd (8).
2021-04-13 16:26:54 +03:00
.
2015-09-04 19:02:48 +03:00
.SH OPTIONS
2021-04-13 16:26:54 +03:00
.
.TP
.BR -h | --help
Show this help information.
.
.TP
.BR -q | --quit
Tell lvmlockd to quit.
.
.TP
.BR -i | --info
Print lock state information from lvmlockd.
.
.TP
.BR -d | --dump
Print log buffer from lvmlockd.
.
.TP
.BR -w | --wait\ 0 | 1
Wait option for other commands.
.
.TP
.BR -f | --force\ 0 | 1
Force option for other commands.
.
.TP
.BR -k | --kill " " \fIvgname
Kill access to the VG when sanlock cannot renew lease.
.
.TP
.BR -r | --drop " " \fIvgname
Clear locks for the VG when it is unused after kill (-k).
.
.TP
.BR -E | --gl-enable " " \fIvgname
Tell lvmlockd to enable the global lock in a sanlock VG.
.
.TP
.BR -D | --gl-disable " " \fIvgname
Tell lvmlockd to disable the global lock in a sanlock VG.
.
.TP
.BR -S | --stop-lockspaces
Stop all lockspaces.
.
2015-09-04 19:02:48 +03:00
.SH USAGE
2021-04-13 16:26:54 +03:00
.
2021-04-15 14:16:41 +03:00
.TP
.B --info
2015-09-04 19:02:48 +03:00
This collects and displays lock state from lvmlockd. The display is
primitive, incomplete and will change in future version. To print the raw
2017-03-27 17:45:48 +03:00
lock state from lvmlockd, combine this option with --dump|-d.
2021-04-13 16:26:54 +03:00
.
2021-04-15 14:16:41 +03:00
.TP
.B --dump
2015-09-04 19:02:48 +03:00
This collects the circular log buffer of debug statements from lvmlockd
and prints it.
2021-04-13 16:26:54 +03:00
.
2021-04-15 14:16:41 +03:00
.TP
.B --kill
2015-09-04 19:02:48 +03:00
This is run by sanlock when it loses access to the storage holding leases
2021-03-02 00:22:54 +03:00
for a VG. It runs the command specified in lvm.conf
lvmlockctl_kill_command to deactivate LVs in the VG. If the specified
command is successful, locks will be dropped for the VG in lvmlockd
2021-04-15 14:16:41 +03:00
(the equivalent of \fBlvmlockctl --drop\fP will be run.) If no command
2021-03-02 00:22:54 +03:00
is specified, or the command fails, then the user must intervene
to forcefully deactivate LVs in the VG, and if successful, run
2021-04-15 14:16:41 +03:00
\fBlvmlockctl --drop\fP. For more, see
2015-09-04 19:02:48 +03:00
.BR lvmlockd (8).
2021-04-13 16:26:54 +03:00
.
2021-04-15 14:16:41 +03:00
.TP
.B --drop
2015-09-04 19:02:48 +03:00
This should only be run after a VG has been successfully deactivated
2017-03-27 17:45:48 +03:00
following an lvmlockctl --kill command. It clears the stale lockspace
2021-03-02 00:22:54 +03:00
from lvmlockd. When lvmlockctl_kill_command is used, the --kill
command may run drop automatically. For more, see
2015-09-04 19:02:48 +03:00
.BR lvmlockd (8).
2021-04-13 16:26:54 +03:00
.
2021-04-15 14:16:41 +03:00
.TP
.B --gl-enable
2015-09-04 19:02:48 +03:00
This enables the global lock in a sanlock VG. This is necessary if the VG
that previously held the global lock is removed. For more, see
.BR lvmlockd (8).
2021-04-13 16:26:54 +03:00
.
2021-04-15 14:16:41 +03:00
.TP
.B --gl-disable
2015-09-04 19:02:48 +03:00
This disables the global lock in a sanlock VG. This is necessary if the
global lock has mistakenly been enabled in more than one VG. The global
lock should be disabled in all but one sanlock VG. For more, see
.BR lvmlockd (8).
2021-04-13 16:26:54 +03:00
.
2021-04-15 14:16:41 +03:00
.TP
.B --stop-lockspaces
2015-09-04 19:02:48 +03:00
This tells lvmlockd to stop all lockspaces. It can be useful to stop
2021-04-15 14:16:41 +03:00
lockspaces for VGs that the \fBvgchange --lock-stop\fP command can no longer
2015-09-04 19:02:48 +03:00
see, or to stop the dlm global lockspace which is not directly stopped by
the vgchange command. The wait and force options can be used with this
command.
2021-04-13 16:26:54 +03:00
.
.SH SEE ALSO
.
.BR lvm (8),
.BR lvmlockd (8)