Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Description of problem:
The NFS server in upcoming RHEL kernels has the ability to expire the grace period early if there are only NFSv4.1 clients accessing its exports. However, matching support is needed in the nfsdcltrack program that is packaged with nfs-utils.
The support appears in nfs-utils starting around September 19, 2014. I think commit d479ad3adb06 is where it begins. An additional database column is introduced in the nfsdcltrack database to identify clients that have created a session during the server's previous boot instance.
Jeff Layton says:
> The has_session column would be automatically added when the updated
> nfsdcltrack is run for the first time. New kernel+old userspace (and
> vice-versa) should work, but you won't get the benefit of the grace
> period being lifted early.> Steve, if you backport the nfs-utils patches for this, then I'll be
> happy to take a look if you want me to help review them.
Version-Release number of selected component (if applicable):
nfs-utils-1.3.0-0.8.el7.x86_64 is the latest RHEL 7 version I found.
Expected results:
After these changes are applied, the server should
a) recognize when there are only NFSv4.1 clients that have state to reclaim
b) expire the grace period after the last NFSv4.1 client has finished reclaiming state
c) behave the same (use a fixed 90-second grace period) in all other scenarios
Whoops, no, the problem is with my testcase, apologies.
It's sm-notify that's responsible for ending the NLM grace period early, and sm-notify is only run after a full reboot. (Well, it runs when you restart nfs-server, but there's logic in it to exit immediately if it sees it's already run.)
So the best test is probably to do a full reboot of the server. In the good cases the client's touch should hang during the reboot, but finish executing soon after nfsd comes back up. In the bad cases, it should take about another 90 seconds after nfsd comes back up.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
https://rhn.redhat.com/errata/RHBA-2015-2196.html