From: Heming Zhao <heming.zhao@suse.com>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] [PATCH 2/5] man: add reload_config in dlm_tool & dlm.conf
Date: Sat, 25 Sep 2021 22:21:39 +0800 [thread overview]
Message-ID: <20210925142142.1821-3-heming.zhao@suse.com> (raw)
In-Reply-To: <20210925142142.1821-1-heming.zhao@suse.com>
Signed-off-by: Heming Zhao <heming.zhao@suse.com>
---
dlm_controld/dlm.conf.5 | 42 ++++++++++++++++++++++++++++++-----------
dlm_tool/dlm_tool.8 | 11 +++++++++++
2 files changed, 42 insertions(+), 11 deletions(-)
diff --git a/dlm_controld/dlm.conf.5 b/dlm_controld/dlm.conf.5
index 1ce0c6445ee1..99e302a92bd2 100644
--- a/dlm_controld/dlm.conf.5
+++ b/dlm_controld/dlm.conf.5
@@ -34,7 +34,9 @@ protocol=tcp
Options:
-log_debug
+daemon_debug(*)
+.br
+log_debug(*)
.br
protocol
.br
@@ -42,23 +44,23 @@ bind_all
.br
mark
.br
-debug_logfile
+debug_logfile(*)
.br
enable_plock
.br
-plock_debug
+plock_debug(*)
.br
-plock_rate_limit
+plock_rate_limit(*)
.br
plock_ownership
.br
-drop_resources_time
+drop_resources_time(*)
.br
-drop_resources_count
+drop_resources_count(*)
.br
-drop_resources_age
+drop_resources_age(*)
.br
-post_join_delay
+post_join_delay(*)
.br
enable_fencing
.br
@@ -66,15 +68,33 @@ enable_concurrent_fencing
.br
enable_startup_fencing
.br
-enable_quorum_fencing
+enable_quorum_fencing(*)
.br
-enable_quorum_lockspace
+enable_quorum_lockspace(*)
.br
-repeat_failed_fencing
+repeat_failed_fencing(*)
.br
enable_helper
.br
+Option with tail (*) means this item can be reload on the fly by "dlm_tool reload_config". See \fB"Reload config"\fP for more examples.
+
+.SH Reload config
+
+dlm.conf can be changed then reloaded some settings on the fly, it gives users more flexible and powerful ability to manage dlm.
+
+The supported reload operations:
+.br
+- add a new item
+.br
+- remove an exist item
+.br
+- commented out an item
+.br
+- change an item value
+
+After modifying settings in dlm.conf, run "dlm_tool reload_config" to take effect. User can use "dlm_tool dump_config" to check the result. Again, only reloadable item can be changed.
+
.SH Fencing
A fence device definition begins with a
diff --git a/dlm_tool/dlm_tool.8 b/dlm_tool/dlm_tool.8
index 056c4af0213c..e1242308302f 100644
--- a/dlm_tool/dlm_tool.8
+++ b/dlm_tool/dlm_tool.8
@@ -28,6 +28,10 @@ dlm_tool \- a utility for the dlm and dlm_controld daemon
.br
Dump dlm_controld config settings.
+.B reload_config
+.br
+ Reload dlm_controld config settings from dlm.conf.
+
.BI fence_ack " nodeid"
.br
Quit trying to fence a node.
@@ -134,6 +138,13 @@ dlm_tool dump_config
-
+dlm_tool reload_config
+.RS 4
+see examples in \fBdlm.conf(5)\fP
+.RE
+
+-
+
dlm_tool fence_ack \fIls-name\fP
-
--
2.32.0
next prev parent reply other threads:[~2021-09-25 14:21 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-25 14:21 [Cluster-devel] [RFC PATCH 0/5] add new command reload_config set_config Heming Zhao
2021-09-25 14:21 ` [Cluster-devel] [PATCH 1/5] dlm_tool man: add command "joinleave", add "USAGE" section Heming Zhao
2021-09-25 14:21 ` Heming Zhao [this message]
2021-09-25 14:21 ` [Cluster-devel] [PATCH 3/5] dlm_controld: add reload_config feature Heming Zhao
2021-09-25 14:21 ` [Cluster-devel] [PATCH 4/5] dlm_tool man: add new command set_config Heming Zhao
2021-09-25 14:21 ` [Cluster-devel] [PATCH 5/5] dlm_controld: add new feature set_config Heming Zhao
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210925142142.1821-3-heming.zhao@suse.com \
--to=heming.zhao@suse.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).