Hide Forgot
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.
[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.
(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
(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.
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.
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.
(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" :)
(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...
(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.