Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Linux-HA: Users

OCF, service-failover, mysql

 

 

Linux-HA users RSS feed   Index | Next | Previous | View Threaded


matthaei at ameus

Nov 5, 2009, 6:34 AM

Post #1 of 2 (520 views)
Permalink
OCF, service-failover, mysql

Hello,

I am a bit new in heartbeat and suc. Configured the sahred IP the server failover, this ist the line in my haresources:
fs-1 192.168.222.30 apache2 postfix

Now I also want, that the second node takes over the control, if a single service fails, I have found that this is possible
with OCF, but I do not understand the whole topic.

That's the only thing I have done now:

fs-1:~# /usr/lib/ocf/resource.d/heartbeat/mysql status; echo $?
0
fs-1:~# /etc/init.d/mysql stop
Stopping MySQL database server: mysqld.
fs-1:~# /usr/lib/ocf/resource.d/heartbeat/mysql status; echo $?
7

I am on a Debian Lenny system, so on all init.d scripts (we need) also provide a status argument.


How can I implement now, that the node changes if e.g. mysql fails?

-------

Mit freundlichen Grüßen / Best regards

Patrick Matthäi

LPI-zertifizierter Linux Administrator
GNU/Linux Debian Developer
Technik

ameus GmbH
Stettiner Straße 24
33106 Paderborn
Tel: 05251-14807-20
Fax: 05251-14807-30
HRB 8694 AG Paderborn
Geschäftsführer: Stephan Winter

_______________________________________________
Linux-HA mailing list
Linux-HA [at] lists
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


dejanmm at fastmail

Nov 5, 2009, 8:34 AM

Post #2 of 2 (479 views)
Permalink
Re: OCF, service-failover, mysql [In reply to]

Hi,

On Thu, Nov 05, 2009 at 03:34:44PM +0100, Patrick Matthäi wrote:
> Hello,
>
> I am a bit new in heartbeat and suc. Configured the sahred IP the server failover, this ist the line in my haresources:
> fs-1 192.168.222.30 apache2 postfix
>
> Now I also want, that the second node takes over the control, if a single service fails, I have found that this is possible
> with OCF, but I do not understand the whole topic.

OCF is used by Pacemaker/Heartbeat v2. haresources is Heartbeat
v1. v1 cannot monitor resources, though some people deployed
external monitoring with mon or similar.

Thanks,

Dejan

> That's the only thing I have done now:
>
> fs-1:~# /usr/lib/ocf/resource.d/heartbeat/mysql status; echo $?
> 0
> fs-1:~# /etc/init.d/mysql stop
> Stopping MySQL database server: mysqld.
> fs-1:~# /usr/lib/ocf/resource.d/heartbeat/mysql status; echo $?
> 7
>
> I am on a Debian Lenny system, so on all init.d scripts (we need) also provide a status argument.
>
>
> How can I implement now, that the node changes if e.g. mysql fails?
>
> -------
>
> Mit freundlichen Grüßen / Best regards
>
> Patrick Matthäi
>
> LPI-zertifizierter Linux Administrator
> GNU/Linux Debian Developer
> Technik
>
> ameus GmbH
> Stettiner Straße 24
> 33106 Paderborn
> Tel: 05251-14807-20
> Fax: 05251-14807-30
> HRB 8694 AG Paderborn
> Geschäftsführer: Stephan Winter
>
> _______________________________________________
> Linux-HA mailing list
> Linux-HA [at] lists
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
_______________________________________________
Linux-HA mailing list
Linux-HA [at] lists
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Linux-HA users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.