cluster:Nfs/4/client

From Dgiref
Jump to: navigation, search

See also troubleshooting for this page.


Please open a NGI-DE ticket if you experience any Installation or Configuration problem.

Contents

NFS client v.4

Prepare

Operating system
Scientific Linux version 5.6 64 bit

Optimizing the configuration:


Use minimal operating system installation without firewall. To verify installed packages use the command

  • rpm -qa | grep package_name

Install the following additional packages:

  • yum -y install wget yum rpm make gcc gcc-c++ tar sed zlib openssl

After the installation is complete, turn off any unnecessary services (like gpm, sendmail, cups, haldaemon, messagebus, pcmcia, anacron, atd) with the following command:

  • chkconfig <SERVICE> off

Configure the following settings for the server:

Note-icon.png
  
Prepare new hard disk
  • To export a brand new disk through nfs, the corresponding device in the /dev directory must be find (use the boot log messages from /var/log). Lets assume that the new device is /dev/hdg.
  • Create the new partition on your disk with the command: fdisk /dev/hdg. Follow the instructions and create one big partition /dev/hdg1.
  • Format the new partition with the ext3 file system with the following command: mkfs -t ext3 -c /dev/hdg1 ("-c" options search for invalid disk sectors).
  • Create the new export directory (/srv/nfs) and change the permission to 1777 and mount the partition on it.
  • The new device will be mounted on boot on the selected directory.
Firewall configuration

Install

  • Install the actual versions of
    • nfs-utils
    • portmap
    • quota
  • Create the mount directory

Configure

Note-icon.png
  
NFS client should mount the /srv/nfs directory, but some softlinks should point to the /srv/nfs subdirectories. For example:
  • for all hosts in cluster
    • /home -> /srv/nfs/home
    • /software -> /srv/nfs/software
  • for WNs
    • /opt/glite-wn -> /srv/nfs/software/glite-wn/
    • /opt/d-grid -> /srv/nfs/software/vos/
    • /etc/profile.d/dgrid_env.sh -> /opt/d-grid/etc/profile.d/dgrid_env.sh
    • /uspace -> /srv/nfs/uspace
  • for gLite CE
    • /opt/glite-wn -> /srv/nfs/software/glite-wn/
    • /opt/d-grid -> /srv/nfs/software/vos/
    • /etc/profile.d/dgrid_env.sh -> /opt/d-grid/etc/profile.d/dgrid_env.sh
    • /etc/profile.d/grid-env.sh -> /opt/glite/etc/profile.d/grid-env.sh
    • /etc/profile.d/grid-env.csh -> /opt/glite/etc/profile.d/grid-env.csh
  • for Unicore
    • /uspace -> /srv/nfs/uspace

Proceed

  • /etc/init.d/portmap - used on the client and server
  • /etc/init.d/rpcidmapd - required on both client and server
  • /etc/init.d/rpcgssd - required on the client when RPCSEC_GSS is used

Initial test

Try to examine the output from the following commands:

  • rpcinfo -p to check the rpc
  • netstat -tunap to display the open ports for the applications

Update

The direct way to update or delete the installed nfs rpm software package is to use the yum or rpm.

Personal tools