All of lore.kernel.org
 help / color / mirror / Atom feed
* how to use keys ...
@ 2009-05-02  3:27 raespi
  2009-05-04 12:25 ` Greg Wooledge
  2009-05-05 19:29 ` Martin Tessun
  0 siblings, 2 replies; 3+ messages in thread
From: raespi @ 2009-05-02  3:27 UTC (permalink / raw)
  To: autofs

Hi, i've been trying out the autofs mounter to gain more availability in
my network environment ... I have a number of users created already
under :

/home/.....

/home/teratux  :: For example

I want to be able to automount a resource from NFS in this exact
location.  This is my auto.master:

/home   /etc/auto.home --timeout=10

This is my auto.home:

x          -ro,soft,intr,rsize=32768,wsize=32768,noatime
10.7.22.178:/home

My problem lies where the "x" is.  How do I use an indirect key name in
a way that any request under /home automatically fires up the
automounter?? I already tried:

auto.master:
/   /etc/auto.home --timeout=10

auto.home:
home          -ro,soft,intr,rsize=32768,wsize=32768,noatime
10.7.22.178:/home

With no success.  The /etc/init.d/autofs status script doesn't show
anything going on ... I'm using Debian as you can already imagine, a
2.6.26 standard kernel, and autofs 4.1.4

Can anyone help me??

Thanks ...
-- 
#468171

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

* Re: how to use keys ...
  2009-05-02  3:27 how to use keys raespi
@ 2009-05-04 12:25 ` Greg Wooledge
  2009-05-05 19:29 ` Martin Tessun
  1 sibling, 0 replies; 3+ messages in thread
From: Greg Wooledge @ 2009-05-04 12:25 UTC (permalink / raw)
  To: raespi; +Cc: autofs

On Fri, May 01, 2009 at 11:27:31PM -0400, raespi wrote:
> /home/teratux  :: For example
> 
> I want to be able to automount a resource from NFS in this exact
> location.

Our setup is a bit more traditional.  This is what we're doing:

$ cat /etc/auto.master
# ...
/nfs    /etc/auto.net
+auto.master

$ ypcat -k auto.master
/net/vol auto.vol       -rw,hard,intr
/net/appl auto.appl     -rw,hard,intr
/net/hosts -hosts               -rw,hard,intr
/net/home auto.home     -rw,hard,intr

$ ypcat -k auto.home
...
wooledg imadev:/home/wooledg
leek vandev:/home/leek
...

It's a bit higher maintenance than you were aiming for (we have one line
per user account in the auto.home NIS map), but it gives user account
directories directly underneath the autofs mount point (in our case it's
/net/home, but it could as easily be /home).  It also has the advantage
of flexibility -- if the physical location of a user's home directory
changes, it's just a one-line change in the auto.home map followed by
an NIS map push.

We have a mixed network of HP-UX, Debian and Red Hat machines.  This
works on all of them.

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

* Re: how to use keys ...
  2009-05-02  3:27 how to use keys raespi
  2009-05-04 12:25 ` Greg Wooledge
@ 2009-05-05 19:29 ` Martin Tessun
  1 sibling, 0 replies; 3+ messages in thread
From: Martin Tessun @ 2009-05-05 19:29 UTC (permalink / raw)
  To: raespi; +Cc: autofs

raespi schrieb:
> Hi, i've been trying out the autofs mounter to gain more availability in
> my network environment ... I have a number of users created already
> under :
> 
> /home/.....
> 
> /home/teratux  :: For example
> 
> I want to be able to automount a resource from NFS in this exact
> location.  This is my auto.master:
> 
> /home   /etc/auto.home --timeout=10
> 
> This is my auto.home:
> 
> x          -ro,soft,intr,rsize=32768,wsize=32768,noatime
> 10.7.22.178:/home

So the auto.master i scorrect. If you want to use wildcards, you can do
so by using the following auto.home:

*	-ro,soft,intr,rsize=32768,wsize=32768,noatime 10.7.22.178:/home/&

So if you do a cd /home/abc it tries to mount 10.7.22.178:/home/abc at
this location.

Regards,
Martin

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

end of thread, other threads:[~2009-05-05 19:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-02  3:27 how to use keys raespi
2009-05-04 12:25 ` Greg Wooledge
2009-05-05 19:29 ` Martin Tessun

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.