HOWTO setup NFS for the online computers

From GlueXWiki
Revision as of 09:36, 29 January 2013 by Davidl (Talk | contribs) (Created page with "This page was written to document how the gluon02-gluon05 machines were configured to mount a directory from gluon02 via NFS. The intent is for gluon02 to serve as a temporary fi...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This page was written to document how the gluon02-gluon05 machines were configured to mount a directory from gluon02 via NFS. The intent is for gluon02 to serve as a temporary file server for the gluon machines until the dedicated server is delivered and installed.

The gluon machines are running Red Hat Enterprise Linux 6.3

Configuring NFS server

  • Create a directory to that you wish to export:
mkdir /group/gluoncfs


  • Edit the file /etc/exports
    This should specify a range a range of IP addresses, but for now, each of the 4 machines in the counting house are listed individually. (Yes, it is unnecessary to list gluon2 since it is the host machine, but I did it anyway)
    The lines look like this:
/group/gluoncfs   129.57.172.11(rw,no_root_squash,async)
/group/gluoncfs   129.57.172.12(rw,no_root_squash,async)
/group/gluoncfs   129.57.172.13(rw,no_root_squash,async)
/group/gluoncfs   129.57.172.14(rw,no_root_squash,async)


  • Fire up the nfs server:
/etc/init.d/nfs start


  • Enable the NFS service so it starts automatically on reboot
    1. Go to System->Administration->Services.
    2. When the window finally gives you control, select "nfs" and hit the green "Enable" button
    3. Note that I did not reboot gluon02 after doing doing this and just assume it will work


Configuring NFS Clients

  • Edit the file /etc/fstab to include a line like this:
gluon02:/group/gluoncfs  /group/gluoncfs  nfs tcp 0 0


  • Mount the NFS volume
 mount /group/gluoncfs


  • This should auto-mount on reboot since it is in /etc/fstab, but only if gluon02 is already up and running. If it is not, there may be some sort of delay on startup while it times out. This was not tested.