From owner-freebsd-questions Tue Sep 17 09:19:35 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id JAA20232 for questions-outgoing; Tue, 17 Sep 1996 09:19:35 -0700 (PDT) Received: from shiva.jussieu.fr (shiva.jussieu.fr [134.157.0.129]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id JAA20206 for ; Tue, 17 Sep 1996 09:19:16 -0700 (PDT) From: af@biomath.jussieu.fr Received: from mekong.biomath.jussieu.fr (mekong.biomath.jussieu.fr [134.157.72.87]) by shiva.jussieu.fr (8.7.5/jtpda-5.2) with SMTP id SAA02062 ; Tue, 17 Sep 1996 18:19:07 +0200 (METDST) Received: from garfield.biomath.jussieu.fr (garfield) by mekong.biomath.jussieu.fr (5.67b/jn930126+af960905(mailhost)) at Tue, 17 Sep 1996 18:19:29 +0100 Received: from (af@localhost) by garfield.biomath.jussieu.fr (8.7.5/jtpda-5.2) id SAA10525 ; Tue, 17 Sep 1996 18:19:27 +0100 (GMT-1) Message-Id: <199609171719.SAA10525@garfield.biomath.jussieu.fr> Subject: Re: AMD difficulties To: randyd@nconnect.net (Randy) Date: Tue, 17 Sep 1996 18:19:27 +0100 (GMT-1) Cc: freebsd-questions@freebsd.org In-Reply-To: from "Randy" at Sep 17, 96 10:06:08 am X-Mailer: ELM [version 2.4 PL24 ME8b] Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk 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 :-]