From owner-freebsd-jail@FreeBSD.ORG Mon Oct 22 12:11:45 2007 Return-Path: Delivered-To: freebsd-jail@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CFB8516A46E for ; Mon, 22 Oct 2007 12:11:45 +0000 (UTC) (envelope-from freebsd@vfemail.net) Received: from vfemail.net (dell.vfemail.net [216.170.248.236]) by mx1.freebsd.org (Postfix) with ESMTP id 52C7413C4D3 for ; Mon, 22 Oct 2007 12:11:35 +0000 (UTC) (envelope-from freebsd@vfemail.net) Received: (qmail 34381 invoked by uid 89); 22 Oct 2007 12:10:39 -0000 Received: from localhost (HELO inmail.vfemail.net) (127.0.0.1) by localhost with (DHE-RSA-AES256-SHA encrypted) SMTP; 22 Oct 2007 12:10:38 -0000 Received: (qmail 32380 invoked by uid 89); 22 Oct 2007 12:01:53 -0000 Received: from unknown (HELO vfemail.net) (vfemail@172.16.100.20) by 0 with SMTP; 22 Oct 2007 12:01:53 -0000 Received: (qmail 26402 invoked by uid 0); 22 Oct 2007 12:01:52 -0000 Received: by simscan 1.1.0 ppid: 26396, pid: 26399, t: 0.0099s scanners:none Received: from unknown (HELO localhost) (freebsd@vfemail.net@216.170.248.235) by mail.vfemail.net with ESMTPA; 22 Oct 2007 12:01:52 -0000 Received: from 212.219.92.70 ([212.219.92.70]) by mail.vfemail.net (Horde MIME library) with HTTP; Mon, 22 Oct 2007 07:01:52 -0500 Message-ID: <20071022070152.kmru71zyw8ogocog@mail.vfemail.net> Date: Mon, 22 Oct 2007 07:01:52 -0500 From: freebsd@vfemail.net To: freebsd-jail@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Internet Messaging Program (IMP) H3 (4.1.3) X-VFEmail-Originating-IP: 212.219.92.70 X-VFEmail-Remote-Browser: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1.8) Gecko/20071008 Firefox/2.0.0.8 X-VFEmail-UserAuth: freebsd@vfemail.net X-VFEmail-AntiSpam: Notify admin@vfemail.net of any spam, and include VFEmail headers Cc: Subject: Fwd: Re: Jail not starting X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Oct 2007 12:11:45 -0000 Sorry folks even though I sent this reply long back, didn't realize that it didn't =20 go to the mailing list until today. I am still having the same problem, and would appreciate suggestions =20 for further testing. Best regards ----- Forwarded message from freebsd@vfemail.net ----- Date: Thu, 18 Oct 2007 01:56:07 -0500 From: freebsd@vfemail.net Reply-To: freebsd@vfemail.net Subject: Re: Jail not starting To: Wesley Shields Quoting Wesley Shields : > On Wed, Oct 17, 2007 at 07:12:18AM -0500, freebsd@vfemail.net wrote: >> Dear all >> Any suggestion, further diagnosis or request for further info is highly >> appreciated. > > Without knowing what services you have starting in your jail it's hard > to tell what's causing the delay. Try hitting ^T to see exactly what's > going on while you are waiting. > > -- WXS > well, I'm trying to run BIND in one jail and Apache on the other. first, I tried doing the BIND/named. As you have suggested, I hit the ^T, couple of times, and this is what came up /etc/rc.d/jail start Configuring jails:. Starting jails:load: 0.60 cmd: sh 76309 [runnable] 0.00u 0.00s 0% 1716k load: 0.72 cmd: sh 77454 [runnable] 0.00u 0.00s 0% 2656k load: 0.74 cmd: dirname 77929 [runnable] 0.00u 0.00s 0% 340k load: 0.74 cmd: sh 75636 [runnable] 0.28u 2.31s 9% 3204k load: 0.74 cmd: dirname 78312 [runnable] 0.00u 0.00s 0% 532k load: 0.76 cmd: dirname 78415 [runnable] 0.00u 0.00s 0% 344k load: 0.76 cmd: sh 78506 [runnable] 0.00u 0.00s 0% 3528k load: 0.76 cmd: dirname 78631 [runnable] 0.00u 0.00s 0% 148k load: 0.76 cmd: sh 75636 [runnable] 0.32u 3.14s 11% 3696k load: 0.76 cmd: sh 75636 [runnable] 0.32u 3.26s 11% 3764k load: 0.76 cmd: dirname 78850 [runnable] 0.00u 0.00s 0% 216k load: 0.76 cmd: dirname 78898 [runnable] 0.00u 0.00s 0% 148k load: 0.76 cmd: dirname 78968 [runnable] 0.00u 0.00s 0% 452k load: 0.78 cmd: sh 79018 [runnable] 0.00u 0.00s 0% 3952k load: 0.78 cmd: sh 75636 [runnable] 0.37u 3.65s 12% 4000k load: 0.78 cmd: sh 79165 [runnable] 0.00u 0.00s 0% 4072k load: 0.78 cmd: sh 75636 [runnable] 0.40u 3.86s 12% 4124k load: 0.78 cmd: sh 75636 [runnable] 0.44u 4.39s 14% 4408k load: 0.80 cmd: sh 75636 [runnable] 0.44u 4.53s 14% 4480k load: 0.80 cmd: dirname 79720 [runnable] 0.00u 0.00s 0% 472k load: 0.92 cmd: sh 82655 [runnable] 0.00u 0.00s 0% 6952k to be quite honest, I have no clue what these mean -- the only thing I can figure out is the load is quite low -- not even 1. and all the commands are runnable. but what else should I check? thanks and regards ------------------------------------------------- This message sent through Virus Free Email http://www.vfemail.net ----- End forwarded message ----- ------------------------------------------------- This message sent through Virus Free Email http://www.vfemail.net From owner-freebsd-jail@FreeBSD.ORG Mon Oct 22 18:51:34 2007 Return-Path: Delivered-To: freebsd-jail@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C079A16A536 for ; Mon, 22 Oct 2007 18:51:34 +0000 (UTC) (envelope-from pilists@c0mplx.org) Received: from home.c0mplx.org (home.c0mplx.org [IPv6:2001:14b0:200::1]) by mx1.freebsd.org (Postfix) with ESMTP id 67ED013C465 for ; Mon, 22 Oct 2007 18:51:34 +0000 (UTC) (envelope-from pilists@c0mplx.org) Received: from pi by home.c0mplx.org with local (Exim 4.66 (FreeBSD)) (envelope-from ) id 1Ik2NC-0003oZ-74 for freebsd-jail@freebsd.org; Mon, 22 Oct 2007 20:51:34 +0200 Date: Mon, 22 Oct 2007 20:51:34 +0200 From: Kurt Jaeger To: freebsd-jail@freebsd.org Message-ID: <20071022185134.GF12479@home.c0mplx.org> References: <20071022070152.kmru71zyw8ogocog@mail.vfemail.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20071022070152.kmru71zyw8ogocog@mail.vfemail.net> Subject: Re: Fwd: Re: Jail not starting X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Oct 2007 18:51:34 -0000 Hi! > well, I'm trying to run BIND in one jail and Apache on the other. > first, I tried doing the BIND/named. As you have suggested, I hit the > ^T, couple of times, and this is what came up > > /etc/rc.d/jail start How did you define your jails in /etc/rc.conf ? Try the following to see a full report of all the commands that are started, tried etc. sh -x /etc/rc.d/jail start -- pi@opsec.eu +49 171 3101372 13 years to go ! From owner-freebsd-jail@FreeBSD.ORG Tue Oct 23 03:26:24 2007 Return-Path: Delivered-To: freebsd-jail@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6FAD716A420 for ; Tue, 23 Oct 2007 03:26:24 +0000 (UTC) (envelope-from jon.passki@hursk.com) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.225]) by mx1.freebsd.org (Postfix) with ESMTP id 01CFD13C4A5 for ; Tue, 23 Oct 2007 03:26:23 +0000 (UTC) (envelope-from jon.passki@hursk.com) Received: by wr-out-0506.google.com with SMTP id 70so927056wra for ; Mon, 22 Oct 2007 20:26:05 -0700 (PDT) Received: by 10.90.119.15 with SMTP id r15mr131985agc.1193106369417; Mon, 22 Oct 2007 19:26:09 -0700 (PDT) Received: by 10.90.25.10 with HTTP; Mon, 22 Oct 2007 19:26:09 -0700 (PDT) Message-ID: Date: Mon, 22 Oct 2007 21:26:09 -0500 From: "Jon Passki" To: "freebsd@vfemail.net" In-Reply-To: <20071022070152.kmru71zyw8ogocog@mail.vfemail.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20071022070152.kmru71zyw8ogocog@mail.vfemail.net> Cc: freebsd-jail@freebsd.org Subject: Re: Re: Jail not starting X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Oct 2007 03:26:24 -0000 On 10/22/07, freebsd@vfemail.net wrote: > > Sorry folks > > even though I sent this reply long back, didn't realize that it didn't > go to the mailing list until today. > > I am still having the same problem, and would appreciate suggestions > for further testing. [snip] > well, I'm trying to run BIND in one jail and Apache on the other. > first, I tried doing the BIND/named. As you have suggested, I hit the > ^T, couple of times, and this is what came up > > /etc/rc.d/jail start > Configuring jails:. > Starting jails:load: 0.60 cmd: sh 76309 [runnable] 0.00u 0.00s 0% 1716k > load: 0.72 cmd: sh 77454 [runnable] 0.00u 0.00s 0% 2656k > load: 0.74 cmd: dirname 77929 [runnable] 0.00u 0.00s 0% 340k > load: 0.74 cmd: sh 75636 [runnable] 0.28u 2.31s 9% 3204k > load: 0.74 cmd: dirname 78312 [runnable] 0.00u 0.00s 0% 532k > load: 0.76 cmd: dirname 78415 [runnable] 0.00u 0.00s 0% 344k > load: 0.76 cmd: sh 78506 [runnable] 0.00u 0.00s 0% 3528k > load: 0.76 cmd: dirname 78631 [runnable] 0.00u 0.00s 0% 148k > load: 0.76 cmd: sh 75636 [runnable] 0.32u 3.14s 11% 3696k > load: 0.76 cmd: sh 75636 [runnable] 0.32u 3.26s 11% 3764k > load: 0.76 cmd: dirname 78850 [runnable] 0.00u 0.00s 0% 216k > load: 0.76 cmd: dirname 78898 [runnable] 0.00u 0.00s 0% 148k > load: 0.76 cmd: dirname 78968 [runnable] 0.00u 0.00s 0% 452k > load: 0.78 cmd: sh 79018 [runnable] 0.00u 0.00s 0% 3952k > load: 0.78 cmd: sh 75636 [runnable] 0.37u 3.65s 12% 4000k > load: 0.78 cmd: sh 79165 [runnable] 0.00u 0.00s 0% 4072k > load: 0.78 cmd: sh 75636 [runnable] 0.40u 3.86s 12% 4124k > load: 0.78 cmd: sh 75636 [runnable] 0.44u 4.39s 14% 4408k > load: 0.80 cmd: sh 75636 [runnable] 0.44u 4.53s 14% 4480k > load: 0.80 cmd: dirname 79720 [runnable] 0.00u 0.00s 0% 472k > load: 0.92 cmd: sh 82655 [runnable] 0.00u 0.00s 0% 6952k When troubleshooting rc.d issues, I find it best to set rc.debug="yes" in rc.conf and watch its output on a restart. Try setting it and do an `/etc/rc.d/jail restart`, recording the output. Outside of typos, not having mounted a devfs can cause some failures that are difficult to notice. Jon From owner-freebsd-jail@FreeBSD.ORG Tue Oct 23 18:26:23 2007 Return-Path: Delivered-To: freebsd-jail@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EF13516A418; Tue, 23 Oct 2007 18:26:23 +0000 (UTC) (envelope-from hoschi@etain.frida.mouhaha.de) Received: from etain.frida.mouhaha.de (etain.frida.mouhaha.de [85.236.48.54]) by mx1.freebsd.org (Postfix) with ESMTP id C205A13C4D1; Tue, 23 Oct 2007 18:26:23 +0000 (UTC) (envelope-from hoschi@etain.frida.mouhaha.de) Received: from localhost (etain.frida.mouhaha.de [85.236.48.54]) by etain.frida.mouhaha.de (Postfix) with ESMTP id 863FF4B359C; Tue, 23 Oct 2007 20:07:21 +0200 (CEST) X-Virus-Scanned: amavisd-new at mouhaha.de Received: from etain.frida.mouhaha.de ([85.236.48.54]) by localhost (etain.frida.mouhaha.de [85.236.48.54]) (amavisd-new, port 10024) with ESMTP id jCboZi49LYmC; Tue, 23 Oct 2007 20:07:19 +0200 (CEST) Received: by etain.frida.mouhaha.de (Postfix, from userid 1001) id AEA4B4B359A; Tue, 23 Oct 2007 20:07:19 +0200 (CEST) Date: Tue, 23 Oct 2007 20:07:19 +0200 From: Oliver Peter To: freebsd-questions@freebsd.org, freebsd-jail@freebsd.org Message-ID: <20071023180719.GA22904@nemesis.frida.mouhaha.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="mP3DRpeJDSE+ciuQ" Content-Disposition: inline X-Operating-System: FreeBSD 6.2-RELEASE-p8 i386 User-Agent: Mutt/1.5.16 (2007-06-09) Cc: Subject: multiple postgresql servers in multiple jails? X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Oct 2007 18:26:24 -0000 --mP3DRpeJDSE+ciuQ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Does anybody have a running system with more than one jail hosting more than one postgres server? I can only have one pgsql database on one host at all. I already tried to increase the shared memory off my machine with additional kernel [1] and sysctl parameters [2] and I also tried to change the numeric UID directly in the jails into a seperate one. Same errors. Of course I already have defined jail_sysvipc_allow=3D"YES" in rc.conf. I have this issue on 6.2-RELEASE-p8 and 8.0-CURRENT with postgresql-server-8.2.5_1. ------------------------------------------------------------------------ % psql psql: FATAL: semctl(458753, 15, SETVAL, 0) failed: Invalid argument ------------------------------------------------------------------------ Or some fun with perl/DBD ------------------------------------------------------------------------ Out of memory during request for 108 bytes, total sbrk() is 534585344 bytes! Out of memory during request for 288 bytes, total sbrk() is 534585344 bytes! Out of memory during request for 288 bytes, total sbrk() is 534585344 bytes! ------------------------------------------------------------------------ [1] options SYSVSHM options SYSVSEM options SYSVMSG options SHMMAXPGS=3D65536 options SEMMNI=3D40 options SEMMNS=3D240 options SEMUME=3D40 options SEMMNU=3D120 [2] http://www.freebsddiary.org/jail-multiple.php --=20 Oliver PETER, eMail: hoschi@mouhaha.de, ICQ# 113969174 "Worker bees can leave. Even drones can fly away. The Queen is their slave." --mP3DRpeJDSE+ciuQ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.3 (FreeBSD) iEYEARECAAYFAkceOFcACgkQ6LH/IUVtaI/7EgCgnuBfyCVrfb5z8rawlsSOayWJ LqUAoJlKfxfgECb2/WYbJZ5arzEXK8Ur =t9bu -----END PGP SIGNATURE----- --mP3DRpeJDSE+ciuQ-- From owner-freebsd-jail@FreeBSD.ORG Wed Oct 24 13:55:58 2007 Return-Path: Delivered-To: freebsd-jail@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4C11416A41B; Wed, 24 Oct 2007 13:55:58 +0000 (UTC) (envelope-from hoschi@etain.frida.mouhaha.de) Received: from etain.frida.mouhaha.de (etain.frida.mouhaha.de [85.236.48.54]) by mx1.freebsd.org (Postfix) with ESMTP id 124FB13C48E; Wed, 24 Oct 2007 13:55:57 +0000 (UTC) (envelope-from hoschi@etain.frida.mouhaha.de) Received: from localhost (etain.frida.mouhaha.de [85.236.48.54]) by etain.frida.mouhaha.de (Postfix) with ESMTP id 8353B4B9172; Wed, 24 Oct 2007 15:55:40 +0200 (CEST) X-Virus-Scanned: amavisd-new at mouhaha.de Received: from etain.frida.mouhaha.de ([85.236.48.54]) by localhost (etain.frida.mouhaha.de [85.236.48.54]) (amavisd-new, port 10024) with ESMTP id aN1XrI1wT3U6; Wed, 24 Oct 2007 15:55:37 +0200 (CEST) Received: by etain.frida.mouhaha.de (Postfix, from userid 1001) id AA0474B90E5; Wed, 24 Oct 2007 15:55:36 +0200 (CEST) Date: Wed, 24 Oct 2007 15:55:36 +0200 From: Oliver Peter To: freebsd-questions@FreeBSD.ORG Message-ID: <20071024135535.GC22904@nemesis.frida.mouhaha.de> References: <20071023180719.GA22904@nemesis.frida.mouhaha.de> <200710232006.l9NK67BO052981@lurza.secnetix.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="0vzXIDBeUiKkjNJl" Content-Disposition: inline In-Reply-To: <200710232006.l9NK67BO052981@lurza.secnetix.de> X-Operating-System: FreeBSD 6.2-RELEASE-p8 i386 User-Agent: Mutt/1.5.16 (2007-06-09) Cc: freebsd-jail@FreeBSD.ORG Subject: Re: multiple postgresql servers in multiple jails? X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Oct 2007 13:55:58 -0000 --0vzXIDBeUiKkjNJl Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Oct 23, 2007 at 10:06:08PM +0200, Oliver Fromme wrote: > Oliver Peter wrote: > > Does anybody have a running system with more than one jail hosting > > more than one postgres server? >=20 > Yes, you must configure them to use different port numbers, > because the SysV IPC IDs are derived from the port number. > If you try to run both servers with the default port, you'll > get a conflict. Configure different port numbers, and it > will work. Thanks for that hint. After changing the port numbers for each instance to a different one, it works - but only at first glance. After making some test creates and inserts to all servers at the same time I receive the 'out of memory' messages again... Different UIDs, different ports, same error. > By the way, the PostgreSQL developers do _not_ recommend to > run multiple servers on the same machine, because of bad > efficiency. It is much better (performance-wise) to run > all databases within the same server engine. PostgreSQL > has all the authentication and permission features you need > to separate multiple databases within a single server, so > there is really no need to use multiple jails. Of course I understand that. But I would like to setup a test server in a different jail beside my production jail/pgsql-server to be sure not to crash my production server. Performance does not matter (at this time in this specific case of course!). > I have these on a machine with a single PostgreSQL server, > as per recommendations of the developers: >=20 > options SHMMAXPGS=3D65536 > options SEMMAP=3D1024 > options SEMMNI=3D64 > options SEMMNS=3D1024 > options SEMUME=3D64 > options SEMMNU=3D128 Is this a good recommendation for a machine with only 1GB of RAM? --=20 Oliver PETER, eMail: hoschi@mouhaha.de, ICQ# 113969174 "Worker bees can leave. Even drones can fly away. The Queen is their slave." --0vzXIDBeUiKkjNJl Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.3 (FreeBSD) iEYEARECAAYFAkcfTtcACgkQ6LH/IUVtaI/aagCgnDHROiuJpkwyx9hBFytWeMdh ufwAnA0ntKl7vg3L9igJDywBb1u+GiD6 =Q0IV -----END PGP SIGNATURE----- --0vzXIDBeUiKkjNJl-- From owner-freebsd-jail@FreeBSD.ORG Wed Oct 24 21:23:04 2007 Return-Path: Delivered-To: freebsd-jail@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CE2D216A417 for ; Wed, 24 Oct 2007 21:23:04 +0000 (UTC) (envelope-from schulra@earlham.edu) Received: from sipala.earlham.edu (sipala.earlham.edu [159.28.1.75]) by mx1.freebsd.org (Postfix) with ESMTP id 81F8013C480 for ; Wed, 24 Oct 2007 21:23:04 +0000 (UTC) (envelope-from schulra@earlham.edu) Received: from tdream.lly.earlham.edu (tdream.lly.earlham.edu [159.28.7.241]) by sipala.earlham.edu (8.13.6/8.13.6) with ESMTP id l9OL8wck028106 for ; Wed, 24 Oct 2007 17:08:58 -0400 (EDT) Received: from tdream.lly.earlham.edu (tdream.lly.earlham.edu [159.28.7.241]) by tdream.lly.earlham.edu (Postfix) with ESMTP id A9F458E1C9 for ; Wed, 24 Oct 2007 17:09:03 -0400 (EDT) Date: Wed, 24 Oct 2007 17:09:03 -0400 (EDT) From: Randy Schultz X-X-Sender: schulra@tdream.lly.earlham.edu To: freebsd-jail@freebsd.org Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Subject: jailed time X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Oct 2007 21:23:04 -0000 Has anybody ever set up a time server in a jail? My goal is to have something serving the time, not actually setting the time, out of the jail. The system clock is sync'd via other means. Unfortunately, ntpd and crew really want to mess with the system clock. -- Randy (schulra@earlham.edu) 765.983.1283 <*> freebsd: what linux people use when they grow up. ;> From owner-freebsd-jail@FreeBSD.ORG Thu Oct 25 13:06:39 2007 Return-Path: Delivered-To: freebsd-jail@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B92CC16A468 for ; Thu, 25 Oct 2007 13:06:39 +0000 (UTC) (envelope-from lists@lozenetz.org) Received: from mail.webreality.org (mailserver.webreality.org [217.75.141.5]) by mx1.freebsd.org (Postfix) with ESMTP id 7DE8D13C4AC for ; Thu, 25 Oct 2007 13:06:38 +0000 (UTC) (envelope-from lists@lozenetz.org) Received: from [10.0.1.100] (unknown [87.121.18.230]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.webreality.org (Postfix) with ESMTP id 24350FFE6E1 for ; Thu, 25 Oct 2007 15:47:08 +0300 (EEST) Message-ID: <47209044.3080307@lozenetz.org> Date: Thu, 25 Oct 2007 15:47:00 +0300 From: Anton - Valqk User-Agent: Icedove 1.5.0.10 (X11/20070329) MIME-Version: 1.0 To: freebsd-jail@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-HostIT-MailScanner-Information: Please contact the ISP for more information X-HostIT-MailScanner: Found to be clean X-HostIT-MailScanner-From: lists@lozenetz.org Subject: User Quota inside jail? X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Oct 2007 13:06:39 -0000 Hello Group, I'm wondering if I can set quota inside a jail for user in it. For example: jail root: /usr/jails/testjail - this is a separate partition mounted with quota support in the jail I have user: testuser I want to set a quota 1G for him in his home - /usr/jails/testjail/home/testuser is this possible? I was thinking of making edquota from outside the jail and setting it from there... but I got error the uid dosen't exists.... any ideas? is someone did this? I've tryed a search in the lists, but this list is not in the search list.... Cheers, valqk. -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From owner-freebsd-jail@FreeBSD.ORG Thu Oct 25 13:11:33 2007 Return-Path: Delivered-To: freebsd-jail@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B225B16A417 for ; Thu, 25 Oct 2007 13:11:33 +0000 (UTC) (envelope-from wmoran@collaborativefusion.com) Received: from mx00.pub.collaborativefusion.com (mx00.pub.collaborativefusion.com [206.210.89.199]) by mx1.freebsd.org (Postfix) with ESMTP id 6144113C4A7 for ; Thu, 25 Oct 2007 13:11:33 +0000 (UTC) (envelope-from wmoran@collaborativefusion.com) Received: from vanquish.pitbpa0.priv.collaborativefusion.com (vanquish.pitbpa0.priv.collaborativefusion.com [192.168.2.61]) (SSL: TLSv1/SSLv3,256bits,AES256-SHA) by wingspan with esmtp; Thu, 25 Oct 2007 09:11:32 -0400 id 00056403.47209604.0000FD23 Date: Thu, 25 Oct 2007 09:11:32 -0400 From: Bill Moran To: Anton - Valqk Message-Id: <20071025091132.6ef704aa.wmoran@collaborativefusion.com> In-Reply-To: <47209044.3080307@lozenetz.org> References: <47209044.3080307@lozenetz.org> Organization: Collaborative Fusion X-Mailer: Sylpheed 2.4.4 (GTK+ 2.10.14; i386-portbld-freebsd6.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-jail@freebsd.org Subject: Re: User Quota inside jail? X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Oct 2007 13:11:33 -0000 In response to Anton - Valqk : > Hello Group, > > I'm wondering if I can set quota inside a jail for user in it. > > For example: > > jail root: /usr/jails/testjail - this is a separate partition mounted > with quota support > > in the jail I have user: testuser > > I want to set a quota 1G for him in his home - > /usr/jails/testjail/home/testuser > > is this possible? > I was thinking of making edquota from outside the jail and setting it > from there... > but I got error the uid dosen't exists.... > > any ideas? > is someone did this? > I've tryed a search in the lists, but this list is not in the search > list.... I almost got this working in the 4.X days. I have no idea if it's easier or harder to do in 6.X, or even possible. The trick is that all the quota stuff has to be managed from the host system. The jail is simply a victim of the quotas. It means you have to have all the jail users replicated on the host, and the quotas configured on the host. Unfortunately, I don't remember any of the gory details. -- Bill Moran Collaborative Fusion Inc. http://people.collaborativefusion.com/~wmoran/ wmoran@collaborativefusion.com Phone: 412-422-3463x4023 From owner-freebsd-jail@FreeBSD.ORG Thu Oct 25 14:39:02 2007 Return-Path: Delivered-To: freebsd-jail@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 69D6216A418; Thu, 25 Oct 2007 14:39:02 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [IPv6:2001:1b20:1:3::1]) by mx1.freebsd.org (Postfix) with ESMTP id 7796F13C491; Thu, 25 Oct 2007 14:39:01 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (localhost [127.0.0.1]) by lurza.secnetix.de (8.14.1/8.14.1) with ESMTP id l9PEcr7s063071; Thu, 25 Oct 2007 16:39:00 +0200 (CEST) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.14.1/8.14.1/Submit) id l9PEcrwe063070; Thu, 25 Oct 2007 16:38:53 +0200 (CEST) (envelope-from olli) Date: Thu, 25 Oct 2007 16:38:53 +0200 (CEST) Message-Id: <200710251438.l9PEcrwe063070@lurza.secnetix.de> From: Oliver Fromme To: freebsd-questions@FreeBSD.ORG, hoschi@mouhaha.de, freebsd-jail@FreeBSD.ORG In-Reply-To: <20071024135535.GC22904@nemesis.frida.mouhaha.de> X-Newsgroups: list.freebsd-questions User-Agent: tin/1.8.3-20070201 ("Scotasay") (UNIX) (FreeBSD/6.2-STABLE-20070808 (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.1.2 (lurza.secnetix.de [127.0.0.1]); Thu, 25 Oct 2007 16:39:00 +0200 (CEST) Cc: Subject: Re: multiple postgresql servers in multiple jails? X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-questions@FreeBSD.ORG, hoschi@mouhaha.de, freebsd-jail@FreeBSD.ORG List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Oct 2007 14:39:02 -0000 Oliver Peter wrote: > Oliver Fromme wrote: > > Oliver Peter wrote: > > > Does anybody have a running system with more than one jail hosting > > > more than one postgres server? > > > > Yes, you must configure them to use different port numbers, > > because the SysV IPC IDs are derived from the port number. > > If you try to run both servers with the default port, you'll > > get a conflict. Configure different port numbers, and it > > will work. > > Thanks for that hint. After changing the port numbers for each > instance to a different one, it works - but only at first glance. > After making some test creates and inserts to all servers at the same > time I receive the 'out of memory' messages again... > Different UIDs, different ports, same error. Can you please give the output from "ipcs -M" and "ipcs -p"? The latter shows the process IDs of the creator (CPID) and last user (LPID) of shared memory resources. You can look up the jails in which those processes are running, so to make sure that none of the resources was taken over by a different jail. The "jps" script could be useful: http://www.secnetix.de/~olli/scripts/jps By the way, "ipcs -bm" displays the shared memory segment sizes. > > By the way, the PostgreSQL developers do _not_ recommend to > > run multiple servers on the same machine, because of bad > > efficiency. It is much better (performance-wise) to run > > all databases within the same server engine. PostgreSQL > > has all the authentication and permission features you need > > to separate multiple databases within a single server, so > > there is really no need to use multiple jails. > > Of course I understand that. But I would like to setup a test server > in a different jail beside my production jail/pgsql-server to be sure > not to crash my production server. > Performance does not matter (at this time in this specific case of > course!). I see. In that case it is probably OK. > > I have these on a machine with a single PostgreSQL server, > > as per recommendations of the developers: > > > > options SHMMAXPGS=65536 > > options SEMMAP=1024 > > options SEMMNI=64 > > options SEMMNS=1024 > > options SEMUME=64 > > options SEMMNU=128 > > Is this a good recommendation for a machine with only 1GB of RAM? In fact, the above lines are from a machine with 256 MB RAM. For 1 GB you can probably double the number of shared memory pages (SHMMAXPGS value). The semaphore values (SEM*) should be sufficient in either case, I think. Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd "C is quirky, flawed, and an enormous success." -- Dennis M. Ritchie. From owner-freebsd-jail@FreeBSD.ORG Thu Oct 25 19:22:24 2007 Return-Path: Delivered-To: freebsd-jail@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 842D016A47B for ; Thu, 25 Oct 2007 19:22:23 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from elsa.codelab.cz (elsa.codelab.cz [82.208.36.70]) by mx1.freebsd.org (Postfix) with ESMTP id 4328313C465 for ; Thu, 25 Oct 2007 19:22:23 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from localhost (localhost.codelab.cz [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id 2292019E02A; Thu, 25 Oct 2007 21:22:22 +0200 (CEST) Received: from [192.168.1.2] (r3a200.net.upc.cz [213.220.192.200]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTP id A23F219E027; Thu, 25 Oct 2007 21:22:15 +0200 (CEST) Message-ID: <4720ED51.5030501@quip.cz> Date: Thu, 25 Oct 2007 21:24:01 +0200 From: Miroslav Lachman <000.fbsd@quip.cz> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 X-Accept-Language: cz, cs, en, en-us MIME-Version: 1.0 To: Anton - Valqk References: <47209044.3080307@lozenetz.org> In-Reply-To: <47209044.3080307@lozenetz.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-jail@freebsd.org Subject: Re: User Quota inside jail? X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Oct 2007 19:22:24 -0000 Anton - Valqk wrote: > Hello Group, > > I'm wondering if I can set quota inside a jail for user in it. > > For example: > > jail root: /usr/jails/testjail - this is a separate partition mounted > with quota support > > in the jail I have user: testuser > > I want to set a quota 1G for him in his home - > /usr/jails/testjail/home/testuser > > is this possible? > I was thinking of making edquota from outside the jail and setting it > from there... > but I got error the uid dosen't exists.... You can try numerical UID instead of "someusername" from host system (outside of jail - I did not test it, so it my or may not work) Miroslav Lachman From owner-freebsd-jail@FreeBSD.ORG Fri Oct 26 08:31:03 2007 Return-Path: Delivered-To: freebsd-jail@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E1C0816A46B for ; Fri, 26 Oct 2007 08:31:03 +0000 (UTC) (envelope-from lists@lozenetz.org) Received: from mail.webreality.org (mailserver.webreality.org [217.75.141.5]) by mx1.freebsd.org (Postfix) with ESMTP id 67E4513C4A3 for ; Fri, 26 Oct 2007 08:31:03 +0000 (UTC) (envelope-from lists@lozenetz.org) Received: from [10.0.1.100] (unknown [87.121.18.230]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.webreality.org (Postfix) with ESMTP id 35225FFE114; Fri, 26 Oct 2007 11:31:01 +0300 (EEST) Message-ID: <4721A5C1.9070309@lozenetz.org> Date: Fri, 26 Oct 2007 11:30:57 +0300 From: Anton - Valqk User-Agent: Icedove 1.5.0.10 (X11/20070329) MIME-Version: 1.0 To: freebsd-questions@FreeBSD.ORG, hoschi@mouhaha.de, freebsd-jail@FreeBSD.ORG References: <200710251438.l9PEcrwe063070@lurza.secnetix.de> In-Reply-To: <200710251438.l9PEcrwe063070@lurza.secnetix.de> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-HostIT-MailScanner-Information: Please contact the ISP for more information X-HostIT-MailScanner: Found to be clean X-HostIT-MailScanner-From: lists@lozenetz.org Cc: Subject: Re: multiple postgresql servers in multiple jails? X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Oct 2007 08:31:04 -0000 You can alternatively set the SEM* and SHMMAX in the loader.conf. I have a server runing two pgs. #> cat /boot/loader.conf kern.ipc.semmni=256 kern.ipc.semmns=512 kern.ipc.semmnu=256 kern.ipc.semmap=256 Oliver Fromme wrote: > Oliver Peter wrote: > > Oliver Fromme wrote: > > > Oliver Peter wrote: > > > > Does anybody have a running system with more than one jail hosting > > > > more than one postgres server? > > > > > > Yes, you must configure them to use different port numbers, > > > because the SysV IPC IDs are derived from the port number. > > > If you try to run both servers with the default port, you'll > > > get a conflict. Configure different port numbers, and it > > > will work. > > > > Thanks for that hint. After changing the port numbers for each > > instance to a different one, it works - but only at first glance. > > After making some test creates and inserts to all servers at the same > > time I receive the 'out of memory' messages again... > > Different UIDs, different ports, same error. > > Can you please give the output from "ipcs -M" and "ipcs -p"? > > The latter shows the process IDs of the creator (CPID) and > last user (LPID) of shared memory resources. You can look > up the jails in which those processes are running, so to > make sure that none of the resources was taken over by a > different jail. > > The "jps" script could be useful: > > http://www.secnetix.de/~olli/scripts/jps > > By the way, "ipcs -bm" displays the shared memory segment > sizes. > > > > By the way, the PostgreSQL developers do _not_ recommend to > > > run multiple servers on the same machine, because of bad > > > efficiency. It is much better (performance-wise) to run > > > all databases within the same server engine. PostgreSQL > > > has all the authentication and permission features you need > > > to separate multiple databases within a single server, so > > > there is really no need to use multiple jails. > > > > Of course I understand that. But I would like to setup a test server > > in a different jail beside my production jail/pgsql-server to be sure > > not to crash my production server. > > Performance does not matter (at this time in this specific case of > > course!). > > I see. In that case it is probably OK. > > > > I have these on a machine with a single PostgreSQL server, > > > as per recommendations of the developers: > > > > > > options SHMMAXPGS=65536 > > > options SEMMAP=1024 > > > options SEMMNI=64 > > > options SEMMNS=1024 > > > options SEMUME=64 > > > options SEMMNU=128 > > > > Is this a good recommendation for a machine with only 1GB of RAM? > > In fact, the above lines are from a machine with 256 MB RAM. > For 1 GB you can probably double the number of shared memory > pages (SHMMAXPGS value). The semaphore values (SEM*) should > be sufficient in either case, I think. > > Best regards > Oliver > > -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From owner-freebsd-jail@FreeBSD.ORG Fri Oct 26 09:44:49 2007 Return-Path: Delivered-To: freebsd-jail@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 56F7C16A46B; Fri, 26 Oct 2007 09:44:49 +0000 (UTC) (envelope-from hoschi@etain.frida.mouhaha.de) Received: from etain.frida.mouhaha.de (etain.frida.mouhaha.de [85.236.48.54]) by mx1.freebsd.org (Postfix) with ESMTP id ABD8F13C4CE; Fri, 26 Oct 2007 09:44:48 +0000 (UTC) (envelope-from hoschi@etain.frida.mouhaha.de) Received: from localhost (etain.frida.mouhaha.de [85.236.48.54]) by etain.frida.mouhaha.de (Postfix) with ESMTP id 84C124B9238; Fri, 26 Oct 2007 11:44:39 +0200 (CEST) X-Virus-Scanned: amavisd-new at mouhaha.de Received: from etain.frida.mouhaha.de ([85.236.48.54]) by localhost (etain.frida.mouhaha.de [85.236.48.54]) (amavisd-new, port 10024) with ESMTP id GJpUR2l4vDtx; Fri, 26 Oct 2007 11:44:37 +0200 (CEST) Received: by etain.frida.mouhaha.de (Postfix, from userid 1001) id 910A44B9215; Fri, 26 Oct 2007 11:44:37 +0200 (CEST) Date: Fri, 26 Oct 2007 11:44:37 +0200 From: Oliver Peter To: freebsd-questions@FreeBSD.ORG, freebsd-jail@FreeBSD.ORG Message-ID: <20071026094437.GA97703@nemesis.frida.mouhaha.de> References: <20071024135535.GC22904@nemesis.frida.mouhaha.de> <200710251438.l9PEcrwe063070@lurza.secnetix.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="cWoXeonUoKmBZSoM" Content-Disposition: inline In-Reply-To: <200710251438.l9PEcrwe063070@lurza.secnetix.de> X-Operating-System: FreeBSD 6.2-RELEASE-p8 i386 User-Agent: Mutt/1.5.16 (2007-06-09) Cc: Subject: Re: multiple postgresql servers in multiple jails? X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Oct 2007 09:44:49 -0000 --cWoXeonUoKmBZSoM Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Oct 25, 2007 at 04:38:53PM +0200, Oliver Fromme wrote: > Oliver Peter wrote: > > Oliver Fromme wrote: > > > Oliver Peter wrote: > ... > Can you please give the output from "ipcs -M" and "ipcs -p"? Here you go: % sudo ipcs -M shminfo: shmmax: 134217728 (max shared memory segment size) shmmin: 1 (min shared memory segment size) shmmni: 192 (max number of shared memory identifiers) shmseg: 128 (max shared memory segments per process) shmall: 65536 (max amount of shared memory in pages) % sudo ipcs -p Message Queues: T ID KEY MODE OWNER GROUP LSPID = LRPID Shared Memory: T ID KEY MODE OWNER GROUP CPID = LPID m 65536 5432001 --rw------- 70 70 1064 = 1064 m 131073 5473001 --rw------- 1073 70 6293 = 6293 m 131074 5472001 --rw------- 1072 70 6545 = 6545 m 131075 5471001 --rw------- 1071 70 6797 = 6797 Semaphores: T ID KEY MODE OWNER GROUP s 65536 5432001 --rw------- 70 70 s 65537 5432002 --rw------- 70 70 s 65538 5432003 --rw------- 70 70 s 65539 5432004 --rw------- 70 70 s 65540 5432005 --rw------- 70 70 s 65541 5432006 --rw------- 70 70 s 65542 5432007 --rw------- 70 70 s 131079 5473001 --rw------- 1073 70 s 131080 5473002 --rw------- 1073 70 s 131081 5473003 --rw------- 1073 70 s 131082 5473004 --rw------- 1073 70 s 131083 5473005 --rw------- 1073 70 s 131084 5473006 --rw------- 1073 70 s 131085 5473007 --rw------- 1073 70 s 131086 5472001 --rw------- 1072 70 s 131087 5471001 --rw------- 1071 70 s 131088 5471002 --rw------- 1071 70 s 131089 5471003 --rw------- 1071 70 s 131090 5471004 --rw------- 1071 70 s 131091 5471005 --rw------- 1071 70 s 131092 5471006 --rw------- 1071 70 s 131093 5471007 --rw------- 1071 70 % sudo ipcs -bm Shared Memory: T ID KEY MODE OWNER GROUP SEGSZ m 65536 5432001 --rw------- 70 70 38076416 m 131073 5473001 --rw------- 1073 70 38076416 m 131074 5472001 --rw------- 1072 70 1654784 m 131075 5471001 --rw------- 1071 70 38076416 % ./jps | grep postgres 1 1064 70 /usr/local/bin/postgres -D /usr/local/pgsql/data 1 1068 70 postgres: writer process (postgres) 1 1069 70 postgres: stats collector process (postgres) 5 6293 1073 /usr/local/bin/postgres -D /usr/local/pgsql/data 5 6295 1073 postgres: writer process (postgres) 5 6296 1073 postgres: stats collector process (postgres) 6 6545 1072 /usr/local/bin/postgres -D /usr/local/pgsql/data 6 6547 1072 postgres: writer process (postgres) 6 6548 1072 postgres: stats collector process (postgres) 7 6797 1071 /usr/local/bin/postgres -D /usr/local/pgsql/data 7 6799 1071 postgres: writer process (postgres) 7 6800 1071 postgres: stats collector process (postgres) > The "jps" script could be useful: >=20 > http://www.secnetix.de/~olli/scripts/jps Excellent stuff there :) --=20 Oliver PETER, eMail: hoschi@mouhaha.de, ICQ# 113969174 "Worker bees can leave. Even drones can fly away. The Queen is their slave." --cWoXeonUoKmBZSoM Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.3 (FreeBSD) iEYEARECAAYFAkchtwUACgkQ6LH/IUVtaI8eAwCgjiToQBJ4AJ95Srv7kcU+nsKK 8QsAnRY2IGaQm60WNnV4NA2bhJJbGxq9 =TBtt -----END PGP SIGNATURE----- --cWoXeonUoKmBZSoM-- From owner-freebsd-jail@FreeBSD.ORG Fri Oct 26 09:46:08 2007 Return-Path: Delivered-To: freebsd-jail@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D30AD16A473; Fri, 26 Oct 2007 09:46:08 +0000 (UTC) (envelope-from hoschi@etain.frida.mouhaha.de) Received: from etain.frida.mouhaha.de (etain.frida.mouhaha.de [85.236.48.54]) by mx1.freebsd.org (Postfix) with ESMTP id 8BE8D13C494; Fri, 26 Oct 2007 09:46:08 +0000 (UTC) (envelope-from hoschi@etain.frida.mouhaha.de) Received: from localhost (etain.frida.mouhaha.de [85.236.48.54]) by etain.frida.mouhaha.de (Postfix) with ESMTP id 595624B923D; Fri, 26 Oct 2007 11:46:07 +0200 (CEST) X-Virus-Scanned: amavisd-new at mouhaha.de Received: from etain.frida.mouhaha.de ([85.236.48.54]) by localhost (etain.frida.mouhaha.de [85.236.48.54]) (amavisd-new, port 10024) with ESMTP id UpJbOh4QpyS1; Fri, 26 Oct 2007 11:46:06 +0200 (CEST) Received: by etain.frida.mouhaha.de (Postfix, from userid 1001) id 3CD6C4B9238; Fri, 26 Oct 2007 11:46:06 +0200 (CEST) Date: Fri, 26 Oct 2007 11:46:06 +0200 From: Oliver Peter To: Anton - Valqk Message-ID: <20071026094605.GB97703@nemesis.frida.mouhaha.de> References: <200710251438.l9PEcrwe063070@lurza.secnetix.de> <4721A5C1.9070309@lozenetz.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="xXmbgvnjoT4axfJE" Content-Disposition: inline In-Reply-To: <4721A5C1.9070309@lozenetz.org> X-Operating-System: FreeBSD 6.2-RELEASE-p8 i386 User-Agent: Mutt/1.5.16 (2007-06-09) Cc: freebsd-jail@FreeBSD.ORG, freebsd-questions@FreeBSD.ORG Subject: Re: multiple postgresql servers in multiple jails? X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Oct 2007 09:46:09 -0000 --xXmbgvnjoT4axfJE Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Oct 26, 2007 at 11:30:57AM +0300, Anton - Valqk wrote: > You can alternatively set the SEM* and SHMMAX in the loader.conf. > I have a server runing two pgs. >=20 > #> cat /boot/loader.conf > kern.ipc.semmni=3D256 > kern.ipc.semmns=3D512 > kern.ipc.semmnu=3D256 > kern.ipc.semmap=3D256 Thanks buddy. Currently I try it with 4 :) Is this a bad idea? Do you have the servers running within seperated jails? --=20 Oliver PETER, eMail: hoschi@mouhaha.de, ICQ# 113969174 "Worker bees can leave. Even drones can fly away. The Queen is their slave." --xXmbgvnjoT4axfJE Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.3 (FreeBSD) iEYEARECAAYFAkcht10ACgkQ6LH/IUVtaI8l/wCfdjAZi8skKrAiZJLV0R5+KFY9 LL4An2OQbvhMA1DWskeZiRpo29VEqDKZ =gU+t -----END PGP SIGNATURE----- --xXmbgvnjoT4axfJE--