Re: Installworld fails with TMPDIR pointing to NFS mounted directory

2016-01-12 Thread Tom Vijlbrief
Op di 12 jan. 2016 om 18:08 schreef NGie Cooper :

>
> > On Jan 12, 2016, at 08:42, 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
>
> Hi Tom,
> MAKEOBJDIRPREFIX should always be set via the environment, not the
> command line, e.g.
>
> export MAKEOBJDIRPREFIX=/media/swan/obj
> make installworld
>
> Cheers,
> -NGie


I think I actually did the export and not as I typed in my mail,
the export is in my shell history :-)

I also added:

rpc_lockd_enable="YES"

to my /etc/rc.conf and rebooted (rpc.lockd is now running) as Bryan
suggested, but I don't think that it is needed if the only client accessing
the NFS tmp dir is the local client?

[root@rpibsd /media/swan/src]# env | grep swan
TMPDIR=/media/swan/tmp
PWD=/media/swan/src
MAKEOBJDIRPREFIX=/media/swan/obj

make installworld DESTDIR=/d/root11

Same result:

===> 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.sy3BjziY/locale/en_US.UTF-8: Directory not empty
rm: /media/swan/tmp/install.sy3BjziY/locale: Directory not empty
rm: /media/swan/tmp/install.sy3BjziY: Directory not empty
*** Error code 1

Stop.
make[1]: stopped in /media/swan/src
*** Error code 1

Stop.
make: stopped in /media/swan/src
[root@rpibsd /media/swan/src]#
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: Installworld fails with TMPDIR pointing to NFS mounted directory

2016-01-12 Thread Garrett Cooper

> On Jan 12, 2016, at 11:21, Tom Vijlbrief  wrote:
> 
> 
> Op di 12 jan. 2016 om 18:08 schreef NGie Cooper :
>> 
>> > On Jan 12, 2016, at 08:42, 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
>> 
>> Hi Tom,
>> MAKEOBJDIRPREFIX should always be set via the environment, not the 
>> command line, e.g.
>> 
>> export MAKEOBJDIRPREFIX=/media/swan/obj
>> make installworld
>> 
>> Cheers,
>> -NGie
> 
> I think I actually did the export and not as I typed in my mail,
> the export is in my shell history :-)
> 
> I also added:
> 
> rpc_lockd_enable="YES"
> 
> to my /etc/rc.conf and rebooted (rpc.lockd is now running) as Bryan 
> suggested, but I don't think that it is needed if the only client accessing 
> the NFS tmp dir is the local client?
> 
> [root@rpibsd /media/swan/src]# env | grep swan
> TMPDIR=/media/swan/tmp
> PWD=/media/swan/src
> MAKEOBJDIRPREFIX=/media/swan/obj
> 
> make installworld DESTDIR=/d/root11
> 
> Same result:
> 
> ===> 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.sy3BjziY/locale/en_US.UTF-8: Directory not empty
> rm: /media/swan/tmp/install.sy3BjziY/locale: Directory not empty
> rm: /media/swan/tmp/install.sy3BjziY: Directory not empty
> *** Error code 1
> 
> Stop.
> make[1]: stopped in /media/swan/src
> *** Error code 1
> 
> Stop.
> make: stopped in /media/swan/src
> [root@rpibsd /media/swan/src]# 

The NFS "directory not empty" issue has been a common annoyance for me for 
several years. It's not just you... It deserves a bug though.
Thanks!
-NGie
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: Installworld fails with TMPDIR pointing to NFS mounted directory

2016-01-12 Thread Sergey Kandaurov
On 12 January 2016 at 19:42, Tom Vijlbrief  wrote:
> [..]
> 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

Search for NFS "sillyrename".

-- 
wbr,
pluknet
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: Installworld fails with TMPDIR pointing to NFS mounted directory

2016-01-12 Thread Tom Vijlbrief
https://lists.freebsd.org/pipermail/freebsd-current/2010-September/019820.html
Op 12 jan. 2016 20:39 schreef "Garrett Cooper" :

>
> On Jan 12, 2016, at 11:21, Tom Vijlbrief  wrote:
>
>
> Op di 12 jan. 2016 om 18:08 schreef NGie Cooper :
>
>>
>> > On Jan 12, 2016, at 08:42, 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
>>
>> Hi Tom,
>> MAKEOBJDIRPREFIX should always be set via the environment, not
>> the command line, e.g.
>>
>> export MAKEOBJDIRPREFIX=/media/swan/obj
>> make installworld
>>
>> Cheers,
>> -NGie
>
>
> I think I actually did the export and not as I typed in my mail,
> the export is in my shell history :-)
>
> I also added:
>
> rpc_lockd_enable="YES"
>
> to my /etc/rc.conf and rebooted (rpc.lockd is now running) as Bryan
> suggested, but I don't think that it is needed if the only client accessing
> the NFS tmp dir is the local client?
>
> [root@rpibsd /media/swan/src]# env | grep swan
> TMPDIR=/media/swan/tmp
> PWD=/media/swan/src
> MAKEOBJDIRPREFIX=/media/swan/obj
>
> make installworld DESTDIR=/d/root11
>
> Same result:
>
> ===> 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.sy3BjziY/locale/en_US.UTF-8: Directory not
> empty
> rm: /media/swan/tmp/install.sy3BjziY/locale: Directory not empty
> rm: /media/swan/tmp/install.sy3BjziY: Directory not empty
> *** Error code 1
>
> Stop.
> make[1]: stopped in /media/swan/src
> *** Error code 1
>
> Stop.
> make: stopped in /media/swan/src
> [root@rpibsd /media/swan/src]#
>
>
> The NFS "directory not empty" issue has been a common annoyance for me for
> several years. It's not just you... It deserves a bug though.
> Thanks!
> -NGie
>
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: Installworld fails with TMPDIR pointing to NFS mounted directory

2016-01-12 Thread NGie Cooper

> On Jan 12, 2016, at 08:42, 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

Hi Tom,
MAKEOBJDIRPREFIX should always be set via the environment, not the 
command line, e.g.

export MAKEOBJDIRPREFIX=/media/swan/obj
make installworld

Cheers,
-NGie
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: Installworld fails with TMPDIR pointing to NFS mounted directory

2016-01-12 Thread Bryan Drewery
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-unsubscr...@freebsd.org"
> 


-- 
Regards,
Bryan Drewery
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Installworld fails with TMPDIR pointing to NFS mounted directory

2016-01-12 Thread Tom Vijlbrief
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

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-unsubscr...@freebsd.org"