pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Problems starting the database
2+ messages / 2 participants
[nested] [flat]

* Problems starting the database
@ 2003-03-10 21:36 gborges@radiumsystems.com.br
  2003-03-12 22:46 ` Re: Problems starting the database Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 2+ messages in thread

From: gborges@radiumsystems.com.br @ 2003-03-10 21:36 UTC (permalink / raw)
  To: pgsql-admin

Hi!

A kernel panic ocurred with my machine.

So, I have to recover my postgresql data directory. I copy the data directory to a new instalation (same version that I used before).

When I try to start the message below appers in my log file.

DEBUG:  database system was interrupted at 2003-03-05 23:28:13 BRT
DEBUG:  open of /var/lib/pgsql/data/pg_xlog/00000000000000DE (log file 0, segment 222) failed: No such file or directory
DEBUG:  invalid primary checkpoint record
DEBUG:  open of /var/lib/pgsql/data/pg_xlog/00000000000000DE (log file 0, segment 222) failed: No such file or directory
DEBUG:  invalid secondary checkpoint record
FATAL 2:  unable to locate a valid checkpoint record
DEBUG:  startup process (pid 8370) exited with exit code 2
DEBUG:  aborting startup due to startup process failure

There is some way to ignore this problem and start the postgres? I only want to start the database to do a pg_dump.

Thnks a lot.
Gustavo B. Oliveira
RadiumSystems.com



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: Problems starting the database
  2003-03-10 21:36 Problems starting the database gborges@radiumsystems.com.br
@ 2003-03-12 22:46 ` Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2003-03-12 22:46 UTC (permalink / raw)
  To: gborges@radiumsystems.com.br; +Cc: pgsql-admin

gborges@radiumsystems.com.br writes:
> A kernel panic ocurred with my machine.

> So, I have to recover my postgresql data directory. I copy the data directory to a new instalation (same version that I used before).

Did you forget to copy pg_xlog/ ?  Or did the kernel crash lose those files?

> There is some way to ignore this problem and start the postgres? I only want to start the database to do a pg_dump.

You can run pg_resetxlog, but you'll need to manually inspect your
dumped data to see if you have any partially-committed recent
transactions.

			regards, tom lane



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2003-03-12 22:46 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-03-10 21:36 Problems starting the database gborges@radiumsystems.com.br
2003-03-12 22:46 ` Tom Lane <tgl@sss.pgh.pa.us>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox