pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedRecovery plan for DRDB setup - recovery tool
4+ messages / 3 participants
[nested] [flat]
* Recovery plan for DRDB setup - recovery tool
@ 2006-12-07 09:36 Morten Andersen <moa-ml@instadia.net>
0 siblings, 2 replies; 4+ messages in thread
From: Morten Andersen @ 2006-12-07 09:36 UTC (permalink / raw)
To: pgsql-admin
Hello,
We are analyzing a master-slave setup of Postgresql 8.1 using DRDB
(v.0.7, type 'C'), and judging from the mailing list, this setup is
succesfully in production at several places.
Our initial tests also shows that the failovers are problem free. But we
would like to have a plan for how to handle the case where a failover fails.
So are there any Postgresql tools for analyzing and repairing the
"offline" database files (like e.g. the MySQL 'myisamchk'-tool). Or are
there only "online" tools like 'vacuumdb --full --analyze'.
So, how do other DRDB Postgresql sites handles failovers. Do you do
anything pro-active on the slave before starting Postgresql, or do you
trust DRDB and Postgresql completely.
Best regards, and thanks for any input on both the usage of DRDB as well
as on usage of recovery tools.
Morten Andersen and Peter Bagger-Hansen,
Instadia, Denmark
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Recovery plan for DRDB setup - recovery tool
@ 2006-12-07 13:03 Peter Eisentraut <peter_e@gmx.net>
parent: Morten Andersen <moa-ml@instadia.net>
1 sibling, 1 reply; 4+ messages in thread
From: Peter Eisentraut @ 2006-12-07 13:03 UTC (permalink / raw)
To: pgsql-admin; +Cc: Morten Andersen <moa-ml@instadia.net>
Morten Andersen wrote:
> So are there any Postgresql tools for analyzing and repairing the
> "offline" database files (like e.g. the MySQL 'myisamchk'-tool).
No.
> So, how do other DRDB Postgresql sites handles failovers. Do you do
> anything pro-active on the slave before starting Postgresql, or do
> you trust DRDB and Postgresql completely.
If you don't trust PostgreSQL, why would you trust its offline recovery
tools?
--
Peter Eisentraut
http://developer.postgresql.org/~petere/
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Recovery plan for DRDB setup - recovery tool
@ 2006-12-08 09:42 Morten Andersen <moa-ml@instadia.net>
parent: Peter Eisentraut <peter_e@gmx.net>
0 siblings, 0 replies; 4+ messages in thread
From: Morten Andersen @ 2006-12-08 09:42 UTC (permalink / raw)
To: pgsql-admin
Hi Peter,
Peter Eisentraut wrote:
> Morten Andersen wrote:
>
>>So are there any Postgresql tools for analyzing and repairing the
>>"offline" database files (like e.g. the MySQL 'myisamchk'-tool).
>
>
> No.
>
>
>>So, how do other DRDB Postgresql sites handles failovers. Do you do
>>anything pro-active on the slave before starting Postgresql, or do
>>you trust DRDB and Postgresql completely.
>
>
> If you don't trust PostgreSQL, why would you trust its offline recovery
> tools?
:-) - sorry, I probably misphrased the question a little. It is not
really Postgresql I don't trust. It is more the combination of HW on two
machines, network and DRDB. And it is not really an issue about not
trusting any of the components involved, but about knowing what to do if
we ever find us self with a group of erroneous DB files.
But since you answered that no offline tools exist, and due to phrases
like this:
".. Since the postmaster can now clean up by itself, it is unlikely that
ipcclean will be improved upon in the future." (from the notes section
in the 'ipcclean' utility description:
http://www.postgresql.org/docs/8.1/static/app-ipcclean.html)
I assume that Postgresql is partly "self-repairing", and will handle any
required cleaning when a DRDB slave starts after a DRDB master failure.
Best Regards
Morten Andersen,
Instadia, Denmark
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Recovery plan for DRDB setup - recovery tool
@ 2006-12-11 09:51 Simon Riggs <simon@2ndquadrant.com>
parent: Morten Andersen <moa-ml@instadia.net>
1 sibling, 0 replies; 4+ messages in thread
From: Simon Riggs @ 2006-12-11 09:51 UTC (permalink / raw)
To: Morten Andersen <moa-ml@instadia.net>; +Cc: pgsql-admin
On Thu, 2006-12-07 at 09:36 +0000, Morten Andersen wrote:
> Our initial tests also shows that the failovers are problem free. But
> we
> would like to have a plan for how to handle the case where a failover
> fails.
With respect to DRBD, you'd need to look at how that works specifically
since it isn't part of the basic distrubution.
> So are there any Postgresql tools for analyzing and repairing the
> "offline" database files (like e.g. the MySQL 'myisamchk'-tool). Or
> are
> there only "online" tools like 'vacuumdb --full --analyze'.
The philosophy is different.
PostgreSQL tries to bring up your database and make it available as
quickly as possible, even after a crash. The checking of any changed
data blocks is performed automatically during recovery - so no need to
run a manual tool while the server is down.
The idea that you'd need a checking tool comes from not trusting your
database. The PostgreSQL way is to ensure you don't lose that trust
because there are no short-cuts and leaps of faith taken to make the
database go faster.
--
Simon Riggs
EnterpriseDB http://www.enterprisedb.com
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2006-12-11 09:51 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2006-12-07 09:36 Recovery plan for DRDB setup - recovery tool Morten Andersen <moa-ml@instadia.net>
2006-12-07 13:03 ` Peter Eisentraut <peter_e@gmx.net>
2006-12-08 09:42 ` Morten Andersen <moa-ml@instadia.net>
2006-12-11 09:51 ` Simon Riggs <simon@2ndquadrant.com>
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