[Pgpool-general] Problem with pgpool-II_3.1.0
Lazaro Rubén García Martinez
lgarciam at vnz.uci.cu
Tue Oct 25 22:45:33 UTC 2011
Sorry, and thank you for the attention of the last email, I have resolved the problem by changing this property in pgpool.conf
recovery_1st_stage_command = '/opt/pgsql/data/basebackup'
Now
recovery_1st_stage_command = 'basebackup'
Thank you for your time.
Regards.
De: pgpool-general-bounces at pgfoundry.org [mailto:pgpool-general-bounces at pgfoundry.org] En nombre de Lazaro Rubén García Martinez
Enviado el: martes, 25 de octubre de 2011 02:36
Para: pgpool-general at pgfoundry.org
Asunto: [Pgpool-general] Problem with pgpool-II_3.1.0
Hello everyone in the list, I write you because I'm having a problem for doing online_recovery with pgpool-II V 3.1.0, and I hope that you can help me. I am configuring pgpool and postgreSQL in streaming replication mode, but when I try to recover the standby node a backenError is returned and in the postgresql.log file this error is shown:
LOG: connection authorized: user=postgres database=template1
LOG: statement: SELECT pgpool_recovery('/opt/pgsql/data/basebackup', '10.13.4.205', '/opt/pgsql/data')
sh: /opt/pgsql/data//opt/pgsql/data/basebackup: No such file or directory
ERROR: pgpool_recovery failed
STATEMENT: SELECT pgpool_recovery('/opt/pgsql/data/basebackup', '10.13.4.205', '/opt/pgsql/data')
The basebackup file is under /opt/pgsql/data/ but I do not know why the reason for this error, the owner of basebackup file is the user postgres and the permission over this file is755.
This is my pgpool.conf
I hope that you can help me, thank you very much for your time.
Regards.
#------------------------------------------------------------------------------
# CONNECTIONS
#------------------------------------------------------------------------------
# - pgpool Connection Settings -
listen_addresses = '*'
port = 9999
socket_dir = '/tmp'
pcp_port = 9898
pcp_socket_dir = '/tmp'
# - Backend Connection Settings -
backend_hostname0 = '10.13.4.202'
# Host name or IP address to connect to for backend 0
backend_port0 = 5432
# Port number for backend 0
backend_weight0 = 1
# Weight for backend 0 (only in load balancing mode)
backend_data_directory0 = '/opt/pgsql/data'
# Data directory for backend 0
backend_flag0 = 'ALLOW_TO_FAILOVER'
# Controls various backend behavior
# ALLOW_TO_FAILOVER or DISALLOW_TO_FAILOVER
backend_hostname1 = '10.13.4.205'
backend_port1 = 5432
backend_weight1 = 1
backend_data_directory1 = '/opt/pgsql/data'
backend_flag1 = 'ALLOW_TO_FAILOVER'
# - Authentication -
enable_pool_hba = off
authentication_timeout = 60
# - SSL Connections -
ssl = off
#ssl_key = './server.key'
#ssl_cert = './server.cert'
#ssl_ca_cert = ''
#ssl_ca_cert_dir = ''
#------------------------------------------------------------------------------
# POOLS
#------------------------------------------------------------------------------
# - Pool size -
num_init_children = 32
max_pool = 4
# - Life time -
child_life_time = 300
child_max_connections = 0
connection_life_time = 0
client_idle_limit = 0
#------------------------------------------------------------------------------
# LOGS
#------------------------------------------------------------------------------
# - Where to log -
log_destination = 'stderr'
# - What to log -
print_timestamp = on
log_connections = on
log_hostname = on
log_statement = on
log_per_node_statement = off
log_standby_delay = 'if_over_threshold'
# - Syslog specific -
syslog_facility = 'LOCAL0'
syslog_ident = 'pgpool'
# - Debug -
debug_level = 0
#------------------------------------------------------------------------------
# FILE LOCATIONS
#------------------------------------------------------------------------------
pid_file_name = '/var/run/pgpool/pgpool.pid'
logdir = '/opt/pgpool/pgpool_log'
#------------------------------------------------------------------------------
# CONNECTION POOLING
#------------------------------------------------------------------------------
connection_cache = on
reset_query_list = 'ABORT; DISCARD ALL'
#------------------------------------------------------------------------------
# REPLICATION MODE
#------------------------------------------------------------------------------
replication_mode = off
replicate_select = off
insert_lock = off
lobj_lock_table = ''
replication_stop_on_mismatch = off
failover_if_affected_tuples_mismatch = off
#------------------------------------------------------------------------------
# LOAD BALANCING MODE
#------------------------------------------------------------------------------
load_balance_mode = on
ignore_leading_white_space = on
white_function_list = ''
black_function_list = 'currval,lastval,nextval,setval'
#------------------------------------------------------------------------------
# MASTER/SLAVE MODE
#------------------------------------------------------------------------------
master_slave_mode = on
master_slave_sub_mode = 'stream'
sr_check_period = 360
sr_check_user = 'postgres'
delay_threshold = 10000000
# - Special commands -
follow_master_command = ''
#------------------------------------------------------------------------------
# HEALTH CHECK
#------------------------------------------------------------------------------
health_check_period = 360
health_check_timeout = 20
health_check_user = 'postgres'
health_check_password = 'postgres'
#------------------------------------------------------------------------------
# FAILOVER AND FAILBACK
#------------------------------------------------------------------------------
failover_command = '/opt/pgpool/bin/failover_stream.sh %d %H /tmp/trigger_file0'
failback_command = ''
fail_over_on_backend_error = on
#------------------------------------------------------------------------------
# ONLINE RECOVERY
#------------------------------------------------------------------------------
recovery_user = 'postgres'
recovery_password = 'postgres'
recovery_1st_stage_command = '/opt/pgsql/data/basebackup'
recovery_2nd_stage_command = ''
recovery_timeout = 90
client_idle_limit_in_recovery = 0
relcache_expire = 0
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://pgfoundry.org/pipermail/pgpool-general/attachments/20111025/e795cbbc/attachment-0001.html>
More information about the Pgpool-general
mailing list