From cadd8a598d1b59467e0493568957b4ed1ddf596f Mon Sep 17 00:00:00 2001 From: eeb Date: Wed, 17 Aug 2005 18:35:18 +0000 Subject: [PATCH] * running on 2 GM nodes @ HP --- lustre/utils/lconf | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/lustre/utils/lconf b/lustre/utils/lconf index 8ed986e..f509f2a 100755 --- a/lustre/utils/lconf +++ b/lustre/utils/lconf @@ -1107,11 +1107,16 @@ def sys_get_local_nid(net_type, wildcard, cluster_id): elif net_type == 'lo': fixme("automatic local address for loopback") elif net_type == 'gm': - gmnalnid = '/usr/sbin/gmnalnid' - if os.path.exists(gmnalnid) and os.access(gmnalnid, os.X_OK): - (rc, local) = run(gmnalnid, "-l") - else: + found=0 + paths = ['/usr/sbin', config.portals + "/utils"] + for path in paths: + gmnalnid = path + '/gmnalnid' + if (os.path.exists(gmnalnid) and os.access(gmnalnid, os.X_OK)): + found=1 + break + if not found: panic (gmnalnid, " not found or not executable on node with GM networking") + (rc, local) = run(gmnalnid, "-l") if rc: panic (gmnalnid, " failed") local=string.rstrip(local[0]) -- 1.8.3.1