From owner-freebsd-current@freebsd.org Tue Jan 12 17:08:53 2016 Return-Path: Delivered-To: freebsd-current@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 D6F7EA6D4AA for ; Tue, 12 Jan 2016 17:08:53 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id C856D1108; Tue, 12 Jan 2016 17:08:53 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from mail.xzibition.com (localhost [IPv6:::1]) by freefall.freebsd.org (Postfix) with ESMTP id C18FD10EA; Tue, 12 Jan 2016 17:08:53 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from mail.xzibition.com (localhost [172.31.3.2]) by mail.xzibition.com (Postfix) with ESMTP id F06EE14216; Tue, 12 Jan 2016 17:08:52 +0000 (UTC) X-Virus-Scanned: amavisd-new at mail.xzibition.com Received: from mail.xzibition.com ([172.31.3.2]) by mail.xzibition.com (mail.xzibition.com [172.31.3.2]) (amavisd-new, port 10026) with LMTP id iRwoBetoun6N; Tue, 12 Jan 2016 17:08:49 +0000 (UTC) Subject: Re: Installworld fails with TMPDIR pointing to NFS mounted directory DKIM-Filter: OpenDKIM Filter v2.9.2 mail.xzibition.com 8067314209 To: Tom Vijlbrief , freebsd-current@freebsd.org References: From: Bryan Drewery Organization: FreeBSD Message-ID: <5695331E.6000704@FreeBSD.org> Date: Tue, 12 Jan 2016 09:08:46 -0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Jan 2016 17:08:53 -0000 On 1/12/16 8:42 AM, Tom Vijlbrief wrote: > If have this issue with 11-CURRENT on my raspberry 1 and 2, but I do not > think it is raspberry related or even 11-CURRENT related. > > export TMPDIR=/media/usbdisk/tmp > > make installword MAKEOBJDIRPREFIX=/media/swan/obj > > Works as expected but fails cleaning up when TMPDIR points to an NFS > mounted directory: > > export TMPDIR=/media/swan/tmp > > The NFS server exports /media/swan which has a src/ obj/ and tmp/ > subdirectory. > src/ has the sources, obj/ is filled correctly by makeworld. > The tmp dir has the correct permissions. The installworld runs till the > end, except for the last cleanup action which fails: > > ===> etc/sendmail (install) > cd /media/swan/src/etc/../share/man; make makedb > makewhatis /d/root11/usr/share/man > makewhatis /d/root11/usr/share/openssl/man > rm: /media/swan/tmp/install.xrgbPMy8/locale/en_US.UTF-8: Directory not empty > rm: /media/swan/tmp/install.xrgbPMy8/locale: Directory not empty > rm: /media/swan/tmp/install.xrgbPMy8: Directory not empty > *** Error code 1 Well, it's not really a build or installworld problem. Are you running the proper NFS daemons for lock/rpc? > > Stop. > make[1]: stopped in /media/swan/src > *** Error code 1 > > Stop. > make: stopped in /media/swan/src > > On some runs just a single error message that complains about: > /media/swan/tmp/install.xyz > not being empty, but an "ls" shows no files and an "rmdir /media/swan/tmp/ > install.xyz" succeeds! > In the example above "/media/swan/tmp/install.xrgbPMy8/locale/en_US.UTF-8" > IS empty! > > It is as if a removed file remains visible for the client for a while. > > The NFS server is running Ubuntu 15.10, NFSv3 is used, no other clients > access the NFS tmp directory, > no error messages on the client or server dmesg. > > /etc/exports on the server: > > /export/all/bsd > 192.168.0.0/24(rw,no_root_squash,nohide,insecure,no_subtree_check,async) > > The systems have completed many build/install world/kernel cycles using > this NFS mount and are rock solid. > > Any hints would be appreciated. > _______________________________________________ > freebsd-current@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" > -- Regards, Bryan Drewery