From: | Keaton Adams <kadams(at)mxlogic(dot)com> |
---|---|
To: | Erik Jones <ejones(at)engineyard(dot)com> |
Cc: | V S P <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: WAL Log Shipping - Warm Standby not working under 8.3.7 |
Date: | 2010-01-09 00:52:57 |
Message-ID: | njbpqc8rcauofyfm1ui6qp5h.1262998391004@email.android.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
To clean up from a prior run.
Erik Jones <ejones(at)engineyard(dot)com> wrote:
On Jan 8, 2010, at 9:50 AM, Keaton Adams wrote:
> OK,
>
> So what am I doing wrong here?
>
> Installed PG 8.3.7 on Slave machine
>
> Restored from last evening's backup from the master DB to make the rsync across the network finish sooner.
>
> Shut down the PG instance on the slave machine
>
> Ran a script that does the following:
>
> select pg_start_backup('Master_Backup');
> rsync -rvlpogtz ${masterdb}/* ${slave_dbuser}(at)${slave_host}:${slavedb}
> select pg_stop_backup();
> ssh ${slave_dbuser}(at)${slave_host} rm ${slavedb}/postmaster.pid 2>/dev/null
> ssh ${slave_dbuser}(at)${slave_host} rm ${slave_backup_path}/0* 2>/dev/null
> ssh ${slave_dbuser}(at)${slave_host} ${PSQL_BIN}/pg_ctl -D ${slavedb} -l logfile start
Is ${slave_backup_path} your archive directory? Why are you deleting all of you archives there?
Erik Jones, Database Administrator
Engine Yard
Support, Scalability, Reliability
866.518.9273 x 260
Location: US/Pacific
IRC: mage2k
From | Date | Subject | |
---|---|---|---|
Next Message | Erik Jones | 2010-01-09 00:55:13 | Re: WAL Log Shipping - Warm Standby not working under 8.3.7 |
Previous Message | Erik Jones | 2010-01-09 00:50:59 | Re: WAL Log Shipping - Warm Standby not working under 8.3.7 |