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.
Bug 915862 - The sync mount option does not work for NFSv4 mounts in RHEL6
Summary: The sync mount option does not work for NFSv4 mounts in RHEL6
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: kernel
Version: 6.4
Hardware: All
OS: Linux
urgent
urgent
Target Milestone: rc
: ---
Assignee: Scott Mayhew
QA Contact: Chao Ye
URL:
Whiteboard:
: 1027344 (view as bug list)
Depends On:
Blocks: 961026 1030169 1030171
TreeView+ depends on / blocked
 
Reported: 2013-02-26 16:39 UTC by Scott Mayhew
Modified: 2018-12-04 15:04 UTC (History)
14 users (show)

Fixed In Version: kernel-2.6.32-432.el6
Doc Type: Bug Fix
Doc Text:
A previous change in the NFSv4 code resulted in breaking the sync NFSv4 mount option. A patch has been applied that restores functionality of the sync mount option.
Clone Of:
Environment:
Last Closed: 2014-10-14 05:14:41 UTC
Target Upstream Version:
Embargoed:
smayhew: needinfo-


Attachments (Terms of Use)
potential fix for rhel6 kernels (1.60 KB, patch)
2013-02-26 16:39 UTC, Scott Mayhew
no flags Details | Diff
potential fix for upstream kernel (1.21 KB, patch)
2013-02-26 16:40 UTC, Scott Mayhew
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 316693 0 None None None Never
Red Hat Knowledge Base (Solution) 536623 0 None None None Never
Red Hat Product Errata RHSA-2014:1392 0 normal SHIPPED_LIVE Important: kernel security, bug fix, and enhancement update 2014-10-14 01:28:44 UTC

Description Scott Mayhew 2013-02-26 16:39:00 UTC
Description of problem:
The sync mount option does not work for NFSv4 mounts in RHEL6.

Version-Release number of selected component (if applicable):
All

How reproducible:
Always

Steps to Reproduce:
1. mount -t nfs4 -o sync server:/export /mnt
2. grep sync /proc/mounts
  
Actual results:
The sync option is nowhere to be found.

Expected results:
The sync option should be set.

Additional info:
This was broken by commit c02d7ad (NFSv4: Replace nfs4_path_walk() with VFS path lookup in a private namespace).

Comment 1 Scott Mayhew 2013-02-26 16:39:53 UTC
Created attachment 703020 [details]
potential fix for rhel6 kernels

Comment 2 Scott Mayhew 2013-02-26 16:40:34 UTC
Created attachment 703021 [details]
potential fix for upstream kernel

Comment 4 RHEL Program Management 2013-07-31 11:40:32 UTC
This request was evaluated by Red Hat Product Management for
inclusion in a Red Hat Enterprise Linux release.  Product
Management has requested further review of this request by
Red Hat Engineering, for potential inclusion in a Red Hat
Enterprise Linux release for currently deployed products.
This request is not yet committed for inclusion in a release.

Comment 8 Jeff Layton 2013-11-08 16:46:33 UTC
*** Bug 1027344 has been marked as a duplicate of this bug. ***

Comment 15 Rafael Aquini 2013-12-02 16:19:52 UTC
Patch(es)

Comment 18 Chao Ye 2014-07-03 08:19:21 UTC
Reproduced on -431.el6:
======================================================
[root@hp-dl388g8-18 combo]# mount -o vers=4,sync hp-dl388g8-15.rhts.eng.nay.redhat.com:/mnt/testarea/server /mnt/testarea/client
[root@hp-dl388g8-18 combo]# cat /proc/mounts | grep nfs | grep sync
[root@hp-dl388g8-18 combo]# uname -a
Linux hp-dl388g8-18.rhts.eng.nay.redhat.com 2.6.32-431.el6.x86_64 #1 SMP Sun Nov 10 22:19:54 EST 2013 x86_64 x86_64 x86_64 GNU/Linux

Verfied on -488.el6:
======================================================
[root@ibm-hs21-01 combo]# mount -o vers=4,sync ibm-x3550m4-02.rhts.eng.nay.redhat.com:/mnt/testarea/server /mnt/testarea/client
[root@ibm-hs21-01 combo]# cat /proc/mounts | grep nfs | grep sync
ibm-x3550m4-02.rhts.eng.nay.redhat.com:/mnt/testarea/server /mnt/testarea/client nfs4 rw,sync,relatime,vers=4,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,port=0,timeo=600,retrans=2,sec=sys,clientaddr=10.66.86.23,minorversion=0,local_lock=none,addr=10.66.87.55 0 0
[root@ibm-hs21-01 combo]# uname -a
Linux ibm-hs21-01.rhts.eng.nay.redhat.com 2.6.32-488.el6.x86_64 #1 SMP Wed Jun 25 21:13:56 EDT 2014 x86_64 x86_64 x86_64 GNU/Linux

Move to VERIFIED.

Comment 19 errata-xmlrpc 2014-10-14 05:14:41 UTC
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.

http://rhn.redhat.com/errata/RHSA-2014-1392.html


Note You need to log in before you can comment on or make changes to this bug.