NFS client does not update file contents on RHEL clients.
Issue
- We have and NFS4 export /opt/logs (on IBM AIX 6.1 platform). The local fs of the
NFS4
exported on the AIX is aGPFS
filesystem on multiple nodes.
Fs name: /opt/logs
NFS4 export server name: AIX Server
GPFS nodes using fs: AIX Clients
NFS4 client server name: RHEL 6.6 client
-
We noticed that updating the file /opt/logs/xxx_console.msg on the on a GPFS node makes the changes to be visible from all GPFS nodes immediately. If we "tail -f" the file on the NFS client at some point it stops to be updated (both the content and file attributes). The NFS client sees an old version of the file for many minutes, than sometimes, it refreshes contents and attributes.
-
Following https://access.redhat.com/solutions/1355353 the file system on the nfs client is mounted with
noac
andlookupcache=none
attributes.
Hereafter some evidences of the issue:
[user1@node1 /]$ ls -l /opt/logs/xxx_console.msg
-rw-rw----. 1 6077 nobody 269363034 Dec 31 10:49 /opt/logs/xxx_console.msg
root@fcsa0056:> ls -ltr /opt/logs/xxx_console.msg
-rw-rw---- 1 cics fcstd 269363124 Dec 31 10:50 /opt/logs/xxx_console.msg
root@fcsa0081:> ls -ltr /opt/logs/xxx_console.msg
-rw-rw---- 1 cics fcstd 269363124 Dec 31 10:50 /opt/logs/xxx_console.msg
At 11:11:
[user1@node1 /]$ ls -l /opt/logs/xxx_console.msg
-rw-rw----. 1 6077 nobody 269363034 Dec 31 10:49 /opt/logs/xxx_console.msg
root@fcsa0056:> ls -ltr /opt/logs/xxx_console.msg
-rw-rw---- 1 cics fcstd 269363670 Dec 31 11:11 /opt/logs/xxx_console.msg
root@fcsa0081:> ls -ltr /opt/logs/xxx_console.msg
-rw-rw---- 1 6077 fcstd 269363670 Dec 31 11:11 /opt/logs/xxx_console.msg
At 11:15:
[user1@node1 /]$ ls -l /opt/logs/xxx_console.msg
-rw-rw----. 1 6077 nobody 269363034 Dec 31 10:49 /opt/logs/xxx_console.msg
root@fcsa0056:> ls -ltr /opt/logs/xxx_console.msg
-rw-rw---- 1 cics fcstd 269363670 Dec 31 11:11 /opt/logs/xxx_console.msg
root@fcsa0081:> ls -ltr /opt/logs/xxx_console.msg
-rw-rw---- 1 6077 fcstd 269363670 Dec 31 11:11 /opt/logs/xxx_console.msg
At 11:30
[user1@node1 /]$ ls -l /opt/logs/xxx_console.msg
-rw-rw----. 1 6077 nobody 561 Dec 31 11:21 /opt/logs/xxx_console.msg
root@fcsa0056:> ls -ltr /opt/logs/xxx_console.msg
-rw-rw---- 1 cics fcstd 1491 Dec 31 11:28 /opt/logs/xxx_console.msg
root@fcsa0081:> ls -ltr /opt/logs/xxx_console.msg
-rw-rw---- 1 cics fcstd 1491 Dec 31 11:28 /opt/logs/xxx_console.msg
- Also updated
nfs
package on the client to the last available versionnfs-utils-1.2.3-64.el6.x86_64
.
Environment
- Red Hat Enterprise Linux
- Network File System
- Redhat Enterprise Linux 5,6,7
- AIX
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.