mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-10-26 08:55:24 +00:00 
			
		
		
		
	fixed 3499932 and 3499065: remove the original ib configuration; use the loop number instead of 0, 1, 2...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11960 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
		| @@ -1,4 +1,4 @@ | ||||
| #!/bin/sh  | ||||
| #!/bin/sh  -vx | ||||
| # IBM(c) 2008 EPL license http://www.eclipse.org/legal/epl-v10.html | ||||
|  | ||||
| # Sample xCAT post script for configuring secondary adatper based on eth0 | ||||
| @@ -22,7 +22,6 @@ then | ||||
|             exit | ||||
|         fi | ||||
|     fi    | ||||
|   | ||||
| else | ||||
|     ib_driver="openibd" | ||||
| fi | ||||
| @@ -49,10 +48,22 @@ then | ||||
|  | ||||
| fi | ||||
|  | ||||
| if [ $PLTFRM == "Linux" ] | ||||
| then | ||||
|  | ||||
|     ib_number=`lspci | grep -i InfiniBand | wc -l`  | ||||
|     loop_number=$[ $ib_number * 2 ]  | ||||
|     #loop_number=$[ $loop_number - 1 ] | ||||
| else | ||||
|     loop_number=`lsdev -Cc adapter |grep iba |wc -l` | ||||
|  | ||||
| fi | ||||
|  | ||||
|  | ||||
| HOST=`hostname -s` | ||||
|  | ||||
| for num in 0 1 | ||||
| #ifor num in 0 1 | ||||
| for (( num=0; num<$loop_number; num++)) | ||||
| do | ||||
|     # Take primary node name, add -ib$num and then reverse resolve to get what ip should be | ||||
|     nic="ib$num"    | ||||
| @@ -166,7 +177,8 @@ then | ||||
|  | ||||
|     /sbin/service $ib_driver restart | ||||
|  | ||||
|     for num in 0 1 | ||||
|     #for num in 0 1 | ||||
|     for (( num=0; num<$loop_number; num++)) | ||||
|     do | ||||
|         sleep 5 | ||||
|               | ||||
|   | ||||
		Reference in New Issue
	
	Block a user