PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Verständliche Heartbeat Dokumentation?



bigblue2010
28.07.10, 08:10
Hallo,

ich bin am verzweifeln. Hab zwei VMs (mysql1 und mysql2), auf denen ein MySQL-Master und MySQL Slave läuft. Ich möchte nun mit Heartbeat eine "ServiceIP-Adresse" anlegen, so dass wenn mysql1 nicht mehr läuft mysql2 seine Funktion übernimmt. Ich finde keine Anleitung die mir genau das Beschreibt. Ich komm überhaupt nicht weiter. Ich hab es geschafft das Heartbeat zum laufen zu bringen und in der hb_gui sind die zwei System auch aktiv, aber ich blick das mit den Resourcen nicht :(

Meine Konfigurationen sehen wie folgt aus:

ha.cf
# Log to syslog as facility "daemon"
use_logd on
logfacility daemon

# List our cluster members (the realservers)
node mysql1
node mysql2

# Send one heartbeat each second
keepalive 3

# Warn when heartbeats are late
warntime 5

# Declare nodes dead after 10 seconds
deadtime 10

# Keep resources on their "preferred" hosts - needed for active/active
#auto_failback on


# The cluster nodes communicate on their heartbeat lan (.68.*) interfaces
ucast eth0 192.168.24.130
ucast eth0 192.168.24.131

# Failover on network failures
# Make the default gateway on the public interface a node to ping
# (-m) -> For every connected node, add <integer> to the value set
# in the CIB, * Default=1
# (-d) -> How long to wait for no further changes to occur before
# updating the CIB with a changed attribute
# (-a) -> Name of the node attribute to set, * Default=pingd
respawn hacluster /usr/lib/heartbeat/ipfail


crm yes


auth 2
2 sha1 test-ha