* Create a volume and NFS mount. Run some tests that run long enough. * Stop the volume, mount point becomes stale and applications block. * Create a new volume and start it. * The blocked applications try to connect to the new volume and the following logs are seen (in abundance amounting to GB of logs): [2012-03-17 04:00:47.978478] E [nfs3.c:1549:nfs3_access] 0-nfs-nfsv3: Stale nfs client 10.16.156.6:784 must be trying to connect to a deleted volume, please unmount it. [2012-03-17 04:00:47.978487] W [nfs3-helpers.c:3389:nfs3_log_common_res] 0-nfs-nfsv3: XID: 94d7fbb9, ACCESS: NFS: 70(Invalid file handle), POSIX: 14(Bad address) [2012-03-17 04:00:47.978520] E [nfs3.c:1549:nfs3_access] 0-nfs-nfsv3: Failed to map FH to vol: client=10.16.156.6:784, exportid=ec7c3ed3-b828-401f-9cfe-28d29b94c1a7, gfid=f6f73d 7b-e0d7-466f-ae22-926fe873f863 [2012-03-17 04:00:47.978532] E [nfs3.c:1549:nfs3_access] 0-nfs-nfsv3: Stale nfs client 10.16.156.6:784 must be trying to connect to a deleted volume, please unmount it. [2012-03-17 04:00:47.978541] W [nfs3-helpers.c:3389:nfs3_log_common_res] 0-nfs-nfsv3: XID: 95d7fbb9, ACCESS: NFS: 70(Invalid file handle), POSIX: 14(Bad address) [2012-03-17 04:00:47.978869] E [nfs3.c:1549:nfs3_access] 0-nfs-nfsv3: Failed to map FH to vol: client=10.16.156.6:784, exportid=ec7c3ed3-b828-401f-9cfe-28d29b94c1a7, gfid=f6f73d 7b-e0d7-466f-ae22-926fe873f863 [2012-03-17 04:00:47.978892] E [nfs3.c:1549:nfs3_access] 0-nfs-nfsv3: Stale nfs client 10.16.156.6:784 must be trying to connect to a deleted volume, please unmount it. [2012-03-17 04:00:47.978909] W [nfs3-helpers.c:3389:nfs3_log_common_res] 0-nfs-nfsv3: XID: 96d7fbb9, ACCESS: NFS: 70(Invalid file handle), POSIX: 14(Bad address) [2012-03-17 04:00:47.978965] E [nfs3.c:1549:nfs3_access] 0-nfs-nfsv3: Failed to map FH to vol: client=10.16.156.6:784, exportid=ec7c3ed3-b828-401f-9cfe-28d29b94c1a7, gfid=f6f73d 7b-e0d7-466f-ae22-926fe873f863 [2012-03-17 04:00:47.978976] E [nfs3.c:1549:nfs3_access] 0-nfs-nfsv3: Stale nfs client 10.16.156.6:784 must be trying to connect to a deleted volume, please unmount it. [2012-03-17 04:00:47.978985] W [nfs3-helpers.c:3389:nfs3_log_common_res] 0-nfs-nfsv3: XID: 97d7fbb9, ACCESS: NFS: 70(Invalid file handle), POSIX: 14(Bad address) The client reports: Stale NFS File Handle.
Need to make gnfs log this occasionally.
*** Bug 803180 has been marked as a duplicate of this bug. ***
REVIEW: http://review.gluster.org/5229 (nfs: log stale mount errors occasionally) posted (#1) for review on master by Rajesh Amaravathi (rajesh)
COMMIT: http://review.gluster.org/5229 committed in master by Vijay Bellur (vbellur) ------ commit bda60de187aadc885bbc705ccb9317f680f4b9d3 Author: Rajesh Amaravathi <rajesh> Date: Mon Jun 17 16:28:17 2013 +0530 nfs: log stale mount errors occasionally log the state mount errors only occasionally so as not to fill log file with too many of them. Change-Id: Ib5a2485dc2ce3a181cff34bbb6d7aba17a2e4d4d BUG: 804301 Signed-off-by: Rajesh Amaravathi <rajesh> Reviewed-on: http://review.gluster.org/5229 Tested-by: Gluster Build System <jenkins.com> Reviewed-by: Kaleb KEITHLEY <kkeithle> Reviewed-by: Vijay Bellur <vbellur>