Automount question

Edward Ned Harvey blu-Z8efaSeK1ezqlBn2x/YWAg at public.gmane.org
Mon Aug 9 17:31:52 EDT 2010


> From: discuss-bounces-mNDKBlG2WHs at public.gmane.org [mailto:discuss-bounces-mNDKBlG2WHs at public.gmane.org] On
> Behalf Of Jerry Feldman
>
> In my auto.master I have 
> /mnts   /etc/auto.mnts
> My /etc/auto.mnts is
> foo    -fstype=nfs,rw,nosuid  <host0>:/exports/foo
> 
> This works fine, but for a transition period I will be moving some of
> foo's subdirectories individually so I want to automount
> <host1>:/mnts/foo/clients

I would recommend using direct automount.  It's a new feature in autofs5,
but autofs5 is the default in anything more recent than RHEL4.  Even if you
have RHEL4, you can install the updated autofs5 package, and I always do.
Specifically because direct automount is do *darn* much better than the old
way, you're describing.

Here's an example direct automount config:

# Contents of /etc/auto.master
/-  /etc/auto.direct --timeout=1200

# Contents of /etc/auto.direct
/any/mount/path  -fstype=nfs,noacl,rw,hard,intr,posix
fileserver:/some/export/path







More information about the Discuss mailing list