From 3bb01a2207252207acc1c77faa95acea1007324e Mon Sep 17 00:00:00 2001 From: wanghuaz Date: Tue, 27 Oct 2009 13:29:25 +0000 Subject: [PATCH] fixed defect 2883734: recreate ml0 configuration after remove ml0 git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4453 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/share/xcat/ib/scripts/configiba.2ports | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/xCAT-server/share/xcat/ib/scripts/configiba.2ports b/xCAT-server/share/xcat/ib/scripts/configiba.2ports index fa6a4d761..727af9368 100644 --- a/xCAT-server/share/xcat/ib/scripts/configiba.2ports +++ b/xCAT-server/share/xcat/ib/scripts/configiba.2ports @@ -129,6 +129,14 @@ if ( $PLTFRM eq "AIX" ) { exit; } + #Check whether the ml0 is available + my $lsdev_cmd = "lsdev -C | grep ml0 2>&1 >/dev/null"; + `$lsdev_cmd`; + if ( $? ) { + my $cfgmgr_cmd = "cfgmgr 2>&1 >/dev/null"; + `$cfgmgr_cmd`; + } + my $chdev_cmd = "chdev -l ml0 -a state=detach 2>&1"; runcmd($chdev_cmd);