From 7b7b5bfd1b73baa9a4c2d19b5009b706ccfbaeb9 Mon Sep 17 00:00:00 2001 From: jjhua Date: Mon, 27 Feb 2012 08:23:49 +0000 Subject: [PATCH] use Mellonax ofed to support for IB QDR git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11694 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/share/xcat/ib/scripts/configiba.1port | 12 ++++++++++++ xCAT-server/share/xcat/ib/scripts/configiba.2ports | 14 +++++++++++++- 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/xCAT-server/share/xcat/ib/scripts/configiba.1port b/xCAT-server/share/xcat/ib/scripts/configiba.1port index a8af3b5df..fab42f781 100644 --- a/xCAT-server/share/xcat/ib/scripts/configiba.1port +++ b/xCAT-server/share/xcat/ib/scripts/configiba.1port @@ -12,6 +12,18 @@ PLTFRM=`uname` if [[ $OSVER == rhels5* || "$OSVER" == rhels6* ]] then ib_driver="rdma" + /sbin/service $ib_driver status + if [ $? -eq 1 ] + then + $ib_driver="openibd" + /sbin/service $ib_driver status + if [ $? -eq 1 ] + then + echo "Not found the driver dameon: rdma or openibd" + exit + fi + fi + else ib_driver="openibd" fi diff --git a/xCAT-server/share/xcat/ib/scripts/configiba.2ports b/xCAT-server/share/xcat/ib/scripts/configiba.2ports index 52872f85f..552be6e33 100644 --- a/xCAT-server/share/xcat/ib/scripts/configiba.2ports +++ b/xCAT-server/share/xcat/ib/scripts/configiba.2ports @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/sh # IBM(c) 2008 EPL license http://www.eclipse.org/legal/epl-v10.html # Sample xCAT post script for configuring secondary adatper based on eth0 @@ -11,6 +11,18 @@ PLTFRM=`uname` if [[ $OSVER == rhels5* || "$OSVER" == rhels6* ]] then ib_driver="rdma" + /sbin/service $ib_driver status + if [ $? -eq 1 ] + then + $ib_driver="openibd" + /sbin/service $ib_driver status + if [ $? -eq 1 ] + then + echo "Not found the driver dameon: rdma or openibd" + exit + fi + fi + else ib_driver="openibd" fi