Обсуждение: 6.5 not running on Solaris 2.5.1 SPARC
Hello:
I'm using:
uname -a:
SunOS ns2 5.5.1 Generic_103640-27 sun4u sparc SUNW,Ultra-1
Postgres compiles fine, but:
[7]ns2:/usr/local/pgsql>id
uid=65541(pgsql) gid=65536(pgsql)
[8]ns2:/usr/local/pgsql>postmaster -i
IpcMemoryCreate: shmget failed (Invalid argument) key=5432001,
size=1073152, permission=600
FATAL 1: ShmemCreate: cannot create region
truss shows:
truss postmaster -i:
[...]
open("/usr/local/pgsql/data/base/template1/pg_class", O_RDONLY) = 3
lseek(3, 0, SEEK_CUR) = 0
close(3) = 0
open("/usr/local/pgsql/data/PG_VERSION", O_RDONLY) = 3
read(3, " 6 . 5\n", 4) = 4
close(3) = 0
stat("/usr/local/pgsql/bin/postgres", 0xEFFFF948) = 0
getuid() = 65541 [65541]
open("/etc/netconfig", O_RDONLY) = 3
fstat(3, 0xEFFFF2C0) = 0
brk(0x00271CB0) = 0
brk(0x00275CB0) = 0
ioctl(3, TCGETA, 0xEFFFF24C) Err#25 ENOTTY
read(3, " #\n # T h e " N e t".., 8192) = 1064
read(3, 0x00271CBC, 8192) = 0
lseek(3, 0, SEEK_CUR) = 1064
lseek(3, 0, SEEK_SET) = 0
read(3, " #\n # T h e " N e t".., 8192) = 1064
read(3, 0x00271CBC, 8192) = 0
lseek(3, 0, SEEK_CUR) = 1064
close(3) = 0
open("/dev/tcp", O_RDWR) = 3
ioctl(3, I_PUSH, "sockmod") = 0
ioctl(3, I_STR, 0xEFFFF8C0) = 0
ioctl(3, I_SETCLTIME, 0xEFFFF974) = 0
ioctl(3, I_SWROPT, 0x00000002) = 0
sigfillset(0xEF69692C) = 0
sigprocmask(SIG_SETMASK, 0xEFFFF964, 0xEFFFF954) = 0
ioctl(3, I_STR, 0xEFFFF7D8) = 0
sigprocmask(SIG_SETMASK, 0xEFFFF954, 0xEFFFF930) = 0
sigprocmask(SIG_BLOCK, 0xEFFFF8D0, 0xEFFFF944) = 0
ioctl(3, I_STR, 0xEFFFF8D0) = 0
sigprocmask(SIG_SETMASK, 0xEFFFF944, 0x00000000) = 0
sigprocmask(SIG_BLOCK, 0xEFFFF778, 0xEFFFF7F0) = 0
ioctl(3, I_STR, 0xEFFFF778) = 0
sigprocmask(SIG_SETMASK, 0xEFFFF7F0, 0x00000000) = 0
sigprocmask(SIG_BLOCK, 0xEFFFF900, 0xEFFFF994) = 0
ioctl(3, I_STR, 0xEFFFF900) = 0
sigprocmask(SIG_SETMASK, 0xEFFFF994, 0x00000000) = 0
open("/dev/ticotsord", O_RDWR) = 4
ioctl(4, I_PUSH, "sockmod") = 0
ioctl(4, I_STR, 0xEFFFF8C0) = 0
ioctl(4, I_SETCLTIME, 0xEFFFF974) = 0
ioctl(4, I_SWROPT, 0x00000002) = 0
sigprocmask(SIG_SETMASK, 0xEFFFF964, 0xEFFFF954) = 0
ioctl(4, I_STR, 0xEFFFF7D8) = 0
sigprocmask(SIG_SETMASK, 0xEFFFF954, 0xEFFFF930) = 0
sigprocmask(SIG_BLOCK, 0xEFFFF8D0, 0xEFFFF944) = 0
ioctl(4, I_STR, 0xEFFFF8D0) = 0
sigprocmask(SIG_SETMASK, 0xEFFFF944, 0x00000000) = 0
ioctl(4, (('S'<<8)|242), 0xEFFFFA6A) = 0
stat("/tmp/.s.PGSQL.5432", 0xEFFFF804) = 0
sigprocmask(SIG_BLOCK, 0xEFFFF778, 0xEFFFF7F0) = 0
ioctl(4, I_STR, 0xEFFFF778) = 0
sigprocmask(SIG_SETMASK, 0xEFFFF7F0, 0x00000000) = 0
sigprocmask(SIG_BLOCK, 0xEFFFF900, 0xEFFFF994) = 0
ioctl(4, I_STR, 0xEFFFF900) = 0
sigprocmask(SIG_SETMASK, 0xEFFFF994, 0x00000000) = 0
chmod("/tmp/.s.PGSQL.5432", 0777) = 0
shmget(5432010, 120, 0700|IPC_CREAT) = 900
shmat(900, 0, 0) = 0xEF7A0000
shmget(5432001, 1073152, 0600|IPC_CREAT) Err#22 EINVAL
IpcMemoryCreate: shmget failed (Invalid argument) key=5432001,
size=1073152, permission=600write(2, " I p c M e m o r y C r e".., 91)
= 91
write(2, "\n", 1) = 1
FATAL 1: ShmemCreate: cannot create region
write(2, " F A T A L 1 : S h".., 44) = 44
shmdt(0xEF7A0000) = 0
shmctl(900, 10, 0) = 0
unlink("/tmp/.s.PGSQL.5432") = 0
lseek(0, 0, SEEK_CUR) = 71606
_exit(0)
Any ideas? Please answer to me because I'm not in the list.
Thanks in advance!
Fernando P. Schapachnik
Administración de la red
VIA Net Works Argentina SA
Diagonal Roque Sáenz Peña 971, 4º y 5º piso.
1035 - Capital Federal, Argentina.
(54-11) 4323-3333
http://www.via-net-works.net.ar
On Fri, 23 Jul 1999, Fernando Schapachnik wrote:
> Hello:
> I'm using:
>
> uname -a:
> SunOS ns2 5.5.1 Generic_103640-27 sun4u sparc SUNW,Ultra-1
>
> Postgres compiles fine, but:
>
> [7]ns2:/usr/local/pgsql>id
> uid=65541(pgsql) gid=65536(pgsql)
> [8]ns2:/usr/local/pgsql>postmaster -i
> IpcMemoryCreate: shmget failed (Invalid argument) key=5432001,
> size=1073152, permission=600
> FATAL 1: ShmemCreate: cannot create region
this error indicates that you have insufficient Shared Memory segments for
postmaster to start up...lookign at ipcs will give you an indicationof
what, if anything, is being used...
its possible you have insuffient configured into your kernel (see
/etc/system file), but you should be able to issue the -B option to
postmaster to reduce the number at startup...
> > truss shows:
>
> truss postmaster -i:
> [...]
> open("/usr/local/pgsql/data/base/template1/pg_class", O_RDONLY) = 3
> lseek(3, 0, SEEK_CUR) = 0
> close(3) = 0
> open("/usr/local/pgsql/data/PG_VERSION", O_RDONLY) = 3
> read(3, " 6 . 5\n", 4) = 4
> close(3) = 0
> stat("/usr/local/pgsql/bin/postgres", 0xEFFFF948) = 0
> getuid() = 65541 [65541]
> open("/etc/netconfig", O_RDONLY) = 3
> fstat(3, 0xEFFFF2C0) = 0
> brk(0x00271CB0) = 0
> brk(0x00275CB0) = 0
> ioctl(3, TCGETA, 0xEFFFF24C) Err#25 ENOTTY
> read(3, " #\n # T h e " N e t".., 8192) = 1064
> read(3, 0x00271CBC, 8192) = 0
> lseek(3, 0, SEEK_CUR) = 1064
> lseek(3, 0, SEEK_SET) = 0
> read(3, " #\n # T h e " N e t".., 8192) = 1064
> read(3, 0x00271CBC, 8192) = 0
> lseek(3, 0, SEEK_CUR) = 1064
> close(3) = 0
> open("/dev/tcp", O_RDWR) = 3
> ioctl(3, I_PUSH, "sockmod") = 0
> ioctl(3, I_STR, 0xEFFFF8C0) = 0
> ioctl(3, I_SETCLTIME, 0xEFFFF974) = 0
> ioctl(3, I_SWROPT, 0x00000002) = 0
> sigfillset(0xEF69692C) = 0
> sigprocmask(SIG_SETMASK, 0xEFFFF964, 0xEFFFF954) = 0
> ioctl(3, I_STR, 0xEFFFF7D8) = 0
> sigprocmask(SIG_SETMASK, 0xEFFFF954, 0xEFFFF930) = 0
> sigprocmask(SIG_BLOCK, 0xEFFFF8D0, 0xEFFFF944) = 0
> ioctl(3, I_STR, 0xEFFFF8D0) = 0
> sigprocmask(SIG_SETMASK, 0xEFFFF944, 0x00000000) = 0
> sigprocmask(SIG_BLOCK, 0xEFFFF778, 0xEFFFF7F0) = 0
> ioctl(3, I_STR, 0xEFFFF778) = 0
> sigprocmask(SIG_SETMASK, 0xEFFFF7F0, 0x00000000) = 0
> sigprocmask(SIG_BLOCK, 0xEFFFF900, 0xEFFFF994) = 0
> ioctl(3, I_STR, 0xEFFFF900) = 0
> sigprocmask(SIG_SETMASK, 0xEFFFF994, 0x00000000) = 0
> open("/dev/ticotsord", O_RDWR) = 4
> ioctl(4, I_PUSH, "sockmod") = 0
> ioctl(4, I_STR, 0xEFFFF8C0) = 0
> ioctl(4, I_SETCLTIME, 0xEFFFF974) = 0
> ioctl(4, I_SWROPT, 0x00000002) = 0
> sigprocmask(SIG_SETMASK, 0xEFFFF964, 0xEFFFF954) = 0
> ioctl(4, I_STR, 0xEFFFF7D8) = 0
> sigprocmask(SIG_SETMASK, 0xEFFFF954, 0xEFFFF930) = 0
> sigprocmask(SIG_BLOCK, 0xEFFFF8D0, 0xEFFFF944) = 0
> ioctl(4, I_STR, 0xEFFFF8D0) = 0
> sigprocmask(SIG_SETMASK, 0xEFFFF944, 0x00000000) = 0
> ioctl(4, (('S'<<8)|242), 0xEFFFFA6A) = 0
> stat("/tmp/.s.PGSQL.5432", 0xEFFFF804) = 0
> sigprocmask(SIG_BLOCK, 0xEFFFF778, 0xEFFFF7F0) = 0
> ioctl(4, I_STR, 0xEFFFF778) = 0
> sigprocmask(SIG_SETMASK, 0xEFFFF7F0, 0x00000000) = 0
> sigprocmask(SIG_BLOCK, 0xEFFFF900, 0xEFFFF994) = 0
> ioctl(4, I_STR, 0xEFFFF900) = 0
> sigprocmask(SIG_SETMASK, 0xEFFFF994, 0x00000000) = 0
> chmod("/tmp/.s.PGSQL.5432", 0777) = 0
> shmget(5432010, 120, 0700|IPC_CREAT) = 900
> shmat(900, 0, 0) = 0xEF7A0000
> shmget(5432001, 1073152, 0600|IPC_CREAT) Err#22 EINVAL
> IpcMemoryCreate: shmget failed (Invalid argument) key=5432001,
> size=1073152, permission=600write(2, " I p c M e m o r y C r e".., 91)
> = 91
>
> write(2, "\n", 1) = 1
> FATAL 1: ShmemCreate: cannot create region
> write(2, " F A T A L 1 : S h".., 44) = 44
> shmdt(0xEF7A0000) = 0
> shmctl(900, 10, 0) = 0
> unlink("/tmp/.s.PGSQL.5432") = 0
> lseek(0, 0, SEEK_CUR) = 71606
> _exit(0)
>
>
> Any ideas? Please answer to me because I'm not in the list.
>
> Thanks in advance!
>
>
>
> Fernando P. Schapachnik
> Administraci�n de la red
> VIA Net Works Argentina SA
> Diagonal Roque S�enz Pe�a 971, 4� y 5� piso.
> 1035 - Capital Federal, Argentina.
> (54-11) 4323-3333
> http://www.via-net-works.net.ar
>
Marc G. Fournier ICQ#7615664 IRC Nick: Scrappy
Systems Administrator @ hub.org
primary: scrappy@hub.org secondary: scrappy@{freebsd|postgresql}.org
Ok, thanks. For the record: postmaster -i -B 16 -N 8 solved the problems. Kind regards! En un mensaje anterior, The Hermit Hacker escribió: [Charset X-UNKNOWN unsupported, skipping...] Fernando P. Schapachnik Administración de la red VIA Net Works Argentina SA Diagonal Roque Sáenz Peña 971, 4º y 5º piso. 1035 - Capital Federal, Argentina. (54-11) 4323-3333 http://www.via-net-works.net.ar