Issue with pkg upgrade on diskless workstation

BERTRAND Joël joel.bertrand at systella.fr
Tue May 23 21:54:58 UTC 2017


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


More information about the freebsd-hackers mailing list