Installing MapR NFS
Describes how to install the NFS service on a node.
About this task
The following sections describe how to install the NFSv3 server, NFSv4 server, and the NFS client.
Installing the NFSv3 Server
Procedure
Install the NFSv3 server package.
To install, run the following command:
RHEL or CentOS |
|
Ubuntu |
|
SLES |
|
If the NFS server is installed without fileserver on a node, the
node will be placed in the
/nfsserver
topology. If the
fileserver is installed at a later time, the node will be moved to the
/data
topology, which is the default for fileserver
nodes.Installing the NFSv4 Server
About this task
The NFSv4 server can only be installed on MapR 6.1 or later clusters. Both NFSv4 and NFSv3 servers cannot run on the same node. If you have the NFS client running on an edge node, you can use that client to connect to the MapR NFS server on clusters running either 5.2, where NFSv3 server can be installed, or 6.1 or later, where NFSv4 or NFSv3 can be installed.
Procedure
-
Download, if necessary, and install the
nfs-utils
package, if it is already not installed, on the host where you plan to install the NFSv4 server. -
Modify the
/etc/yum.repos.d/mapr_ecosystem.repo
file on CentOS/SLES or/etc/apt/sources.list
file on Ubuntu to add the following:- CentOS:
[mapr-dev-ecosystem] name=mapr-dev-ecosystem baseurl=http://artifactory.devops.lab/artifactory/eco-rpm/releases/opensource/redhat enabled=1 gpgcheck=0
- Ubuntu:
deb http://artifactory.devops.lab/artifactory/eco-deb binary trusty #opensource.repo
- CentOS:
-
Ensure that
rpc.statd
is running on the node.To verify, run the following command:
If it is already not running, execute the following to start it:ps -ef| grep rpc.st rpcuser 18889 1 0 01:04 ? 00:00:00 /sbin/rpc.statd root 27016 6933 0 01:25 pts/0 00:00:00 grep color=auto rpc.st
/sbin/rpc.statd
-
Install NFSv4 server package.
To install, run the following command:
RHEL or CentOS yum install mapr-nfs4server
Ubuntu apt-get install mapr-nfs4server
SLES zypper install mapr-nfs4server
Themapr-nfsganesha
package is also installed as a dependency package. If NFS server is installed without fileserver on a node, the node is in/nfsserver
topology. If fileserver is installed at a later time, the node is moved to/data
topology, which is the default for fileserver nodes. -
Run
configure.sh
utility with the-u
and-g
options to configure the services to run under usermapr
and the group of themapr
user.IMPORTANT This step is required only if you are configuring NFSv4 server to work with Kerberos.
Installing the NFS Client
Procedure
To install the NFS client, run the following command:
RHEL or CentOS |
|
Ubuntu |
|
SLES |
|
NOTE NFSv3 clients cannot connect to the NFSv4 server because the NFSv4
server only supports v4 protocol.