Whamcloud - gitweb
LU-3829 ldlm: MDT mount fails on MDS w/o MGS on it 53/7553/3
authorBobi Jam <bobijam.xu@intel.com>
Mon, 9 Sep 2013 11:02:19 +0000 (19:02 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Sat, 2 Nov 2013 17:13:02 +0000 (13:13 -0400)
commit5d5b06e418f1d4a88afdc932e38a5a285347bcae
tree68cdf8a6c45eb9e2e5ce245ba447b075a5e0b0e3
parent01910f34d9638e63509ef9415c4eaf0b3ea0e0c7
LU-3829 ldlm: MDT mount fails on MDS w/o MGS on it

If we specify multiple --mgsnode for a MDT, when we start MDS upon
it while MGS is no the other node, the MGC import connection will
always select the local nid (which is one of the candidate mgsnode)
since it think its the closest connection.

This patch treats further --mgsnode nids as failover nids, so that
multiple import connections are added for the MGC import.

Signed-off-by: Bobi Jam <bobijam.xu@intel.com>
Change-Id: Ifd015a6df47d4285ff5081a9e1e6eabfc405b193
Reviewed-on: http://review.whamcloud.com/7509
Reviewed-by: Liang Zhen <liang.zhen@intel.com>
Reviewed-by: Lai Siyao <lai.siyao@intel.com>
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/obdclass/obd_mount.c