PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : heartbeat



the_makis
14.10.04, 12:36
hi,

habe Heartbeat auf SuSe 9.1 installiert um mal zu testen wie es funktioniert. Doch ich bekommen es nicht wirklich zum laufen und hoffe das einer von euch mir helfen kann. Ich bekomme beim starten folgende errors:


Heartbeat failure [rc=6]

heartbeat: 2004/10/14_14:57:51 ERROR: nice_failback flag is obsolete.. Use auto_failback {on, off, legacy} instead.
heartbeat: 2004/10/14_14:57:51 ERROR: nice_failback off has been strictly interpreted as 'auto_failback legacy'
heartbeat: 2004/10/14_14:57:51 ERROR: Consider converting to 'auto_failback on'.
heartbeat: 2004/10/14_14:57:51 ERROR: When you do, then you can use ipfail, and hb_standby
heartbeat: 2004/10/14_14:57:51 ERROR: See documentation for details.
heartbeat: 2004/10/14_14:57:51 ERROR: Invalid user id name [hacluster]
heartbeat: 2004/10/14_14:57:51 ERROR: Bad uid list [hacluster] in apiauth
heartbeat: 2004/10/14_14:57:51 ERROR: Invalid apiauth directive [ipfail uid=hacluster]
heartbeat: 2004/10/14_14:57:51 info: Syntax: apiauth [uid=uidlist] [gid=gidlist]
heartbeat: 2004/10/14_14:57:51 info: Where uidlist is a comma-separated list of uids,
heartbeat: 2004/10/14_14:57:51 info: and gidlist is a comma-separated list of gids
heartbeat: 2004/10/14_14:57:51 info: One or the other must be specified.
heartbeat: 2004/10/14_14:57:51 ERROR: Invalid user id name [hacluster]
heartbeat: 2004/10/14_14:57:51 ERROR: Bad uid list [hacluster] in apiauth
heartbeat: 2004/10/14_14:57:51 ERROR: Invalid apiauth directive [ccm uid=hacluster]
heartbeat: 2004/10/14_14:57:51 info: Syntax: apiauth [uid=uidlist] [gid=gidlist]
heartbeat: 2004/10/14_14:57:51 info: Where uidlist is a comma-separated list of uids,
heartbeat: 2004/10/14_14:57:51 info: and gidlist is a comma-separated list of gids
heartbeat: 2004/10/14_14:57:51 info: One or the other must be specified.
heartbeat: 2004/10/14_14:57:51 ERROR: Invalid group name [haclient]
heartbeat: 2004/10/14_14:57:51 ERROR: Bad gid list [haclient] in apiauth
heartbeat: 2004/10/14_14:57:51 ERROR: Invalid apiauth directive [ping gid=haclient]
heartbeat: 2004/10/14_14:57:51 info: Syntax: apiauth [uid=uidlist] [gid=gidlist]
heartbeat: 2004/10/14_14:57:51 info: Where uidlist is a comma-separated list of uids,
heartbeat: 2004/10/14_14:57:51 info: and gidlist is a comma-separated list of gids
heartbeat: 2004/10/14_14:57:51 info: One or the other must be specified.
heartbeat: 2004/10/14_14:57:51 ERROR: Invalid group name [haclient]
heartbeat: 2004/10/14_14:57:51 ERROR: Bad gid list [haclient] in apiauth
heartbeat: 2004/10/14_14:57:51 ERROR: Invalid apiauth directive [cl_status gid=haclient]
heartbeat: 2004/10/14_14:57:51 info: Syntax: apiauth [uid=uidlist] [gid=gidlist]
heartbeat: 2004/10/14_14:57:51 info: Where uidlist is a comma-separated list of uids,
heartbeat: 2004/10/14_14:57:51 info: and gidlist is a comma-separated list of gids
heartbeat: 2004/10/14_14:57:51 info: One or the other must be specified.
heartbeat: 2004/10/14_14:57:51 ERROR: Bad permissions on keyfile [/etc/ha.d/authkeys], 600 recommended.
heartbeat: 2004/10/14_14:57:51 ERROR: Authentication configuration error.
heartbeat: 2004/10/14_14:57:51 ERROR: Configuration error, heartbeat not started.


besten dank vom vorraus

marce
14.10.04, 13:38
... hast Du es auch konfiguriert?

... sieht nämlich nicht danach aus - Poste doch mal doch confs...

the_makis
14.10.04, 18:46
meine configs


authkeys


#/etc/ha.d/authkeys
auth 1
1 crc
#end /etc/ha.d/authkeys

haresources


Server02 192.168.120.2 httpd
/etc/ha.d/rcapache2 start
/etc/rc.d/init.d/rcapache2 start
/etc/ha.d/rcapache2 stop
/etc/rc.d/init.d/rcapache2 stop

ha.cf


debugfile /var/log/ha-debug
logfile /var/log/ha-log
logfacility local10
deadtime 10
udp eth1
node Server01
node Server02

marce
15.10.04, 07:19
hm, die confs sehen eigentlich gut aus (hab gerade kein heartbeat am laufen hier, nur noch übriggebliebenes von einer Testumgebung) - bis auf die haresources:

sind das wirklich einzelne Zeilen? und eigentlich sollte glaube ich kein "start / stop" mit drin sein - das macht das heartbeat selbst..


probier doch mal folgendes:



server01 192.168.2.120 /etc/rc.d/init.d/rcapache2
server02 192.168.2.121 /etc/rc.d/init.d/rcapache2


wenn ich mich recht entsinne (schon ein bisserl her) sollten / müssen die confs auf jedem beteiligten Server gleich sein...

Kann hier leider gerade keine neue Testumgebung aufsetzen...

hussi
15.10.04, 20:10
bei mir hat es so geklappt: (Nur das Mounten der DRBD Nicht)

--- authkeys ---
auth 1
1 crc

--- ha.cf ---
debugfile /var/log/ha-debug
logfile/var/log/ha-log
logfacilitylocal 0
keepalive 2
deadtime 30
warntime 10
initdead 120
bcast eth1# Linux
auto_failback on
node clk01
node clk02

--- haresources ---
clk01 192.168.222.90/24 drbddisk::drbd0 apache2


Der Fehler:
Bad permissions on keyfile [/etc/ha.d/authkeys], 600 recommended.
sagt ja wohl alles.
Gruß Hussi

the_makis
20.10.04, 12:27
bei mir läuf das heartbeat nun auch jedoch kämpfe ich am DRBD kennt da einer nen guten howto?

Hela Wann
16.11.04, 09:27
bei mir läuf das heartbeat nun auch jedoch kämpfe ich am DRBD kennt da einer nen guten howto?

Der Clue dabei ist in der haresources, da muss mit drinstehen, dass das Datreisystem automatisch gemountet werden soll.


<servername> <ip> datadisk::<drbd-device> Filesystem::/dev/<drbd-device>::<mount-point>::<fs-type> <dienste>

Erklärung:
<drbd-device> ist typischerweise "drbd0", "drbd1" usw.

Dadurch wir automatisch hin und her gemountet. Wichtig ist, dass ein Jounaling-Filesystem benutzt wird, damit der fscheck schnell geht und dadurch die Ausfallzeit klein bleibt. Die Dienste werden in diesem Fall erst gestartet, wenn die drbd-disk gemountet ist (was bei 100 GB mit ext2 lange dauern kann!).

Grüße, Hela