Explains how to mount NFS on a Linux client either automatically at start up or manually.
You can automatically or manually mount NFS on a Linux client when your system starts up.
Automatically Mount
Use this procedure to automatically mount to NFS on a Linux client when your system starts up.
/etc/fstab.# device mountpoint fs-type options dump fsckorder
...
usa-node01:/mapr /mapr_nfs/ nfs rw 0 0
...Manually Mount
sudo yum install nfs-utils (Red Hat or CentOS)sudo apt-get install nfs-common (Ubuntu)sudo zypper install nfs-client (SUSE)showmount -e usa-node01 showmount command does not return the list of exported NFS shares.
Instead, to view the export list, run the following command:
/opt/mapr/server/nfs4mgr list-exportssudo mkdir /mapr_nfs/sudo mount -t nfs -o sec=mode vers=NFS_version usa-node01:/mapr /mapr_nfs/
where mode is one of the following:sec=mode option only for NFS version 4. NFS version 3 does not
support this option.vers=4.0 parameter in the mount command. For example:
mount -t nfs -o sec=krb5,vers=4.0 usa-node01:/mapr /mapr_nfs/For NFS v3, use the command as in the following example:
mount -t nfs -o vers=3 usa-node01:/mapr /mapr_nfs/$ mount | grep nfs4
usa-node01:/mapr on /mapr_nfs (nfs, nodev, nosuid, mounted by testUser)