From: Rajesh Kumar Mallah <mallah.rajesh@gmail.com>
To: Shoaib Mir <shoaibmir@gmail.com>
Cc: yogesh@banasdairy.coop <yogesh@banasdairy.coop>
Cc: Lista Postgres <pgsql-admin@postgresql.org>
Subject: Re: how to recover database back from /data folder [ Possibly Recovered ]
Date: Mon, 11 Dec 2006 19:37:41 +0530
Message-ID: <a97c77030612110607n4abad55cr7158315c8eb28e3@mail.gmail.com> (raw)
Hi List ,
I restored the filesystem backup tar and ran postgres 7.3.8 on the data folder.
there was no problem at all.
DEBUG: FindExec: found "/opt/usr/local/pgsql7.3/bin/postgres" using argv[0]
DEBUG: invoking IpcMemoryCreate(size=1466368)
DEBUG: FindExec: found "/opt/usr/local/pgsql7.3/bin/postmaster" using argv[0]
LOG: database system was shut down at 2006-12-04 12:30:21 IST
LOG: checkpoint record is at 0/39DF3C2C
LOG: redo record is at 0/39DF3C2C; undo record is at 0/0; shutdown TRUE
LOG: next transaction id: 2006905; next oid: 15212626
LOG: database system is ready
DEBUG: proc_exit(0)
DEBUG: shmem_exit(0)
DEBUG: exit(0)
DEBUG: reaping dead processes
I think the above messages support the fact that the database was shutdown
properly before the filesystem level backup.
Can anyone kindly confirm it ?
I listed the tables and did some selects the data seems to be there.
I think postgres was not starting for some peripheral issues
not because that data folder was corrupted.
BTW
when i first started postmaster it gave an error related to
too liberal permissions. Probably the original poster was doing
the same mistake.
Regds
mallah.
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: mallah.rajesh@gmail.com, shoaibmir@gmail.com, yogesh@banasdairy.coop
Subject: Re: how to recover database back from /data folder [ Possibly Recovered ]
In-Reply-To: <a97c77030612110607n4abad55cr7158315c8eb28e3@mail.gmail.com>
References: <a97c77030612110607n4abad55cr7158315c8eb28e3@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