Initscripts changes needed to support NFS over RDMA

Signed-off-by: Steve Dickson <steved@redhat.com>
This commit is contained in:
Steve Dickson 2011-01-15 09:23:05 -05:00
parent 9b25dd3e91
commit f517c363e8
2 changed files with 8 additions and 2 deletions

View File

@ -81,8 +81,9 @@ case "$1" in
fi fi
# Load the nfsd module so /proc/fs/nfsd will exist # Load the nfsd module so /proc/fs/nfsd will exist
[ "$NFSD_MODULE" != "noload" ] && { [ "$NFSD_MODULE" != "noload" -a -x /sbin/modprobe ] && {
[ -x /sbin/modprobe ] && /sbin/modprobe nfsd /sbin/modprobe nfsd
[ -n "$RDMA_PORT" ] && /sbin/modprobe svcrdma
} }
action $"Starting NFS services: " /usr/sbin/exportfs -r action $"Starting NFS services: " /usr/sbin/exportfs -r
@ -101,6 +102,8 @@ case "$1" in
echo echo
[ $RETVAL -ne 0 ] && exit $RETVAL [ $RETVAL -ne 0 ] && exit $RETVAL
[ -n "$RDMA_PORT" ] && echo "rdma $RDMA_PORT" > /proc/fs/nfsd/portlist
[ -n "$MOUNTD_PORT" ] \ [ -n "$MOUNTD_PORT" ] \
&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT" && RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

View File

@ -60,3 +60,6 @@
# Optional arguments passed to rpc.svcgssd. See rpc.svcgssd(8) # Optional arguments passed to rpc.svcgssd. See rpc.svcgssd(8)
#RPCSVCGSSDARGS="" #RPCSVCGSSDARGS=""
# #
# To enable RDMA support on the server by setting this to
# the port the server should listen on
#RDMA_PORT=20049