From owner-freebsd-hackers Wed Aug 9 23:35:35 1995 Return-Path: hackers-owner Received: (from majordom@localhost) by freefall.FreeBSD.org (8.6.11/8.6.6) id XAA21241 for hackers-outgoing; Wed, 9 Aug 1995 23:35:35 -0700 Received: from ki1.chemie.fu-berlin.de (ki1.Chemie.FU-Berlin.DE [160.45.24.21]) by freefall.FreeBSD.org (8.6.11/8.6.6) with SMTP id XAA21234 for ; Wed, 9 Aug 1995 23:35:33 -0700 Received: by ki1.chemie.fu-berlin.de (Smail3.1.28.1) from sirius.physik.fu-berlin.de (130.133.3.140) with smtp id ; Thu, 10 Aug 95 08:35 MEST Received: by sirius.physik.fu-berlin.de; id AA28783; Thu, 10 Aug 1995 08:35:28 +0200 From: Thomas Graichen Message-Id: <9508100635.AA28783@sirius.physik.fu-berlin.de> Subject: Re: PLEASE help me to get broken FreeBSD automounter working PLEASE !!! To: faulkner@mpd.tandem.com (Boyd Faulkner) Date: Thu, 10 Aug 1995 08:35:28 +0200 (MET DST) Cc: hackers@freebsd.org In-Reply-To: <9508091841.AA04519@olympus> from "Boyd Faulkner" at Aug 9, 95 01:41:52 pm X-Mailer: ELM [version 2.4 PL23] Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Length: 4380 Sender: hackers-owner@freebsd.org Precedence: bulk > > > > PLEASE. PLEASE, PLEASE ... can anybody help me out to get the > > "-type:=direct" option which is broken in FreeBSD working - PLEASE - > > i've now tried to debug it some hours but i'm at the end of my > > knowlegde - i'll now try to explain what i've done and hope that > > someone will take a deeper look into it - PLEASE > > > > the problem: > > if you try to use the "-type:=direct" option of the amd (which > > should do a "mount -t nfs localhost:/usr/share /a/localhost/usr/share" > > for the following amd-map - amd.test - this should be done if i access > > /share/something which will then be a link to /a/localhost/usr/share) - > > but it will not mount - instead i get an "Stale NFS handle" if i try > > to access /share/something - ok and now the result of some hours of > > debugging and trying - PLEASE read on ... > sorry - there was a typo: it must be be "if you access /test/something" > > You can do this with type:=LINK which does work. > I will try and look at this later. > first - i think also "direct" should work - how would you do it with link ? > > > > what i did: (this is the striped down problem) > > * exporting for example /usr/share to the machine itself (/usr/share > > localhost) in /etc/exports > > > > * made the machine serving and clienting (mountd; nfsd -u -t 4; nfsiod > > -n 4) > > > > * made an amd.test map with the following line > > test type:=nfs;rfs:=/usr/share;rhost:=localhost > > maybe is you specify fs:=/ > can you please tell me more about what you mean > > > > * build /usr/src/usr.sbin/amd/amd with the following CFLAGS added > > CFLAGS=-static -g -DDEBUG > > note: here only CFLAGS= not CFLAGS+= - because this way we avoid > > possible set optimizations from other places (more later) > > > > * run this amd: > > ./amd -x all -D all -l amd.log /test amd.test -type:=direct > > does /a exist? This is the temporary mountpoint if I remember correctly > or you can specify -a /a or -a /tmp_mnt as I do. > that's not the problem - the amd will create all the directories it needs himself > > > > * watch at amd.log - it says somethere something like: > > Pre-access? The book says an attempt should not be made until the > link is accessed. > please explain me what you mean by that > > > > ... > > Aug 9 15:36:27 mordillo amd[253]/map: Trying mount of amd.test on > > /test fstype direct > > Aug 9 15:36:27 mordillo amd[253]/debug: backgrounding mount of "/test" > > Aug 9 15:36:27 mordillo amd[254]/debug: backgrounded > > Aug 9 15:36:27 mordillo amd[253]/debug: 6 new fds allocated; total is 6 > > Aug 9 15:36:27 mordillo amd[253]/debug: 0x62ffc bytes of memory > > allocated; total is 0x62ffc (99 pages) > > Aug 9 15:36:27 mordillo amd[253]/debug: Timing out automount points... > > Aug 9 15:36:27 mordillo amd[253]/debug: Next mount timeout in 300s > > Aug 9 15:36:27 mordillo amd[253]/debug: Select waits for 300s > > Aug 9 15:36:27 mordillo amd[254]/debug: mkdir(/test) > > Aug 9 15:36:27 mordillo amd[254]/debug: root_fh substitutes pid 253 > > Aug 9 15:36:27 mordillo amd[254]/info: defeating nfs window computation > > Aug 9 15:36:27 mordillo amd[254]/debug: /test fstype 2 (auto) flags 0 > > (intr,rw,port=1023,timeo=8,retrans=110,direct) > > Aug 9 15:37:08 mordillo amd[253]/debug: Process 254 exited with status 0 > > Aug 9 15:37:08 mordillo amd[253]/debug: select interrupted > > ... > > > > * i made the same at one of our dec alpha's (where amd with the > > "-type:=direct" option works fine) and it's exactly the same until the > > "select interrupted" - this interruption does'nt occur there - thus > > i think this is the problem > > in general i think the "-type:=direct" is BROKEN in FreeBSD and should thus be fixed - i'll help as much as i can to fix it but i need someone to help me t _______________________________________________________||_____________________ __|| Perfection is reached, not when there is no __|| thomas graichen longer anything to add, but when there __|| freie universitaet berlin is no longer anything to take away __|| fachbereich physik __|| - Antoine de Saint-Exupery - __|| ___________________________||____email: graichen@omega.physik.fu-berlin.de____