pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kevin Grittner <Kevin.Grittner@wicourts.gov>
To: pgsql-admin@postgresql.org
To: IñigoMartinez Lasala <imartinez@vectorsf.com>
Subject: Re: Data duplication when moving datafiles from one server to another.
Date: Mon, 20 Dec 2010 13:43:01 -0600
Message-ID: <4D0F5D650200002500038840@gw.wicourts.gov> (raw)
In-Reply-To: <1292872960.20992.8.camel@deimos>
References: <1292872960.20992.8.camel@deimos>

IñigoMartinez Lasala <imartinez@vectorsf.com> wrote:
 
> Yesterday we experienced some data duplication in several database
> tables after one sysadmin decided to test in a production
> environment an rsync script in order to migrate a database from
> one server to another one.
> Postgresql (8.2) was running in source server and rsync script was
> launched from second one. Second one server had a one day old copy
> of the same database. Rsync script create a datafile replica in
> destination server. 
> Our sysadmin swear he didn't launch the script in a reverse way
> (that is, from destination to source)... so my question is
> How this data duplication could happen?
 
Where did this duplication happen -- source or destination?  If in
the source, I would suspect operator error by your sysadmin; I have
never seen rsync cause problems with the source files.  If on the
target, I would suspect that you didn't follow PITR recovery
techniques properly.
 
If you need to follow up on this, please include a few more details,
like the exact PostgreSQL version from `select version();` and the
exact version of the OS.  The exact rsync statement(s) used would be
good to see, too -- maybe from the bash history (or similar) on the
machines.
 
-Kevin



view thread (5+ messages)  latest in thread

Message-ID: <4D0F5D650200002500038840@gw.wicourts.gov>
Permalink:  ../4D0F5D650200002500038840@gw.wicourts.gov/
Also on:    postgresql.org/message-id/4D0F5D650200002500038840@gw.wicourts.gov

 · 

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: Kevin.Grittner@wicourts.gov, imartinez@vectorsf.com
  Subject: Re: Data duplication when moving datafiles from one server to another.
  In-Reply-To: <4D0F5D650200002500038840@gw.wicourts.gov>
  References: <1292872960.20992.8.camel@deimos> <4D0F5D650200002500038840@gw.wicourts.gov>

* 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