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 1010634 - /etc/init.d/nfs should automatically mount the /proc/fs/nfsd (if not mounted)
Summary: /etc/init.d/nfs should automatically mount the /proc/fs/nfsd (if not mounted)
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: nfs-utils
Version: 6.5
Hardware: All
OS: Linux
high
high
Target Milestone: rc
: ---
Assignee: Steve Dickson
QA Contact: Yongcheng Yang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-09-22 07:51 UTC by JianHong Yin
Modified: 2017-01-22 02:15 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-01-11 22:43:33 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1415256 1 None None None 2021-01-20 06:05:38 UTC

Internal Links: 1415256

Description JianHong Yin 2013-09-22 07:51:40 UTC
Description of problem:
/etc/init.d/nfs should automatically mount the /proc/fs/nfsd (if not mounted)

Version-Release number of selected component (if applicable):
Now RHEL6.4 RHEL6.5 test fail;
RHEL7.0 test OK. RHEL5.0 does not involve

How reproducible:
100%

Steps to Reproduce:
1. service nfs start; service nfs stop;
2. umount /proc/fs/nfsd
3. service nfs restart

Actual results:
[root@intel-canoepass-01 ~]# service nfs restart
Shutting down NFS daemon: [  OK  ]
Shutting down NFS mountd: [  OK  ]
Shutting down NFS quotas: [  OK  ]
Shutting down NFS services:  [  OK  ]
Shutting down RPC idmapd: [  OK  ]
Starting NFS services:  [  OK  ]
Starting NFS quotas: [  OK  ]
Starting NFS mountd: [  OK  ]
Starting NFS daemon: rpc.nfsd: Unable to access /proc/fs/nfsd errno 2 (No such file or directory).
Please try, as root, 'mount -t nfsd nfsd /proc/fs/nfsd' and then restart rpc.nfsd to correct the problem
[  OK  ]
Starting RPC idmapd: [  OK  ]

Expected results:
when start, should automatically mount the /proc/fs/nfsd;

Additional info:
In RHEL7.0 works OK.

Comment 1 JianHong Yin 2013-09-22 07:59:31 UTC
[root@intel-canoepass-01 ~]# diff /etc/init.d/nfs.orig /etc/init.d/nfs -pNur
--- /etc/init.d/nfs.orig        2013-09-22 03:54:23.688358359 -0400
+++ /etc/init.d/nfs     2013-09-22 03:57:08.237767398 -0400
@@ -85,6 +85,8 @@ case "$1" in
                /sbin/modprobe nfsd
                [ -n "$RDMA_PORT" ] && /sbin/modprobe svcrdma
        }
+       mountpoint -q /proc/fs/nfsd || mount -t nfsd nfsd /proc/fs/nfsd 2>/dev/null
+
        # Set v4 grace period if requested
        [ -n "$NFSD_V4_GRACE" ] && {
                echo "$NFSD_V4_GRACE" > /proc/fs/nfsd/nfsv4gracetime
[root@intel-canoepass-01 ~]# 


this patch can work for me.

Comment 3 Steve Dickson 2013-09-22 09:16:19 UTC
(In reply to Yin.JianHong from comment #0)
> Description of problem:
> /etc/init.d/nfs should automatically mount the /proc/fs/nfsd (if not mounted)
> 
> Version-Release number of selected component (if applicable):
> Now RHEL6.4 RHEL6.5 test fail;
> RHEL7.0 test OK. RHEL5.0 does not involve
> 
> How reproducible:
> 100%
> 
> Steps to Reproduce:
> 1. service nfs start; service nfs stop;
> 2. umount /proc/fs/nfsd
> 3. service nfs restart
> 
> Actual results:
> [root@intel-canoepass-01 ~]# service nfs restart
> Shutting down NFS daemon: [  OK  ]
> Shutting down NFS mountd: [  OK  ]
> Shutting down NFS quotas: [  OK  ]
> Shutting down NFS services:  [  OK  ]
> Shutting down RPC idmapd: [  OK  ]
> Starting NFS services:  [  OK  ]
> Starting NFS quotas: [  OK  ]
> Starting NFS mountd: [  OK  ]
> Starting NFS daemon: rpc.nfsd: Unable to access /proc/fs/nfsd errno 2 (No
> such file or directory).
> Please try, as root, 'mount -t nfsd nfsd /proc/fs/nfsd' and then restart
> rpc.nfsd to correct the problem
The question is why is /proc/fs/nfsd no longer getting mounted
when he nfsd kernel module is loaded?

Also I'm not able to reproduce this with nfs-utils-1.2.3-38

Comment 4 JianHong Yin 2013-09-22 09:31:44 UTC
(In reply to Steve Dickson from comment #3)
> (In reply to Yin.JianHong from comment #0)
> > Description of problem:
> > /etc/init.d/nfs should automatically mount the /proc/fs/nfsd (if not mounted)
> > 
> > Version-Release number of selected component (if applicable):
> > Now RHEL6.4 RHEL6.5 test fail;
> > RHEL7.0 test OK. RHEL5.0 does not involve
> > 
> > How reproducible:
> > 100%
> > 
> > Steps to Reproduce:
> > 1. service nfs start; service nfs stop;
> > 2. umount /proc/fs/nfsd
> > 3. service nfs restart
> > 
> > Actual results:
> > [root@intel-canoepass-01 ~]# service nfs restart
> > Shutting down NFS daemon: [  OK  ]
> > Shutting down NFS mountd: [  OK  ]
> > Shutting down NFS quotas: [  OK  ]
> > Shutting down NFS services:  [  OK  ]
> > Shutting down RPC idmapd: [  OK  ]
> > Starting NFS services:  [  OK  ]
> > Starting NFS quotas: [  OK  ]
> > Starting NFS mountd: [  OK  ]
> > Starting NFS daemon: rpc.nfsd: Unable to access /proc/fs/nfsd errno 2 (No
> > such file or directory).
> > Please try, as root, 'mount -t nfsd nfsd /proc/fs/nfsd' and then restart
> > rpc.nfsd to correct the problem
> The question is why is /proc/fs/nfsd no longer getting mounted
> when he nfsd kernel module is loaded?
no, umount by test cases; 
> 
> Also I'm not able to reproduce this with nfs-utils-1.2.3-38
test in latest RTT distro RHEL6.5-20130913.0, it always reproduce.

Comment 5 RHEL Program Management 2013-10-14 02:01:47 UTC
This request was not resolved in time for the current release.
Red Hat invites you to ask your support representative to
propose this request, if still desired, for consideration in
the next release of Red Hat Enterprise Linux.

Comment 6 Steve Whitehouse 2015-12-18 12:17:56 UTC
Why are the test cases umounting /proc/fs/nfsd ? This doesn't sound like something that would ever be encountered by a normal user. If that is the case then can we put the re-mounting of /proc/fs/nfsd into the test cases that have umounted it? That would solve the problem with out needing a change to RHEL itself.

Comment 7 JianHong Yin 2015-12-21 02:52:59 UTC
(In reply to Steve Whitehouse from comment #6)
> Why are the test cases umounting /proc/fs/nfsd ? This doesn't sound like
> something that would ever be encountered by a normal user. If that is the
> case then can we put the re-mounting of /proc/fs/nfsd into the test cases
> that have umounted it? That would solve the problem with out needing a
> change to RHEL itself.

Yes, maybe normal user will never encounter this scenario, but some users are not normal user..
 Add I just find that service nfs can auto mount the /proc/fs/nfsd in RHEL-7.
 So I think: if done that, will provide better "User Experience" :)

Comment 8 Steve Dickson 2016-01-11 22:43:33 UTC
(In reply to Yin.JianHong from comment #7)
> (In reply to Steve Whitehouse from comment #6)
> > Why are the test cases umounting /proc/fs/nfsd ? This doesn't sound like
> > something that would ever be encountered by a normal user. If that is the
> > case then can we put the re-mounting of /proc/fs/nfsd into the test cases
> > that have umounted it? That would solve the problem with out needing a
> > change to RHEL itself.
> 
> Yes, maybe normal user will never encounter this scenario, but some users
> are not normal user..
>  Add I just find that service nfs can auto mount the /proc/fs/nfsd in RHEL-7.
>  So I think: if done that, will provide better "User Experience" :)
While I agree with trying to provide a better User Experience,
testing unsupported configuration or actions, like unmounting 
/proc/fs/nfsd, I don't think is a good place to spend our time.

We got enough real, customer driven, bugs to fix and test 
so spend time on "what if" bugs like this is probably 
not the right thing to do.... IMHO...

Comment 9 JianHong Yin 2016-01-12 02:46:22 UTC
(In reply to Steve Dickson from comment #8)
> (In reply to Yin.JianHong from comment #7)
> > (In reply to Steve Whitehouse from comment #6)
> > > Why are the test cases umounting /proc/fs/nfsd ? This doesn't sound like
> > > something that would ever be encountered by a normal user. If that is the
> > > case then can we put the re-mounting of /proc/fs/nfsd into the test cases
> > > that have umounted it? That would solve the problem with out needing a
> > > change to RHEL itself.
> > 
> > Yes, maybe normal user will never encounter this scenario, but some users
> > are not normal user..
> >  Add I just find that service nfs can auto mount the /proc/fs/nfsd in RHEL-7.
> >  So I think: if done that, will provide better "User Experience" :)
> While I agree with trying to provide a better User Experience,
> testing unsupported configuration or actions, like unmounting 
> /proc/fs/nfsd, I don't think is a good place to spend our time.
> 
> We got enough real, customer driven, bugs to fix and test 
Yes, I noticed that.
> so spend time on "what if" bugs like this is probably 
> not the right thing to do.... IMHO...
Understanding.


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