Bug 804218 - Cannot unmount NFS share if Mount version 2 is disabled.
Summary: Cannot unmount NFS share if Mount version 2 is disabled.
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: nfs-utils
Version: 6.2
Hardware: All
OS: Linux
low
medium
Target Milestone: rc
: ---
Assignee: Steve Dickson
QA Contact: Red Hat Kernel QE team
URL:
Whiteboard:
Depends On: 595675
Blocks: 804681
TreeView+ depends on / blocked
 
Reported: 2012-03-16 21:27 UTC by Orion Poplawski
Modified: 2012-03-19 15:12 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of: 595675
: 804681 (view as bug list)
Environment:
Last Closed: 2012-03-19 15:12:03 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Orion Poplawski 2012-03-16 21:27:40 UTC
Hopefully cloning this is useful.  On EL6 you cannot disable just version 1, but you can disable version 2 (which also disables version 1).  If you do, you get the same problem as before with EL5 and version 1.

+++ This bug was initially created as a clone of Bug #595675 +++

Reproducer:

On server:
edit /etc/sysconfig/nfs and set  MOUNTD_NFS_V2=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.

--- Additional comment from steved on 2011-01-21 13:47:14 EST ---

Created attachment 474657 [details]
The patch that fixes the problem

--- Additional comment from errata-xmlrpc on 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

Comment 2 Orion Poplawski 2012-03-16 21:34:02 UTC
Oops, maybe this is just still an issue with EL5 clients and version 2 being disabled on the server.  Just tested with EL6 client and was able to unmount.

Comment 3 Orion Poplawski 2012-03-16 21:44:03 UTC
nfs-utils-1.0.9-60.el5

Comment 4 Steve Dickson 2012-03-19 12:01:09 UTC
(In reply to comment #2)
> Oops, maybe this is just still an issue with EL5 clients and version 2 being
> disabled on the server.  Just tested with EL6 client and was able to unmount.
A bit confused... Can close this bz or is there still a problem with RHEL6 (or even RHEL5)?

Comment 5 Orion Poplawski 2012-03-19 14:47:09 UTC
Sorry about that.  There does not appear to be a problem with RHEL6, but there is with RHEL5 client - can't unmount if the server has disabled version 2.  So this either needs to get reassign back to RHEL5 or closed if we can't do that.

Comment 6 Steve Dickson 2012-03-19 15:12:03 UTC
I just opened this clone:
   https://bugzilla.redhat.com/show_bug.cgi?id=804681


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