Whamcloud - gitweb
LU-4783 mgs: start params log during mgs initialization
authorEmoly Liu <emoly.liu@intel.com>
Tue, 15 Apr 2014 07:16:53 +0000 (15:16 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 14 May 2014 16:33:54 +0000 (12:33 -0400)
commitc756744427eeb12e12ec08dda6271b8ed7dbbd7d
tree164281c70a1d1d2a45317b2756c85ee36a5fb96a
parenta1b3dce8a784893597faf8e1f08497e9e5a6e59d
LU-4783 mgs: start params log during mgs initialization

Params log was introduced by LU-3155 to set parameters permanently
with lctl "set_param -P" instead of "conf_param". But in a newly
mounted filesystem, the log won't be created automatically until "lctl
set_param -P" is called. This causes that the other servers can't make
a local copy successfully during their setup, and the misleading
console error message "LustreError: 13a-8: Failed to get MGS log
params and no local copy." is printed.
This patch is to start params log during mgs intialization so that the
error message is quieted.
Also, test_76b is added to conf-sanity.sh to verify params log setup.

Signed-off-by: Emoly Liu <emoly.liu@intel.com>
Change-Id: Ifc3abc1e35ef20230a1be1cdf1c4cc8f57b2788e
Reviewed-on: http://review.whamcloud.com/9737
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Mike Pershin <mike.pershin@intel.com>
Reviewed-by: Fan Yong <fan.yong@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/mgc/mgc_request.c
lustre/mgs/mgs_handler.c
lustre/mgs/mgs_internal.h
lustre/mgs/mgs_llog.c
lustre/tests/conf-sanity.sh