[Pgsql-ayuda] problema con el clog

Jesus Rio jesusrioalvarez@wanadoo.es
Sun, 22 Sep 2002 17:26:31 +0200


This is a multi-part message in MIME format.

------=_NextPart_000_0014_01C2625D.3115FB80
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

hola a todos, tengo una aplicacion web con postgresql 7.2 sobre mandrake =
2.4.8 donde uso transacciones.=20

A menudo se cae el postmaster y no puedo volver a arrancarlo, teniendo =
que volver a iniciar los directorios de la base de datos (initdb).=20

Creo que tengo algun problema con el "clog".=20
En concreto en mi fichero de log aparece lo siguiente:
...
FATAL 2:  write of clog file 0, offset 73728 failed: No queda espacio en =
el dispositivo
DEBUG:  server process (pid 18852) exited with exit code 2
DEBUG:  terminating any other active server processes
DEBUG:  all server processes terminated; reinitializing shared memory =
and semaphores
DEBUG:  database system was interrupted at 2002-09-20 11:26:06 CEST
DEBUG:  checkpoint record is at 0/3B50D58
DEBUG:  redo record is at 0/3B50D58; undo record is at 0/0; shutdown =
TRUE
DEBUG:  next transaction id: 294849; next oid: 46597
DEBUG:  database system was not properly shut down; automatic recovery =
in progress
DEBUG:  redo starts at 0/3B50D98
...

Tambien os muestro un ls de mis directorios pg_clog y pg_xlog:
bash-2.05$ ls pg_clog/ -l
total 8
-rw-------    1 postgres postgres     73728 sep 22 14:26 0000

bash-2.05$ ls pg_xlog/ -l
total 16404
-rw-------    1 postgres postgres 16777216 sep 22 14:26 0000000000000000


Alguien puede darme una idea de que es lo que me pasa?
Creo que no es problema de disco, porque tengo bastante espacio libre.=20

Puede ser alg=FAn problema con la cuota de disco del usuario postgres?

Que es exactamente el clog? Se que est=E1 relacionado con el tema de las =
transacciones pero no lo tengo demasiado claro. Y el xlog?

Tambi=E9n tengo problemas con el operativo. Puede ser que al caerse la =
m=E1quina(me sucede de vez en cuando) los ficheros de la base de datos =
queden corrompidos o en un estado inconsistente y por eso no puedo =
volver a arrancar el postmaster?

Muchisimas gracias de antemano.
Chus.


------=_NextPart_000_0014_01C2625D.3115FB80
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2600.0" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>hola a todos, tengo una aplicacion web =
con=20
postgresql 7.2 sobre mandrake 2.4.8 donde uso =
transacciones.&nbsp;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>A menudo se cae el postmaster y no =
puedo volver a=20
arrancarlo, teniendo que volver a iniciar los directorios de la base de =
datos=20
(initdb). </FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Creo que tengo algun problema con el =
"clog".=20
</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>En concreto en mi fichero de log =
aparece lo=20
siguiente:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>...</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>FATAL 2:&nbsp; write of clog file 0, =
offset 73728=20
failed: No queda espacio en el dispositivo<BR>DEBUG:&nbsp; server =
process (pid=20
18852) exited with exit code 2<BR>DEBUG:&nbsp; terminating any other =
active=20
server processes<BR>DEBUG:&nbsp; all server processes terminated; =
reinitializing=20
shared memory and semaphores<BR>DEBUG:&nbsp; database system was =
interrupted at=20
2002-09-20 11:26:06 CEST<BR>DEBUG:&nbsp; checkpoint record is at=20
0/3B50D58<BR>DEBUG:&nbsp; redo record is at 0/3B50D58; undo record is at =
0/0;=20
shutdown TRUE<BR>DEBUG:&nbsp; next transaction id: 294849; next oid:=20
46597<BR>DEBUG:&nbsp; database system was not properly shut down; =
automatic=20
recovery in progress<BR>DEBUG:&nbsp; redo starts at =
0/3B50D98</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>...</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Tambien os muestro un ls de mis =
directorios pg_clog=20
y pg_xlog:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>bash-2.05$ ls pg_clog/ -l<BR>total=20
8<BR>-rw-------&nbsp;&nbsp;&nbsp; 1 postgres =
postgres&nbsp;&nbsp;&nbsp;&nbsp;=20
73728 sep 22 14:26 0000</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>bash-2.05$ ls pg_xlog/ -l<BR>total=20
16404<BR>-rw-------&nbsp;&nbsp;&nbsp; 1 postgres postgres 16777216 sep =
22 14:26=20
0000000000000000</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Alguien puede darme una idea de que es =
lo que me=20
pasa?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Creo que no es problema de disco, =
porque tengo=20
bastante espacio libre. </FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Puede ser alg=FAn problema con la cuota =
de disco del=20
usuario postgres?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Que es exactamente el clog? Se que =
est=E1 relacionado=20
con el tema de las transacciones pero no lo tengo demasiado claro. Y el=20
xlog?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Tambi=E9n tengo problemas con el =
operativo. Puede ser=20
que al caerse la m=E1quina(me sucede de vez en cuando) los ficheros de =
la base de=20
datos queden corrompidos o en un estado inconsistente y por eso no puedo =
volver=20
a arrancar el postmaster?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Muchisimas gracias de =
antemano.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Chus.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV></BODY></HTML>

------=_NextPart_000_0014_01C2625D.3115FB80--