Senhores,
realizei os passos conforme o tutorial do link abaixo:
https://s3.amazonaws.com/releases.continuent.com/d...ng.the.replicator.for.postgres
editei os arquivos postgresql.conf, pg_hba.conf, replicator.properties conforme o tutorial do link acima.
conforme o tutorial deu erro no seguinte comando:
root@arquiteto:/opt/tungsten-replicator-2.0.4/tungsten-replicator# bin/pg/pg-wal-plugin -c conf/postgresql-wal.properties -o install
[2012-05-09T08:47:53-04:00] Checking pg_standby availability
[2012-05-09T08:47:53-04:00] Executing command: which pg_standby
/bin/pg_standby
[2012-05-09T08:47:53-04:00] Success: true RC: 0
[2012-05-09T08:47:53-04:00] Executing command: sudo which pg_standby
/bin/pg_standby
[2012-05-09T08:47:53-04:00] Success: true RC: 0
[2012-05-09T08:47:53-04:00] Starting installation for PostgreSQL WAL shipping
[2012-05-09T08:47:53-04:00] Creating conf dir: /opt/tungsten-replicator-2.0.4/tungsten-replicator/conf/pg-wal
[2012-05-09T08:47:53-04:00] Creating WAL generation times’ dir: /opt/tungsten-replicator-2.0.4/tungsten-replicator/conf/pg-wal/when
[2012-05-09T08:47:53-04:00] Updating postgresql.tungsten.conf
<< INPUT FROM: /opt/tungsten-replicator-2.0.4/tungsten-replicator/samples/conf/postgresql.tungsten.conf.tpl
OUTPUT TO: /opt/tungsten-replicator-2.0.4/tungsten-replicator/conf/pg-wal/postgresql.tungsten.conf
<< INPUT FROM: /etc/postgresql/9.1/main/postgresql.confOUTPUT TO: /etc/postgresql/9.1/main/postgresql.conf
[2012-05-09T08:47:53-04:00] Stopping PostgreSQL server
[2012-05-09T08:47:53-04:00] Executing command: sudo /etc/init.d/postgresql stop
- Stopping PostgreSQL 9.1 database server [ OK ]
[2012-05-09T08:47:56-04:00] Success: true RC: 0
[2012-05-09T08:47:56-04:00] Checking PostgreSQL server is stopped
[2012-05-09T08:47:56-04:00] BEGIN
[2012-05-09T08:47:56-04:00] Executing command: sudo /etc/init.d/postgresql status
Running clusters:
[2012-05-09T08:47:56-04:00] Success: true RC: 0
[2012-05-09T08:47:56-04:00] ERROR: PostgreSQL is started when expected to be stopped.
[2012-05-09T08:47:56-04:00] The following command might have failed. Please ensure
[2012-05-09T08:47:56-04:00] it can be executed by current account:
[2012-05-09T08:47:56-04:00] sudo /etc/init.d/postgresql stop
[2012-05-09T08:47:56-04:00]
[2012-05-09T08:47:56-04:00] NOTE: the following status command is expected to return
[2012-05-09T08:47:56-04:00] a non zero return code when PostgreSQL is stopped:
[2012-05-09T08:47:56-04:00] sudo /etc/init.d/postgresql status
[2012-05-09T08:47:56-04:00]
[2012-05-09T08:47:56-04:00] After correcting the problem you may run ‘./configure -b’
[2012-05-09T08:47:56-04:00] to repeat the installation quickly in batch mode.
[2012-05-09T08:47:56-04:00]
/opt/tungsten-replicator-2.0.4/tungsten-replicator/lib/ruby/pg-wal-plugin.rb:920:instatus_pg_server': PostgreSQL is started when expected to be stopped. (SystemError) from /opt/tungsten-replicator-2.0.4/tungsten-replicator/lib/ruby/pg-wal-plugin.rb:221:inplugin_install’
from /opt/tungsten-replicator-2.0.4/tungsten-replicator/lib/ruby/plugin.rb:149:inct_exec' from /opt/tungsten-replicator-2.0.4/tungsten-replicator/lib/ruby/plugin.rb:52:inrun’
from /opt/tungsten-replicator-2.0.4/tungsten-replicator/lib/ruby/pg-wal-wrapper.rb:42:in `’
tal erro nao consigo solucionar, os senhores podem me ajudar ou alguem ja fez a instalacao do tungsten para postgres?
fico grato quem poder ajudar!