Re: Fail to start Postgres on Ubuntu kernel 2.6.28-15-generic

From: Richard Huxton <dev(at)archonet(dot)com>
To: Markus Pscheidt <markus(dot)pscheidt(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Fail to start Postgres on Ubuntu kernel 2.6.28-15-generic
Date: 2009-09-08 09:16:53
Message-ID: 4AA62105.9070105@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Markus Pscheidt wrote:
> Hello,
>
> while on Ubuntu kernel 2.6.28-14-generic Postgres 8.3.7-1 works fine, it
> doesn't start on Ubuntu 9.04, kernel 2.6.28-15-generic. Following is the log
> output of 'sudo /etc/init.d/postgresql-8.3 start':

> 2009-09-08 08:17:52 CAT FATAL: could not create shared memory segment:
> Invalid argument

> parameter. You can either reduce the request size or reconfigure the kernel
> with larger SHMMAX. To reduce the request size (currently 38207488 bytes),
> reduce PostgreSQL's shared_buffers parameter (currently 4096) and/or its
> max_connections parameter (currently 103).

Your new kernel seems to have a smaller setting for its shared memory
limits than your old kernel. Or perhaps something else is using more of
it. See the manuals for details on how to set a higher limit in
/etc/sysctl.conf and see if that does it.

--
Richard Huxton
Archonet Ltd

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Filip Rembiałkowski 2009-09-08 09:18:17 Re: Fail to start Postgres on Ubuntu kernel 2.6.28-15-generic
Previous Message Jasen Betts 2009-09-08 08:52:23 Re: How to store data on an external drive