Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Jun 2002 09:27:42 -0700
From:      Joseph Maxwell <jemaxwell@jaymax.com>
To:        questions@FreeBSD.ORG
Subject:   Problems w/ Semaphore - I'm in 'jail'
Message-ID:  <3D10B0FD.F0B7F4A5@jaymax.com>

next in thread | raw e-mail | index | archive | help

--------------BDD3560F58A3DEFFF09E0A18
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hello,
Hope there are users in this group w/ PostgreSQL familiarity and this
BSD interaction
I am setting up postgreSQL and have ran into a problem related to either

kernel config or operating within 'the jail'.

Some interactions w/ the postgresql user groups ==>

Systems:  PostgreSQL version 7.2.1, with all default settings on a
  BSD platform  ,4.5-RELEASE FreeBSD.


       hostname# initdb -D /usr/local/pgsql/data
        The files belonging to this database system will be owned
     by user "postgres".
        This user must also own the server process.

        Fixing permissions on existing directory
     /usr/local/pgsql/data... ok
        creating directory /usr/local/pgsql/data/base... ok
        creating directory /usr/local/pgsql/data/global... ok
        creating directory /usr/local/pgsql/data/pg_xlog... ok
        creating directory /usr/local/pgsql/data/pg_clog... ok
        creating template1 database in
     /usr/local/pgsql/data/base/1...
        IpcSemaphoreCreate: semget(key=1, num=17, 03600) failed:
     Function not implemented

        initdb failed.


   Any ideas on the semget() function, remembered reading on it
somewhere before but
   can't remember where
   I hope this does not call for a kernel rebuild
   I did an ipcs -s which ===>


            hostname# ipcs -s
            Semaphores:
            T     ID     KEY        MODE       OWNER    GROUP

           hostname#


   Any insight on this type of problem?

Response ===>
  Hmm, usually this means either the kernel's not configured for SYSV
ipc
  or that you're running in a jail and the sysctl to let the jail use
  sysv ipc is not turned on.


Is this a plausible explanation, & if it is that  the kernel's not
configured for SYSV ipc
or that I am running in a jail how can the sysctl be turned on to allow
the jail to use sysv ipc?

 Thanks

I've spoken w/ my ISP, Tech. support personnel not quite familiar w/
problem but promised to investigate.
Any other experienced opinions welcomed ...

---   Joe   ---




--------------BDD3560F58A3DEFFF09E0A18
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Hello,
<br>Hope there are users in this group w/ PostgreSQL familiarity and this
BSD interaction
<br>I am setting up postgreSQL and have ran into a problem related to either
<br>kernel config or operating within 'the jail'.
<p>Some interactions w/ the postgresql user groups ==>
<p>Systems:&nbsp; PostgreSQL version 7.2.1, with all default settings on
a
<br>&nbsp; BSD platform&nbsp; ,4.5-RELEASE FreeBSD.
<br>&nbsp;
<blockquote>&nbsp; hostname# initdb -D /usr/local/pgsql/data
<br>&nbsp;&nbsp; The files belonging to this database system will be owned
by user "postgres".
<br>&nbsp;&nbsp; This user must also own the server process.
<p>&nbsp;&nbsp; Fixing permissions on existing directory /usr/local/pgsql/data...
ok
<br>&nbsp;&nbsp; creating directory /usr/local/pgsql/data/base... ok
<br>&nbsp;&nbsp; creating directory /usr/local/pgsql/data/global... ok
<br>&nbsp;&nbsp; creating directory /usr/local/pgsql/data/pg_xlog... ok
<br>&nbsp;&nbsp; creating directory /usr/local/pgsql/data/pg_clog... ok
<br>&nbsp;&nbsp; creating template1 database in /usr/local/pgsql/data/base/1...
<br>&nbsp;&nbsp; IpcSemaphoreCreate: semget(key=1, num=17, 03600) failed:
Function not implemented
<p>&nbsp;&nbsp; initdb failed.
<br>&nbsp;</blockquote>
&nbsp;&nbsp; Any ideas on the semget() function, remembered reading on
it somewhere before but
<br>&nbsp;&nbsp; can't remember where
<br>&nbsp;&nbsp; I hope this does not call for a kernel rebuild
<br>&nbsp;&nbsp; I did an ipcs -s which ===>
<br>&nbsp;
<blockquote>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; hostname# ipcs -s
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Semaphores:
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; T&nbsp;&nbsp;&nbsp;&nbsp; ID&nbsp;&nbsp;&nbsp;&nbsp;
KEY&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MODE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
OWNER&nbsp;&nbsp;&nbsp; GROUP
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; hostname#
<br>&nbsp;</blockquote>
&nbsp;&nbsp; Any insight on this type of problem?
<p>Response ===>
<br>&nbsp; <b>Hmm, usually this means either the kernel's not configured
for SYSV ipc</b>
<br><b>&nbsp; or that you're running in a jail and the sysctl to let the
jail use</b>
<br><b>&nbsp; sysv ipc is not turned on.</b>
<br>&nbsp;
<p>Is this a plausible explanation, &amp; if it is that&nbsp; the kernel's
not configured for SYSV ipc
<br>or that I am running in a jail how can the sysctl be turned on to allow
the jail to use sysv ipc?
<p>&nbsp;Thanks
<p>I've spoken w/ my ISP, Tech. support personnel not quite familiar w/
problem but promised to investigate.
<br>Any other experienced opinions welcomed ...
<p>---&nbsp;&nbsp; Joe&nbsp;&nbsp; ---
<br>&nbsp;
<br>&nbsp;
<br>&nbsp;</html>

--------------BDD3560F58A3DEFFF09E0A18--


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3D10B0FD.F0B7F4A5>