Bug 595675

Summary: Cannot unmount NFS share if Mount version 1 is disabled.
Product: Red Hat Enterprise Linux 5 Reporter: Sachin Prabhu <sprabhu>
Component: nfs-utilsAssignee: Steve Dickson <steved>
Status: CLOSED ERRATA QA Contact: yanfu,wang <yanwang>
Severity: medium Docs Contact:
Priority: low    
Version: 5.4CC: jlayton, orion
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: nfs-utils-1.0.9-52.el5 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 804218 (view as bug list) Environment:
Last Closed: 2011-07-21 11:35:22 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 804218, 804681    
Attachments:
Description Flags
The patch that fixes the problem none

Description Sachin Prabhu 2010-05-25 11:21:35 UTC
Reproducer:

On server:
edit /etc/sysconfig/nfs and set  MOUNTD_NFS_V1=no
restart nfs

On client: 
Mount a share from the server. This should be successful.
Now try to unmount it. This fails with an error.

# umount /mnt
umount.nfs: vm22:/exports: not found / mounted or server not reachable
umount.nfs: vm22:/exports: not found / mounted or server not reachable


The cause appears to be the fact that the client when mounting uses MOUNT version 3 protocol. However when unmounting, it appears to use version 1 of the MOUNT protocol. Since version 1 is disabled, the client cannot unmount.

Comment 1 Steve Dickson 2011-01-21 18:47:14 UTC
Created attachment 474657 [details]
The patch that fixes the problem

Comment 3 yanfu,wang 2011-06-08 10:05:31 UTC
reproduced on RHEL5.6:
On server:
edit /etc/sysconfig/nfs and set  MOUNTD_NFS_V1=no
restart nfs

[root@dell-pesc430-03 ~]# mount -t nfs dell-pesc430-03.rhts.eng.bos.redhat.com:/scratch/testdir/1 /mnt/
[root@dell-pesc430-03 ~]# cat /proc/mounts 
...
dell-pesc430-03.rhts.eng.bos.redhat.com:/scratch/testdir/1 /mnt nfs rw,vers=3,rsize=32768,wsize=32768,hard,proto=tcp,timeo=600,retrans=2,sec=sys,addr=dell-pesc430-03.rhts.eng.bos.redhat.com 0 0
[root@dell-pesc430-03 ~]# umount /mnt
umount.nfs: dell-pesc430-03.rhts.eng.bos.redhat.com:/scratch/testdir/1: not found / mounted or server not reachable
umount.nfs: dell-pesc430-03.rhts.eng.bos.redhat.com:/scratch/testdir/1: not found / mounted or server not reachable

verified on RHEL5.7 with nfs-utils-1.0.9-52.el5 i386 and x86_64 package, umount is ok if mount version 1 is disabled.

Comment 4 errata-xmlrpc 2011-07-21 11:35:22 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2011-1048.html