Whamcloud - gitweb
LU-14090 mgs: no local logs flag 48/40448/7
authorArtem Blagodarenko <artem.blagodarenko@hpe.com>
Thu, 16 Jul 2020 08:37:51 +0000 (04:37 -0400)
committerOleg Drokin <green@whamcloud.com>
Tue, 6 Apr 2021 03:01:55 +0000 (03:01 +0000)
commitf38f09e02a05c82718344ad86f80a4a0f399af9d
treef18e6b527d101ccd8b17bbf2d198bb5db4bfbc24
parent2a34dc95bd100c181573e231047ff8976e296a36
LU-14090 mgs: no local logs flag

There is a feature that starts a target with a local copy of
config log in order to avoid a delay in communicating with
an MGS and to load mgs log updates later on. However, that
feature is not always useful.

When replace_nids adds records with new nids it does not
append remote config logs but overwrite corresponding
records in place. If a target starts using local config
log - it gets confused by outdated nids.

This patch adds tunefs.lustre --nolocallogs key that
sets nolocallogs flag, which says ignore local configs copy.
The flag is reset once new logs are uploaded from MGS.

tunefs.lustre --nolocallogs is suggested to be executed on
targets together with replace_nids on MGS.

HPE-bug-id: LUS-2510
Change-Id: I949c19ac701d287e1c1199bc12445989476a707b
Signed-off-by: Artem Blagodarenko <artem.blagodarenko@hpe.com>
Reviewed-on: https://es-gerrit.dev.cray.com/157574
Reviewed-by: Vladimir Saveliev <c17830@cray.com>
Reviewed-by: Nikitas Angelinas <nangelinas@cray.com>
Tested-by: Alexander Lezhoev <c17454@cray.com>
Reviewed-on: https://review.whamcloud.com/40448
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/doc/tunefs.lustre.8
lustre/include/lustre_disk.h
lustre/include/uapi/linux/lustre/lustre_disk.h
lustre/mgc/mgc_request.c
lustre/obdclass/obd_mount.c
lustre/obdclass/obd_mount_server.c
lustre/tests/conf-sanity.sh
lustre/utils/mkfs_lustre.c
lustre/utils/mount_lustre.c