Link to home
Start Free TrialLog in
Avatar of mokkan
mokkan

asked on

AIX NFS question

When does  /etc/exports  contents get shared in AIX ?  every time we start the  NFS service, it  goes and share whatever info we put in  /etc/exports?
Avatar of woolmilkporc
woolmilkporc
Flag of Germany image

Stopping/starting NFS (stopsrc -g nfs/startsrc -g nfs) to make new or modified shares known to the outside world or to remove shares is not appropriate, or better, it does nothing in regard to exporting/unexporting shares.

You'll have to run "exportfs", be it with the "-a" flag (re-export, or export if new, everything listed in /etc/exports) or
"exportfs /path/to/share" (re-export, or export if new, the named share) or with  "-u /path/to/share" (unexport the named share). "exportfs -u -a" will unexport everything listed in /etc/exports (!!)

During reboot the NFS startup script "/etc/rc.nfs" will not only start the NFS services but will also perform "exportfs".

Please be careful when running on AIX 5300-12-04-1119. regarding NFS this Version/TL/SP combo will every now and then not fully behave as expected!
Avatar of mokkan
mokkan

ASKER

Thank  you very much.  does  NFS4 uses  nfslocked services?
rpc.lockd and rpc.statd are specific to NFs V2 and V3!
Avatar of mokkan

ASKER

How does  file locking and file locovery works in NFS4 without  these daemons?
ASKER CERTIFIED SOLUTION
Avatar of woolmilkporc
woolmilkporc
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial