Bug 253625
| Summary: | autofs fails to mount nfs4 when client and server are same machine | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 5 | Reporter: | Need Real Name <yknot> | ||||
| Component: | autofs | Assignee: | Ian Kent <ikent> | ||||
| Status: | CLOSED ERRATA | QA Contact: | |||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | medium | ||||||
| Version: | 5.0 | CC: | igeorgex, jmoyer | ||||
| Target Milestone: | rc | Keywords: | Regression | ||||
| Target Release: | --- | ||||||
| Hardware: | All | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | RHBA-2008-0354 | Doc Type: | Bug Fix | ||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2008-05-21 14:37:36 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: | 426496 | ||||||
| Attachments: |
|
||||||
|
Description
Need Real Name
2007-08-20 22:03:54 UTC
This was discussed recently on the upstream mailing list. In summary there are two possibilities. First, you should be able to use the "nosymlink" option in the master map entry to tell autofs not to attempt bind mounts for entries the map but, due to an omission on my part, the option isn't checked at mount time so the patch below is needed. This hasn't been committed upstream yet because I didn't get any feedback and so I worked on other things. Second, if you want to prevent bind mounts for individual map entries, you can add the "port=nnnn" option to those entries. Ian Created attachment 161943 [details]
Patch to check for "nosymlink" option at nfs mount time
I applied the patch to check for "nosymlink" to autofs-5.0.2 and modified the
auto.master file with the nosymlink option
auto.master
/home file:/etc/auto.home nosymlink
This seems to have fixed the problem with nfs4 local mounting.
Question! Is this a long term fix. Or might there be a patch to allow using bind
with NFSv4 mapping.
Somethiing along the lines of
autofs.home
foouser -fstype=nfs4,rw,nosuid,localroot=/exports
where localroot is the nfs4 fsid=0 exports directory
(In reply to comment #3) > I applied the patch to check for "nosymlink" to autofs-5.0.2 and modified the > auto.master file with the nosymlink option > auto.master > /home file:/etc/auto.home nosymlink > This seems to have fixed the problem with nfs4 local mounting. OK, that's good to know. > > Question! Is this a long term fix. Or might there be a patch to allow using bind > with NFSv4 mapping. Well it will at least be one option as I need to add this for those people that have used it in the past in previous versions. The name of the option is a little misleading as well. Also I need to add it to the man pages, since it's remained undocumented for a long time. > Somethiing along the lines of > autofs.home > foouser -fstype=nfs4,rw,nosuid,localroot=/exports > where localroot is the nfs4 fsid=0 exports directory It's risky to add autofs specific options like this in case they clash with mount(8) options. So I'm not really sure about what might happen here as time passes. Ian This bugzilla has Keywords: Regression. Since no regressions are allowed between releases, it is also being proposed as a blocker for this release. Please resolve ASAP. 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-2008-0354.html |