All of lore.kernel.org
 help / color / mirror / Atom feed
* autofs no_local_binds option (nfs <-> bind mounts)
@ 2004-01-13 14:26 MARX,ALEXANDER (HP-Germany,ex1)
  2004-01-13 17:14 ` H. Peter Anvin
  0 siblings, 1 reply; 12+ messages in thread
From: MARX,ALEXANDER (HP-Germany,ex1) @ 2004-01-13 14:26 UTC (permalink / raw)
  To: autofs

Hi list,

autofs (v4,3.1.7-425) is too intelligent ... 

Directory 'test' is exported via the nfs server on host 'foo' and imported
again via the linux automounter locally as soon as 'test' is accessed
(corresponding entry in automounter map). The automounter recognizes that
'test' is a local directory and performs a bind mount. 

Great feature - BUT, there is no way to turn off this functionality. I would
need to always have nfs mounts regardless of having the exported directory
locally or remotely.

In some scenarios (e.g. HA), the nfs server could switch from local to
remote, therefore having local binds is not a desirable scenario, there
should always be nfs mounts.

Is there some kind of workaround or possibiliy to perform such actions, or
will the automounter always be smarter that me :-) ?

Thanks,

Alex

-
Alexander Marx

^ permalink raw reply	[flat|nested] 12+ messages in thread
* Re: autofs no_local_binds option (nfs <-> bind mounts)
@ 2004-01-13 19:58 Eric Werme USG
  2004-01-13 20:03 ` H. Peter Anvin
  0 siblings, 1 reply; 12+ messages in thread
From: Eric Werme USG @ 2004-01-13 19:58 UTC (permalink / raw)
  To: autofs; +Cc: alexander.marx, hpa

hpa@zytor.com wrote:

MARX,ALEXANDER (HP-Germany,ex1) wrote:
> 
>> In some scenarios (e.g. HA), the nfs server could switch from local to
>> remote, therefore having local binds is not a desirable scenario, there
>> should always be nfs mounts.
>
>How would you expect this to work?  The local bind only happens when 
>local and destination address are the same, therefore keeping anything 
>from going across the network no matter how you slice it.
>
>Changing the DNS name of the NFS server has no effect, since once the 
>mount has happened the name was already resolved, and it can't be 
>redirected.
>
>Changing the IP address runs into the problem that local == remote.

The stop-gap cluster system in Tru64 Unix did this.  Typically pairs
of servers had system names (service names in the jargon) and bound
the IP address to a NIC on one server.  When the service was relocated
manually or on a crash, the IP address was moved to a NIC on the other
server.  Disks were on a shared SCSI bus, and the file system would also
go through a umount/mount cycle.  Note that no changes to DNS' database
are necessary, just an update to clients' arp tables.

For example, we have systems "mailhub1" and "mailhub2".  The service name
"mailhub" is where Email here winds up.  I send mail via SMTP to mailhub, and
read it via NFS from mailhub.  Normally I don't care which of mailhub1
and mailhub2 handles it.  For the most part they're just servers, but
sometimes there are reasons to login to one or both of those systems.

Several vendors have similar products.  Personally, I always hated the
weird problems we'd get into on loopback mounts, like the client
deciding to flush out some pages because memory was low.  The server,
being the same system, didn't have any more memory....

One of the benefits of the loopback mounts was that unmounting wasn't
a problem as long as local access was via NFS.  Kill the NFS server,
accesses would end, unmount.  Clients would retransmit a couple times,
but things would resume quickly.

	-Ric Werme

-- 
Eric (Ric) Werme         |  werme@zk3.dec.com
Hewlett-Packard Co.      |  http://werme.8m.net/

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2004-01-13 21:06 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-13 14:26 autofs no_local_binds option (nfs <-> bind mounts) MARX,ALEXANDER (HP-Germany,ex1)
2004-01-13 17:14 ` H. Peter Anvin
2004-01-13 17:48   ` Mike Waychison
2004-01-13 19:58 Eric Werme USG
2004-01-13 20:03 ` H. Peter Anvin
2004-01-13 20:23   ` Dylan
2004-01-13 20:25     ` H. Peter Anvin
2004-01-13 20:58       ` Mike Waychison
2004-01-13 21:06         ` H. Peter Anvin
2004-01-13 20:42   ` Eric Werme USG
2004-01-13 20:54     ` H. Peter Anvin
2004-01-13 21:04     ` H. Peter Anvin

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.