autofs - nfs with localhost
Hello Mr & Mrs Autofs-Reader,
im using autofs-4.1.3 and want to use an map-entry like
-port=12215,mountport=12215,nfsvers=3,soft,tcp,ro localhost:/.
For some reason the automounter believes in beeing smarter than me, and instead of mounting using the nfs daemon it could find on port 12215 it uses a `mount --bind' to mount the root filesystem without nfs. How can i disable this to force automount to use NFS? The manpages didnt reveal anything about this, is it an experimental feature?
(background: actually i dont want to remount my / somewhere else, but using an ssh-tunnel on port 12215 with an nfsd on the other end).
Greetings - Rasmus
==> Regarding [autofs] autofs - nfs with localhost; Rasmus Hahn <[email protected]> adds:
rassahah> Hello Mr & Mrs Autofs-Reader, im using autofs-4.1.3 and want to rassahah> use an map-entry like
rassahah> -port=12215,mountport=12215,nfsvers=3,soft,tcp,ro localhost:/.
rassahah> For some reason the automounter believes in beeing smarter than rassahah> me, and instead of mounting using the nfs daemon it could find on rassahah> port 12215 it uses a `mount --bind' to mount the root filesystem rassahah> without nfs. How can i disable this to force automount to use rassahah> NFS? The manpages didnt reveal anything about this, is it an rassahah> experimental feature?
rassahah> (background: actually i dont want to remount my / somewhere else, rassahah> but using an ssh-tunnel on port 12215 with an nfsd on the other rassahah> end).
Sorry, there is no option to configure that. So is this a feature request? ;)
-Jeff
Ian Kent
maintainerQuoted 14 lines · Jeff Moyer
==> Regarding [autofs] autofs - nfs with localhost; Rasmus Hahn <[email protected]> adds:
rassahah> Hello Mr & Mrs Autofs-Reader, im using autofs-4.1.3 and want to rassahah> use an map-entry like
rassahah> -port=12215,mountport=12215,nfsvers=3,soft,tcp,ro localhost:/.
rassahah> For some reason the automounter believes in beeing smarter than rassahah> me, and instead of mounting using the nfs daemon it could find on rassahah> port 12215 it uses a `mount --bind' to mount the root filesystem rassahah> without nfs. How can i disable this to force automount to use rassahah> NFS? The manpages didnt reveal anything about this, is it an rassahah> experimental feature?
Quoted 7 lines
rassahah> (background: actually i dont want to remount my / somewhere else, rassahah> but using an ssh-tunnel on port 12215 with an nfsd on the other rassahah> end).
Sorry, there is no option to configure that. So is this a feature request? ;)
I've looked at that part of the code a couple of times recently as Chris is interested in tidying it up.
It certainly looks like it needs work. What was I thinking, doh.
Anyway, it also looks like that if the nosymlink option is specified it will work as requested here.
Ian
Quoted 24 lines · Ian Kent
Quoted 14 lines · Jeff Moyer
==> Regarding [autofs] autofs - nfs with localhost; Rasmus Hahn <[email protected]> adds:
rassahah> Hello Mr & Mrs Autofs-Reader, im using autofs-4.1.3 and want to rassahah> use an map-entry like
rassahah> -port=12215,mountport=12215,nfsvers=3,soft,tcp,ro localhost:/.
rassahah> For some reason the automounter believes in beeing smarter than rassahah> me, and instead of mounting using the nfs daemon it could find on rassahah> port 12215 it uses a `mount --bind' to mount the root filesystem rassahah> without nfs. How can i disable this to force automount to use rassahah> NFS? The manpages didnt reveal anything about this, is it an rassahah> experimental feature?
Quoted 7 lines
rassahah> (background: actually i dont want to remount my / somewhere else, rassahah> but using an ssh-tunnel on port 12215 with an nfsd on the other rassahah> end).
Sorry, there is no option to configure that. So is this a feature request? ;)
Quoted 8 lines
I've looked at that part of the code a couple of times recently as Chris is interested in tidying it up.
It certainly looks like it needs work. What was I thinking, doh.
Anyway, it also looks like that if the nosymlink option is specified it will work as requested here.
Yes, the nosymlink option does it, thanks Ian. And moreover: The `nosymlink' option is hereby approved to find its way into the manpage (if theres time for that ;-)
Greetings - Rasmus
[email protected]
maintainerQuoted 30 lines · Rasmus Hahn
Quoted 29 lines · Ian Kent
Quoted 14 lines · Jeff Moyer
==> Regarding [autofs] autofs - nfs with localhost; Rasmus Hahn <[email protected]> adds:
rassahah> Hello Mr & Mrs Autofs-Reader, im using autofs-4.1.3 and want to rassahah> use an map-entry like
rassahah> -port=12215,mountport=12215,nfsvers=3,soft,tcp,ro localhost:/.
rassahah> For some reason the automounter believes in beeing smarter than rassahah> me, and instead of mounting using the nfs daemon it could find on rassahah> port 12215 it uses a `mount --bind' to mount the root filesystem rassahah> without nfs. How can i disable this to force automount to use rassahah> NFS? The manpages didnt reveal anything about this, is it an rassahah> experimental feature?
Quoted 7 lines
rassahah> (background: actually i dont want to remount my / somewhere else, rassahah> but using an ssh-tunnel on port 12215 with an nfsd on the other rassahah> end).
Sorry, there is no option to configure that. So is this a feature request? ;)
I've looked at that part of the code a couple of times recently as Chris is interested in tidying it up.
It certainly looks like it needs work. What was I thinking, doh.
Quoted 7 lines
Quoted 3 lines
Anyway, it also looks like that if the nosymlink option is specified it will work as requested here.
Yes, the nosymlink option does it, thanks Ian. And moreover: The `nosymlink' option is hereby approved to find its way into the manpage (if theres time for that ;-)
I need to check this as that option may be obsolete now and need to be renamed.
Ian
Quoted 3 lines · Rasmus Hahn
For some reason the automounter believes in beeing smarter than me, and instead of mounting using the nfs daemon it could find on port 12215 it uses a `mount --bind' to mount the root filesystem without nfs.
While we're at this; how would this work with NFSv4, which has a virtual root (ie. localhost:/foo/bar might map to /exports/nfsv4/foo/bar or whatnot)? Does autofs currently contain support for this?
/* Steinar */
- currently experimenting with NFSv4 a lot, and although it's quite shaky it's really promising :-)
Signature · 1 line
Homepage: http://www.sesse.net/
[email protected]
maintainerQuoted 8 lines · Steinar H. Gunderson
Quoted 3 lines · Rasmus Hahn
For some reason the automounter believes in beeing smarter than me, and instead of mounting using the nfs daemon it could find on port 12215 it uses a `mount --bind' to mount the root filesystem without nfs.
While we're at this; how would this work with NFSv4, which has a virtual root (ie. localhost:/foo/bar might map to /exports/nfsv4/foo/bar or whatnot)? Does autofs currently contain support for this?
Not especially.
I haven't put any time into v4 yet.
Ian