[Fwd: [openib-general] [ANNOUCE] OpenIB OpenSM: trunk now supports 1.8.0 features]

Hal Rosenstock halr at voltaire.com
Fri Sep 30 10:23:01 PDT 2005


On Fri, 2005-09-30 at 13:07, Sean Hubbell wrote:
> Hal Rosenstock wrote:
> 
> >On Fri, 2005-09-30 at 11:48, Sean Hubbell wrote:
> >
> >  
> >
> >>Yes, I am using udev.
> >>
> >>[root at riba ~]# cd /etc/udev/rules.d/
> >>[root at riba rules.d]# cat 90-ib.rules
> >>KERNEL="umad*", NAME="infiniband/%k"
> >>KERNEL="issm*", NAME="infiniband/%k"
> >>KERNEL="uverbs*", NAME="infiniband/%k", MODE="0666"
> >>    
> >>
> >
> >Then is opensm started as root ? Also, what is the opensm command
> >invocation ?
> >
> >-- Hal
> >
> >
> >  
> >
> Hal,
> 
>   With this script (which manualy loads each ib module) this works 
> (finally, sigh...).

Glad to hear it.

> 
> Sean
> 
> 
> 
> 
> 
> 
> ______________________________________________________________________
> 
> #! /bin/bash
> #
> # openib       Bring up/down opensm
> #
> # chkconfig: 2345 9 91
> # description: Activates/Deactivates open infiniband management.
> #
> ### BEGIN INIT INFO
> # Provides: $network
> ### END INIT INFO
> 
> # Source function library.
> . /etc/init.d/functions
> 
> CWD=`pwd`
> 
> # See how we were called.
> case "$1" in
>   start)
> 	action $"Loading core module: " /sbin/modprobe ib_core
> 	action $"Loading mad module: " /sbin/modprobe ib_mad
> 	action $"Loading sa module: " /sbin/modprobe ib_sa
> 	action $"Loading umad module: " /sbin/modprobe ib_umad
> 	action $"Loading mthca module: " /sbin/modprobe ib_mthca
> 	action $"Loading ping module: " /sbin/modprobe ib_ping
> 	action $"Loading ipoib module: " /sbin/modprobe ib_ipoib
> 	action $"Loading cm module: " /sbin/modprobe ib_cm
> 	action $"Loading ucm module: " /sbin/modprobe ib_ucm
> 	action $"Loading sdp module: " /sbin/modprobe ib_sdp
> 	action $"Loading at module: " /sbin/modprobe ib_at
> 	sleep 2;
> 	/usr/local/bin/opensm -V &
>         touch /var/lock/subsys/openib
>         ;;
>   stop)
>     	echo -n $"Stopping opensm: "
> 
>     	killproc opensm -TERM
>     	RETVAL=$?
>     	echo
>     	if [ $RETVAL -eq 0 ]; then
> 		rm -f /var/lock/subsys/openib
>     	fi
>         ;;
>   status)
> 	PORT1_STATUS=`cat /sys/class/infiniband/mthca0/ports/1/state`
> 	echo "Infiniband Port 1 is : $PORT1_STATUS"
> 
> 	PORT2_STATUS=`cat /sys/class/infiniband/mthca0/ports/2/state`
> 	echo "Infiniband Port 2 is : $PORT2_STATUS"
> 	;;
>   restart|reload)
>         cd "$CWD"
> 	$0 stop
> 	sleep 10;
> 	$0 start
> 	;;
>   *)
>         echo $"Usage: $0 {start|stop|restart|reload|status}"
>         exit 1
> esac
> 
> exit 0

Yes, it could be the sleep which makes it work. It takes some time
before the umad module gets far enough into initialization and makes
things available to user space so that the "bind" can work.

-- Hal




More information about the general mailing list