Ask a Question related to PostgreSQL / PGSQL, Design and Development.
-
Miles Keaton #1
could not create semaphores : No space left on device = FreeBSD port install error!
I'm posting this here for search-engine's sake, so future people
having this same problem can find the solution here.
After installing PostgreSQL from FreeBSD's ports, and running su -
pgsql -c initdb for the first time, I got this common error:
could not create semaphores : No space left on device
This page: [url]http://www.postgresql.org/docs/current/static/postmaster-start.html[/url]
.... and many others tell you to recompile your kernel with different
System V semaphores limits.
I knew this couldn't be it, because I had installed PostgreSQL
successfully on many FreeBSD laptops and desktops.
I tried uninstalling and re-installing. No luck. Same error when
running initdb.
Then I went into "top" and made sure to entirely kill all active
postgresql processes.
Then I ran initdb again and everything was fine.
So --- I think if you install PostgreSQL from FreeBSD ports, and start
the server, and THEN run initdb, it will give you this error.
If you make sure that ALL PostgreSQL processes are stopped (see ps aux
or top) -- then it should work fine.
---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
joining column's datatypes do not match
Miles Keaton Guest
-
"no space left on device" when there's plenty?
2006-10-17 15:39:23 28821 (e)2601163 Failed to record /opt/ma ... -
can perl write to a usb port com3 device??
I've looked at the #13: "Controlling Modems with Win32::SerialPort". article in the Perl Journal... will it handle USB port com devices? it... -
can't open dbm file - no space left on device
this is a long shot, but I read today about false 'no space left' errors occuring due to chmod settings being 777 on the directories. I don't... -
No space left on device
On Mon, Jul 14, 2003 at 12:51:55PM -0400, Salman Haq wrote: I recommend you use one huge / partition. This way you won't run into this type of... -
Shared memory and semaphores - semop() error
Hi, I'm using HP-UX 11.11 and running an application developed in Microfocus Cobol 4.x and C. When the application is trying to initialise shared... -
Tom Lane #2
Re: could not create semaphores : No space left on device = FreeBSD port install error!
Miles Keaton <mileskeaton@gmail.com> writes:
What this says is that you're running PG with settings that use up more> So --- I think if you install PostgreSQL from FreeBSD ports, and start
> the server, and THEN run initdb, it will give you this error.
than half of the kernel's default limit on the number of semaphores.
So you can't start two postmasters concurrently.
regards, tom lane
---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to [email]majordomo@postgresql.org[/email] so that your
message can get through to the mailing list cleanly
Tom Lane Guest



Reply With Quote

