From d6ef09877c906ff5568239002add37ecfb1c9a2e Mon Sep 17 00:00:00 2001 From: Andreas Dilger Date: Thu, 23 Nov 2017 12:11:36 -0700 Subject: [PATCH] LU-930 man: better describe conf_parm -d in lctl.8 Add a bit more description to "lctl conf_param -d". Test-Parameters: trivial Signed-off-by: Andreas Dilger Change-Id: Ib7a71122ea3e77e910d817a0ecdc4e6d1ddfd2eb Reviewed-on: https://review.whamcloud.com/30241 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Bob Glossman Reviewed-by: Nathaniel Clark Reviewed-by: James Nunez Reviewed-by: Oleg Drokin --- lustre/doc/lctl.8 | 6 +++++- lustre/utils/lctl.c | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/lustre/doc/lctl.8 b/lustre/doc/lctl.8 index bfb7949..759a35b 100644 --- a/lustre/doc/lctl.8 +++ b/lustre/doc/lctl.8 @@ -234,7 +234,9 @@ Set a permanent configuration parameter for any device via the MGS. This command must be run on the MGS node. .br .B -d . -Delete a parameter setting (use the default value at the next restart). A null value for also deletes the parameter setting. +Delete a parameter setting (use the default value at the next restart). +A null value for also deletes the parameter setting. This is +useful if an incorrect or obsolete parameter is in the configuration. .br .B Parameters: .br @@ -263,6 +265,8 @@ Additionally, failover nodes may be added (or removed), and some system-wide par # lctl conf_param testfs-OST0000.ost.client_cache_seconds=15 .br # lctl conf_param testfs-OST0000.failover.node=1.2.3.4@tcp1 +.br +# lctl conf_param -d testfs-OST0000.bad_param .TP .BI activate Reactivate an import after deactivating, below. This setting is only effective until the next restart (see diff --git a/lustre/utils/lctl.c b/lustre/utils/lctl.c index abd869e..8df6e7b 100644 --- a/lustre/utils/lctl.c +++ b/lustre/utils/lctl.c @@ -165,7 +165,7 @@ command_t cmdlist[] = { {"conf_param", jt_lcfg_mgsparam, 0,"set a permanent config parameter.\n" "This command must be run on the MGS node\n" "usage: conf_param [-d] \n" - " -d Remove the permanent setting."}, + " -d Delete the permanent setting from the configuration."}, #endif {"local_param", jt_lcfg_param, 0, "set a temporary, local param\n" "usage: local_param \n"}, -- 1.8.3.1