[ofa-general] openibd / srp question

Kevin Harms harms at alcf.anl.gov
Mon Jul 23 13:05:17 PDT 2007


	is there a reason that starting up the srp_daemon is bound to the  
SRPHA_ENABLE variable? I would like to propose that either the daemon  
is started up if the ib_srp module is loaded on boot or a second  
dependent variable is created that controls the srp_daemon startup.

ofed_1_2/linux-2.6.git/ofed_scripts/openibd : line 844

ib_srp)
	 /sbin/modprobe $mod > /dev/null 2>&1
	if [ "X${SRPHA_ENABLE}" == "Xyes" ]; then
		if [ ! -x /sbin/multipath ]; then
			echo "/sbin/multipath is required to enable SRP HA."
		else
			# Create 91-srp.rules file
			mkdir -p /etc/udev/rules.d
			if [ "$DISTRIB" == "SuSE"  ]; then
				cat > /etc/udev/rules.d/91-srp.rules << EOF
				ACTION=="add", KERNEL=="sd*[!0-9]", RUN+="/sbin/multipath %M:%m"
				EOF
			fi
			/sbin/modprobe dm_multipath > /dev/null 2>&1
			SRPD_ENABLE=yes
		fi
	fi

	if [ "X${SRPD_ENABLE}" = "Xyes" ]; then
		srp_daemon.sh &
		srp_daemon_pid=$!
		echo ${srp_daemon_pid} > ${srp_daemon_pidfile}
	fi
;;




More information about the general mailing list