From owner-freebsd-questions@FreeBSD.ORG Fri Jan 14 02:47:00 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A1C3516A4CE for ; Fri, 14 Jan 2005 02:47:00 +0000 (GMT) Received: from obsecurity.dyndns.org (CPE0050040655c8-CM00111ae02aac.cpe.net.cable.rogers.com [69.199.47.57]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4945A43D3F for ; Fri, 14 Jan 2005 02:47:00 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 8DD02512C4; Thu, 13 Jan 2005 18:46:56 -0800 (PST) Date: Thu, 13 Jan 2005 18:46:56 -0800 From: Kris Kennaway To: Bruce Campbell Message-ID: <20050114024656.GA66730@xor.obsecurity.org> References: <1105670575.41e731af8de9a@www.nexusmail.uwaterloo.ca> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="tThc/1wpZn/ma/RB" Content-Disposition: inline In-Reply-To: <1105670575.41e731af8de9a@www.nexusmail.uwaterloo.ca> User-Agent: Mutt/1.4.2.1i cc: freebsd-questions@freebsd.org cc: Paul McKone Subject: Re: flock failure on NFS from 5.3 client to 4.7 server X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Jan 2005 02:47:00 -0000 --tThc/1wpZn/ma/RB Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jan 13, 2005 at 09:42:55PM -0500, Bruce Campbell wrote: >=20 > NFS server: FreeBSD 4.7 > Old Mail server: FreeBSD 4.7, home directories mounted to NFS server > New Mail server: FreeBSD 5.3, home directories mounted to NFS server >=20 > After the mail server upgrade to 5.3, flock gives error "operation not su= pported"=20 > on nfs mounted home directories. Example: >=20 > Jan 13 00:06:32 mail vacation[92816]: vacation: .vacation: Operation not = supported >=20 > output from "truss" >=20 > open(".vacation.db",0x2,0640) =3D 3 (0x3) > fstat(3,0xbfbfd350) =3D 0 (0x0) > flock(0x3,0x2) ERR#45 'Operation not su= pported' > close(3) =3D 0 (0x0) >=20 > It appears someone else has done substantially more debugging than I: >=20 > http://lists.freebsd.org/pipermail/freebsd-questions/2004-September/059= 777.html >=20 > but is seemingly no further ahead. >=20 > On our NFS server, rpc.statd is running, but rpc.lockd wasn't. Started > it, still no worky. Killed it, other 4.7 clients still flock fine. rpc.lockd needs to be running on *both* client *and* server. 4.x gets away with it because the rpc.lockd implementation does not in fact implement locking on the client. Kris --tThc/1wpZn/ma/RB Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQFB5zKgWry0BWjoQKURAjCfAJ4nIlRhScstnct/XAybpjPNWmU6EwCgqz8g Cl0W8bjvR3bL3Tezl/UmK0o= =pSD+ -----END PGP SIGNATURE----- --tThc/1wpZn/ma/RB--