Posted by alex in Insights
Upgrading walmgr.py is easy since really this is just a python script. The most complicated part of the upgrade process will be keeping your database cluster up. Follow the below steps and you should avoid any downtime.
- Download Latest SkyTools: Visit PgFoundry to download the latest SkyTools. Issue the below command from /usr/local/src on each server.
wget http://pgfoundry.org/frs/download.php/2129/skytools-2.1.9.tar.gz
Read the rest of this entry »
Tags:
boot,
master,
master.ini,
postgres,
PostgreSQL,
skytools,
slave,
slave.ini,
tar,
walmgr,
walmgr.py,
wget
No Comments »
I ran into a silly error tonight during some configuration changes for PostgreSQL that took me awhile to figure out so I wanted to share so it might save others some time in the future. In an attempt to boot the slave server in a PostgreSQL SkyTools walmgr configuration I was unable to get it operational. The server would seem like it was stopping recovery mode however I was unable to login and the recovery process was still showing. Eventually I used the verbose switch to see if I could gain more information about why it was not booting up and the output is below.
Command:
walmgr.py conf/wal-slave.ini boot -v
Error:
2009-04-22 01:24:22,949 3899 INFO Stopping recovery mode
2009-04-22 01:24:22,949 3899 DEBUG Using pg_auth file from master.
2009-04-22 01:24:22,950 3899 DEBUG Execute cmd: ‘cp’ ‘/var/lib/pgsql/walshipping/logs.complete/pg_auth’ ‘/var/lib/pgsql/data/global/pg_auth’
2009-04-22 01:24:22,955 3899 DEBUG Only single loop requested, exiting
Read the rest of this entry »
Tags:
boot,
continue,
master,
pause,
postgres,
PostgreSQL,
psql,
recovery mode,
skytools,
slave,
walmgr,
walmgr.py,
walshipping
No Comments »
You might receive the below error in your postgresql.log file after issuing the walmgr.py syncdaemon command as explained below.
Error: CDTFATAL: role “root” does not exist
Command Issued:
walmgr.py conf/wal-master.ini syncdaemon -d
Read the rest of this entry »
Tags:
Linux,
master.ini,
pgsql,
postgres,
PostgreSQL,
postgresql.log,
root,
syncdaemon,
walmgr,
walmgr.pid,
walmgr.py
No Comments »