Re: include/rpcsvc - mkdir: /usr/obj/lib32: Permission denied

2015-05-02 Thread Oliver Pinter
On 5/2/15, Oliver Pinter oliver.pin...@hardenedbsd.org wrote:
 Hi all!

 I try to build a modified 10-STABLE with jenkins, but I got the error
 in the subject.
 You can find the full build log under this link:
 http://jenkins.hardenedbsd.org:8180/jenkins/job/HardenedBSD-10-experimental-amd64/1/console

 If you need more info, please ping me, or write to c...@hardenedbsd.org .

 Thanks you,
 Oliver


Seems like something LIB32_OBJTREE related changes are missing from
10-STABLE's Makefile.inc1...
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


kernel process [nfscl] high cpu

2015-05-02 Thread Frank de Bot (lists)
Hi,

On a 10.1-RELEASE-p9 server I have several NFS mounts used for a jail.
Because it's a server only to test, there is a low load. But the [nfscl]
process is hogging a CPU after a while. This happens pretty fast, within
1 or 2 days. I'm noticing the high CPU of the process when I want to do
some test after a little while (those 1 or 2 days).

My jail.conf look like:

exec.start = /bin/sh /etc/rc;
exec.stop = /bin/sh /etc/rc.shutdown;
exec.clean;
mount.devfs;
exec.consolelog = /var/log/jail.$name.log;
#mount.fstab = /usr/local/etc/jail.fstab.$name;

test01 {
host.hostname = test01_hosting;
ip4.addr = somepublicaddress;
ip4.addr += someprivateaddress;

mount = 10.13.37.2:/tank/hostingbase  /opt/jails/test01
   nfs nfsv4,minorversion=1,pnfs,ro,noatime0   0;
mount +=  10.13.37.2:/tank/hosting/test
/opt/jails/test01/opt   nfs nfsv4,minorversion=1,pnfs,noatime
 0   0;

path = /opt/jails/test01;
}

Last test was with NFS 4.1, I also worked with NFS 4.(0) with the same
result. In the readonly nfs share there are symbolic links point to the
read-write share for logging, storing .run files, etc. When I monitor my
network interface with tcpdump, there is little nfs traffic, only when I
do try to access the shares there is activity.

What is causing nfscl to run around in circles, hogging the CPU (it
makes the system slow to respond too) or how can I found out what's the
cause?


Regards,

Frank de Bot
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


include/rpcsvc - mkdir: /usr/obj/lib32: Permission denied

2015-05-02 Thread Oliver Pinter
Hi all!

I try to build a modified 10-STABLE with jenkins, but I got the error
in the subject.
You can find the full build log under this link:
http://jenkins.hardenedbsd.org:8180/jenkins/job/HardenedBSD-10-experimental-amd64/1/console

If you need more info, please ping me, or write to c...@hardenedbsd.org .

Thanks you,
Oliver
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: include/rpcsvc - mkdir: /usr/obj/lib32: Permission denied

2015-05-02 Thread Oliver Pinter
On 5/2/15, Oliver Pinter oliver.pin...@hardenedbsd.org wrote:
 On 5/2/15, Oliver Pinter oliver.pin...@hardenedbsd.org wrote:
 Hi all!

 I try to build a modified 10-STABLE with jenkins, but I got the error
 in the subject.
 You can find the full build log under this link:
 http://jenkins.hardenedbsd.org:8180/jenkins/job/HardenedBSD-10-experimental-amd64/1/console

 If you need more info, please ping me, or write to c...@hardenedbsd.org .

 Thanks you,
 Oliver


 Seems like something LIB32_OBJTREE related changes are missing from
 10-STABLE's Makefile.inc1...


Especially this commit:
commit ad4df7fd320711af1c0e3bf59b9c7274c0cf95ae
Author: will w...@freebsd.org
Date:   Thu Sep 18 01:57:36 2014 +

Root the lib32 object tree under the overall object tree.

This enables a common root directory for all object files for a given tree,
which eases sharing a common MAKEOBJDIRPREFIX, and cleaning up of
object trees.

In particular, one can simply (from the source directory) rm -rf
/usr/obj$(pwd)
to destroy all object files for it.  Or to copy/sync files, etc.

Reviewed by:bdrewery
CR: https://reviews.freebsd.org/D796
MFC after:  1 month
Sponsored by:   Spectra Logic
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: kernel process [nfscl] high cpu

2015-05-02 Thread Rick Macklem
Frank de Bot wrote:
 Hi,
 
 On a 10.1-RELEASE-p9 server I have several NFS mounts used for a
 jail.
 Because it's a server only to test, there is a low load. But the
 [nfscl]
 process is hogging a CPU after a while. This happens pretty fast,
 within
 1 or 2 days. I'm noticing the high CPU of the process when I want to
 do
 some test after a little while (those 1 or 2 days).
 
 My jail.conf look like:
 
 exec.start = /bin/sh /etc/rc;
 exec.stop = /bin/sh /etc/rc.shutdown;
 exec.clean;
 mount.devfs;
 exec.consolelog = /var/log/jail.$name.log;
 #mount.fstab = /usr/local/etc/jail.fstab.$name;
 
 test01 {
 host.hostname = test01_hosting;
 ip4.addr = somepublicaddress;
 ip4.addr += someprivateaddress;
 
 mount = 10.13.37.2:/tank/hostingbase  /opt/jails/test01
nfs nfsv4,minorversion=1,pnfs,ro,noatime0   0;
 mount +=  10.13.37.2:/tank/hosting/test
 /opt/jails/test01/opt   nfs nfsv4,minorversion=1,pnfs,noatime
  0   0;
 
 path = /opt/jails/test01;
 }
 
 Last test was with NFS 4.1, I also worked with NFS 4.(0) with the
 same
 result. In the readonly nfs share there are symbolic links point to
 the
 read-write share for logging, storing .run files, etc. When I monitor
 my
 network interface with tcpdump, there is little nfs traffic, only
 when I
 do try to access the shares there is activity.
 
 What is causing nfscl to run around in circles, hogging the CPU (it
 makes the system slow to respond too) or how can I found out what's
 the
 cause?
 
Well, the nfscl does server-client RPCs referred to as callbacks. I
have no idea what the implications of running it in a jail is, but I'd
guess that these server-client RPCs get blocked somehow, etc...
(The NFSv4.0 mechanism requires a separate IP address that the server
 can connect to on the client. For NFSv4.1, it should use the same
 TCP connection as is used for the client-server RPCs. The latter
 seems like it should work, but there is probably some glitch.)

** Just run without the nfscl daemon (it is only needed for delegations or 
pNFS).

Since a big Netapp filer (the cluster ones) are about the only servers
that currently support pNFS (no FreeBSD server support yet), you can
probably forget about pNFS (I'd get rid of the pnfs mount option).
It also won't work unless this callback path is working.

As for delegations, they aren't required for NFSv4.[0-1] to work correctly
and aren't enabled by default on the FreeBSD server.
-- Running without the nfscl daemon will just ensure no delegations
are issued, even if enabled on the server.

rick

 
 Regards,
 
 Frank de Bot
 ___
 freebsd-stable@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-stable
 To unsubscribe, send any mail to
 freebsd-stable-unsubscr...@freebsd.org
 
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org