PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Heartbeat start Fehler



Huhn Hur Tu
02.03.10, 10:01
Hallo,
ich habe Haertbeat mit folgender Anleitung versucht ans laufen zu bekommen:

http://www.howtoforge.com/loadbalanced_mysql_cluster_debian_p6

und ich bekomme bei folgender Konfiguration:

/etc/ha.d/ha.cf


debugfile /var/log/ha-debug
logfile /var/log/ha-log
logfacility local0
bcast eth1
mcast 255.0.0.1 694 1 0
#keepalive 5
#warntime 10
#deadtime 120
#initdead 120
#udpport 694
auto_failback off
node mysql1
node mysql2
respawn hacluster /usr/lib/heartbeat/ipfail
apiauth ipfail gid=haclient uid=hacluster


diese Fehlermeldung:



mysql1:/tmp/DBD-mysql-4.013# /etc/init.d/heartbeat start
logd is already running
Starting High-Availability services:
Heartbeat failure [rc=6]. Failed.

heartbeat[4673]: 2010/03/02_09:58:36 ERROR: glib: Unable to retrieve local interface address for interface [255.0.0.1] using ioctl(SIOCGIFADDR): No such device
heartbeat[4673]: 2010/03/02_09:58:36 ERROR: glib: mcast device [255.0.0.1] is invalid or not set up properly
heartbeat: udpport setting must precede media statementsheartbeat[4673]: 2010/03/02_09:58:36 ERROR: Heartbeat not started: configuration error.
heartbeat[4673]: 2010/03/02_09:58:36 ERROR: Configuration error, heartbeat not started.


Ich habe es mit udpport und ohne probiert und leider verstehe ich die mcast Option nicht sonderlich.

/var/log/ha-log


heartbeat[4673]: 2010/03/02_09:58:36 ERROR: glib: Unable to retrieve local interface address for interface [255.0.0.1] using ioctl(SIOCGIFADDR): No such device
heartbeat[4673]: 2010/03/02_09:58:36 ERROR: glib: mcast device [255.0.0.1] is invalid or not set up properly
heartbeat[4673]: 2010/03/02_09:58:36 ERROR: Heartbeat not started: configuration error.
heartbeat[4673]: 2010/03/02_09:58:36 ERROR: Configuration error, heartbeat not started.


/var/log/ha-debug


heartbeat[4673]: 2010/03/02_09:58:36 ERROR: glib: Unable to retrieve local interface address for interface [255.0.0.1] using ioctl(SIOCGIFADDR): No such device
heartbeat[4673]: 2010/03/02_09:58:36 ERROR: glib: mcast device [255.0.0.1] is invalid or not set up properly
heartbeat[4673]: 2010/03/02_09:58:36 ERROR: Heartbeat not started: configuration error.
heartbeat[4673]: 2010/03/02_09:58:36 ERROR: Configuration error, heartbeat not started.



Gruss Stefan

Huhn Hur Tu
02.03.10, 11:11
Ergaenzende Informationen

Der Test besteht auf 2 identischen Kisten die im Anschluss unter einer virtuellen IP 192.168.1.253 ueber Heartbeat angesprochen werden sollen.
Die kisten sind noch mit einer zweiten Netzwerkkarte ausgeruestet die mit einem Crosskabel verbunden sind eth1 192.168.200.1/2

eth0 bekommt per DHCP 192.168.1.17 bzw. 18 auf der zweiten Kiste

/etc/network/interfaces


# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug eth0
iface eth0 inet dhcp

auto eth1
iface eth1 inet static
address 192.168.200.1
network 192.168.200.0
netmask 255.255.255.0
broadcast 192.168.200.255

auto lo:0
iface lo:0 inet static
address 192.168.1.253
netmask 255.255.255.255
pre-up sysctl -p > /dev/null

bla!zilla
02.03.10, 11:12
Ist das ein vServer oder so?

Huhn Hur Tu
02.03.10, 11:24
Nein Nativ, steht neben mir.

Gruss Stefan

honkstar
02.03.10, 12:50
Ohne die Heartbeat-Geschichte zu kennen,
kommt mir die Multicast-IP komisch vor:


ERROR: glib: Unable to retrieve local interface address for interface [255.0.0.1]
imho sind Multicast-IPs im Bereich 224.0.0.0-239.0.0.0.

Huhn Hur Tu
02.03.10, 13:02
Bisher alle Dokus die im Net gefunden habe benutzen die mcast Adresse 255.0.0.1


Gruss Stefan

HBtux
02.03.10, 22:25
Ich meine auch, dass die Multicast-Adresse falsch ist.
Entweder eine Adresse im Bereich 224.0.0.0/4 verwenden.

Oder nehme mal die Multicast (mcast) Zeile ganz raus.
Normalerweise müsste der Parameter "bcast eth1" für die Kommunikation zwischen den Cluster-Server ausreichen.

bcast und mcast ist doppelt gemoppelt.

Huhn Hur Tu
03.03.10, 15:03
Ohne mcast ists auch kacke.
Aber mit den Aenderungen


mysql1:~# vim /etc/ha.d/ha.cf
debugfile /var/log/ha-debug
logfile /var/log/ha-log
logfacility local0
bcast eth0
mcast eth0 255.0.0.1 694 1 0
#keepalive 5
#warntime 10
#deadtime 120
#initdead 120
#udpport 694
#ucast 192.168.1.18
auto_failback off
node mysql1
node mysql2
respawn hacluster /usr/lib/heartbeat/ipfail
apiauth ipfail gid=haclient uid=hacluster


Ergibt das erst mal nur noch diese Fehlermeldung.


mysql1:~# /etc/init.d/heartbeat start
Starting High-Availability services:
Heartbeat failure [rc=6]. Failed.

heartbeat[3185]: 2010/03/03_15:00:20 ERROR: glib: mcast [eth0] bad addr [255.0.0.1]
heartbeat[3185]: 2010/03/03_15:00:20 ERROR: Heartbeat not started: configuration error.
heartbeat[3185]: 2010/03/03_15:00:20 ERROR: Configuration error, heartbeat not started.

bla!zilla
03.03.10, 15:20
Ändere bitte mal die Multicast-Konfiguration auf


mcast 224.0.10.100 694 2

Huhn Hur Tu
03.03.10, 15:22
2 Fehler gefunden
die mcast Adresse sollte 225.0.0.1 statt 255.0.0.1, grr mein Fehler.
Und in der /etc/haresource
muss an jedem Zeilenende ein \ kommen nur am Schluss nicht.

Ich danke euch trotzdem.


Gruss Stefan

bla!zilla
03.03.10, 15:33
Also rennt es nun?

Huhn Hur Tu
03.03.10, 18:50
Das Herz klopft!

bla!zilla
03.03.10, 19:41
Na dann Glückwunsch! Es ist ein Cluster!

HBtux
04.03.10, 00:41
Ohne mcast ists auch kacke.

Warum soll es ohne mcast ka.... sein?

Du sendest nun Multicast und Broadcast über ein Ethernet-Interface raus.
Meiner Meinung nach müsste doch ein Protokoll reichen!

Das mcast oder bcast ist das Protokoll, über das sich die Clusterknoten unterhalten.
Beides zu schicken ist fast so, als würdest Du Deutsch und Englisch gleichzeitig sprechen - und der andere versteht es dann auch noch.... ;)