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
_______________________________________________ Pgpool-general mailing list Pgpool-general@pgfoundry.org http://pgfoundry.org/mailman/listinfo/pgpool-general