May 18 2009

Export NFS shares in AIX

Published by at 9:29 pm under Aix




Edit /etc/exports (or create it if it doesn’t exist) and add folders to be shared:

/home/public -access=client1,root=client1

Option access restricts the list of clients, root allows to mount the share by root user
 
Start nfsd services:

startsrc -s nfsd
startsrc -s mountd

 
Check daemons are running:

AIX_NFS_Server # lssrc -s nfsd
Sub-system      Group           PID     State
 nfsd           nfs             36540   active
AIX_NFS_Server # lssrc -s portmap
Sub-system      Group           PID     State
 portmap        portmap         3890    active
AIX_NFS_Server # lssrc -s biod
Sub-system      Group           PID     State
 biod           nfs             6454    active

 
Export all directories

exportfs -a

They should be visible running "exportfs" with no option
 
Check from the client rpc services are reachable:

Linux_NFS_Client # rpcinfo -p $Server_IP | egrep "(mountd|nfs)"
    150001    1   udp  32773  pcnfsd
    150001    2   udp  32773  pcnfsd
    100003    2   udp   2049  nfs
    100003    3   udp   2049  nfs
    100003    2   tcp   2049  nfs
    100003    3   tcp   2049  nfs
    100005    1   udp  41863  mountd
    100005    2   udp  41863  mountd
    100005    3   udp  41863  mountd
    100005    1   tcp  41489  mountd
    100005    2   tcp  41489  mountd
    100005    3   tcp  41489  mountd

 
Shares should be visible:

Linux_NFS_Client # showmount -e $Server_IP
Export list for $SERVER_IP:
/home/public (everyone)

 
Mount the share:

Linux_NFS_Client # mount -t nfs $Server_IP:/home/public /mnt

2 responses so far

2 Responses to “Export NFS shares in AIX”

  1. Oscaron 02 Jul 2012 at 11:37 pm

    Very helpful thank you.

  2. fattiizmanon 20 Feb 2015 at 2:48 pm

    Very good post, concise and simple.

    cheers

Comments RSS

Leave a Reply