| Summary: | umount -a -t nfs doesn't umount nfs entries in fstab | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Steeve McCauley <steeve.mccauley> |
| Component: | util-linux | Assignee: | Karel Zak <kzak> |
| Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 23 | CC: | jonathan, kzak, steeve.mccauley |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-04-15 08:40:24 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Steeve McCauley
2016-04-14 13:00:20 UTC
What about "umount -a -t nfs4"? (see findmnt output to get fs name). Note that umount -a does not follow /etc/fstab, but /etc/mtab (so stuff in /proc/mounts on systems without mtab). Okay, this works to umount, # umount -a -t nfs4 but not, # mount -a -t nfs4 but this works for mount, # mount -a -t nfs So it would seem that mount uses fstab and umount uses mtab? Changing fstab to type nfs4 allows both mount and umount to operate as expected if I use, # (u)mount -a -t nfs4 There's a bit of a disconnect between the type mount types nfs and nfs4, not to mention nfsvers support in options from the nfs(5) manpage. mount(8) reads information from /etc/fstab, umount(8) reads information from /proc/self/mountinfo (or /proc/mounts, or old versions from /etc/mtab). The information in /proc are generated by kernel. I'll add a note about this to the umount man page to make it more obvious for users. Thanks. The bug, imo, is that mount will happily mount an nfs4 mount type using the nfs type from fstab and that umount ignores the nfs mount type used by mount. The bug is in umount when deciding whether to consider a given volume for removal. Regards |