AIXConfigNFS

How to configure NFS on an AIX system

This is rather short, since NFS is rather simple to configure through smitty. This page is therefore just a reminder of what needs to be done to export/import NFS mount on AIX machines.

Overview

The /etc/exports file is a summary of all the mount points exported through NFS on an AIX machine.

To change these exports, use the command smitty nfs.

Export a mount point through NFS

Use the following command as root:

# exportfs -v -a -o rw=<client name>

If everything has already been defined:

# exportfs -v -a 

In case there is a problem on the client

For instance, here is fairly standard problem -- take a look at the last line:

bash-3.00# df -g
Filesystem    GB blocks      Free %Used    Iused %Iused Mounted on
/dev/hd4           1.00      0.98    3%     2193     1% /
/dev/hd2           4.00      2.45   39%    34508     6% /usr
/dev/hd9var        2.00      1.95    3%      495     1% /var
/dev/hd3           2.00      1.56   23%      473     1% /tmp
/dev/hd1           3.00      2.95    2%       52     1% /home
/proc                 -         -    -         -     -  /proc
/dev/hd10opt       1.00      0.94    6%     1730     1% /opt
/dev/lvoradata     20.00     10.56   48%     1037     1% /oradata
/dev/lvaacct      20.00     10.91   46%    60705     3% /acct
/dev/lvoracle      8.00      3.50   57%    25959     4% /oracle
NFS server galactus not responding still trying

The error message nfs server XXX not responding, still trying indicates that a mount command is still trying to mount the directory.

If that is the case, check the mount point, which should be indicated in the /etc/filesystems:

/machine_save:
	dev             = "/machine_save"
	vfs             = nfs
	nodename        = galactus
	mount           = true
	options         = bg,hard,intr
	account         = false

Next, unmount (forcefully) this filesystem:

# umount -v -f /machine_save

Then, remount all filesystems:

# mount -a

Everything should now be OK:

bash-3.00# df -g
Filesystem    GB blocks      Free %Used    Iused %Iused Mounted on
/dev/hd4           1.00      0.98    3%     2193     1% /
/dev/hd2           4.00      2.45   39%    34508     6% /usr
/dev/hd9var        2.00      1.95    3%      495     1% /var
/dev/hd3           2.00      1.56   23%      473     1% /tmp
/dev/hd1           3.00      2.95    2%       52     1% /home
/proc                 -         -    -         -     -  /proc
/dev/hd10opt       1.00      0.94    6%     1730     1% /opt
/dev/lvoradata     20.00     10.56   48%     1038     1% /oradata
/dev/lvaacct      20.00     10.91   46%    60705     3% /acct
/dev/lvoracle      8.00      3.50   57%    25959     4% /oracle
candy:/vvt/patches     67.32     25.76   62%    15896     1% /vvt/patches
galactus:/machine_save     10.00      3.92   61%      558     1% /machine_save

And that's all there is to it -- whenever you see this error message on an NFS client, remember to umount and mount -a, as this solves a lot of problems!