From 8cca86fe21e06e17b378e10738d6926065ac72e9 Mon Sep 17 00:00:00 2001 From: wanghuaz Date: Fri, 18 Mar 2011 06:18:06 +0000 Subject: [PATCH] Configure ml0 on AIX git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9084 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT/postscripts/confighfi | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/xCAT/postscripts/confighfi b/xCAT/postscripts/confighfi index 7e08c38cd..540115679 100644 --- a/xCAT/postscripts/confighfi +++ b/xCAT/postscripts/confighfi @@ -32,6 +32,9 @@ fi if [[ $PLTFRM != AIX ]] && [[ $PLTFRM != aix ]] then +# A difference between service node and compute node is that service node is booted from +# ethernet, all the HFI interfaces should be configured. Compute node is booted from hf0 +# so hf0 on compute node should not be re-configured on compute node. if [[ $NTYPE = service ]] then @@ -51,6 +54,7 @@ fi fi +# Configure hf0-hf interfaces one by one. for i in 1 2 3 do @@ -95,4 +99,12 @@ fi done +# Configure ml0 for AIX. +CLIENT_IP=`ping -q -n -c 1 -w 1 $name-ml0 | grep PING |awk '{print $3}' | sed 's/(\(.*\)):/\1/' ` + +if [ -n $CLIENT_IP ] +then +ifconfig ml0 $CLIENT_IP +fi + fi