From owner-freebsd-stable@FreeBSD.ORG Tue Apr 26 14:58:31 2005 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8261516A4CE for ; Tue, 26 Apr 2005 14:58:31 +0000 (GMT) Received: from main.eurocom.od.ua (ns2.EuroCom.Od.UA [212.15.128.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id 76E4243D53 for ; Tue, 26 Apr 2005 14:58:30 +0000 (GMT) (envelope-from boot@eurocom.od.ua) Received: from localhost (localhost [127.0.0.1]) by main.eurocom.od.ua (Postfix) with ESMTP id 5535E1C9C0B for ; Tue, 26 Apr 2005 17:58:27 +0300 (EEST) Received: from main.eurocom.od.ua ([127.0.0.1]) by localhost (main [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 19977-10 for ; Tue, 26 Apr 2005 17:58:26 +0300 (EEST) Received: from [212.15.128.37] (bm0.eurocom.od.ua [212.15.128.14]) by main.eurocom.od.ua (Postfix) with ESMTP id C106A1C9C05 for ; Tue, 26 Apr 2005 17:58:26 +0300 (EEST) Message-ID: <426E5713.3010906@eurocom.od.ua> Date: Tue, 26 Apr 2005 17:58:27 +0300 From: Alexander Rusinov User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.6) Gecko/20050404 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-stable@freebsd.org Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at eurocom.od.ua Subject: PostgreSQL in FreeBSD jails X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Apr 2005 14:58:31 -0000 Hi, I need to run a number of PostgreSQL servers in different FreeBSD jails. I managed to run a first instance of PostgreSQL server in a jail, but after I launch a new server in another jail the first one starts to return an error messages like the following: semctl(1507328, 4, SETVAL, 0) failed: Invalid argument The problem in general is: only one instance of PostgreSQL server processes clients' connections, all of the others return semctl errors. The system is FreeBSD 5.4-PRERELEASE. PostgreSQL-7.4.7. SEM and SHM sysctl setting are: # sysctl -a | grep shm kern.ipc.shmmax: 100000000 kern.ipc.shmmin: 1 kern.ipc.shmmni: 192 kern.ipc.shmseg: 128 kern.ipc.shmall: 32768 kern.ipc.shm_use_phys: 0 kern.ipc.shm_allow_removed: 0 # sysctl -a | grep sem kern.ipc.semmap: 256 kern.ipc.semmni: 256 kern.ipc.semmns: 512 kern.ipc.semmnu: 256 kern.ipc.semmsl: 60 kern.ipc.semopm: 100 kern.ipc.semume: 10 kern.ipc.semusz: 92 kern.ipc.semvmx: 32767 kern.ipc.semaem: 16384 Trying to solve the problem I've set the following in postgresql.conf files: max_connections = 5 shared_buffers = 100 Please help! What am I doing wrong? -- Alexander Rusinov