From owner-freebsd-stable@FreeBSD.ORG Fri Jul 6 15:33:53 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ECC4E1065670 for ; Fri, 6 Jul 2012 15:33:53 +0000 (UTC) (envelope-from vince@unsane.co.uk) Received: from unsane.co.uk (unsane-pt.tunnel.tserv5.lon1.ipv6.he.net [IPv6:2001:470:1f08:110::2]) by mx1.freebsd.org (Postfix) with ESMTP id 619B78FC14 for ; Fri, 6 Jul 2012 15:33:53 +0000 (UTC) Received: from vhoffman.lon.namesco.net (lon.namesco.net [195.7.254.102]) (authenticated bits=0) by unsane.co.uk (8.14.5/8.14.5) with ESMTP id q66FXnrj054093 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO) for ; Fri, 6 Jul 2012 16:33:50 +0100 (BST) (envelope-from vince@unsane.co.uk) Message-ID: <4FF7055D.9000507@unsane.co.uk> Date: Fri, 06 Jul 2012 16:33:49 +0100 From: Vincent Hoffman User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:13.0) Gecko/20120614 Thunderbird/13.0.1 MIME-Version: 1.0 To: freebsd-stable@freebsd.org References: In-Reply-To: X-Enigmail-Version: 1.4.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: nfs-bug when server for 9-Stable becomes client as well ? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Jul 2012 15:33:54 -0000 On 06/07/2012 14:19, Arno J. Klaassen wrote: > Hello, > > looks like I discouvered a probable bug in the nfs-code, very > easy to reproduce in my setup : > > > Machine-1 : Today's 9-stable, exporting /files (ufs) and /z2 (zfs) > > Machine-2 : 8-stable as of April the 10th exporting /raid1 > > On Machine-1 I mount /raid1 (rw,nfsv3,intr,tcp,rsize=32768,wsize=32768) > and start a script on this mount looping something like : > > dd if=/dev/random of=BIG bs=1048576 count=${SIZE} > cp -fp BIG BIG2 > cmp -x BIG BIG2 > > I let this run for 24 hours (from time to time stressing Machine-1 with > other scripts, including provoking heavy swapping), no problem at all. > > However, then I mount /z2 (rw,nfsv3,intr,tcp,rsize=32768,wsize=32768) > on Machine-2, and *immediately* the above loop on Machine-1 fails : > > Copying file ...cp: BIG: Permission denied > > No console messages this time, last time I got > > kernel: nfs_getpages: error 13 > kernel: vm_fault: pager read error, pid 87803 (cmp) > > on Machine-1. > > I repeated this scenario by replacing Machine-2 with a good old > 6-4-stable one, same outcome. > > Please tell me what I could do to nail this down a bit more. Its possible (although not definite) that you have hit the a mountd bug as documented in PRs kern/131342 kern/136865 I've recently asked on -CURRENT about this and had a patch to try from Rick, I'm testing it now but it doesnt seem to fix it for me, just improve it alothough I'm trying to get enough runs to be a valid sample. (see http://docs.freebsd.org/cgi/getmsg.cgi?fetch=377627+0+archive/2012/freebsd-current/20120701.freebsd-current ) What I did for my production nas was edit mount.c so it didnt send a SIGHUP to mountd as suggested by rick, as it was easy to do and non intrusive. Vince > > Thanx in advance, > > Best, Arno > > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"