Am Montag, 26. Januar 2009 10:31:05 schrieb Tobias Appel: > Hi all, > > I had problems with some ocf scripts in the past so I used the lsb for > apache, but today I thought I will give it another try and it worked on > my test machine perfectly, I had a bit of trouble on another machine > even though it was the same setup, but I still want to go with the ocf.
ocf ist much better! Jsut have a look into the status() of lsb and monitor() of ocf. > Now I'm not sure if I still need a monitor operation. Does the ocf > script monitoring automatically? No. > With a lsb script I always added a status operation. So do I have to add > a monitor operation now? Yes. heartbeat is even that clever, that it understand a monitor operation for lsb and calls the RA with status. > What about the ocf script for mysql? I've put a test user and password > there, do I still need to add an operation? Yes. Only operations do update the status in heartbeat. If heartbeat does not get the idea that a resource failed it cannot react. On the other hand: A failed monitor operation tells heartbeat to do something with that resource, i.e. restart, fence, ... This reaction is up to your config. > Thanks in advance. > > Regards, > Tobi Greetings, -- Dr. Michael Schwartzkopff MultiNET Services GmbH Addresse: Bretonischer Ring 7; 85630 Grasbrunn; Germany Tel: +49 - 89 - 45 69 11 0 Fax: +49 - 89 - 45 69 11 21 mob: +49 - 174 - 343 28 75 mail: [email protected] web: www.multinet.de Sitz der Gesellschaft: 85630 Grasbrunn Registergericht: Amtsgericht München HRB 114375 Geschäftsführer: Günter Jurgeneit, Hubert Martens --- PGP Fingerprint: F919 3919 FF12 ED5A 2801 DEA6 AA77 57A4 EDD8 979B Skype: misch42 _______________________________________________ Linux-HA mailing list [email protected] http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems
