Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Aug 1995 08:35:28 +0200 (MET DST)
From:      Thomas Graichen <graichen@sirius.physik.fu-berlin.de>
To:        faulkner@mpd.tandem.com (Boyd Faulkner)
Cc:        hackers@freebsd.org
Subject:   Re: PLEASE help me to get broken FreeBSD automounter working PLEASE !!!
Message-ID:  <9508100635.AA28783@sirius.physik.fu-berlin.de>
In-Reply-To: <9508091841.AA04519@olympus> from "Boyd Faulkner" at Aug 9, 95 01:41:52 pm

next in thread | previous in thread | raw e-mail | index | archive | help
> > 
> > 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____



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9508100635.AA28783>