From: Gabriele Bartolini <g.bartolini@comune.prato.it>
To: pgsql-admin@postgresql.org
Subject: Advice on migration without down-time
Date: Thu, 5 Apr 2007 13:59:54 +0200
Message-ID: <910CF843580B3C40A25CD0D04B3908E20B7733@exchange4.comune.prato.local> (raw)
Hi guys,
due to the wrong initialisation of PostgreSQL data dir (which
generates 'invalid multibyte character for locale'), I need to migrate
approximately a 90GB database system on PostgreSQL 8.2.3. There is no
replication system set up, yet.
The rawest solution is to:
- stop the server from updates,
- perform a backup with pg_dumpall (the daily bzipped dump all file is
approximately 4GB)
- isolate the server (no incoming TCP connection allowed)
- stop the server
- rename the data dir and the tablespace directories
- reinit the data dir with the correct locale
- create the empty tablespace directories with proper rights for the
postgres user
- restore the whole backup
- restart the server
Of course, this solution is time consuming, given the quantity of
data to be restored (90GB).
I was wondering if you have ideas to propose. I imagine using
replication (Slony-I?) could be a viable option, assuming that the
different locale for the data dir of the two database servers does not
influence the results. Using a slave DBMS could limit the down-time.
Thank you for your attention.
Cheers,
Gabriele
--
Gabriele Bartolini - Istruttore Informatico - Comune di Prato
Sistema Informativo - Servizi di E-Government e Open-Source
g.bartolini@comune.prato.it - www.comune.prato.it
<http://www.comune.prato.it/; - www.htminer.it <http://www.htminer.it/;
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: g.bartolini@comune.prato.it
Subject: Re: Advice on migration without down-time
In-Reply-To: <910CF843580B3C40A25CD0D04B3908E20B7733@exchange4.comune.prato.local>
References: <910CF843580B3C40A25CD0D04B3908E20B7733@exchange4.comune.prato.local>
* 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