Whamcloud - gitweb
LU-11077 utils: --client option for set_param 58/55858/20
authorFrederick Dilger <fdilger@whamcloud.com>
Wed, 12 Jun 2024 20:43:08 +0000 (16:43 -0400)
committerOleg Drokin <green@whamcloud.com>
Wed, 19 Mar 2025 23:32:01 +0000 (23:32 +0000)
commit96c94ab3c44a4c5ab7d6b26e33df59df89bf2d53
tree55f0c242f20a6eed77bdbec07ea08ff1ce8db78b
parentf70332330acaff7d52a21700726e7f89a85789b2
LU-11077 utils: --client option for set_param

Added new [--client|-C[FSNAME]] option for 'lctl set_param' which
writes the parameter to the local /etc/lustre/mount.client.params
config file. Upon each Lustre client mount those parameters will
be set on the local node. If FSNAME was provided, the parameters
will be saved in the mount-specific /etc/lustre/mount.FSNAME.params
config file, and will be set (and override) the more generic client
mount parameters on that node when that filesystem is mounted.
However only parameters containing FSNAME can be set to their
respective params config file to avoid generic parameters that are
only supposed to affect a single filesystem, actually affecting all
of them.

Can be used together with [--delete|-d] to remove the parameter from
the given log file. If [--delete|-d] is specified without -C or -P
it will enable -P by default. A warning message will be printed when
this happens so users are aware of what's going on.

Signed-off-by: Frederick Dilger <fdilger@whamcloud.com>
Change-Id: Iec0b9bfb5e259154ed2439e6e505b826a888905f
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/55858
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Timothy Day <timday@amazon.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/doc/lctl-set_param.8
lustre/tests/sanity.sh
lustre/tests/test-framework.sh
lustre/utils/lctl.c
lustre/utils/lctl_thread.h
lustre/utils/lustre_cfg.c
lustre/utils/lustre_param.c
lustre/utils/obdctl.h