Re: WAL Log Shipping - Warm Standby not working under 8.3.7

Поиск
Список
Период
Сортировка
От Erik Jones
Тема Re: WAL Log Shipping - Warm Standby not working under 8.3.7
Дата
Msg-id 1ABEC11F-4FCE-4040-AC4D-847A8DEA0349@engineyard.com
обсуждение исходный текст
Ответ на Re: WAL Log Shipping - Warm Standby not working under 8.3.7  (Erik Jones <ejones@engineyard.com>)
Ответы Re: WAL Log Shipping - Warm Standby not working under 8.3.7  (Keaton Adams <kadams@mxlogic.com>)
Список pgsql-general
On Jan 8, 2010, at 4:50 PM, Erik Jones 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}@${slave_host}:${slavedb}
>> select pg_stop_backup();
>> ssh ${slave_dbuser}@${slave_host} rm ${slavedb}/postmaster.pid 2>/dev/null
>> ssh ${slave_dbuser}@${slave_host} rm ${slave_backup_path}/0* 2>/dev/null
>> ssh ${slave_dbuser}@${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?

Also, what are the contents of your recovery.conf file?  Are you using pg_standby?  The typical setup is to clear
<datadir>/pg_xlogon your standby and use pg_standby to recovery files directly from your archive directory? 

Erik Jones, Database Administrator
Engine Yard
Support, Scalability, Reliability
866.518.9273 x 260
Location: US/Pacific
IRC: mage2k






В списке pgsql-general по дате отправления:

Предыдущее
От: Keaton Adams
Дата:
Сообщение: Re: WAL Log Shipping - Warm Standby not working under 8.3.7
Следующее
От: Seb
Дата:
Сообщение: Re: conditional rule not applied