- Turning off the IO Buffering/Cache on both Client and Server
- Setting Synchronous IO for the file system
mount -t nfs -o rw,bg,hard,nointr,rsize=32768,wsize=32768,proto=tcp, noac,sync,actimeo=0,vers=3,timeo=600,retrans=2 nfssvr=3 /home/ogg /home/ogg
- rw: indicates the file system is to be mounted read-write.
- bg: Determines how the mount command behaves if an attempt to mount an export fails. If bg option is specified, a timeout or failure causes the mount command to fork a child who continues to try and mount the export. The parent immediately returns a zero exit code. This is known as a "background" mount. The bg option is a good selection for noncritical file systems because the client can do other processing while waiting for the mount request to be completed.
- hard: causes the mount to continue to retry until the server responds.
- rsize and wsize: specifies the size of the chunks of data that the client and server pass back and forth to each other.
- retrans: allows designation of the number of timeouts allowed before the client gives up.
- timeo: allows designation of the length of time, in tenths of seconds, that the client will wait until it decides it will not get a reply from the server and must try to send the request again.
- proto: specified the transportation protocols including UDP, TCP and RDMA
- nfsvers/vers and minorversion: specifies the NFS main (2,3,4) and minor version used.
- noac: enable synchronous writes. The noac option forces application writes to become synchronous so that local changes to a file become visible on the server immediately.
- sync: enables synchronous write for all files in a local files system. The sync option specifies any system call that writes data to files on that mount point causes that data to be flushed to the server before the system call returns control to user space.
- actimeo: acregmax/acdirmax (maximum time in seconds), acregmin/acdirmin (minimum time), that the NFS client caches attributes of a regular file or directory before it requests fresh attribute information from a server. Turning off the cache, actimeo=0 is required by Oracle GoldenGate.
- nointr: specifies signals do not interrupt NFS file operations. This is not needed after Redhat LINUX 6. [7]
- Network File System at Wikipedia
- Mike Papio, Oracle GoldenGate Best Practices: NFS Mount options for use with Oracle GoldenGate, A-Team Blog, April 11, 2013
- Oracle Support Note: Oracle GoldenGate Best Practice: NFS Mount options for use with GoldenGate (Doc ID 1232303.1)
- Oracle Support Note: OGG File Locking Issue with XAG on Node Switch Over when using NFS Mounted File System (Doc ID 1673231.1)
- Linux NFS Overview, FAQ and HOWTO Documents
- nfs(5) - Linux man page
- NFS mounts do not honor the 'intr' or 'nointr' mount options in RHEL 6 and 7, Redhat.com