pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ragnar Kjørstad <postgres@ragnark.vestdata.no>
To: Eric Comeau <eric.comeau@signiant.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: High Availability PostgreSQL HOWTO article
Date: Tue, 6 Aug 2002 21:01:50 +0200
Message-ID: <20020806210150.N20768@vestdata.no> (raw)
In-Reply-To: <E6F241DAF915E24F9E34757342EE3E2252D18A@ottas09a.ott.signiant.com>
References: <E6F241DAF915E24F9E34757342EE3E2252D18A@ottas09a.ott.signiant.com>

On Fri, Aug 02, 2002 at 03:36:20PM -0400, Eric Comeau wrote:
> Has anyone implemented the HA solution linked
> <http://www.taygeta.com/ha-postgresql.html ) linked>  on the PostgreSQL
> Technical Documentation Web site?
>  
> http://www.taygeta.com/ha-postgresql.html
> <http://www.taygeta.com/ha-postgresql.html; 
>  
> I have read through the article, but one concern I have is that I don't
> see how this is any different than performing a "File system level
> backup". 

It's not different, and such a solution should not be recommended.

The procedure is broken, but there are a couple of ways to fix it:
1. Take a snapshot before running the rsync. This will ensure that
   the backup-server gets a copy of files that are "in sync" rather
   than a set of files copied at slightly different times. There was
   a long discussion about filesystem-backup, snapshots and simular
   issues on this list a few weeks ago - you might want to check it 
   out. 
2. Use shared storage rather than rsync. (IOW: a RAID connected
   to both servers at the same time).
3. Use rserv (the replication-service included in postgresql-contrib)
   instead of rsync.

Both 1 and 3 will fix the consistancy-problem, but the backup-server
would only be up-to-date right after you do the sync. So, you risk
loosing several minutes of data.

Shared storage would eliminate this totally. The downside is that since
you only have one storage-unit it may become a single point of failure.
This can be fixed by using a storage-system with redundant raid-controllers, 
multiple fans and multiple power-supplies. You would also want to take
regular backups, just in case.

> How is taking Rsync copies ever 5 or 10 minutes any different than
> taking a file system backup without shutting the database down? 

It's not.


-- 
Ragnar Kjørstad
Big Storage



view thread (5+ messages)  latest in thread

Message-ID: <20020806210150.N20768@vestdata.no>
Permalink:  ../20020806210150.N20768@vestdata.no/
Also on:    postgresql.org/message-id/20020806210150.N20768@vestdata.no

 · 

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: postgres@ragnark.vestdata.no, eric.comeau@signiant.com
  Subject: Re: High Availability PostgreSQL HOWTO article
  In-Reply-To: <20020806210150.N20768@vestdata.no>
  References: <E6F241DAF915E24F9E34757342EE3E2252D18A@ottas09a.ott.signiant.com> <20020806210150.N20768@vestdata.no>

* 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