Unix Technical Forum

fdatasync failed, I/O error

This is a discussion on fdatasync failed, I/O error within the pgsql Hackers forums, part of the PostgreSQL category; --> Our customer is running Postgresql v. 7.3.4 on Linux(Redhat 3.0 Ent.) The application crashed and I am trying to ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Hackers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-11-2008, 05:10 AM
Brusser, Michael
 
Posts: n/a
Default fdatasync failed, I/O error


Our customer is running Postgresql v. 7.3.4 on Linux(Redhat 3.0 Ent.)
The application crashed and I am trying to understand what could have caused
this kind of problems:

fdatasync of log file 0, segment 2 failed: input/output error
PGSTAT: Error closing temp stats file
.../.../postgresql/global/pgstat.tmp.10278: Input/output error

I suppose they could be using NFS (I know, I know... we have to deal with
that. But could it be something else? A bad disk?)

Thank you,
Mike

================================================== ====================

From the database log:
-------------------------
.... ... ... ...
2005-06-01 11:55:25 PANIC: fdatasync of log file 0, segment 2 failed:
input/output error
2005-06-01 11:55:25 LOG: server process (pid 16178) was terminated by
signal 6
2005-06-01 11:55:25 WARNING: Message from PostgreSQL backend:
The Postmaster has informed me that some other backend
died abnormally and possibly corrupted shared memory.
I have rolled back the current transaction and am
going to terminate your database system connection and exit.
Please reconnect to the database system and repeat your query.
2005-06-01 11:55:25 WARNING: Message from PostgreSQL backend:
The Postmaster has informed me that some other backend
died abnormally and possibly corrupted shared memory.
I have rolled back the current transaction and am
going to terminate your database system connection and exit.
Please reconnect to the database system and repeat your query.
2005-06-01 11:55:25 WARNING: Message from PostgreSQL backend:
The Postmaster has informed me that some other backend
died abnormally and possibly corrupted shared memory.
I have rolled back the current transaction and am
going to terminate your database system connection and exit.
Please reconnect to the database system and repeat your query.
2005-06-01 11:55:25 WARNING: Message from PostgreSQL backend:
The Postmaster has informed me that some other backend
died abnormally and possibly corrupted shared memory.
I have rolled back the current transaction and am
going to terminate your database system connection and exit.
Please reconnect to the database system and repeat your query.
2005-06-01 11:55:25 WARNING: Message from PostgreSQL backend:
The Postmaster has informed me that some other backend
died abnormally and possibly corrupted shared memory.
I have rolled back the current transaction and am
going to terminate your database system connection and exit.
Please reconnect to the database system and repeat your query.
2005-06-01 11:55:28 LOG: all server processes terminated; reinitializing
shared memory and semaphores
2005-06-01 11:55:28 LOG: database system was interrupted at 2005-06-01
02:05:21 IDT
2005-06-01 11:55:28 LOG: checkpoint record is at 0/268BF24
2005-06-01 11:55:28 LOG: redo record is at 0/268BF24; undo record is at
0/0; shutdown FALSE
2005-06-01 11:55:28 LOG: next transaction id: 23827; next oid: 25973
2005-06-01 11:55:28 LOG: database system was not properly shut down;
automatic recovery in progress
2005-06-01 11:55:28 LOG: redo starts at 0/268BF64
2005-06-01 11:55:28 LOG: ReadRecord: record with zero length at 0/269A9EC
2005-06-01 11:55:28 LOG: redo done at 0/269A9AC
2005-06-01 11:55:31 PANIC: fdatasync of log file 0, segment 2 failed:
Input/output error
2005-06-01 11:55:31 LOG: startup process (pid 16180) was terminated by
signal 6
2005-06-01 11:55:32 LOG: PGSTAT: Error closing temp stats file
/apps/sync/syncdata/sync/10000/server_metadata/postgr
esql/global/pgstat.tmp.10278: Input/output error
2005-06-01 12:47:28 LOG: database system shutdown was interrupted at
2005-06-01 11:55:28 IDT
2005-06-01 12:47:28 LOG: checkpoint record is at 0/268BF24
2005-06-01 12:47:28 LOG: redo record is at 0/268BF24; undo record is at
0/0; shutdown FALSE
2005-06-01 12:47:28 LOG: next transaction id: 23827; next oid: 25973
2005-06-01 12:47:28 LOG: database system was not properly shut down;
automatic recovery in progress
2005-06-01 12:47:28 LOG: redo starts at 0/268BF64
2005-06-01 12:47:28 LOG: ReadRecord: record with zero length at 0/269AA2C
2005-06-01 12:47:28 LOG: redo done at 0/269A9EC
2005-06-01 12:47:30 LOG: database system is ready

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-11-2008, 05:10 AM
Tom Lane
 
Posts: n/a
Default Re: fdatasync failed, I/O error

"Brusser, Michael" <Michael.Brusser@matrixone.com> writes:
> Our customer is running Postgresql v. 7.3.4 on Linux(Redhat 3.0 Ent.)
> The application crashed and I am trying to understand what could have caused
> this kind of problems:


> fdatasync of log file 0, segment 2 failed: input/output error
> PGSTAT: Error closing temp stats file
> .../.../postgresql/global/pgstat.tmp.10278: Input/output error


"input/output error" definitely means a hardware problem ... you might
try looking in the kernel logs (/var/log/messages) to see if any
additional information got recorded there.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-11-2008, 05:10 AM
Alvaro Herrera
 
Posts: n/a
Default Re: fdatasync failed, I/O error

On Wed, Jun 01, 2005 at 10:27:04AM -0400, Brusser, Michael wrote:
>
> Our customer is running Postgresql v. 7.3.4 on Linux(Redhat 3.0 Ent.)
> The application crashed and I am trying to understand what could have caused
> this kind of problems:
>
> fdatasync of log file 0, segment 2 failed: input/output error
> PGSTAT: Error closing temp stats file
> .../.../postgresql/global/pgstat.tmp.10278: Input/output error
>
> I suppose they could be using NFS (I know, I know... we have to deal with
> that. But could it be something else? A bad disk?)


Bad disk, bad controller, bad cable between the two, are some which come
to mind.

--
Alvaro Herrera (<alvherre[a]surnet.cl>)
"The Gord often wonders why people threaten never to come back after they've
been told never to return" (www.actsofgord.com)

---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faq

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 04:31 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com