Bug 595675 - Cannot unmount NFS share if Mount version 1 is disabled.
Cannot unmount NFS share if Mount version 1 is disabled.
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: nfs-utils (Show other bugs)
5.4
All Linux
low Severity medium
: rc
: ---
Assigned To: Steve Dickson
yanfu,wang
:
Depends On:
Blocks: 804218 804681
  Show dependency treegraph
 
Reported: 2010-05-25 07:21 EDT by Sachin Prabhu
Modified: 2012-03-19 11:09 EDT (History)
2 users (show)

See Also:
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 07:35:22 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
The patch that fixes the problem (576 bytes, patch)
2011-01-21 13:47 EST, Steve Dickson
no flags Details | Diff

  None (edit)
Description Sachin Prabhu 2010-05-25 07:21:35 EDT
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 13:47:14 EST
Created attachment 474657 [details]
The patch that fixes the problem
Comment 3 yanfu,wang 2011-06-08 06:05:31 EDT
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 07:35:22 EDT
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

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