pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Halford Dace <hal@stowe.co.za>
To: pgsql-admin@postgresql.org
Subject: Help! System catalogs vanished!
Date: Fri, 07 Dec 2001 10:02:16 -0200
Message-ID: <3C10AFC8.1090903@stowe.co.za> (raw)

Hi there,

I'm having a just wonderful Friday at work. Not.

At around 2am this morning, probably in the middle of the nightly 
scheduled VACUUM ANALYZE, the UPS on my server failed.

This morning, I have no databases.

The details:
PostgreSQL 7.0.3 on IRIX 6.5.11m.

When I started the machine this morning, I couldn't start the postmaster 
with pg_ctl at all. Firstly it claimed there was another postmaster 
running (there wasn't) and then when I removed the postmaster.pid file, 
pg_ctl just said it couldn't execute postmaster.

When I started postmaster by hand with:

/usr/freeware/bin/postmaster -D /usr/data/pgsql -o "-i -S"

it started BUT now watch this:

jove bin$ psql stowe3
Welcome to psql, the PostgreSQL interactive terminal.

Type:  \copyright for distribution terms
        \h for help with SQL commands
        \? for help on internal slash commands
        \g or terminate with semicolon to execute query
        \q to quit

stowe3=> \d
stowe3=> \dS
stowe3=> select now();
stowe3=> select version();
stowe3=>

This is, to my mind, extremely unhealthy. To my customers' minds too for 
that matter.

The behaviour is the same no matter which of the 8 databases I connect 
to. Also, I don't know if it's relevant, but all of them have pg_table 
files of zero length.

SO, I really need to sort this out pronto-urgently.
If I can't do anything to restore them within the next few hours, I'll 
have to do a fresh initdb and start restoring and reconstructing.

Frankly though, I'd much rather have a weekend.

*sigh*

Hal




Message-ID: <3C10AFC8.1090903@stowe.co.za>
Permalink:  ../3C10AFC8.1090903@stowe.co.za/
Also on:    postgresql.org/message-id/3C10AFC8.1090903@stowe.co.za

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: hal@stowe.co.za
  Subject: Re: Help! System catalogs vanished!
  In-Reply-To: <3C10AFC8.1090903@stowe.co.za>
  References: <3C10AFC8.1090903@stowe.co.za>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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