Muchas gracias a todos por la ayuda. En especial a ti Guillermo, voy a probar ahora mismo. -----Mensaje original----- De: Guillermo Vaz Muñoz [mailto:guillermo.vaz@atosorigin.com] Enviado el: lunes, 04 de diciembre de 2006 12:23 Para: Vicente García Salas Asunto: Re: [opensuse-es] HeartBeat. Tienes el nice_failback on 2 veces sobra una. Pon estas opciones: warntime 60 initdead 300 hopfudge 1 baud 19200 Cuidado con el initdead, si pones como yo 5 minutos (300seg), hasta pasado ese tiempo no se considera que el nodo ha muerto del todo y no se va a levantar de nuevo y por lo tanto en el otro nodo no levanta nada hasta pasado un minimo de ese tiempo. Espero que te sirva. Por lo demas parece que esta bien configurado. Asegurate de que en ambos nodos el fichero es igual y el fichero haresources tambien. Un saludo, Guillermo El Lunes, 4 de Diciembre de 2006 11:24, Vicente García Salas escribió:
Aqui esta el ha.cf
# /etc/ha.d/ha.cf # # ha.cf file to configure two nodes connected by ethernet (eth0) and # a null modem (/dev/ttyS0). # # Based on sample ha.cf shipped with heartbeat # # Prepared: April 2000 #
# # There are lots of options in this file. All you have to have is a set # of nodes listedJ {"node ...} # and one of {serial, udp, or ppp-udp} # # # Note on logging: # If any of debugfile, logfile and logfacility are defined then they # will be used. If debugfile and/or logfile are not defined and # logfacility is defined then the respective logging and debug # messages will be loged to syslog. If logfacility is not defined # then debugfile and logfile will be used to log messges. If # logfacility is not defined and debugfile and/or logfile are not # defined then defaults will be used for debugfile and logfile as # required and messages will be sent there. # # File to wirte debug messages to #debugfile /var/log/ha-debug # # # File to write other messages to # #logfile /var/log/ha-log # # # Facility to use for syslog()/logger # logfacility local0 # # keepalive: how many seconds between heartbeats # keepalive 2 # # deadtime: seconds-to-declare-host-dead # deadtime 20 # hopfudge maximum hop count minus number of nodes in config #hopfudge 1 # # serial serialportname ... serial /dev/ttyS0 # # Only for serial ports. It applies to both PPP/UDP and "raw" ports # # This means run PPP over ports ttyS1 and ttyS2 # Their respective IP addresses are as listed. # Note that I enforce that these are local addresses. Other addresses # are almost certainly a mistake. #ppp-udp /dev/ttyS1 10.0.0.1 /dev/ttyS2 10.0.0.2 # # Baud rate for both serial and ppp-udp ports... # #baud 19200 # # What UDP port to use for udp or ppp-udp communication? # udpport 1001 # # What interfaces to heartbeat over? # udp eth1 # # Watchdog is the watchdog timer. If our own heart doesn't beat for # a minute, then our machine will reboot. # #watchdog /dev/watchdog # # Nice_failback sets the behavior when performing a failback: # # - if it's on, when the primary node starts or comes back from any # failure and the cluster is already active, i.e. the secondary # server performed a failover, the primary stays quiet, acting as a # secondary. This way some operations like syncing disks can be # easily done. # - if it's off (default), the primary node will always be the primary, # whenever it's powered on. # nice_failback on # # Note on logging: # If any of debugfile, logfile and logfacility are defined then they will # be used. If debugfile and/or logfile are not defined and logfacility # is defined then the respective logging and debug messages will be loged # to syslog. If logfacility is not defined then debugfile and logfile will # be used to log messges. If logfacility is not defined and debugfile # be used to log messges. If logfacility is not defined and debugfile # to syslog. If logfacility is not defined then debugfile and logfile will # be used to log messges. If logfacility is not defined and debugfile nice_failback on # # Note on logging: # If any of debugfile, logfile and logfacility are defined then they will # be used. If debugfile and/or logfile are not defined and logfacility # is defined then the respective logging and debug messages will be loged # to syslog. If logfacility is not defined then debugfile and logfile will # be used to log messges. If logfacility is not defined and debugfile # and/or logfile are not defined then defaults will be used for debugfile # and logfile as required and messages will be sent there. # # File to wirte debug messages to debugfile /var/log/ha-debug # # # File to write other messages to # logfile /var/log/ha-log # # # Facility to use for syslog()/logger # # # # Tell what machines are in the cluster # node nodename ... -- must match uname -n node nodo1 node nodo2
bcast eth1
Yo suelo usar Webmin, para configurar las maquinas. Yo en Linux voy algo cortito.Yo en Linux voy algo cortito y webmin me ayuda bastante. Pero no he visto donde solucionar este problema. Muchas gracias por la ayuda.
Vicente Garcia Salas
-----Mensaje original----- De: Guillermo Vaz Muñoz [mailto:guillermo.vaz@atosorigin.com] Enviado el: jueves, 30 de noviembre de 2006 13:38 Para: opensuse-es@opensuse.org Asunto: Re: [opensuse-es] HeartBeat.
Debes de tener algo mal configurado en el fichero ha.cf. ¿Puedes ponerlo por aqui? (quitando lo ke no quieras ke se vea claro).
Guillermo
El Jueves, 30 de Noviembre de 2006 11:34, Vicente García Salas escribió:
Hola, esta es la primera vez que escribo y soy algo novato en estas lides. Escribo para preguntar como a mi heartbeat le puedo poner que balancé de nodo los servicios si la tarjeta de red se cae. Tengo 2 servidores de correo en cluster Activo-Pasivo y cuando reinicio un nodo los servicios se vuelcan bien al otro. Pero si desconecto la tarjeta de red, los servidores no se enteran y no pasan los servicios.
Muchas gracias por la ayuda.
Vicente Garcia Salas
Para dar de baja la suscripcin, mande un mensaje a: opensuse-es+unsubscribe@opensuse.org Para obtener el resto de direcciones-comando, mande un mensaje a: opensuse-es+help@opensuse.org
-- Muchas Gracias y un saludo, Guillermo Vaz Muñoz _________________________________ Telco, Utilities & Media Tecnología & Calidad Atos Origin Sae Albarracín 25, 28037 Madrid/SPAIN Telf. +34 91.214.9411 guillermo.vaz@atosorigin.com _________________________________ --------------------------------------------------------------------- Para dar de baja la suscripción, mande un mensaje a: opensuse-es+unsubscribe@opensuse.org Para obtener el resto de direcciones-comando, mande un mensaje a: opensuse-es+help@opensuse.org