Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Sep 1996 18:19:27 +0100 (GMT-1)
From:      af@biomath.jussieu.fr
To:        randyd@nconnect.net (Randy)
Cc:        freebsd-questions@freebsd.org
Subject:   Re: AMD difficulties
Message-ID:  <199609171719.SAA10525@garfield.biomath.jussieu.fr>
In-Reply-To: <XFMail.960917101359.randyd@nconnect.net> from "Randy" at Sep 17, 96 10:06:08 am

next in thread | previous in thread | raw e-mail | index | archive | help
Randy wrote / a ecrit:
> 
> Greetings,
> 
>      Again I wish to express my appreciation for your assistance.  It worked
> like a charm on one of my networks...

De rien (you're welcome, in french)

> on the other I get a "permission denied"
> messages when I try to access the link.  Both networks are pretty much
> identical.

It sounds like the server  machine  isn't  exporting  the  directory
correctly... can you manually mount it from the client ?
Check the /etc/exports entry, check that the server  can  resolve  the
client's node name.

> I must admit I don't at all understand what the entries in the
> amd.map file mean.... I'm looking for a way to get smart to that.  I assume 
> it's standard unix script?   

As Sean Kelly pointed out, it's not. It's a configuration file with
a somewhat (!) involved syntax and variable expansion constructs which
indeed can make it look like a shell script.

Let's have a look at it (briefly). Someone correct me if I'm wrong.

/defaults   type:=host;fs:=${autodir}/${rhost}/root/;rhost:=${key}

This line establishes global defaults:
. type:= host means that we're doing remote mounts through NFS
  (as opposed to local filesystems mounts which can also be done
  using amd -- ufs and such)
. fs:=... establishes how amd's mount point will be constructed
  e.g. for a remote host called "foo" exporting a "/data" dir, amd's
  mount point will be /a/foo/root/data
. rhost:=... means that the the key matched in the rule below will
  actually be the host name to mount from

*       host!=${key};opts:=rw,nosuid; \
        host==${key};type:=link;fs:=/;

Those two lines mean that for anything  (because *  matches  all) under
the directory specified for this map (/Net in the example I gave in my
previous mail), the following rules will be applied (note that the
"anything under the directory specified" is actually called the "key").

. if the local host name doesn't match the key name, then actually
  do a NFS mount using the specified options
. if the local host name matches the key, then no need to go through
  NFS, just do a link to the root of the local system

Then, on host "bar" /Net/bar will just point to /, and /Net/foo/data will
point to /a/foo/root/data which in turn will be a NFS mount point for
foo:/data (always for the example I gave of my local setup).

Hope this is not too obscure. Again, this is my humble understanding of amd.

_Alain_
-- 
Alain FAUCONNET    Ingenieur systeme - System Manager     AP-HP/SIM
Public Health                91 bld de l'Hopital 75013 PARIS FRANCE
Medical Computing Research Labs         Mail: af@biomath.jussieu.fr
Tel: (+33) 1-40-77-96-19                   Fax: (+33) 1-45-86-80-68
    I've RTFMed. It says: "Refer to your system administrator"
            But... I *am* the system administrator :-]



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199609171719.SAA10525>