This configuration has been tested with nfs-utils-1.0.9-40.el5.

Make sure that nfs-utils is installed on dulak-server:

yum install nfs-utils

You need to modify the following configuration files on dulak-server (see Setting Up an NFS Server, and Configuring BOOTP/DHCP and NFS for a description of requirements for PXE/NFS kickstart installation):

  • /etc/exports (specifies which/how volumes are shared):

    /dulak-server/home 10.3.0.0/255.255.255.0(rw)
    /scratch/isos 10.3.0.0/255.255.255.0(ro,async)
  • /etc/hosts.allow (if the machine matches a rule listed here, then the machine is allowed access):

    ALL: LOCAL: ALLOW
    ALL: LOCALHOST: ALLOW
    ALL: localhost.localdomain: ALLOW
    # Secure Shell (SSH) connections:
    sshd: .fysik.dtu.dk: ALLOW
    #
    # Allow only rpc calls from the local subnet (eg. for NIS) & localhost
    # Warning: without the "ALL:" lines below https://bugzilla.redhat.com/show_bug.cgi?id=448006 happens, i.e.:
    # no DNS servers, can't look up hostname
    # ....
    # failed to mount nfs source
    ALL: 10.3.0.0/255.255.255.0
    ALL: 127.0.0.1/255.0.0.0
    portmap: 10.3.0.0/255.255.255.0
    portmap: 127.0.0.1/255.0.0.0
    rpc.mountd: 10.3.0.0/255.255.255.0
    rpc.mountd: 127.0.0.1/255.0.0.0
    rpc.rquotad: 10.3.0.0/255.255.255.0
    rpc.rquotad: 127.0.0.1/255.0.0.0
    rsync: 10.3.0.0/255.255.255.0
    rsync: 127.0.0.1/255.0.0.0
    in.tftpd: 10.3.0.0/255.255.255.0
    in.tftpd: 127.0.0.1/255.0.0.0
    snmpd: 127.0.0.1/255.0.0.0
    ucd-snmp: 127.0.0.1/255.0.0.0
  • /etc/hosts.deny (if the machine does not match an entry in hosts.allow and matches an entry in hosts.deny then the machine is denied access):

    ALL: ALL

    Warning! If the machine matches no listings in hosts.allow nor hosts.deny files, then it is allowed access.

  • start the nfs service:

    service nfs start
    service nfslock restart # (server mounts it's own dirs)
    service autofs stop &&  service autofs start # (server mounts it's own dirs)
  • make these settings permanent (only after testing!):

    chkconfig --level 35 portmap on
    chkconfig --level 35 nfs on
    chkconfig --level 35 nfslock on

You are ready for installing Golden Client.

On both "dulak-server" and the "Golden Client" enable nfs mount:

  • add to the /etc/auto.home file:

    dulak-server      -rsize=8192,wsize=8192,tcp      dulak-server:/dulak-server/home
  • add to the /etc/auto.master file:

    /home   /etc/auto.home  --timeout=300

On the "Golden Client" only:

  • enable nfs:

    service nfslock restart
    service autofs stop &&  service autofs start
  • make this parmanent (only after testing!):

    chkconfig --level 35 portmap on
    chkconfig --level 35 nfslock on

Go back to installing software.

Troubleshooting

You may encounter errors during the installation:

  • ownership of /var/lib/nfs/statd/* must be rpcuser.rpcuser:

    Do:

    chown -R rpcuser.rpcuser /var/lib/nfs/statd/*
  • use:

    rpcinfo -p

    to diagnose RPC services.

Niflheim: Building_a_Cluster_-_Tutorial/configuring_NFS (last edited 2011-03-02 19:12:54 by MarcinDulak)