Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Linux Links | Bling | About BLU

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Automount question



On Aug 9, 2010, at 10:45 AM, Jerry Feldman wrote:

> I have a situation where I have a directory I want to automount:
> eg. /mnts/foo
> 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've been playing around with this such as creating another entry in
> auto.master /mnts/foo/, and /etc/auto.foo contains
> clients -fstype... <host1>:/mnts/foo/clients

I think your problem is because you can create an autofs entry within another autofs mountpoint.

If possible, I would remove the /mnts entry from your master autofs config and instead use /mnts/foo and then define each directory as its own mount. Depending on your NFS server, you might need to define your exports to allow subdirectory mounting.

Best,
Ian






Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org