From owner-freebsd-hackers Thu Aug 2 10:55:38 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from jhs.muc.de (jhs.muc.de [193.149.49.84]) by hub.freebsd.org (Postfix) with ESMTP id 62D8C37B403 for ; Thu, 2 Aug 2001 10:55:32 -0700 (PDT) (envelope-from jhs@jhs.muc.de) Received: from park.jhs.private (localhost [127.0.0.1]) by jhs.muc.de (8.11.0/8.11.0) with ESMTP id f72HmmE05676; Thu, 2 Aug 2001 17:48:48 GMT (envelope-from jhs@park.jhs.private) Message-Id: <200108021748.f72HmmE05676@jhs.muc.de> To: freebsd-hackers@freebsd.org Cc: David Malone , Ian Dowse Subject: Re: vnconfig + mount removes permission for a second From: "Julian Stacey" Organization: Vector Systems Ltd - Munich Unix & Internet consultancy X-Web: http://www.jhs.muc.de http://bim.bsn.com/~jhs/ In-reply-to: Your message of "Thu, 02 Aug 2001 11:48:35 BST." <20010802114835.A92803@walton.maths.tcd.ie> Date: Thu, 02 Aug 2001 19:48:48 +0200 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG David Malone wrote: > On Wed, Aug 01, 2001 at 11:35:32AM +0000, Julian Stacey wrote: > > So something is momentarily making the image unreadable. > > Should FreeBSD [mount/kernel ?] be changed to avoid denying access ? > > When you do a mount it automatically HUP's mountd which then > re-exports NFS filesystems. I suspect what is happening is that > the the filesystem mountlist is being cleared for a moment and that > is upsetting the cp. > > You could try moving /var/run/mountd.pid out of the way and running > the mount command. That should stop mount HUPing mountd, which > would let you test this theory. Thanks, I tried your suggestion, it works ! so Mountd is the problem then ! Cp does not fail on Umount, I guess Umount happens quicker. ( One reason might have been that Umount is silent, whereas Mount caused 7 lines of complaint to console EG mountd[96]: bad exports list line /cdrom -alldirs -ro -mapall (20 years ago Unix console errs came out under polling not interrupt, so that might have been a lengthy time window, but I expect things on FreeBSD & xconsole are now improved :-) But I commented out /cdrom in /etc/exports, & still see Mount breaking Cp. ) I can also reproduce this behaviour on just one host as both amd/nfs host & target (thus avoiding ethernet, except possibly for named via ethernet) > Ian Dowse wrote: > > See PRs misc/3980 and kern/9619 for more details. I think NetBSD > tried at one point to make mountd incrementally change the export > list, but it turned out to be quite hard to get the logic right to > keep the mountd and kernel lists in sync. I think they reverted > that change eventually. I haven't seen PRs misc/3980 and kern/9619, is there any info is this thread that should be added to one of those ? > This is certainly a bug that needs to be fixed; mountd should be > able to build up a list of all exports for a filesystem and pass > them into the kernel in one "replace export list" operation. > > Maybe nice'ing mountd to run at a higher priority, Question is how high ? With Nice or Rtprio or something else ? > and/or specifying > only IP addresses in /etc/exports would help things a bit now. I converted my /etc/exports to entirely numeric, threw a sighup at named & mountd, but that did not stop the problem. Killed mountd -r & restarted with numeric exports, still did not help. Julian J.Stacey Munich Unix (FreeBSD, Linux etc) Consultant http://bim.bsn.com/~jhs/ Ihr Rauchen => mein allergischer Kopfschmerz ! Schnupftabak probieren ! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message