Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 3DAEE6331CB for ; Tue, 2 Feb 2010 19:17:20 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 61905-02 for ; Tue, 2 Feb 2010 23:17:09 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-ew0-f222.google.com (mail-ew0-f222.google.com [209.85.219.222]) by mail.postgresql.org (Postfix) with ESMTP id 905FE632F01 for ; Tue, 2 Feb 2010 19:17:09 -0400 (AST) Received: by ewy22 with SMTP id 22so90127ewy.34 for ; Tue, 02 Feb 2010 15:17:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=rA2EujjLsmIXbDG+qfdEtGKcJ1o+JGgVJIcp8fJNSl0=; b=AcnnjgSXqhDzg0f6VzmWMsMqXEws2ghUyquiLTg8DwJtULXjIGHMNGtvfQ+z0O3HAF XugZ+EF2eq7t+yYIPSSBuqVmMjlePUPQ6Uqxnowj31qFzbpE4INGXA8BcDL51Fl6153S TE7P0R2ogWDTI2YR6yKOU3K3LISyWS9Cuj4/g= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=TUgnrZS+9LC0YlBBfdKjkQPewNtvsFJH9u4J2UCr441ycZWqvdcubMYjYUAaszMEgy 43P00yUBgo7pjjMbkgJJBGer5/h+7/udRO7fihPc/Zmk8F68xkUoLAZcjsFPvsvjBnnI +tSmovn+TxUdCjbc3LhanjFNWIUhy+QJzB0UI= MIME-Version: 1.0 Received: by 10.216.89.76 with SMTP id b54mr3913381wef.105.1265152627699; Tue, 02 Feb 2010 15:17:07 -0800 (PST) In-Reply-To: References: <29452.1265140359@sss.pgh.pa.us> <29816.1265141665@sss.pgh.pa.us> Date: Tue, 2 Feb 2010 16:17:07 -0700 Message-ID: Subject: Re: Startup proc 30595 exited with status 512 - abort and FATAL 2: XLogFlush From: Scott Marlowe To: "Wang, Mary Y" Cc: Tom Lane , "pgsql-admin@postgresql.org" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.599 tagged_above=-10 required=5 tests=BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 201002/31 X-Sequence-Number: 33634 On Tue, Feb 2, 2010 at 3:29 PM, Wang, Mary Y wrote= : > Thanks Tom. > > After talking to my co-worker, we decided to go to the last backup (we us= ed the pg_dumpall -c command). > However, when I did enter "psql -f /usr/pgsql/backups/31.bak template1" t= o restore the database, I got " > psql: connectDBStart() -- connect() failed: No such file or directory > =A0 =A0 =A0 =A0Is the postmaster running locally > =A0 =A0 =A0 =A0and accepting connections on Unix socket '/tmp/.s.PGSQL.54= 32'? > ". > I can't start my postmaster. =A0So how would I restore my last good backu= p? 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.