Thus spoke Brian Vicente on 23-Feb-99 :
> Let me try to convince you on the direct mount:
> I need to mount all the directories under /usr1/data.
> If I could have a /- in the auto.master pointed to say auto.data
> /-    auto.data
>  then I could automount this one directory with:
>  data machine:/usr1/data 
> and be done with it.
> Now I have to put the following in the auto.master 
> /data auto.data
> and then in the auto.data I put 
> dir1  machine:/usr/data/dir1
> dir2  machine:/usr/data/dir2
> .

Sorry, I do not see the problem. Maybe I do misunderstand, what you want. But I
had the same problem, to mount a tree of directories from a machine, without
the user guessing + plus the mechnanis should work for any host whithout
changing the automounter maps. Here is my solution within the existing autofs.

1) I reorganized all my nfs servers to have mount points like
  /hostname/data1
  /hostname/data2

2) I created an automounter moint point /imports
   and a map auto.imports
     *      &:/&

That was all. A simple universal map, whcih needs no change, if you buy a new
machine. We make local temp space for calcuation intensive programs availible
that way to all hosts of the cluster.

cd /imports/hostname will mount the whole tree of the other machine and
thanks to how LINUX handels exports, I even can dynamicaly mount and
unmount directories on the server, which are propagated to the clients.

Frithjof


        "If you see someone without a smile, give him one of yours"

Frithjof Anders
Institut  fuer Festkoerperphysik
Technische Universitaet Darmstadt
Hochschulstr. 6
64289 Darmstadt, GERMANY


Tel  +49 (6151) 16-5235    email:  [EMAIL PROTECTED]
FAX  +49 (6151) 16-3681

  

Reply via email to