From: heming.zhao@suse.com Date: Wed, 22 Sep 2021 22:35:04 +0800 Subject: [Cluster-devel] [RFC PATCH dlm 00/10] dlm_controld config settings can be In-Reply-To: <20210922134636.GB6605@redhat.com> References: <20210919064322.1670-1-heming.zhao@suse.com> <20210920175736.GA19901@redhat.com> <20210921135404.GA27196@redhat.com> <36d545a4-0551-6ab4-42da-0816020c4da6@suse.com> <20210922134636.GB6605@redhat.com> Message-ID: <06d21489-36d3-c9c2-ae75-22fa550d860a@suse.com> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit On 9/22/21 9:46 PM, David Teigland wrote: > On Wed, Sep 22, 2021 at 05:32:49PM +0800, heming.zhao at suse.com wrote: >> If there is no chance to add dynamic updating setting by run command. >> Is it a good idea to add a parameter "-I", like "dlm_tool -I reload_config". >> "-I" means directly change without reading from dlm.conf. >> When users want to restore the original setting, run "dlm_tool reload_config" >> (without "-I") to override with predefined/default values. > > How about "dlm_tool set_config x=y" to make a temporary change in > dlm_controld, and "dlm_tool reload_config" to reread dlm.conf. > Dave > Yes, "set_config x=y" is more better. I just found I missed part of parameter of "-I reload_config". The whole cmd should be "-I reload_config x=y". But add a new command is more clear and better. Heming