LVMLOCKCTL(8)
π LVMLOCKCTL(8) β the manual page, but make it group chat
okay so this is lvmlockctl, from the System Manager's Manual section, and honestly? she's the little sidekick to lvmlockd(8) and she's iconic for it. π
β¨ NAME
lvmlockctl β the control remote for lvmlockd πΉοΈ
π¦ SYNOPSIS
lvmlockctl [options]
πΈ DESCRIPTION
bestie, this command talks to lvmlockd(8). that's the whole vibe. it's the way you poke the lock daemon and ask it things, or tell it things, or (respectfully) tell it to log off. π
π OPTIONS
-h,--helpβ shows you this help info. the "what does this even do" button π«Ά-q,--quitβ tellslvmlockdto quit. like, bye bestie π-i,--infoβ prints the lock state info straight out oflvmlockdβ-d,--dumpβ prints the log buffer fromlvmlockdπ-w,--wait 0|1β the wait option, for the other commands. give it a0or a1π-f,--force 0|1β the force option, for the other commands. again:0or1, no cap β¨-k,--kill vgnameβ kills access to the VG when sanlock can't renew the lease π scary but necessary-r,--drop vgnameβ clears the locks for the VG when it's unused, after a kill (-k) π§Ή-E,--gl-enable vgnameβ tellslvmlockdto enable the global lock in a sanlock VG π₯-D,--gl-disable vgnameβ tellslvmlockdto disable the global lock in a sanlock VG π-S,--stop-lockspacesβ stops all the lockspaces. all of them. periodt π
π USAGE
π --info
this one collects and displays the lock state from lvmlockd. heads up though β the display is primitive, incomplete, and may change in future versions, so don't get too attached, she's still growing π±
if you wanna see the raw info lines from lvmlockd, combine this option with --dump|-d. very "why not both" of you π
each VG lockspace may include lines with these prefixes:
"VG"for volume group info"LS"for lockspace info"PR"for persistent reservation fencing info"LK"for lock info"LW"for waiting lock info
iykyk π
π§ --dump
this collects the circular log buffer of debug statements from lvmlockd and prints it. it's giving receipts π
π --kill
okay so this one is run by sanlock when it loses access to the storage holding leases for a VG. it runs the command specified in the lvm.conf lvmlockctl_kill_command setting to deactivate LVs in the VG.
if that specified command is successful, locks will be dropped for the VG in lvmlockd β literally the equivalent of running lvmlockctl --drop. slay β¨
but if no command is specified, or the command fails, then the user has to intervene and forcibly deactivate LVs in the VG, and if that works, run lvmlockctl --drop. for more, see lvmlockd(8) π«Ά
not me stressing β this is the "things went sideways" path, so pay attention fr fr
π --drop
this should only be run after a VG has been successfully deactivated following an lvmlockctl --kill command. it clears the stale lockspace from lvmlockd.
when lvmlockctl_kill_command is used, the --kill command may run drop automatically. for more, see lvmlockd(8) β
π₯ --gl-enable
this enables the global lock in a sanlock VG. it's necessary if the VG that previously held the global lock is removed. for more, see lvmlockd(8) π
π --gl-disable
this disables the global lock in a sanlock VG. it's 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 lvmlockd(8) π
π― --stop-lockspaces
this tells lvmlockd to stop all lockspaces. it can be useful to stop lockspaces for VGs that the vgchange --lockstop command can no longer 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 π
π¦ SEE ALSO
that's the whole page bestie, go forth and lock responsibly π«Άβ¨
Red Hat, Inc. β LVM TOOLS 2.03.43(2)-RHEL10 β (2026-10-13) π that's the source, the version, and the date, all cute and accounted for. mwah π
π¦ where this page comes from
- centos-stream 10: lvm2-lockd 10:2.03.43-1.el10 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms