Whamcloud - gitweb
LU-3829 ldlm: MDT mount fails on MDS w/o MGS on it 09/7509/6
authorBobi Jam <bobijam.xu@intel.com>
Mon, 9 Sep 2013 11:02:19 +0000 (19:02 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 18 Sep 2013 08:47:16 +0000 (08:47 +0000)
commit210d3dac6e2add990858cceedd09b169314c053c
tree308f52b2e28b2abb64a1e5a20cdbcf98ea553edb
parentdf4b35809aa34633fcc2f16fe07559df2247a144
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