Subject: Re: simple example for amd?
To: John M Vinopal <banshee@gabriella.resort.com>
From: Hubert Feyrer <Hubert.Feyrer@rz.uni-regensburg.de>
List: current-users
Date: 01/04/1996 18:03:00
> I'd like to use amd to mount a file system (/dev/sd0f aka /usr/local)
> on another machine as "/usr/local".
>
> I'm working with a map file of the form:
>
> usr/local -opts:=rw \
> -type:=nfs;rhost:=gabriella;rfs:=/usr/local
>
> but I can't see any data in the amd mounted 'thing'. Could someone
> provide a simple map file and the amd command line for this problem?
Here's what i use to auto-mount /usr/src from another machine:
grizu% ls -lad /usr/src
lrwxr-xr-x 1 root wheel 29 Dec 30 15:33 /usr/src ->
/tmp_mnt/mounts/src10/usr/src
grizu% cat /etc/amd/master
/net /etc/amd/net
/tmp_mnt/mounts /etc/amd/src
grizu% cat /etc/amd/net
/defaults type:=host;fs:=${autodir}/${rhost};rhost:=${key}
* opts:=ro,soft,intr
grizu% cat /etc/amd/src
/defaults type:=host;fs:=${autodir}/${rhost};
src10 opts:=rw,soft,intr;rhost:=rfhu1001
grizu% grep ^amd /etc/netstart
amd=YES
amd_dir=/tmp_mnt # AMD's mount directory
amd_master=/etc/amd/master # AMD 'master' map
grizu% ls -la /tmp_mnt
total 9
drwxr-xr-x 5 root wheel 512 Jan 3 12:09 .
drwxr-xr-x 26 root wheel 1024 Jan 3 12:09 ..
dr-xr-xr-x 3 root wheel 512 Nov 20 19:29 ftp.uni-regensburg.de
dr-xr-xr-x 2 root wheel 512 Jan 4 10:43 mounts
dr-xr-xr-x 4 root wheel 512 Dec 11 08:18 rfhu1001
grizu% ls -la /tmp_mnt/mounts
total 3
dr-xr-xr-x 2 root wheel 512 Jan 4 10:43 .
drwxr-xr-x 5 root wheel 512 Jan 3 12:09 ..
I guess that's all. rfhu1001 is the NFS server, grizu the client.
Enjoy (and don't tell me that i'll get into probs when i'll try to mount from a
host called mounts!),
Hubert
--
=============== Hubert Feyrer ============================================
Weekdays: Rennerstr. 19, D-93053 Regensburg, Tel. 0941/943-2905
Weekends: Bachstr. 40, D-84066 Mallersdorf, Tel. 08772/6084
Internet: hubert.feyrer@rz.uni-regensburg.de, IRC: hubertf
==========================================================================