Whamcloud - gitweb
LU-14714 mgc: server to mount without local config 83/55283/8
authorMikhail Pershin <mpershin@whamcloud.com>
Wed, 29 May 2024 18:27:13 +0000 (21:27 +0300)
committerOleg Drokin <green@whamcloud.com>
Thu, 8 Aug 2024 00:15:40 +0000 (00:15 +0000)
commit96d8987a36b9a679774545dc91633345759fba19
treec2457e763f65e30c37ba40aede6dd673f6d69279
parent36629c15fbd0e2d88e813f4d8af392b71da8147d
LU-14714 mgc: server to mount without local config

Server uses local config copy to mount with but
that is not the case always. Local config can be
damaged or empty and may be not updated from MGS,
e.g. due to -ENOSPC on server upon llog backup or
other errors. That causes empty or partial local
config so server unable to mount with it.

Patch allows a server to mount first from remote config
if local config wasn't copied from MGS. If remote
processing is not possible or failed then local config
is used as last attempt to mount.

Signed-off-by: Mikhail Pershin <mpershin@whamcloud.com>
Change-Id: I442a4f20eeb7deb1b40ccc7cabb1fae65804e211
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/55283
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Sebastien Buisson <sbuisson@ddn.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/include/lustre_log.h
lustre/include/obd_support.h
lustre/mgc/mgc_request.c
lustre/mgc/mgc_request_server.c
lustre/obdclass/llog.c
lustre/tests/conf-sanity.sh