DLM_TOOL(8)
π NAME π
dlm_tool β bestie, this is the little utility that hangs out with the dlm and dlm_controld daemon π¦ it's your group chat with the daemon basically
β¨ SYNOPSIS β¨
dlm_tool [COMMAND] [OPTIONS] [ name ]
π COMMANDS π
lsβ shows you the dlm_controld internal lockspace state. the inside scoop πstatusβ dumps the whole dlm_controld daemon state. main character energy, it's giving everythingdumpβ dumps the dlm_controld debug bufferdump_configβ dumps the dlm_controld config settingsreload_configβ reloads the dlm_controld config settings fromdlm.confset_config setting=valueβ sets dlm_controld config settings inside the daemon that's currently running, live, no restart, iconicfence_ack nodeidβ cancels a waiting fencing operation and just considers it successful. yeah. we're calling it a win π«Άlog_plockβ dumps the dlm_controld plock debug bufferplocks lockspace_nameβ dumps posix locks from dlm_controld for that lockspacejoin lockspace_nameβ join a lockspace, come through πleave lockspace_nameβ leave a lockspace, ok bye πjoinleave lockspace_nameβ join then immediately leave a lockspace (for testing only.)lockdebug lockspace_nameβ the complete display of locks from the lockspacelockdump lockspace_nameβ minimal display of locks from the lockspace (deprecated β οΈ)run commandβ run the command and check for the result (for lvmlockd only.)run_start commandβ run the command and don't check for the resultrun_check uuidβ check the status of a command that was runrun_cancel uuidβ cancel a command that was run and is not yet donerun_listβ dump a list of running commands
π OPTIONS π
-nβ show all node information fromdlm_tool ls-d 0|1β resource directory off/on in join, default0-e 0|1β exclusive create off/on in join, default0-f 0|1β FS (filesystem) flag off/on in join, default0-i secβ seconds to wait inrun_check-m modeβ permission mode for the lockspace device (octal), default0600-sβ summary following lockdebug output (experiemental)-vβ verbose lockdebug or status output-wβ wide lockdebug output-Mβ include MSTCPY locks in lockdump output-hβ print help, then exit-Vβ print program version information, then exit
πΈ USAGE πΈ
π fence_ack
Go look at dlm_tool status for the info about waiting fencing operations for specific nodeid's. that's where the tea is β
π set_config
dlm_tool set_config can change certain config settings in the dlm_controld that's currently running. here's what's supported:
daemon_debuglog_debugdebug_logfileplock_debugplock_rate_limitdrop_resources_timedrop_resources_countdrop_resources_agepost_join_delayenable_quorum_fencingenable_quorum_lockspacerepeat_failed_fencing
Special cases, for when you wanna revert a previous set_config and restore the previous value (from the default or from dlm.conf):
dlm_tool set_config setting=restore
restores a single setting.
dlm_tool set_config restore_all
restores all settings. the undo button, but make it CLI π
π¦ dump_config
A config setting might have been set from any of these: the default, the dlm_controld command line, dlm.conf at startup, dlm.conf from reload_config, or dlm_tool set_config. The dump_config output literally tells you how the values were set:
setting=valueβ default value.setting=value (cli option)β set from adlm_controldcommand line option.setting=value (dlm.conf)β set fromdlm.conf(at startup or reload.)setting=value (set_config)β set fromdlm_tool set_config.
β EXAMPLES β
π dump_config
$ dlm_tool dump_config | head -n 5
daemon_debug=1 (set_config)
foreground=0
log_debug=1 (dlm.conf)
protocol=detect
So in this case, daemon_debug is set by set_config, log_debug is set from dlm.conf, and foreground and protocol are just out here using default values. no notes β¨
π set_config
$ dlm_tool dump_config | grep log_debug
log_debug=1 (dlm.conf)
$ dlm_tool set_config "log_debug=0"
set_config done
$ dlm_tool dump_config | grep log_debug
log_debug=0 (set_config)
$ dlm_tool set_config "log_debug=restore"
set_config done
$ dlm_tool dump_config | grep log_debug
log_debug=1 (dlm.conf)
So log_debug is set by dlm.conf (value is 1), then you run set_config to change it to 0, then you use restore to restore it to the dlm.conf setting. the character development π
π set_config
$ dlm_tool dump_config | grep _debug
daemon_debug=0
log_debug=1 (dlm.conf)
plock_debug=0
$ dlm_tool set_config "daemon_debug=1 log_debug=1 plock_debug=1"
set_config done
$ dlm_tool dump_config | grep _debug
daemon_debug=1 (set_config)
log_debug=1 (set_config)
plock_debug=1 (set_config)
$ dlm_tool set_config "restore_all"
set_config done
$ dlm_tool dump_config | grep _debug
daemon_debug=0
log_debug=1 (dlm.conf)
plock_debug=0
π SEE ALSO π
okay bestie that's the whole page, you're fully caught up, no cap π§
this was dlm, dated 2012-04-05, and it lives in section DLM_TOOL(8) of the manual β mwah, go read the friends it shouted out π
π¦ where this page comes from
- debian bookworm: dlm-controld 4.2.0-2 Β· GPL-2.0-or-later
- debian trixie: dlm-controld 4.3.0-3 Β· GPL-2.0-or-later
- fedora 43: dlm 4.3.0-6.fc43 Β· GPL-2.0-only AND GPL-2.0-or-later AND LGPL-2.0-or-later
- fedora 44: dlm 4.3.0-8.fc44 Β· GPL-2.0-only AND GPL-2.0-or-later AND LGPL-2.0-or-later
- opensuse-leap 16.0: libdlm 4.3.0-160000.3.2 Β· GPL-2.0-only AND GPL-2.0-or-later AND LGPL-2.1-or-later
- opensuse-leap 16.0: libdlm 4.3.0-160000.3.2 Β· GPL-2.0-only AND GPL-2.0-or-later AND LGPL-2.1-or-later
- opensuse-leap 16.0: libdlm 4.3.0-160000.3.2 Β· GPL-2.0-only AND GPL-2.0-or-later AND LGPL-2.1-or-later
- opensuse-leap 16.0: libdlm 4.3.0-160000.3.2 Β· GPL-2.0-only AND GPL-2.0-or-later AND LGPL-2.1-or-later
- ubuntu noble: dlm-controld 4.2.0-3build1 Β· GPL-2.0-or-later
- ubuntu questing: dlm-controld 4.3.0-3build1
- ubuntu resolute: dlm-controld 4.3.0-3build2 Β· GPL-2.0-or-later
- ubuntu stonking: dlm-controld 4.3.0-3build2 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms