PostgreSQL 7.4.5-1 błąd IpcMemoryCreate
Dariusz Knociński
dknoto w wiml.waw.pl
Czw, 28 Paź 2004, 11:10:28 CEST
Witam,
Kilka dni temu uaktualniłem system ale dopiero wczoraj uruchomiłem
PostgreSQL 7.4.5 i natknąłęm się na ciekawą niespodziankę.
Pg_ctl uruchamia serwer i informuje skrypt stratowy, że wszystko jest OK ale
serwer nie startuje. Ręczne uruchomienie postmastera daje następujący efekt:
[postgres w fragles2 ~]$ postmaster -d 5 -D /home/pgsql/
[6159] DEBUG: postmaster: PostmasterMain: initial environ dump:
[6159] DEBUG: -----------------------------------------
[6159] DEBUG: _=/usr/bin/postmaster
[6159] DEBUG: PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin:/home/pgsql/bin
[6159] DEBUG: HISTFILE=/home/pgsql/.history
[6159] DEBUG: SHELL=/bin/sh
[6159] DEBUG: HOSTNAME=fragles2
[6159] DEBUG: USER=postgres
[6159] DEBUG: TERM=xterm-color
[6159] DEBUG: LANG=pl_PL
[6159] DEBUG: LS_COLORS=no=00:fi=00:di=01;34:ln=01;36:pi=33:so=01;35:bd=01;33:cd=01;33:or=01;05;37;41:mi=01;05;37;41:ex=32:*.sh=01;32:*.csh=01;32:*.bat=01;32:*.btm=01;32:*.cmd=01;32:*.com=01;32:*.exe=01;32:*.arj=01;31:*.bz=01;31:*.bz2=01;31:*.cpio=01;31:*.deb=01;31:*.gz=01;31:*.img=01;31:*.lha=01;31:*.lzh=01;31:*.rar=01;31:*.rpm=01;31:*.tar=01;31:*.taz=01;31:*.tgz=01;31:*.tpz=01;31:*.trpm=01;31:*.tz=01;31:*.z=01;31:*.Z=01;31:*.zip=01;31:*.zoo=01;31:*.bmp=01;35:*.cdr=01;35:*.gif=01;35:*.jpeg=01;35:*.jpg=01;35:*.mng=01;35:*.pbm=01;35:*.pcx=01;35:*.pgm=01;35:*.png=01;35:*.ppm=01;35:*.tga=01;35:*.tif=01;35:*.tiff=01;35:*.xbm=01;35:*.xcf=01;35:*.xpm=01;35:*.asf=01;37:*.asx=01;37:*.au=01;37:*.avi=01;37:*.m1v=01;37:*.mid=01;37:*.mp3=01;37:*.mp4=01;37:*.mpg=01;37:*.mpe=01;37:*.mpeg=01;37:*.mod=01;37:*.mov=01;37:*.ogg=01;37:*.qt=01;37:*.rm=01;37:*.ram=01;37:*.s3m=01;37:*.vob=01;37:*.voc=01;37:*.wav=01;37:*.wma=01;37:*.wmv=01;37:*.xm=01;37:*.abw=36:*.css=36:*.doc=36:*.dot=36:*.dvi=36:*.eps=36:*.htm=36:*.html=36:*.info=36:*.kpr=36:*.me=36:*.ms=36:*.ps=36:*.pdf=36:*.pps=36:*.ppt=36:*.rtf=36:*.sxc=36:*.sxw=36:*.tex=36:*.texi=36:*.texinfo=36:*.txt=36:*.wri=36:*.xls=36:*.xlw=36:*.ac=01;33:*.am=01;33:*.c=01;33:*.cc=01;33:*.cpp=01;33:*.diff=01;33:*.f=01;33:*.h=01;33:*.in=01;33:*.o=01;33:*.patch=01;33:*.po=01;33:*.pot=01;33:*.s=01;33:*.spec=01;33:
[6159] DEBUG: LOGNAME=postgres
[6159] DEBUG: PS1=[${LOGNAME-$USER}@${HOSTNAME} `
if [ "$PWD" = "$HOME" ]; then
echo "~";
elif [ "$PWD" = "/${PWD##*/}" ]; then
echo $PWD;
else
echo ${PWD##*/};
fi`]$
[6159] DEBUG: HISTFILESIZE=1000
[6159] DEBUG: HOME=/home/pgsql
[6159] DEBUG: DISPLAY=:0.0
[6159] DEBUG: HISTSIZE=1000
[6159] DEBUG: LESSOPEN=|lesspipe.sh %s
[6159] DEBUG: QTDIR=/usr
[6159] DEBUG: PS2=>
[6159] DEBUG: -----------------------------------------
[6159] DEBUG: searching PATH for executable
[6159] DEBUG: could not stat "/bin/postgres": Nie ma takiego pliku ani katalogu
[6159] DEBUG: found "/usr/bin/postgres" using PATH
[6159] DEBUG: invoking IpcMemoryCreate(size=10436608)
Memory fault
A w pamięci zostają przedzielone semafory i pamięć dzielona:
[postgres w fragles2 ~]$ ipcs
------ Shared Memory Segments --------
key shmid owner perms bytes nattch status
0x00000000 196613 dknoto 777 393216 2 dest
0x0052e2c1 6291462 postgres 600 10436608 0
------ Semaphore Arrays --------
key semid owner perms nsems
0x0052e2c1 1376256 postgres 600 17
0x0052e2c2 1409025 postgres 600 17
0x0052e2c3 1441794 postgres 600 17
0x0052e2c4 1474563 postgres 600 17
0x0052e2c5 1507332 postgres 600 17
0x0052e2c6 1540101 postgres 600 17
0x0052e2c7 1572870 postgres 600 17
------ Message Queues --------
key msqid owner perms used-bytes messages
Mam zainstalowane następujące wersje jądra i libc:
kernel-2.6.8-2
glibc-2.3.4-0.20040722.6
Mile widziane sugestie jak się z tym uporać :)
Pozdrawiam
DKnoto.
Więcej informacji o liście dyskusyjnej pld-users-pl