Обсуждение: 6.4.2 install on sparc solaris 2.6

Поиск
Список
Период
Сортировка

6.4.2 install on sparc solaris 2.6

От
Lauri Posti
Дата:
Hi!

I'm trying to install pg6.4.2 on Sparc Soalris 2.6 with no success.
(6.4.2 because python interface to LO doesn't work in 6.5).

6.4.2 compliles fine [with gcc version egcs-2.91.66 19990314 (egcs-1.1.2
release)]. initdb runs ok, but pstmaster -i :

$postmaster -i
IpcMemoryCreate: shmget failed (Invalid argument) key=5432010, size=24588,
permission=700
IpcMemoryIdGet: shmget failed (Invalid argument) key=5432010, size=24588,
permission=0
IpcMemoryAttach: shmat failed (Invalid argument) id=-2
FATAL 1:  AttachSLockMemory: could not attach segment


any ideas?


Lauri Posti


Re: [GENERAL] 6.4.2 install on sparc solaris 2.6

От
Herouth Maoz
Дата:
At 22:38 +0300 on 20/06/1999, Lauri Posti wrote:


> I'm trying to install pg6.4.2 on Sparc Soalris 2.6 with no success.
> (6.4.2 because python interface to LO doesn't work in 6.5).
>
> 6.4.2 compliles fine [with gcc version egcs-2.91.66 19990314 (egcs-1.1.2
> release)]. initdb runs ok, but pstmaster -i :
>
> $postmaster -i
> IpcMemoryCreate: shmget failed (Invalid argument) key=5432010, size=24588,
> permission=700
> IpcMemoryIdGet: shmget failed (Invalid argument) key=5432010, size=24588,
> permission=0
> IpcMemoryAttach: shmat failed (Invalid argument) id=-2
> FATAL 1:  AttachSLockMemory: could not attach segment

Perhaps your kernel is configured differently than ours, but we have
compiled and are running 6.4.2 on Solaris 2.6 (Sparc) without a hitch. So,
either there is not enough shared memory in your kernel, or it's something
to do with the compiler - we used the commercial Sun c compiler.

Herouth

--
Herouth Maoz, Internet developer.
Open University of Israel - Telem project
http://telem.openu.ac.il/~herutma



Re: [GENERAL] 6.4.2 install on sparc solaris 2.6

От
Grigory Kljuchnikov
Дата:
On Mon, 21 Jun 1999, Herouth Maoz wrote:

> At 22:38 +0300 on 20/06/1999, Lauri Posti wrote:
>
>
> > I'm trying to install pg6.4.2 on Sparc Soalris 2.6 with no success.
> > (6.4.2 because python interface to LO doesn't work in 6.5).
> >
> > 6.4.2 compliles fine [with gcc version egcs-2.91.66 19990314 (egcs-1.1.2
> > release)]. initdb runs ok, but pstmaster -i :
> >
> > $postmaster -i
> > IpcMemoryCreate: shmget failed (Invalid argument) key=5432010, size=24588,
> > permission=700
> > IpcMemoryIdGet: shmget failed (Invalid argument) key=5432010, size=24588,
> > permission=0
> > IpcMemoryAttach: shmat failed (Invalid argument) id=-2
> > FATAL 1:  AttachSLockMemory: could not attach segment
>
> Perhaps your kernel is configured differently than ours, but we have
> compiled and are running 6.4.2 on Solaris 2.6 (Sparc) without a hitch. So,
> either there is not enough shared memory in your kernel, or it's something
> to do with the compiler - we used the commercial Sun c compiler.
>

I install postgres 6.4.2 on Sparc Soalris 2.6 with no problem. I complile
it with gcc version 2.7.2.3. But I have same error messages when I try
postgres 6.5. I think there is not enough memory, not compiler
problem. I'm tring to find the reason of these messages now :)


Grigory Kljuchnikov,
Institute for System Programming Russian Academy of Sciences,
109004, Moscow, Russia, B.Kommunistitcheskay, 25,
phone(work):   +7-095-9125659
fax:           +7-095-9121524
e-mail:        <grn@ispras.ru>


Re: [GENERAL] 6.4.2 install on sparc solaris 2.6

От
Aaron Holtz
Дата:
Put this at the bottom of  /etc/system and then reboot:

set semsys:seminfo_semmap=64
set semsys:seminfo_semmni=4096
set semsys:seminfo_semmns=4096
set semsys:seminfo_semmnu=4096
set semsys:seminfo_semume=64
set semsys:seminfo_semmsl=100
set shmsys:shminfo_shmmax=268435456
set shmsys:shminfo_shmmin=100
set shmsys:shminfo_shmmni=100
set shmsys:shminfo_shmseg=100


This should create the shared memory segments you need to run with the -B
option.

--------------------------------------------------------------------------
Aaron Holtz
ComNet Inc.
UNIX Systems Specialist
Email:  aholtz@bright.net
"It's not broken, it just lacks duct tape."
--------------------------------------------------------------------------


On Mon, 21 Jun 1999, Herouth Maoz wrote:

>At 22:38 +0300 on 20/06/1999, Lauri Posti wrote:
>
>
>> I'm trying to install pg6.4.2 on Sparc Soalris 2.6 with no success.
>> (6.4.2 because python interface to LO doesn't work in 6.5).
>>
>> 6.4.2 compliles fine [with gcc version egcs-2.91.66 19990314 (egcs-1.1.2
>> release)]. initdb runs ok, but pstmaster -i :
>>
>> $postmaster -i
>> IpcMemoryCreate: shmget failed (Invalid argument) key=5432010, size=24588,
>> permission=700
>> IpcMemoryIdGet: shmget failed (Invalid argument) key=5432010, size=24588,
>> permission=0
>> IpcMemoryAttach: shmat failed (Invalid argument) id=-2
>> FATAL 1:  AttachSLockMemory: could not attach segment
>
>Perhaps your kernel is configured differently than ours, but we have
>compiled and are running 6.4.2 on Solaris 2.6 (Sparc) without a hitch. So,
>either there is not enough shared memory in your kernel, or it's something
>to do with the compiler - we used the commercial Sun c compiler.
>
>Herouth
>
>--
>Herouth Maoz, Internet developer.
>Open University of Israel - Telem project
>http://telem.openu.ac.il/~herutma
>
>
>


Re: [GENERAL] 6.4.2 install on sparc solaris 2.6

От
Grigory Kljuchnikov
Дата:
On Mon, 21 Jun 1999, Herouth Maoz wrote:

> At 22:38 +0300 on 20/06/1999, Lauri Posti wrote:
>
>
> > I'm trying to install pg6.4.2 on Sparc Soalris 2.6 with no success.
> > (6.4.2 because python interface to LO doesn't work in 6.5).
> >
> > 6.4.2 compliles fine [with gcc version egcs-2.91.66 19990314 (egcs-1.1.2
> > release)]. initdb runs ok, but pstmaster -i :
> >
> > $postmaster -i
> > IpcMemoryCreate: shmget failed (Invalid argument) key=5432010, size=24588,
> > permission=700
> > IpcMemoryIdGet: shmget failed (Invalid argument) key=5432010, size=24588,
> > permission=0
> > IpcMemoryAttach: shmat failed (Invalid argument) id=-2
> > FATAL 1:  AttachSLockMemory: could not attach segment
>
> Perhaps your kernel is configured differently than ours, but we have
> compiled and are running 6.4.2 on Solaris 2.6 (Sparc) without a hitch. So,
> either there is not enough shared memory in your kernel, or it's something
> to do with the compiler - we used the commercial Sun c compiler.
>

Hi!

I resolved this problem. I have PostgreSQL 6.5.0 on sparc-sun-solaris2.6,
compiled by gcc 2.7.2.3. When I started postmaster -i, I had same error
messages.

You need to tune system parameter (shmsys) of kernel in /etc/system.

I add into /etc/system:

set shmsys:shminfo_shmmax=268435456
set shmsys:shminfo_shmmin=10
set shmsys:shminfo_shmmni=200
set shmsys:shminfo_shmseg=200
set semsys:seminfo_semmap=250
set semsys:seminfo_semmni=500
set semsys:seminfo_semmns=500
set semsys:seminfo_semmsl=500
set semsys:seminfo_semmnu=500
set semsys:seminfo_semume=100

then

# reboot -- -r

and

% sysdef

...

*
* IPC Shared Memory
*
 268435456      max shared memory segment size (SHMMAX)
    10  min shared memory segment size (SHMMIN)
   200  shared memory identifiers (SHMMNI)
   200  max attached shm segments per process (SHMSEG)
*

...

Now I start postmaster -i and it run ok.


Grigory Kljuchnikov,
Institute for System Programming Russian Academy of Sciences,
109004, Moscow, Russia, B.Kommunistitcheskay, 25,
phone(work):   +7-095-9125659
fax:           +7-095-9121524
e-mail:        <grn@ispras.ru>