AIX: export and mount an NFS file system
Export an NFS file system from AIX with smit mknfsexp, declare the mount in /etc/filesystems and allow Linux clients (nfso).
This article explains how to export an NFS file system from an AIX server and mount it on a client. It is based on the following reference pages: how to export and mount NFS filesystem (howtoaix) and how to mount NFS from Linux to AIX.
Exporting a file system
On AIX, mount definitions are stored in /etc/filesystems:
cat /etc/filesystems
The NFS export is created from the SMIT menu. The two commands below open the same screen (smit in graphical-style mode, smitty in text mode):
smit mknfsexp
smitty mknfsexp
Mounting an NFS export on AIX
An NFS mount is declared in /etc/filesystems. Example for a mount point /bup_aix pointing to an NFS server:
/bup_aix:
dev = "/bup_aix"
vfs = nfs
nodename = nfsserver01.example.com
mount = true
type = nfs
options = bg,rw,hard,nointr,sec=sys,cio,,noac,rsize=32768,wsize=32768,timeo=600
account = false
Linux client to AIX server
For a Linux client to mount an NFS export from AIX, the AIX side must allow reserved ports:
nfso -p -o nfs_use_reserved_ports=1
Notes
- The mount options (
bg,hard,rsize,wsize,timeo) are those of the example in the source note: adjust them to your load and network. nfso -pmakes the setting persistent across reboots.