Re: HA warm standby issue with trigger file.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Mar 2, 2011 at 11:17 PM, Jason Clark
<j.clark.127.0.0.1@xxxxxxxxx> wrote:
> so thats not an issue, also, the backup server is pulling the WAL
> files and loading them properly, here is my recovery.conf file:
>
> standby_mode = 'on'
> restore_command = 'usr/pgsql-9.0/bin/pg_standby -d -w 300 -t /tmp/
> trigger.5423 /mnt/win/ %f %p 2>>standby.log
> archive_cleanup_command = '/usr/pgsql-9.0/bin/pg_archivecleanup -d /
> mnt/win %r 2>>cleanup.log

If pg_standby is used, standby_mode must be set to off. Otherwise,
as you observed, the trigger file cannot promote the standby.

In 9.0, pg_standby doesn't remove the trigger file automatically,
so if you want that, you need to set recovery_end_command to
the command which removes the trigger file.

Regards,

-- 
Fujii Masao
NIPPON TELEGRAPH AND TELEPHONE CORPORATION
NTT Open Source Software Center

-- 
Sent via pgsql-admin mailing list (pgsql-admin@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux