* Another (stupid) question: autofs vs nfs for automounting purposes
@ 2004-06-11 16:43 Dimitry V. Ketov
2004-06-11 23:37 ` Ryan Go
` (2 more replies)
0 siblings, 3 replies; 8+ messages in thread
From: Dimitry V. Ketov @ 2004-06-11 16:43 UTC (permalink / raw)
To: autofs
- Which reasons (besides simplicity) led developers to the autofs
solution?
- What's wrong with nfs for the same things?
Thanks in advance,
Dimitry.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Another (stupid) question: autofs vs nfs for automounting purposes
2004-06-11 16:43 Dimitry V. Ketov
@ 2004-06-11 23:37 ` Ryan Go
2004-06-12 3:41 ` raven
2004-06-12 5:11 ` Jim Carter
2 siblings, 0 replies; 8+ messages in thread
From: Ryan Go @ 2004-06-11 23:37 UTC (permalink / raw)
To: Dimitry V. Ketov; +Cc: autofs
I think something is missing ...
NFS doesn't do automounting. Autofs does automounting. It's an apple and
orange comparison.
<< ryan
On Fri, 11 Jun 2004, Dimitry V. Ketov wrote:
> - Which reasons (besides simplicity) led developers to the autofs
> solution?
> - What's wrong with nfs for the same things?
>
> Thanks in advance,
> Dimitry.
>
> _______________________________________________
> autofs mailing list
> autofs@linux.kernel.org
> http://linux.kernel.org/mailman/listinfo/autofs
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Another (stupid) question: autofs vs nfs for automounting purposes
2004-06-11 16:43 Dimitry V. Ketov
2004-06-11 23:37 ` Ryan Go
@ 2004-06-12 3:41 ` raven
2004-06-12 5:11 ` Jim Carter
2 siblings, 0 replies; 8+ messages in thread
From: raven @ 2004-06-12 3:41 UTC (permalink / raw)
To: Dimitry V. Ketov; +Cc: autofs
On Fri, 11 Jun 2004, Dimitry V. Ketov wrote:
> - Which reasons (besides simplicity) led developers to the autofs
> solution?
> - What's wrong with nfs for the same things?
I don't understand your question.
What has NFS to do with automounting?
Ian
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Another (stupid) question: autofs vs nfs for automounting purposes
2004-06-11 16:43 Dimitry V. Ketov
2004-06-11 23:37 ` Ryan Go
2004-06-12 3:41 ` raven
@ 2004-06-12 5:11 ` Jim Carter
2 siblings, 0 replies; 8+ messages in thread
From: Jim Carter @ 2004-06-12 5:11 UTC (permalink / raw)
To: Dimitry V. Ketov; +Cc: autofs
On Fri, 11 Jun 2004, Dimitry V. Ketov wrote:
> - Which reasons (besides simplicity) led developers to the autofs
> solution?
> - What's wrong with nfs for the same things?
autofs mounts any available filesystem on demand. It is most widely used
for NFS filesystems, but the distributed /etc/auto.misc file shows a
number of examples of non-NFS mounts: the version I have has examples for a
zip drive, a CD and a floppy, as well as NFS to a foreign site. Samba
mounts can also be done. (I think.)
All the quirks and foibles of NFS that you have to deal with when mounting
manually or via fstab, equally have to be dealt with when you use autofs.
Often it is hard to figure out whether NFS or the automounter is
responsible for a particular unexpected behavior.
James F. Carter Voice 310 825 2897 FAX 310 206 6673
UCLA-Mathnet; 6115 MSA; 405 Hilgard Ave.; Los Angeles, CA, USA 90095-1555
Email: jimc@math.ucla.edu http://www.math.ucla.edu/~jimc (q.v. for PGP key)
^ permalink raw reply [flat|nested] 8+ messages in thread
* RE: Another (stupid) question: autofs vs nfs for automounting purposes
@ 2004-06-14 7:59 Dimitry V. Ketov
2004-06-14 10:10 ` raven
0 siblings, 1 reply; 8+ messages in thread
From: Dimitry V. Ketov @ 2004-06-14 7:59 UTC (permalink / raw)
To: autofs
> -----Original Message-----
> From: raven@themaw.net [mailto:raven@themaw.net]
>
> On Fri, 11 Jun 2004, Dimitry V. Ketov wrote:
>
> > - Which reasons (besides simplicity) led developers to the autofs
> > solution?
> > - What's wrong with nfs for the same things?
>
> I don't understand your question.
>
> What has NFS to do with automounting?
Sorry, if I'm unclear.
I really meant communication protocol between kernel and the userspace
for automounting purposes.
As I know, early automounting solutions was (and current am-utils is)
based on userspace nfs server daemon that mount itself on the autmomount
points and then listen for filesystem traverses that trigger mounting.
I understand that nfs was designed for different purposes, but anyway
what reason to design new communication protocol and to complicate
kernel instead using already in-kernel nfs code?
Dimitry.
^ permalink raw reply [flat|nested] 8+ messages in thread
* RE: Another (stupid) question: autofs vs nfs for automounting purposes
2004-06-14 7:59 Another (stupid) question: autofs vs nfs for automounting purposes Dimitry V. Ketov
@ 2004-06-14 10:10 ` raven
2004-06-14 11:39 ` Greg Banks
0 siblings, 1 reply; 8+ messages in thread
From: raven @ 2004-06-14 10:10 UTC (permalink / raw)
To: Dimitry V. Ketov; +Cc: autofs
On Mon, 14 Jun 2004, Dimitry V. Ketov wrote:
> > -----Original Message-----
> > From: raven@themaw.net [mailto:raven@themaw.net]
> >
> > On Fri, 11 Jun 2004, Dimitry V. Ketov wrote:
> >
> > > - Which reasons (besides simplicity) led developers to the autofs
> > > solution?
> > > - What's wrong with nfs for the same things?
> >
> > I don't understand your question.
> >
> > What has NFS to do with automounting?
> Sorry, if I'm unclear.
> I really meant communication protocol between kernel and the userspace
> for automounting purposes.
> As I know, early automounting solutions was (and current am-utils is)
> based on userspace nfs server daemon that mount itself on the autmomount
> points and then listen for filesystem traverses that trigger mounting.
> I understand that nfs was designed for different purposes, but anyway
> what reason to design new communication protocol and to complicate
> kernel instead using already in-kernel nfs code?
I'm not really familiar with amd so I can't comment on that.
Historically there are two ways to implement automount one being
userspace, RPC based and the other being kernel based. autofs uses the
kernel based method. It doesn't seem to me using the in kernel NFS would
be sensible but someone would need to enlighten me on that.
In any case this implementation is a kernel based automounter. If you
would like to use the other implementation then I believe amd is quite a
capable product.
Ian
^ permalink raw reply [flat|nested] 8+ messages in thread
* RE: Another (stupid) question: autofs vs nfs for automounting purposes
@ 2004-06-14 11:28 Dimitry V. Ketov
0 siblings, 0 replies; 8+ messages in thread
From: Dimitry V. Ketov @ 2004-06-14 11:28 UTC (permalink / raw)
To: autofs
> -----Original Message-----
> From: raven@themaw.net [mailto:raven@themaw.net]
> > communication protocol and to complicate kernel instead
> using already
> > in-kernel nfs code?
>
> I'm not really familiar with amd so I can't comment on that.
>
> Historically there are two ways to implement automount one being
> userspace, RPC based and the other being kernel based. autofs
> uses the
> kernel based method. It doesn't seem to me using the in
> kernel NFS would
> be sensible but someone would need to enlighten me on that.
>
> In any case this implementation is a kernel based automounter. If you
> would like to use the other implementation then I believe amd
> is quite a
> capable product.
:) Nope. Just trying to figure out why two different implementations is
still exists.
Anyway thanks,
Dimitry.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Another (stupid) question: autofs vs nfs for automounting purposes
2004-06-14 10:10 ` raven
@ 2004-06-14 11:39 ` Greg Banks
0 siblings, 0 replies; 8+ messages in thread
From: Greg Banks @ 2004-06-14 11:39 UTC (permalink / raw)
To: raven; +Cc: autofs
On Mon, Jun 14, 2004 at 06:10:34PM +0800, raven@themaw.net wrote:
> On Mon, 14 Jun 2004, Dimitry V. Ketov wrote:
>
> > > What has NFS to do with automounting?
> > Sorry, if I'm unclear.
> > I really meant communication protocol between kernel and the userspace
> > for automounting purposes.
> > As I know, early automounting solutions was (and current am-utils is)
> > based on userspace nfs server daemon that mount itself on the autmomount
> > points and then listen for filesystem traverses that trigger mounting.
> > I understand that nfs was designed for different purposes, but anyway
> > what reason to design new communication protocol and to complicate
> > kernel instead using already in-kernel nfs code?
>
> I'm not really familiar with amd so I can't comment on that.
>
> Historically there are two ways to implement automount one being
> userspace, RPC based and the other being kernel based. autofs uses the
> kernel based method. It doesn't seem to me using the in kernel NFS would
> be sensible but someone would need to enlighten me on that.
One of the problems of the userspace-nfs-daemon approach to
autofs trigger nodes is that a necessary side effect of the
design is that the NFS mount points need to be somewhere
else in the filesystem with fake symlinks to them from the
trigger nodes. This then shows up in /bin/pwd output and
applications get mightily confused.
For example, let's say we have an autofs node /hosts/foobar.
With the userspace-nfs-daemon approach, after the first
traversal /hosts/foobar is a symlink to /.automount/foobar/root/
which is the actual NFS mountpoint. If an application does
a getcwd() call or runs /bin/pwd, the returned path will
start at /.automount/foobar/root/. The typical failure mode
you see with this is that an application will save pathnames
like that in some persistent state (e.g. a compiler saving
the path to the .c file in the generated binary) and then after
the mount goes idle and is unmounted the pathname cannot be
reached (e.g. you start the debugger on the binary twenty
minutes later).
Years ago, I had no end of problems using with the SunOS 4
automounter, which behaved this way.
With the kernel approach, after the first traversal /hosts/foobar
is itself the NFS mountpoint, and applications doing a getcwd()
see paths starting with /hosts/foobar, which will still work
after the mount goes idle and is unmounted.
The price you pay is that bugs are harder to find and fix.
There are other problems with using NFS to talk to autofsd.
For one thing it means that you have an NFS mount all the time,
even when you're not mounting other machines, which means you're
running lockd all the time and can't shut it down, which on an
NFS server makes it really hard to failover NFS service to
another server.
Greg.
--
Greg Banks, R&D Software Engineer, SGI Australian Software Group.
I don't speak for SGI.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2004-06-14 11:39 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-14 7:59 Another (stupid) question: autofs vs nfs for automounting purposes Dimitry V. Ketov
2004-06-14 10:10 ` raven
2004-06-14 11:39 ` Greg Banks
-- strict thread matches above, loose matches on Subject: below --
2004-06-14 11:28 Dimitry V. Ketov
2004-06-11 16:43 Dimitry V. Ketov
2004-06-11 23:37 ` Ryan Go
2004-06-12 3:41 ` raven
2004-06-12 5:11 ` Jim Carter
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.