In some case, ml device driver could not be initialized during boot, rc.ml could resolve this issue. We need to call this script if mlt0 is not available. Adding some sleep here may not work since in inittab, xcataixpost is with a 'wait' attribute which means inittab will wait here until it exits. If we add some sleep here, then there will be a deadlock

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10074 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
wanghuaz 2011-07-13 06:53:22 +00:00
parent 1dc4b6a06d
commit 305dc00357

View File

@ -107,11 +107,13 @@ if [ -n $CLIENT_IP ]
then
#Check whether the mlt0 is available
`lsdev -C | grep mlt0 | grep Available 2>&1 >/dev/null`
if [ -n $? ]
if [ $? ]
then
chdev -l ml0 -a state=detach
chdev -l ml0 -a netaddr=$CLIENT_IP -a netmask=$NETMASK -a state=up
/usr/ml/aix71/rc.ml
fi
chdev -l ml0 -a state=detach
chdev -l ml0 -a netaddr=$CLIENT_IP -a netmask=$NETMASK -a state=up
fi
fi