From owner-FreeBSD-users-jp@jp.FreeBSD.org Sat May 17 09:05:18 2003
Received: (from daemon@localhost)
	by castle.jp.FreeBSD.org (8.11.6p2+3.4W/8.11.3) id h4H05Ig30574;
	Sat, 17 May 2003 09:05:18 +0900 (JST)
	(envelope-from owner-FreeBSD-users-jp@jp.FreeBSD.org)
Received: from jazz.mei.co.jp (jazz.mei.co.jp [202.224.189.26])
	by castle.jp.FreeBSD.org (8.11.6p2+3.4W/8.11.3) with ESMTP/inet id h4H05HY30539
	for <FreeBSD-users-jp@jp.FreeBSD.org>; Sat, 17 May 2003 09:05:17 +0900 (JST)
	(envelope-from tabira@pub.mei.co.jp)
Received: by jazz.mei.co.jp (8.12.9/3.7W/bulls) with ESMTP id h4H05Hrg027153
	for <FreeBSD-users-jp@jp.FreeBSD.org>; Sat, 17 May 2003 09:05:17 +0900 (JST)
Received: by mail-gw.jp.panasonic.com (8.11.6p2/3.7W/somlx1) with ESMTP id h4H05HB01692
	for <FreeBSD-users-jp@jp.FreeBSD.org>; Sat, 17 May 2003 09:05:17 +0900 (JST)
Received: by mail.jp.panasonic.com (8.11.6p2/3.7W/astros) with ESMTP id h4H05Go23799
	for <FreeBSD-users-jp@jp.FreeBSD.org>; Sat, 17 May 2003 09:05:16 +0900 (JST)
Received: by vcpop0.pub.mei.co.jp (8.11.6p2/3.7W) with SMTP id h4H05E807274
	for <FreeBSD-users-jp@jp.FreeBSD.org>; Sat, 17 May 2003 09:05:14 +0900 (JST)
Message-Id: <200305170002.AA01131@masako.pub.mei.co.jp>
From: "Y.tabira" <tabira@pub.mei.co.jp>
To: FreeBSD-users-jp@jp.FreeBSD.org
MIME-Version: 1.0
X-Mailer: AL-Mail32 Version 1.13
Content-Type: text/plain; charset=iso-2022-jp
Reply-to: tabira.yoshihiro@jp.panasonic.com
Precedence: list
Date: Sat, 17 May 2003 09:02:54 +0900
X-Sequence: FreeBSD-users-jp 74534
Subject: [FreeBSD-users-jp 74534] automount
 =?ISO-2022-JP?B?GyRCJCwkJiReJC9GMDpuJDckSiQkGyhC?= 
Sender: owner-FreeBSD-users-jp@jp.FreeBSD.org
X-Originator: tabira@pub.mei.co.jp
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+030514

---------+---------+---------+---------+---------+---------+---------+

  5.0-RELEASE$B$KJQ$($F$+$i!"(Bautomount$B$,$&$^$/F0$+$J$/$J$C$F$^$9!#(B
  $B6qBNE*$K$O(B
===
tabira@test_pc% cd /net/yuko/home
nfs server pid328@test_pc:/net: not responding 10 > 9
nfs server pid328@test_pc:/net: is alive again
/net/yuko/home: Input/output error.
===
  $B$H$J$C$F(Bautomount$B$G$O@\B3$G$-$^$;$s!#(B
  $B$A$J$_$K!"(Bmount_nfs$B$G$O@\B3$G$-$k$N$G!"$J$s$H$+N?$$$G$^$9!#(B
  $B>e5-$N8=>]$,$G$k$N$O(B 5.0$B!](BRELEASE$B$H(B5.0-RELEASE$B$GF0:n$5$;$?>l9g$G$9!#(B
  4.4-RELEASE$B$H(B5.0$B!](BRELEASE$B$G$"$l$P!">c32$OH/@8$7$F$^$;$s!#(B
  $B$J$s$G$J$s$G$7$g$&!#(B
  $B0J2<(B /var/log/messages $B$d(Bautomount$B<B9TCf$N(Bamq$B7k2L$bE:IU$7$^$9!#(B
  $B$A$J$_$K!"(Bcdrom$B$O(Bautomount$B$G(Bmount$B$G$-$F$^$9!#(B
  $BIT;W5D(B...
  RPC...$B$H=P$k$N$G!"(Bhosts.allow$B$O=$@5$7$F$^$9!#(B

===/var/log/messages ===
May 17 08:18:07 test_pc amd[1057]: mountd rpc failed: RPC: Timed out
May 17 08:18:07 test_pc kernel: nfs server pid328@test_pc:/net: not responding 1
0 > 9
May 17 08:18:27 test_pc amd[1057]: mountd rpc failed: RPC: Timed out
May 17 08:19:07 test_pc last message repeated 2 times
May 17 08:19:07 test_pc amd[328]: /net/yuko: mount (amfs_auto_cont): Input/outpu
t error
May 17 08:19:07 test_pc kernel: nfs server pid328@test_pc:/net: is alive again

=== $BF1;~$KB>$N(Bwindow$B$G(Bamq$B<B9T(B ===
tabira@test_pc% amq
/          root    "root"          test_pc:(pid328)
/mnt       toplvl  /etc/amd.map    /mnt
/net       toplvl  /etc/amd.map    /net
/net/yuko  host    yuko:/net/yuko  /.amd_mnt/yuko/host

=== server$BB&$N(B/etc/exports ===
/      -alldirs -maproot=root -network=192.168.0 -mask=255.255.255.0
/home  -alldirs -maproot=root -network=192.168.0 -mask=255.255.255.0
/home2 -alldirs -maproot=root -network=192.168.0 -mask=255.255.255.0
/usr   -alldirs -maproot=root -network=192.168.0 -mask=255.255.255.0

===$B$A$J$_(Bmount$B$G$N@\B3$O(BOK ===
tabira@test_pc% df
Filesystem          1K-blocks    Used    Avail Capacity  Mounted on
/dev/ad1s1a            257838   77216   159996    33%    /
devfs                       1       1        0   100%    /dev
/dev/ad1s1e           2061422 1525924   370586    80%    /usr
/dev/ad1s1d           1030702    9068   939178     1%    /var
/dev/ad1s1f          16162526    2232 14867292     0%    /local-home
yuko:/home           14216777 9488711  3590724    73%    /home

===amd.map$B$O(Bdefault$B$N$^$^(B===
/defaults       type:=host;fs:=${autodir}/${rhost}/host;rhost:=${key}
*               opts:=rw,grpid,resvport,vers=3,proto=udp,nosuid,nodev

cdrom           type:=program;\
                fs:=/auto/cdrom;\
                rhost:=${host};\
                mount:="/sbin/mount_cd9660 mount_cd9660 /dev/acd0a ${fs}";\
                unmount:="/sbin/umount umount /dev/acd0a";

fd_msdos        type:=program;\
                fs:=/auto/fd_msdos;\
                rhost:=${host};\
                mount:="/sbin/mount_msdos mount_msdos /dev/fd0 ${fs}";\
                unmount:="/sbin/umount umount /dev/fd0";


===rc.conf$B$N@_Dj(B===
amd_enable="YES"
amd_flags="-l syslog -c 20 /mnt /etc/amd.map /net /etc/amd.map"

===$B5/F0>u67$N3NG'(B===
tabira@test_pc% ps -aux | grep mount
root     362  0.0  0.4  1244  988  ??  Is    7:39AM   0:00.01 /usr/sbin/mountd 
tabira  1129  0.0  0.5  1528 1188  p0  RV    8:32AM   0:00.00 grep mount (csh)
tabira@test_pc% ps -aux | grep amd
root     328  0.0  0.5  1504 1176  ??  Ss    7:39AM   0:00.45 /usr/sbin/amd -p 

=== amd$B$N3NG'(B===
tabira@test_pc% cd /mnt/cdrom
tabira@test_pc% ls
5.0-RELEASE     NetBSD-1.6      README.JIS      boot.catalog
BSDmag          README          README.TXT      cdrom.inf
tabira@test_pc% amq
/           root     "root"                               test_pc:(pid328)
/mnt        toplvl   /etc/amd.map                         /mnt
/net        toplvl   /etc/amd.map                         /net
/mnt/cdrom  program  mount_cd9660 /dev/acd0a /auto/cdrom  /auto/cdrom

=== server$BB&$N(Bhost.allow===
# Rpcbind is used for all RPC services; protect your NFS!
# (IP addresses rather than hostnames *MUST* be used here)
rpcbind : ALL : allow

-- 
    Yoshihiro Tabira 
    home: tabira@pub.mei.co.jp 
    office: tabira@mrg.csdd.mei.co.jp
