Hi all,
I upgraded from FreeBSD 9.1-RELEASE-p7 to 9.2-RC-4 from source.
I used PostgreSQL 9.2 in a jail and it ran just fine. After the upgrade the database server stopped. I upgraded to PostgreSQL 9.3 but still no positive result. I downgraded to PostgreSQL 9.2 with new initialization but still on the same position.
The error from /var/log/messages is:
As stated in the PostgreSQL documentation the following parameters can be set up:
and
My parameters are:
but
FreeBSD 9.1-RELEASE-p7 returns the same result but the database works.
The next parameters are:
Initializing the database server with
Can you help me with this, please?
I upgraded from FreeBSD 9.1-RELEASE-p7 to 9.2-RC-4 from source.
# uname -v
Code:
FreeBSD 9.2-RC4 #0 r255732: Fri Sep 20 22:26:06 EEST 2013 root@:/usr/obj/usr/src/sys/GENERIC
I used PostgreSQL 9.2 in a jail and it ran just fine. After the upgrade the database server stopped. I upgraded to PostgreSQL 9.3 but still no positive result. I downgraded to PostgreSQL 9.2 with new initialization but still on the same position.
The error from /var/log/messages is:
Code:
Sep 21 19:48:44 db postgres[4708]: [1-1] FATAL: could not create shared memory segment: Function not implemented
Sep 21 19:48:44 db postgres[4708]: [1-2] DETAIL: Failed system call was shmget(key=1, size=40, 03600).
As stated in the PostgreSQL documentation the following parameters can be set up:
Code:
kern.ipc.shmall=32768
kern.ipc.shmmax=134217728
kern.ipc.semmap=256
Code:
kern.ipc.semmni=256
kern.ipc.semmns=512
kern.ipc.semmnu=256
My parameters are:
Code:
kern.ipc.shmall: 131072
kern.ipc.shmmax: 536870912
# sysctl kern.ipc.semmap
returns:
Code:
sysctl: unknown oid 'kern.ipc.semmap'
The next parameters are:
Code:
kern.ipc.semmni=256
kern.ipc.semmns=512
kern.ipc.semmnu=256
Initializing the database server with
# /usr/local/etc/rc.d/postgresql initdb
returns:
Code:
The files belonging to this database system will be owned by user "pgsql".
This user must also own the server process.
The database cluster will be initialized with locales
COLLATE: C
CTYPE: en_US.UTF-8
MESSAGES: en_US.UTF-8
MONETARY: en_US.UTF-8
NUMERIC: en_US.UTF-8
TIME: en_US.UTF-8
The default text search configuration will be set to "english".
creating directory /usr/local/pgsql/data ... ok
creating subdirectories ... ok
selecting default max_connections ... 10
selecting default shared_buffers ... 400kB
creating configuration files ... ok
creating template1 database in /usr/local/pgsql/data/base/1 ... FATAL: could not create shared memory segment: Function not implemented
DETAIL: Failed system call was shmget(key=1, size=2088960, 03600).
child process exited with exit code 1
initdb: removing data directory "/usr/local/pgsql/data"
root@db:/root #
Can you help me with this, please?