Bug 149894
Summary: | `umount -f` does not appear to actually work | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 3 | Reporter: | Paul Waterman <paulwaterman> | ||||
Component: | util-linux | Assignee: | Karel Zak <kzak> | ||||
Status: | CLOSED ERRATA | QA Contact: | Ben Levenson <benl> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 3.0 | CC: | brilong, joshua, k.georgiou, swellnit | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | i686 | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | RHBA-2005-669 | Doc Type: | Bug Fix | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2005-10-05 16:50:30 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: | 156320, 156322 | ||||||
Attachments: |
|
Description
Paul Waterman
2005-02-28 17:34:15 UTC
Turns out that this isn't actually a problem with the umount command as much as it's a matter of unclear documentation. The -f (force) option does NOT actually unconditionally force an unmount. It still requires that the file system be idle -- if the file system is busy, the umount will fail even with a -f option. The -f option is ONLY useful in the instance where the NFS server is no longer available and the file system is idle. The -l (lazy) option is what I was looking for. This actually forces the unmount regardless of whether or not the file system is busy. This is extremely likely to trip up people working in a mixed Solaris/Linux environment or coming from a Solaris background, as the -f (force) option was a highly touted feature of Solaris 8 and beyond that actually *forces* the unmount regardless of whether or not the file system is idle. The umount man page should be updated to make the distinction between -f and -l more clear. Created attachment 114896 [details]
Proposed updates to the umount.8 man page
The following attachment provides diffs for a proposed update to the umount.8
man page. This update will provide further clarification to the -f and -l
umount options, making it clear that the -f option cannot be used to umount
busy filesystems and that the -l option should be used instead for that
purpose.
No response for almost 3 months? This is a good idea... -f vs -l needs to be better explained. When can this find it's way into the umount manpage for RHEL3 and REHL4 ? Don't worry, we read user's comments in bugzilla. We're just selecting things for next RHEL updates. You will be informed. Thanks. I'm curious as to why this has become a private bug... Moving from "mount" to "util-linux" bugzilla component. The separate mount package is in AS2.1 only. In RHEL3 we have util-linux. *** Bug 159013 has been marked as a duplicate of this bug. *** Comment #11 is incorrect. In RHEL 3.0, the /bin/mount command is contained in the mount RPM. This changed to util-linux in RHEL 4.0 (not 3.0). Since this bug is against RHEL 3.0, the component should remain mount. % cat /etc/redhat-release; rpm -qf /bin/mount Red Hat Enterprise Linux WS release 3 (Taroon Update 5) mount-2.11y-31.6 % cat /etc/redhat-release; rpm -qf /bin/mount Red Hat Enterprise Linux WS release 4 (Nahant Update 1) util-linux-2.12a-16.EL4.6 The basic buzilla components are connected with source rpm packages: $ cat /etc/redhat-release; rpm -q --qf "%{SOURCERPM}\n" mount; Red Hat Enterprise Linux AS release 3 (Taroon Update 5) util-linux-2.11y-31.6.src.rpm 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 the 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-2005-626.html 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 the 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-2005-669.html |