Re: after using pg_resetxlog, db lost

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: wang_zc(at)yahoo(dot)co(dot)uk
Cc: Richard Huxton <dev(at)archonet(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: after using pg_resetxlog, db lost
Date: 2004-06-04 13:50:05
Message-ID: 26769.1086357005@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

=?iso-8859-1?q?zhicheng=20wang?= <wang_zc(at)yahoo(dot)co(dot)uk> writes:
> in case it is useful to any one. the db server uses
> san to store the data. the update is only to the bios
> of the fibre card. if this is wrong, many other files
> should also go wrong, which is not the case.

What you should be looking at is files that were written just before
the shutdown. AFAICS the symptoms you've reported can only be explained
by assuming that the disk failed to record quite a number of writes that
were issued by Postgres just before shutdown, and it did not respect the
write/fsync order in deciding which writes it did record. This is
unfortunately fairly common behavior in IDE disks with write caching
enabled...

BTW, you never answered my question about how much data the installation
had (ie, whether it could still really be using xlog segment 0).

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Bricklen 2004-06-04 14:11:19 COPY error handling
Previous Message zhicheng wang 2004-06-04 13:35:39 Re: after using pg_resetxlog, db lost