From: Scott Marlowe <scott.marlowe@gmail.com>
To: Wang, Mary Y <mary.y.wang@boeing.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: Re: Startup proc 30595 exited with status 512 - abort and FATAL 2: XLogFlush
Date: Tue, 2 Feb 2010 16:17:07 -0700
Message-ID: <dcc563d11002021517g50824974r21bb271845c8682a@mail.gmail.com> (raw)
In-Reply-To: <FA20D4C4FEBFD148B1C0CB09913825FC01EBD52E65@XCH-SW-06V.sw.nos.boeing.com>
References: <29452.1265140359@sss.pgh.pa.us>
<FA20D4C4FEBFD148B1C0CB09913825FC01EBD52D8E@XCH-SW-06V.sw.nos.boeing.com>
<29816.1265141665@sss.pgh.pa.us>
<FA20D4C4FEBFD148B1C0CB09913825FC01EBD52E65@XCH-SW-06V.sw.nos.boeing.com>
On Tue, Feb 2, 2010 at 3:29 PM, Wang, Mary Y <mary.y.wang@boeing.com> wrote:
> Thanks Tom.
>
> After talking to my co-worker, we decided to go to the last backup (we used the pg_dumpall -c command).
> However, when I did enter "psql -f /usr/pgsql/backups/31.bak template1" to restore the database, I got "
> psql: connectDBStart() -- connect() failed: No such file or directory
> Is the postmaster running locally
> and accepting connections on Unix socket '/tmp/.s.PGSQL.5432'?
> ".
> I can't start my postmaster. So how would I restore my last good backup?
The normal way is to drop the old cluster and create a new one. I'm
not entirely sure how to do that on something as old as RHEL 2.1. The
normal way would be to mv or rm -rf the /var/lib/pgsql/data dir and
run initdb again. something like:
sudo /etc/init.d/pgsql stop
sudo rm -rf /var/lib/pgsql/data/*
sudo -u postgres initdb -D /var/lib/pgsql/data
sudo /etc/init.d/pgsql start
or something like that.
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 using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: scott.marlowe@gmail.com, mary.y.wang@boeing.com, tgl@sss.pgh.pa.us
Subject: Re: Startup proc 30595 exited with status 512 - abort and FATAL 2: XLogFlush
In-Reply-To: <dcc563d11002021517g50824974r21bb271845c8682a@mail.gmail.com>
* 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