Re: [pgsql-es-ayuda] Slony: levantar automáticamente?

From: Cesar A <cesar(dot)carbonara(at)gmail(dot)com>
To: Jaime Casanova <jaime(at)2ndquadrant(dot)com>
Cc: pgsql-es-ayuda(at)postgresql(dot)org
Subject: Re: [pgsql-es-ayuda] Slony: levantar automáticamente?
Date: 2010-11-01 14:14:07
Message-ID: AANLkTinOKwRkydsoVGLg99tpYrZ18mdu9Rn1cb5GyTmi@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-es-ayuda

Siguiendo las instrucciones de crear, bajo /etc/slony1 un directorio con
cada node y dentro un slon.conf, borré el que tenía y he creado un host1 y
host2, donde en cada slon.conf hay:
host1:
#!/bin/sh
/usr/bin/slon encuentro 'host=x.x.x.x dbname=sistema user=miusuario
password=miclave'

host2:
#!/bin/sh
/usr/bin/slon encuentro 'dbname=sistema user=miusuario password=miclave'

En /etc/slony/slon_tools.conf:
host1
host2

En /etc/default/slony1:
# Set to a space-separated list of node names configured in
# /etc/slony1/slon_tools.conf that should be handled in the init script.
SLON_TOOLS_START_NODES="host1 host2"

Al reiniciar:
# /etc/init.d/slony1 restart
Restarting Slony-I daemon: host1 host2 host1 host2.

Reviso y tengo 2 logs:
# ls /var/log/slony1/
slon-host1.log slon-host2.log
cat a los logs, ambos con los mismo:
2010-11-01 08:57:13 VET ERROR syntax error in file
"/etc/slony1/host1/slon.conf" line 0, near end of line
2010-11-01 08:57:13 VET CONFIG main: slon version 1.2.15 starting up
usage: /usr/bin/slon [options] clustername conninfo

Options:
-h print usage message and exit
-v print version and exit
-d <debuglevel> verbosity of logging (1..4)
-s <milliseconds> SYNC check interval (default 10000)
-t <milliseconds> SYNC interval timeout (default 60000)
-o <milliseconds> desired subscriber SYNC processing time
-g <num> maximum SYNC group size (default 6)
-c <num> how often to vacuum in cleanup cycles
-p <filename> slon pid file
-f <filename> slon configuration file
-a <directory> directory to store SYNC archive files
-x <command> program to run after writing archive file
-q <num> Terminate when this node reaches # of SYNCs
-r <num> # of syncs for -q option
-l <interval> this node should lag providers by this interval

reviso los procesos:
# ps ax | grep slon
7038 pts/0 R+ 0:00 grep slon

lo que me muestra que no están corriendo!

Le doy un cat a cada slon.conf y ejecuto "a mano" la línea sóla, y sí
levantan los procesos slon...

ideas?
--
--
Sí no eres parte de la solución... eres parte del problema.
Les Luthiers
--
... y no dejes de leer:
Netiqueta: Conjunto de reglas que regulan la conducta del usuario en
internet
http://es.wikibooks.org/wiki/Netiquette
--
Cesar A. Carbonara R.
C.I. Nº V.11.952.572
--
Usuario Linux 377997
www.gulmer.org.ve

In response to

Browse pgsql-es-ayuda by date

  From Date Subject
Next Message Sergio Gabriel Rodriguez 2010-11-01 15:30:36 Re: Nuevo libro sobre rendimiento en PostgreSQL
Previous Message Ramón Alberto Bruening González 2010-11-01 14:03:24 Proceso de Consulta en el Servidor queda colgado al matar la aplicacion