diff --git a/nfs.init b/nfs.init index afac520..099d393 100755 --- a/nfs.init +++ b/nfs.init @@ -81,8 +81,9 @@ case "$1" in fi # Load the nfsd module so /proc/fs/nfsd will exist - [ "$NFSD_MODULE" != "noload" ] && { - [ -x /sbin/modprobe ] && /sbin/modprobe nfsd + [ "$NFSD_MODULE" != "noload" -a -x /sbin/modprobe ] && { + /sbin/modprobe nfsd + [ -n "$RDMA_PORT" ] && /sbin/modprobe svcrdma } action $"Starting NFS services: " /usr/sbin/exportfs -r @@ -101,6 +102,8 @@ case "$1" in echo [ $RETVAL -ne 0 ] && exit $RETVAL + [ -n "$RDMA_PORT" ] && echo "rdma $RDMA_PORT" > /proc/fs/nfsd/portlist + [ -n "$MOUNTD_PORT" ] \ && RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT" diff --git a/nfs.sysconfig b/nfs.sysconfig index a77135f..c58cd33 100644 --- a/nfs.sysconfig +++ b/nfs.sysconfig @@ -60,3 +60,6 @@ # Optional arguments passed to rpc.svcgssd. See rpc.svcgssd(8) #RPCSVCGSSDARGS="" # +# To enable RDMA support on the server by setting this to +# the port the server should listen on +#RDMA_PORT=20049