# SPDX-License-Identifier: CDDL-1.0
#
# This file and its contents are supplied under the terms of the
# Common Development and Distribution License ("CDDL"), version 1.0.
# You may only use this file in accordance with the terms of version
# 1.0 of the CDDL.
#
# A full copy of the text of the CDDL should have accompanied this
# source.  A copy of the CDDL is also available via the Internet at
# http://www.illumos.org/license/CDDL.
#

#
# Copyright (c) 2016 by Delphix. All rights reserved.
#

#
# This file is a sample NFS configuration for the performance tests. To use the
# performance tests over NFS you must have:
#   - a client machine with fio and sudo installed
#   - passwordless SSH set up from this host
#     for delphix and root users to the client
#   - passwordless sudo for the user on the client
#


# The IP address for the server
export NFS_SERVER=127.0.0.1

# The IP address for the client
export NFS_CLIENT=127.0.0.1

# The mountpoint to use inside the client
export NFS_MOUNT=/var/tmp/nfs

# The user to run the tests as on the client
export NFS_USER=delphix

# Common NFS client mount options
export NFS_OPTIONS="-o rw,nosuid,bg,hard,rsize=1048576,wsize=1048576,"
NFS_OPTIONS+="nointr,timeo=600,proto=tcp,actimeo=0,port=2049"

# illumos NFS client mount options
# export NFS_OPTIONS="$NFS_OPTIONS,vers=3"

# Linux NFS client mount options
export NFS_OPTIONS="-t nfs $NFS_OPTIONS,noacl,nfsvers=3"
