From owner-freebsd-hackers@freebsd.org Tue May 23 21:54:58 2017 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7F5C4D7B97B for ; Tue, 23 May 2017 21:54:58 +0000 (UTC) (envelope-from joel.bertrand@systella.fr) Received: from rayleigh.systella.fr (rayleigh.systella.fr [213.41.150.218]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "rayleigh.systella.fr", Issuer "rayleigh.systella.fr" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 3A0C21A0F; Tue, 23 May 2017 21:54:57 +0000 (UTC) (envelope-from joel.bertrand@systella.fr) Received: from [192.168.254.1] (bertrand@rayleigh.systella.fr [192.168.254.1]) (authenticated bits=0) by rayleigh.systella.fr (8.15.2/8.15.2/Debian-8) with ESMTPSA id v4NLsfmv027613 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Tue, 23 May 2017 23:54:41 +0200 Subject: Re: Issue with pkg upgrade on diskless workstation To: Matthew Seaman , freebsd-hackers@freebsd.org, pkgsrc-users@pkgsrc.org References: <20170514082046.GA15092@lonesome.com> From: =?UTF-8?Q?BERTRAND_Jo=c3=abl?= Message-ID: Date: Tue, 23 May 2017 23:54:41 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:49.0) Gecko/20100101 Firefox/49.0 SeaMonkey/2.46 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: clamav-milter 0.99.2 at rayleigh X-Virus-Status: Clean X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 May 2017 21:54:58 -0000 Matthew Seaman a écrit : > On 2017/05/23 13:53, BERTRAND Joël wrote: >> I suppose that is bug is NFS related, but I'm not able to found a >> workaround. gdb crashes when I try to attach it on pkg process : > > Have you tried toggling the value of NFS_WITH_PROPER_LOCKING in > pkg.conf? It defaults to off, which switches to an alternate but not as > good locking strategy when pkg detects that its database (/var/db/pkg) > is on an NFS mount -- if you have a usable lockd, try setting that to true. I have tried with and without NFS_WITH_PROPER_LOCKING with the same result. pkg stalls after: Number of packages to be removed: 3 Number of packages to be installed: 31 Number of packages to be upgraded: 254 Number of packages to be reinstalled: 45 The process will require 1 GiB more space. Proceed with this action? [y/N]: y Server (legendre) runs NetBSD 7.0.2 with rpc.lockd (that perfectly works with Linux and NetBSD NFSv3 clients). Only FreeBSD clients (for example pythagore) trigger errors on server side: May 23 23:21:03 legendre rpc.lockd: duplicate lock from pythagore.5118 May 23 23:21:03 legendre rpc.lockd: no matching entry for pythagore May 23 23:21:03 legendre rpc.lockd: duplicate lock from pythagore.5118 May 23 23:21:03 legendre rpc.lockd: no matching entry for pythagore May 23 23:21:03 legendre rpc.lockd: duplicate lock from pythagore.5118 May 23 23:21:03 legendre rpc.lockd: no matching entry for pythagore May 23 23:21:03 legendre rpc.lockd: duplicate lock from pythagore.5118 May 23 23:21:03 legendre rpc.lockd: no matching entry for pythagore May 23 23:21:03 legendre rpc.lockd: duplicate lock from pythagore.5118 May 23 23:21:03 legendre rpc.lockd: no matching entry for pythagore May 23 23:21:03 legendre rpc.lockd: duplicate lock from pythagore.5118 May 23 23:21:03 legendre rpc.lockd: no matching entry for pythagore May 23 23:21:03 legendre rpc.lockd: duplicate lock from pythagore.5118 May 23 23:21:03 legendre rpc.lockd: no matching entry for pythagore May 23 23:21:03 legendre rpc.lockd: duplicate lock from pythagore.5118 May 23 23:21:03 legendre rpc.lockd: no matching entry for pythagore May 23 23:21:03 legendre rpc.lockd: duplicate lock from pythagore.5118 May 23 23:21:03 legendre rpc.lockd: no matching entry for pythagore Regards, JKB