From owner-freebsd-questions Fri Mar 14 03:17:53 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id DAA13491 for questions-outgoing; Fri, 14 Mar 1997 03:17:53 -0800 (PST) Received: from minnow.render.com (render.demon.co.uk [158.152.30.118]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id DAA13485 for ; Fri, 14 Mar 1997 03:17:49 -0800 (PST) Received: (from dfr@localhost) by minnow.render.com (8.6.12/8.6.9) id KAA25116; Fri, 14 Mar 1997 10:40:25 GMT To: Klaus Werner Krygier Cc: Doug Rabson , questions@freebsd.org Subject: Re: NFSV3 - NFS on FreeBSD 2.2 References: From: Doug Rabson Date: 14 Mar 1997 10:40:21 +0000 In-Reply-To: Klaus Werner Krygier's message of Thu, 13 Mar 1997 17:36:32 +0100 (MET) Message-ID: Lines: 46 X-Mailer: Gnus v5.2.25/XEmacs 19.14 Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Klaus Werner Krygier writes: > > On 13 Mar 1997, Doug Rabson wrote: > > > > > > > > How can I manage this? At the moment I have to specify at the client > > > > side the apropriate mount options to use NFS V2. Is it also possible > > > > to disable NFS V3 globally on the FreeBSD server? > > > > > > Ah, I see - yes, how to force FreeBSD be an NFS V2 *server* is what > > > you're asking (sorry, it's early in the morning for me here :). > > > > > > Hmmmmmm.... That's a good question. :-) > > > > > > There appear to be flags for turning the NFS server off entirely > > > (NFS_NOSERVER) but none for specifically disabling NFS v3. Any ideas, > > > Doug? I've poked around in nfssvc() a little and don't see any > > > obvious way... > > > > Without testing, it seems to me that you could simply hack mountd.c > > and remove the two calls to svc_register which register the v3 mountd > > protocol. If the mountd refuses to talk the v3 protocol, then the > > client at the other end will fall back to v2 (which uses the v1 mountd > > protocol to be confusing). > > > > -- > > I have already tested this. It works for standard mount requests but > the Digital automounter refuses to work with this hack. Instead it > produces the following syslog message > > Mar 11 05:55:36 a1a automount[12904]: Can't ping mountd version 3 at > server a1messpc1: RPC: Program/version mismatch; low version = 1, high > version = 1 It seems to me that either the Digital automounter only works with version 3 servers (unlikely) or it has cached knowledge of the fact that the FreeBSD machine supported NFSv3. Try killing and restarting the automounter to flush any out-of-date information which it might have about the FreeBSD machine. -- Doug Rabson, Microsoft RenderMorphics Ltd. Mail: dfr@render.com Phone: +44 171 734 3761 These are not the opinions of Microsoft. FAX: +44 171 734 6426