*BSD News Article 30117


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!bunyip.cc.uq.oz.au!munnari.oz.au!constellation!mimbres.cs.unm.edu!saimiri.primate.wisc.edu!ames!elroy.jpl.nasa.gov!swrinde!cs.utexas.edu!math.ohio-state.edu!news.acns.nwu.edu!ftpbox!mothost!delphinium.cig.mot.com!polarbear!perkins
From: perkins@polarbear.cig.mot.com (J. Les Perkins)
Newsgroups: comp.unix.bsd
Subject: AMD Unmount Problem
Date: 28 Apr 1994 16:40:45 GMT
Organization: Motorola Cellular Infrastructure Group
Lines: 169
Message-ID: <2pooud$360@delphinium.cig.mot.com>
NNTP-Posting-Host: polarbear.rtsg.mot.com

I have been trying to run amd920824upl75 or amd53b2 on an SGI Indigo running 
Irix 5.2 and have run into a nagging problem.  Amd keeps unmounting 
filesystems that are in use.  It acts as if it is not resetting ttl when the 
filesystem is accessed. It times out the mount and then notices that there 
is a request pending for the filesystem and remounts it. 

The problem is that in that same time
multiple access failures occur and any compiles on that filesystem fail.
I ran a simple while loop to tickle this unmount problem.  I long list a
file on the filesystem every second and follow that with date timestamp.
I also had debugging turned on for amd to trace the unmount behavior. I
have included the output of both for the time where the problem occurred.

I have recreated this problem with both versions and to get the 53b2 version 
compiled I used the columbia versions irix5 config files and made very minor 
edits to the Makefile.top and Makefile.mods and it compiled. The below
example is with amd53b2 version but I can provide output from the columbia
version as well if needed. We have successfully run both versions on suns
and I have not reproduced the problem on them.

I always thought that an automounter reset ttl if a filesystem was being
accessed, but this does not seem to be the case here. Please help, I don't
want to go back to Sun's automounter!

while output:
Wed Apr 27 21:38:10 CDT 1994
-rw-r--r--    1 scbuild  CID          477 Apr 19 10:01 /usr/test/sc_sgi/loads
Wed Apr 27 21:38:11 CDT 1994
-rw-r--r--    1 scbuild  CID          477 Apr 19 10:01 /usr/test/sc_sgi/loads
Wed Apr 27 21:38:12 CDT 1994
-rw-r--r--    1 scbuild  CID          477 Apr 19 10:01 /usr/test/sc_sgi/loads
Wed Apr 27 21:38:13 CDT 1994
-rw-r--r--    1 scbuild  CID          477 Apr 19 10:01 /usr/test/sc_sgi/loads
Wed Apr 27 21:38:15 CDT 1994
-rw-r--r--    1 scbuild  CID          477 Apr 19 10:01 /usr/test/sc_sgi/loads
Wed Apr 27 21:38:16 CDT 1994
Cannot access /usr/test/sc_sgi/loads: No such file or directory
Wed Apr 27 21:38:17 CDT 1994
Cannot access /usr/test/sc_sgi/loads: No such file or directory
Wed Apr 27 21:38:18 CDT 1994
Cannot access /usr/test/sc_sgi/loads: No such file or directory
Wed Apr 27 21:38:19 CDT 1994
Cannot access /usr/test/sc_sgi/loads: No such file or directory
Wed Apr 27 21:38:20 CDT 1994
Cannot access /usr/test/sc_sgi/loads: No such file or directory
Wed Apr 27 21:38:21 CDT 1994
-rw-r--r--    1 scbuild  CID          477 Apr 19 10:01 /usr/test/sc_sgi/loads
Wed Apr 27 21:38:23 CDT 1994
-rw-r--r--    1 scbuild  CID          477 Apr 19 10:01 /usr/test/sc_sgi/loads
Wed Apr 27 21:38:24 CDT 1994
-rw-r--r--    1 scbuild  CID          477 Apr 19 10:01 /usr/test/sc_sgi/loads
Wed Apr 27 21:38:25 CDT 1994
-rw-r--r--    1 scbuild  CID          477 Apr 19 10:01 /usr/test/sc_sgi/loads
Wed Apr 27 21:38:27 CDT 1994
-rw-r--r--    1 scbuild  CID          477 Apr 19 10:01 /usr/test/sc_sgi/loads


amd debug output:
Apr 27 21:38:16 7D:steel1 amd[201]: Timing out automount points...
Apr 27 21:38:16 7D:steel1 amd[201]: "/usr/test/sc_sgi" on /a/spitfire1/usr1/spit
fire1 timed out
Apr 27 21:38:16 7D:steel1 amd[2458]: backgrounded
Apr 27 21:38:16 7D:steel1 amd[2458]: Unmounting /a/spitfire1/usr1/spitfire1 (spi
tfire1:/usr1/spitfire1)
Apr 27 21:38:16 7D:steel1 amd[2458]: Trying unmount(/a/spitfire1/usr1/spitfire1)
Apr 27 21:38:16 7D:steel1 amd[2458]: Finished unmount(/a/spitfire1/usr1/spitfire
1)
Apr 27 21:38:16 7D:steel1 amd[201]: unmount attempt backgrounded
Apr 27 21:38:16 7D:steel1 amd[201]: Next mount timeout in 120s
Apr 27 21:38:16 7D:steel1 amd[201]: Discarding filehandle for spitfire1:/usr1/sp
itfire1
Apr 27 21:38:16 7D:steel1 amd[201]: Select waits for 19s
Apr 27 21:38:16 7D:steel1 amd[201]: Process 2458 exited with status 0
Apr 27 21:38:16 7D:steel1 amd[201]: select interrupted
Apr 27 21:38:16 7D:steel1 amd[201]: calling mountd for spitfire1:/usr1/spitfire1
Apr 27 21:38:16 7D:steel1 amd[201]: Searching cache for spitfire1:/usr1/spitfire
1
Apr 27 21:38:16 7D:steel1 amd[201]: Sending MOUNTD request 0x1a1
Apr 27 21:38:16 7D:steel1 amd[201]: Sending packet id 0x1a1 to 136.182.129.131.1
045
Apr 27 21:38:16 7D:steel1 amd[201]: Sending PORTMAP request
Apr 27 21:38:16 7D:steel1 amd[201]: Allocating a new xid...
Apr 27 21:38:16 7D:steel1 amd[201]: Sending packet id 0x2f0 to 136.182.129.131.1
11
Apr 27 21:38:16 7D:steel1 amd[201]: Sending MOUNTD request 0x1
Apr 27 21:38:16 7D:steel1 amd[201]: Allocating a new xid...
Apr 27 21:38:16 7D:steel1 amd[201]: Sending packet id 0x301 to 136.182.129.131.1
045
Apr 27 21:38:16 6D:steel1 amd[201]: spitfire1:/usr1/spitfire1 unmounted fstype n
fs from /a/spitfire1/usr1/spitfire1
Apr 27 21:38:16 7D:steel1 amd[201]: Discarding last mntfs reference to /a/spitfi
re1/usr1/spitfire1 fstype nfs
Apr 27 21:38:16 7D:steel1 amd[201]: Select waits for 19s
Apr 27 21:38:16 7D:steel1 amd[201]: Receiving PORTMAP reply
Apr 27 21:38:16 7D:steel1 amd[201]: got port (1045) for mountd on spitfire1
Apr 27 21:38:16 7D:steel1 amd[201]: Select waits for 19s
Apr 27 21:38:17 7D:steel1 amd[201]: Receiving MOUNTD reply 0x1a1
Apr 27 21:38:17 7D:steel1 amd[201]: fh cache gives fp 0x10016370, fs /usr1/spitf
ire1
Apr 27 21:38:17 7D:steel1 amd[201]: got filehandle for spitfire1:/usr1/spitfire1
Apr 27 21:38:17 7D:steel1 amd[201]: Calling wakeup on 0x100185b8
Apr 27 21:38:17 7D:steel1 amd[201]: Receiving MOUNTD reply 0x301
Apr 27 21:38:17 7D:steel1 amd[201]: Select waits for 18s
Apr 27 21:38:22 7D:steel1 amd[201]: gettattr:
Apr 27 21:38:22 7D:steel1 amd[201]: ^Istat(/usr/test), size = 512
Apr 27 21:38:22 7D:steel1 amd[201]: Select waits for 13s
Apr 27 21:38:22 7D:steel1 amd[201]: lookup:
Apr 27 21:38:22 7D:steel1 amd[201]: ^Ilookuppn(/usr/test, sc_sgi)
Apr 27 21:38:22 7D:steel1 amd[201]: in afs_lookuppn
Apr 27 21:38:22 7D:steel1 amd[201]: will search map info in amd.test to find sc_
sgi
Apr 27 21:38:22 7D:steel1 amd[201]: NIS master for amd.test@build.cig.mot.com ha
s order 767486736
Apr 27 21:38:22 7D:steel1 amd[201]: mount info is host!=spitfire1;type:=nfs;rhos
t:=spitfire1;rfs:=/usr1/spitfire1 ^I^Ihost==spitfire1;type:=link;fs:=/usr1/spitf
ire1
Apr 27 21:38:22 7D:steel1 amd[201]: searching for /defaults entry
Apr 27 21:38:22 7D:steel1 amd[201]: NIS master for amd.test@build.cig.mot.com ha
s order 767486736
Apr 27 21:38:22 7D:steel1 amd[201]: /defaults gave opts:=rw,intr,grpid
Apr 27 21:38:22 7D:steel1 amd[201]: setting path to /usr/test/sc_sgi
Apr 27 21:38:22 7D:steel1 amd[201]: NFS: mounting remote server "spitfire1", rem
ote fs "/usr1/spitfire1" on "/a/spitfire1/usr1/spitfire1"
Apr 27 21:38:22 7D:steel1 amd[201]: Locating mntfs reference to /a/spitfire1/usr
1/spitfire1
Apr 27 21:38:22 7D:steel1 amd[201]: Already running pings to spitfire1
Apr 27 21:38:22 7D:steel1 amd[201]: Immediately discarding mntfs for //nil//
Apr 27 21:38:22 7D:steel1 amd[201]: Got a hit with nfs
Apr 27 21:38:22 7D:steel1 amd[201]: Trying mount of spitfire1:/usr1/spitfire1 on
 /usr/test/sc_sgi fstype nfs
Apr 27 21:38:22 7D:steel1 amd[201]: Searching cache for spitfire1:/usr1/spitfire
1
Apr 27 21:38:22 7D:steel1 amd[201]: backgrounding mount of "/a/spitfire1/usr1/sp
itfire1"
Apr 27 21:38:22 7D:steel1 amd[2475]: backgrounded
Apr 27 21:38:22 6D:steel1 amd[2475]: 136.182.129.131 is on a remote network
Apr 27 21:38:22 7D:steel1 amd[2475]: /a/spitfire1/usr1/spitfire1 fstype 1 (nfs)
flags 0x8 (rw,intr,grpid)
Apr 27 21:38:22 7D:steel1 amd[2475]: irix_mount: fsname spitfire1:/usr1/spitfire
1, dir /a/spitfire1/usr1/spitfire1, type 1
Apr 27 21:38:22 7D:steel1 amd[201]: Not sending RPC reply
Apr 27 21:38:22 7D:steel1 amd[201]: Timing out automount points...
Apr 27 21:38:22 7D:steel1 amd[201]: Next mount timeout in 118s
Apr 27 21:38:22 7D:steel1 amd[201]: Select waits for 13s
Apr 27 21:38:22 7D:steel1 amd[201]: Process 2475 exited with status 0
Apr 27 21:38:22 7D:steel1 amd[201]: select interrupted
Apr 27 21:38:22 6D:steel1 amd[201]: spitfire1:/usr1/spitfire1 mounted fstype nfs
 on /a/spitfire1/usr1/spitfire1
Apr 27 21:38:22 7D:steel1 amd[201]: Timing out automount points...
Apr 27 21:38:22 7D:steel1 amd[201]: Next mount timeout in 118s
Apr 27 21:38:22 7D:steel1 amd[201]: Select waits for 13s
Apr 27 21:38:23 7D:steel1 amd[201]: lookup:
Apr 27 21:38:23 7D:steel1 amd[201]: ^Ilookuppn(/usr/test, sc_sgi)
Apr 27 21:38:23 7D:steel1 amd[201]: in afs_lookuppn
Apr 27 21:38:23 7D:steel1 amd[201]: matched sc_sgi in /usr/test/sc_sgi
Apr 27 21:38:23 7D:steel1 amd[201]: Select waits for 12s
Apr 27 21:38:23 7D:steel1 amd[201]: readlink:
Apr 27 21:38:23 7D:steel1 amd[201]: ^Ireadlink(/usr/test/sc_sgi) = /a/spitfire1/
usr1/spitfire1
Apr 27 21:38:23 7D:steel1 amd[201]: Select waits for 12s
Apr 27 21:38:35 7D:steel1 amd[201]: Sending NFS ping
.
.
.


-- 
J Les Perkins ---> perkins@rtsg.mot.com | Opinions expressed herein 
Motorola Cellular Infrastructure Group  |		      are null and void