cluster:Nfs/3/client

From Dgiref
Jump to: navigation, search
Please open a NGI-DE ticket if you experience any Installation or Configuration problem.

Contents

NFS client v.3

Prepare

NFS shares are mounted on the client side using the mount command. The format of the command is as follows:

mount -t <nfs-type> -o <options> <nfs_server_host>:</remote/export> </local/directory>

where <nfs-type> one from {nfs, nfs4}, <options> - a comma separated list of options for the NFS file system (refer to Common NFS Mount Options for details). Reference installation use the singe mount point, hence </remote/export> and </local/directory> are /srv/nfs.


Firewall configuration

Install

The Linux operating system offers two methods for mounting remote file systems:

  • manually, with mount service (using a /etc/fstab configuration file)
  • automatically at boot time with the autofs service (using a main configuration file /etc/auto.master and set of auto.* files)

The reference installation use the first, manual method, hence the mount service should be installed. Probably, the operating system has nfs service installed. To be sure, the following packages can be additionally installed:

  • nfs-utils
  • portmap
  • quota

Configure

With the daemons portmap, lockd, statd, mountd running NFS client should be able to mount the remote directory /srv/nfs and after creates the soft links to the mounted /srv/nfs subdirectories.


Proceed

To communicate with an NFS server, the portmap service must be running. To verify that portmap is active, type the following command as root:

service portmap status
  • If the portmap service status is running, then
    • the nfs service can be started with:service nfs start
    • the nfslock service can be started with:service nfslock start
    • the mount service can be started with:service nfslock start.
  • Else execute: service portmap start and after successful report,
    • the nfs service can be started with:service nfs start
    • the nfslock service can be started with:service nfslock start
    • the mount service can be started with:service nfslock start.
Note-icon.png
  
By default, the nfs service does not start automatically at boot time. To configure the NFS to start up at boot time, use an initscript utility, such as /sbin/chkconfig, /sbin/ntsysv, or the Services Configuration Tool program.

Initial test

Lists the contents of the mounted directory with ls command.


WARNING: Possible troubles with mount

Problem 1

mount: sn05:/var/spool/pbs/server_logs failed, reason given by server: Permission denied

Possible solution: Check iptables and /etc/hosts.allow; /etc/hosts.deny

Problem 2

mount clntudp_create: RPC: Program not registered

Possible solution: chmod 644 /etc/hosts.allow


Update

Use the operating system package managers to implement updates, upgrades and to delete a package. Specifically for the nfs updates and patches, refer into the following online resource: http://www.linux-nfs.org/

Personal tools