Re: Instalando repmgr

From: Yoan Manuel Pérez Piñero <ymperez(at)uci(dot)cu>
To: Martín Marqués <martin(at)2ndquadrant(dot)com>
Cc: POSTGRES <pgsql-es-ayuda(at)postgresql(dot)org>
Subject: Re: Instalando repmgr
Date: 2014-05-09 23:36:17
Message-ID: 954807879.2367640.1399678577056.JavaMail.zimbra@uci.cu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-es-ayuda

Muchas gracias, tienes razón, me faltaba instalar rsync en el maestro....Saludos.

----- Mensaje original -----
De: "Martín Marqués" <martin(at)2ndquadrant(dot)com>
Para: "Yoan Manuel Pérez Piñero" <ymperez(at)uci(dot)cu>
CC: "POSTGRES" <pgsql-es-ayuda(at)postgresql(dot)org>
Enviados: Viernes, 9 de Mayo 2014 18:53:44
Asunto: Re: [pgsql-es-ayuda] Instalando repmgr

Instalá rsync (es mensaje dice que no esta instalado).

Y no uses la opcion -D.

Saludos,

El día 9 de mayo de 2014, 20:08, Yoan Manuel Pérez Piñero
<ymperez(at)uci(dot)cu> escribió:
> Amigos ya lo instalé. Lo que cuando intento replciar me da este error, les agradecería si me dicen que me falta por hacer.
>
> postgres(at)pgslave:~/9.1/main$ /usr/lib/postgresql/9.1/bin/repmgr -D /var/lib/postgresql/9.1/main/ -d pgbench -p 5432 -U postgres -R postgres standby clone pgmaster --verbose
> Opening configuration file: ./repmgr.conf
> [2014-05-09 18:30:26] [ERROR] Did not find the configuration file './repmgr.conf', continuing
> [2014-05-09 18:30:26] [NOTICE] repmgr Destination directory /var/lib/postgresql/9.1/main/ provided, try to clone everything in it.
> [2014-05-09 18:30:26] [INFO] repmgr connecting to master database
> [2014-05-09 18:30:26] [INFO] repmgr connected to master, checking its state
> [2014-05-09 18:30:26] [INFO] Successfully connected to primary. Current installation size is 164 MB
> [2014-05-09 18:30:26] [NOTICE] Starting backup...
> [2014-05-09 18:30:26] [INFO] checking and correcting permissions on existing directory /var/lib/postgresql/9.1/main/ ...
> [2014-05-09 18:30:26] [INFO] standby clone: master control file '/var/lib/postgresql/9.1/main/global/pg_control'
> [2014-05-09 18:30:26] [INFO] standby clone: master control file '/var/lib/postgresql/9.1/main/global/pg_control'
> [2014-05-09 18:30:26] [INFO] rsync command line: 'rsync --archive --checksum --compress --progress --rsh=ssh postgres(at)pgmaster:/var/lib/postgresql/9.1/main/global/pg_control /var/lib/postgresql/9.1/main//global'
> bash: rsync: no se encontró la orden
> rsync: connection unexpectedly closed (0 bytes received so far) [Receiver]
> rsync error: error in rsync protocol data stream (code 12) at io.c(605) [Receiver=3.0.9]
> [2014-05-09 18:30:27] [ERROR] Can't rsync from remote file or directory (postgres(at)pgmaster:/var/lib/postgresql/9.1/main/global/pg_control)
> [2014-05-09 18:30:27] [WARNING] standby clone: failed copying master control file '/var/lib/postgresql/9.1/main/global/pg_control'
> [2014-05-09 18:30:27] [NOTICE] Finishing backup...
> NOTICE: pg_stop_backup completado, todos los segmentos de WAL requeridos han sido archivados
> [2014-05-09 18:30:28] [INFO] repmgr requires primary to keep WAL files 000000010000000000000012 until at least 000000010000000000000012
> [2014-05-09 18:30:28] [ERROR] Couldn't rsync the master...
> You have to cleanup the destination directory (/var/lib/postgresql/9.1/main/) manually!
>
>
> ----- Mensaje original -----
> De: "Yoan Manuel Pérez Piñero" <ymperez(at)uci(dot)cu>
> Para: "Jaime Casanova" <jaime(at)2ndquadrant(dot)com>
> CC: "POSTGRES" <pgsql-es-ayuda(at)postgresql(dot)org>
> Enviados: Viernes, 9 de Mayo 2014 17:27:17
> Asunto: Re: [pgsql-es-ayuda] Instalando repmgr
>
> Ya era que me faltaba isntalar build-essential ;-)
> Ahora tengo una duda, porque en un paso dice que se debe borrar toda la data en el esclavo, me imagino que ahí dentro también se borran el postgresql.conf y el pg_hba.conf ??
>
> ----- Mensaje original -----
> De: "Jaime Casanova" <jaime(at)2ndquadrant(dot)com>
> Para: "Yoan Manuel Pérez Piñero" <ymperez(at)uci(dot)cu>
> CC: "POSTGRES" <pgsql-es-ayuda(at)postgresql(dot)org>
> Enviados: Viernes, 9 de Mayo 2014 17:23:08
> Asunto: Re: [pgsql-es-ayuda] Instalando repmgr
>
> 2014-05-09 16:26 GMT-05:00 Yoan Manuel Pérez Piñero <ymperez(at)uci(dot)cu>:
>> Hola amigos, estoy intentando instalar repmgr, cuando le paso el comando
>> para compilar me dice que no encuentra la orden
>> root(at)pgslave:/tmp/repmgr-2.0# make USE_PGXS=1
>> -bash: make: no se encontró la orden
>>
>
> y si tienes instalado el paquete make? make es un paquete que instalas
> desde el sistema operativo y no un comando de repmgr.
>
> en debian con root puedes instalarlo ejecutando: aptitude install make
>
> --
> Jaime Casanova www.2ndQuadrant.com
> Professional PostgreSQL: Soporte 24x7 y capacitación
> Phone: +593 4 5107566 Cell: +593 987171157
> VII Escuela Internacional de Verano en la UCI del 30 de junio al 11 de julio de 2014. Ver www.uci.cu
>
> -
> Enviado a la lista de correo pgsql-es-ayuda (pgsql-es-ayuda(at)postgresql(dot)org)
> Para cambiar tu suscripci�n:
> http://www.postgresql.org/mailpref/pgsql-es-ayuda
> VII Escuela Internacional de Verano en la UCI del 30 de junio al 11 de julio de 2014. Ver www.uci.cu
>
> -
> Enviado a la lista de correo pgsql-es-ayuda (pgsql-es-ayuda(at)postgresql(dot)org)
> Para cambiar tu suscripción:
> http://www.postgresql.org/mailpref/pgsql-es-ayuda

--
Martín Marqués http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services
VII Escuela Internacional de Verano en la UCI del 30 de junio al 11 de julio de 2014. Ver www.uci.cu

-
Enviado a la lista de correo pgsql-es-ayuda (pgsql-es-ayuda(at)postgresql(dot)org)
Para cambiar tu suscripcin:
http://www.postgresql.org/mailpref/pgsql-es-ayuda

In response to

Browse pgsql-es-ayuda by date

  From Date Subject
Next Message Alvaro Herrera 2014-05-10 03:38:00 Re: Capturar ID's de JSON y mostrarlos en una LINEA separados por ","
Previous Message Martín Marqués 2014-05-09 23:23:44 Re: Instalando repmgr