PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Heartbeat XML Konfiguration



leon
17.11.09, 21:31
Hallo Zusammen,

auf zwei VMs auf denen jeweils ein Apache Server läuft möchte ich einen einfachen Heartbeat Cluster aufbauen.
Ich hab mich schon etwas eingelesen und suche noch eine gute Anleitung in dem die XML Konfiguration von heartbeat2 erläutert wird, den ich blick da überhaupt nicht durch :(
Folgende Konfiguration habe ich bisher vorgenommen:

authkeys (host1 & host2)
auth 1
1 crc

ha.cf (host1)
crm yes
logfacility local0
ucast eth0 192.168.1.100
auto_failback on
node host1
node host2


ha.cf (host2)
crm yes
logfacility local0
ucast eth0 192.168.1.101
auto_failback on
node host1
node host2


heartbeat ist gestartet und die Nodes sind online, aber wie konfiguriere ich jetzt heartbeat, dass er umschwenkt, wenn eine Node weg ist?

crm_mon -1 -r
Defaulting to one-shot mode
You need to have curses available at compile time to enable console mode


============
Last updated: Tue Nov 17 14:06:00 2009
Current DC: host1 (b6f1aea4-8738-4857-b9fe-3ee8098f1dd1)
2 Nodes configured.
0 Resources configured.
============

Node: host2 (b6f1aea4-8738-4857-b9fe-3ee8098f1dd1): online
Node: host1 (1d8ebc39-ade8-46eb-8573-8055a021c4ce): online

Full list of resources:

HBtux
17.11.09, 22:13
crm yes
logfacility local0
ucast eth0 192.168.1.100
auto_failback on
node host1
node host2



Probiere mal....


crm on



Hast Du die Recource auch schon definiert?

HBtux
17.11.09, 22:17
Noch eine Frage....

Was passiert derzeit auf dem verbleibenden Node, wenn ein Node weg ist?

Poste vielleicht mal die Log-File ha-debug...