Whamcloud - gitweb
LU-18012 obd: support large NIDs when MGS is down 07/55907/6
authorJames Simmons <jsimmons@infradead.org>
Thu, 1 Aug 2024 19:23:39 +0000 (13:23 -0600)
committerOleg Drokin <green@whamcloud.com>
Fri, 16 Aug 2024 23:48:41 +0000 (23:48 +0000)
commit5464c0eabdcecc370e7edfe1f3fed8effcc0d16e
tree048da55f5883444b90e897709fddac5167eb09c1
parenta3c38153903795baf05ecc6e40fdec91fb65440a
LU-18012 obd: support large NIDs when MGS is down

When the mgc is initialized it will create an export for the MGS.
Having a MGS export does not mean we can actually reach the
remote MGS. The way to know if the MGS is reachable is to examine
the connect flags after obd_connect() is called. If its zero
then the remote MGS is down. If this is the case since when
starting the mgc we examine the mgsnode= string we can examine
every NID. If one of those NIDs for mgsnode= or the failover
has a large NID address then force support for large NIDs.

Change-Id: I3550df21618f07b69701a9d337d3dfc5f99e49a3
Signed-off-by: James Simmons <jsimmons@infradead.org>
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/55907
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-by: Chris Horn <chris.horn@hpe.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/obdclass/obd_mount.c