Re: [Linux-ha-dev] Patch: VirtualDomain - fix probe if config is not on shared storage

2011-06-26 Thread Dominik Klein
I'm not sure my fix is correct.

According to

https://github.com/ClusterLabs/resource-agents/commit/96ff8e9ad3d4beca7e063beef156f3b838a798e1#heartbeat/VirtualDomain

this is a regression which was introduced in April '11.

So the fix should be the other way around: Introduce a parameter that
let's the user configure the config file _is_ on shared storage and if
this is false or unset, return to the old behaviour of returning
ERR_INSTALLED.

Regards
Dominik
___
Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/


[Linux-HA] Linux HA for VMs

2011-06-26 Thread Hai Tao

Has anyone deployed Linux HA for VMs before?
 
A serial cable cannot be set up as heartbeat for VMs, then would using only 
ethernet network as heartbeating media be a single point of failure?
 
Another certian is if we migrate a VM to another ESX host, the VM will be 
freeze for a while, will this cause a split brain? 


Thanks.
 
Hai Tao   
___
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


Re: [Linux-HA] Web resource monitoring

2011-06-26 Thread Maxim Ianoglo
Hello,

 The http monitoring code should be split off from the apache RA.
 Then a simple stateless (see the Dummy RA for a sample) RA, say
 httpmon, can be created which would source the http monitoring.
 Patches accepted! Guidance and constructive critique offered :)
Ok, thank you for suggestion with name of RA :)
Here is what I wrote: 
https://github.com/dotNox/heartbeat_resources/blob/master/httpmon
Small description is available at: 
http://dotnox.net/2011/06/multiple-ha-resources-based-on-same-service-heartbeat-httpmon-ra/
I did not want to patch or change something in apache RA as if someone will not 
have any cross of resources, like I have, and it will be easier to use apache 
RA.

Thank you.
--
Maxim Ianoglo
___
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


Re: [Linux-HA] serial cable or ethnet cable for heartbeat, which one is better?

2011-06-26 Thread Andrew Beekhof
On Mon, Jun 27, 2011 at 3:03 AM, Hai Tao taoh...@hotmail.com wrote:

 Which one is better for heartbeat, a serial cable or a dedicated ethernet 
 cable?

 Can the bandwidth of a serial cable be a bottleneck?

If you're running pacemaker - yes.

 How much data is transferred on the heartbeat link?


 Thanks.

 Hai Tao




 ___
 Linux-HA mailing list
 Linux-HA@lists.linux-ha.org
 http://lists.linux-ha.org/mailman/listinfo/linux-ha
 See also: http://linux-ha.org/ReportingProblems

___
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


Re: [Linux-HA] CIB process quits and could not connect to CRM

2011-06-26 Thread Andrew Beekhof
On Mon, May 16, 2011 at 11:36 PM, Mateusz Kalisiak
mateusz.kalis...@gmail.com wrote:
 Hello,

 I'm struggling the same problem on RHEL 6. Does anyone have some idea of
 solving this out?
 Any help would be appreciated.

You'd need to provide more details than that.
Have you tried reading the logs?


 Best Regards,
 Mateusz
 ___
 Linux-HA mailing list
 Linux-HA@lists.linux-ha.org
 http://lists.linux-ha.org/mailman/listinfo/linux-ha
 See also: http://linux-ha.org/ReportingProblems

___
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


Re: [Linux-HA] Best way for colocating resource on a dual primary drbd

2011-06-26 Thread Andrew Beekhof
On Mon, May 16, 2011 at 5:38 PM, RaSca ra...@miamammausalinux.org wrote:
 Il giorno Lun 16 Mag 2011 09:01:08 CET, Andrew Beekhof ha scritto:
 [...]

 Implicit that once the resource go away it becomes slave?

 Pretty sure this is a bug in 1.0.
 Have you tried 1.1.5 ?

 Not yet, but so Andrew are you saying that keeping the colocation even if I
 have a dual primary drbd is the best thing to do?

Yes.


 --
 RaSca
 Mia Mamma Usa Linux: Niente è impossibile da capire, se lo spieghi bene!
 ra...@miamammausalinux.org
 http://www.miamammausalinux.org


___
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


Re: [Linux-HA] Colocation of VIP and httpd

2011-06-26 Thread Andrew Beekhof
On Wed, Jun 1, 2011 at 12:04 PM, 吴鸿宇 whyfo...@gmail.com wrote:
 Thank you for your reply.

 My requirement is like this:
 The httpd service runs on every node in the cluster and is monitored by
 watchdog. VIP only runs on one node at a time. Heartbeat will check the
 status of httpd on each node and make sure the VIP runs on the node that has
 httpd running. Note that the Heartbeat is not expected to control the httpd
 service but just to monitor.

 Say I have Heartbeat, then I have the following configuration questions:
 1) Should I use clone for monitoring httpd?

No, you should clone the httpd service.
Each instance of the clone is responsible for monitoring itself.

 2) Which operation should I specified for the action of httpd service?
 fence or block or another?

It depends what you want. Try reading the documentation for those options.


 Is the combination clone+action+colocation enough for the requirement above?
 If not, what else special configuration do I need?

 Thank you for any advices!
 Hongyu

 On Tue, May 24, 2011 at 12:48 AM, RaSca ra...@miamammausalinux.org wrote:

 Il giorno Gio 19 Mag 2011 19:25:54 CET, 吴鸿宇 ha scritto:

  Hi All,
 I have a 2 node cluster. My intention is ensuring the VIP is always on the
 node that has httpd running, i.e. if service httpd on the VIP node is
 stopped and fails to start, the VIP should switch to the other node.
 With the configuration below, I observed that when httpd stops and fails
 to
 start, the VIP is stopped also but is not switched to the other node that
 has healthy httpd. I appreciate any ideas.

 [...]

 Some questions:
 Why httpd is cloned? Are you sure you want an INFINITY stickiness? Are logs
 saying anything helpful?

 Anyway, like Nikita said, consider upgrading Heartbeat to version 3.

 --
 RaSca
 Mia Mamma Usa Linux: Niente è impossibile da capire, se lo spieghi bene!
 ra...@miamammausalinux.org
 http://www.miamammausalinux.org


 ___
 Linux-HA mailing list
 Linux-HA@lists.linux-ha.org
 http://lists.linux-ha.org/mailman/listinfo/linux-ha
 See also: http://linux-ha.org/ReportingProblems
___
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Re: [Linux-HA] need help on email alerts

2011-06-26 Thread Andrew Beekhof
On Sun, Jun 5, 2011 at 8:53 PM, Amit Jathar amit.jat...@alepo.com wrote:
 Hi,

 I have configured email alerts for corosync as follows :-
 Crm configure show
 ---SNIP-
 primitive resMON ocf:pacemaker:ClusterMon \
        operations $id=resMON-operations \
        op monitor interval=180 timeout=20 \
        params extra_options=--mail-to x...@gmail.com
 ---SNIP---

 I can see this resource is started :-
 crm_mon -1
 ---SNIP
 resMON (ocf::pacemaker:ClusterMon):    Started xx
 ---SNIP

 I can send mail from my machine :-
 [root@localhost] mail -s testmail xx

We don't rely on a local mail server, instead we use libesmtp.
You'll need to make sure that is configured - or use call mail from a
script referenced by --external-agent

 .
 Cc:
 Null message body; hope that's ok

 I cannot get mails any mails if my cluster status changes. I could not see 
 anything in the /var/log/maillog also.

 Is there any hint if I am missing out any configuration.

 Thanks,
 Amit


 
 This email (message and any attachment) is confidential and may be 
 privileged. If you are not certain that you are the intended recipient, 
 please notify the sender immediately by replying to this message, and delete 
 all copies of this message and attachments. Any other use of this email by 
 you is prohibited.
 


 ___
 Linux-HA mailing list
 Linux-HA@lists.linux-ha.org
 http://lists.linux-ha.org/mailman/listinfo/linux-ha
 See also: http://linux-ha.org/ReportingProblems

___
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


Re: [Linux-HA] serial cable or ethnet cable for heartbeat, which one is better?

2011-06-26 Thread Hai Tao

does it mean if I do not use pacemaker, there would not be too much heartbeat 
traffic?


Thanks.
 
Hai Tao
 


 Date: Mon, 27 Jun 2011 09:21:20 +1000
 From: and...@beekhof.net
 To: linux-ha@lists.linux-ha.org
 Subject: Re: [Linux-HA] serial cable or ethnet cable for heartbeat, which one 
 is better?
 
 On Mon, Jun 27, 2011 at 3:03 AM, Hai Tao taoh...@hotmail.com wrote:
 
  Which one is better for heartbeat, a serial cable or a dedicated ethernet 
  cable?
 
  Can the bandwidth of a serial cable be a bottleneck?
 
 If you're running pacemaker - yes.
 
  How much data is transferred on the heartbeat link?
 
 
  Thanks.
 
  Hai Tao
 
 
 
 
  ___
  Linux-HA mailing list
  Linux-HA@lists.linux-ha.org
  http://lists.linux-ha.org/mailman/listinfo/linux-ha
  See also: http://linux-ha.org/ReportingProblems
 
 ___
 Linux-HA mailing list
 Linux-HA@lists.linux-ha.org
 http://lists.linux-ha.org/mailman/listinfo/linux-ha
 See also: http://linux-ha.org/ReportingProblems
  
___
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


Re: [Linux-HA] Virtual mysql cluster ip is not accessible on port 3306

2011-06-26 Thread Andrew Beekhof
On Thu, Jun 23, 2011 at 12:06 AM, Calistus Che calistus@gmail.com wrote:
 Hi Guys,

 could any one of you help me?

 I just set up a 2 lb (master and slave) and 2 mysql cluster nodes db1 and 2.

 The servers have 2 interfaces private and public and loadbalancing is
 running on the private network.

 Everything is pretty running fine till now, but the only problem access to
 the virtual ip.

 I would greatly appreciate your help.

Based on what?


 Regards

 KC
 ___
 Linux-HA mailing list
 Linux-HA@lists.linux-ha.org
 http://lists.linux-ha.org/mailman/listinfo/linux-ha
 See also: http://linux-ha.org/ReportingProblems

___
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


Re: [Linux-HA] Always Get a Billion Failed Actions

2011-06-26 Thread Andrew Beekhof
On Thu, Jun 16, 2011 at 8:38 PM, Robinson, Eric eric.robin...@psmnv.com wrote:
 crm_mon on my system displays a lot of failed actions, I guess because
 the init script for the resource is not fully lsb compliant?

 In any case, the resources seem to work okay and failover okay.

 How can I get rid of all those failed actions?

This is the cluster detecting that RAs don't exist on those nodes.
I think we added some extra logic to 1.1 that hid these when
symmetric-cluster=false was specified.


 crm_mon output follows...


 
 Last updated: Thu Jun 16 03:32:32 2011
 Stack: Heartbeat
 Current DC: ha07b.mydomain.com (6080642c-bad3-4bb8-80ba-db6b1f7a0735) -
 partition with quorum
 Version: 1.0.9-89bd754939df5150de7cd76835f98fe90851b677
 3 Nodes configured, unknown expected votes
 4 Resources configured.
 

 Online: [ ha07c.mydomain.com ha07b.mydomain.com ha07a.mydomain.com ]

  Resource Group: g_clust04
     p_fs_clust04       (ocf::heartbeat:Filesystem):    Started
 ha07a.mydomain.com
     p_vip_clust04      (ocf::heartbeat:IPaddr2):       Started
 ha07a.mydomain.com
     p_mysql_001        (lsb:mysql_001):        Started
 ha07a.mydomain.com
     p_mysql_230        (lsb:mysql_230):        Started
 ha07a.mydomain.com
     p_mysql_231        (lsb:mysql_231):        Started
 ha07a.mydomain.com
     p_mysql_232        (lsb:mysql_232):        Started
 ha07a.mydomain.com
     p_mysql_233        (lsb:mysql_233):        Started
 ha07a.mydomain.com
     p_mysql_234        (lsb:mysql_234):        Started
 ha07a.mydomain.com
     p_mysql_235        (lsb:mysql_235):        Started
 ha07a.mydomain.com
     p_mysql_236        (lsb:mysql_236):        Started
 ha07a.mydomain.com
     p_mysql_237        (lsb:mysql_237):        Started
 ha07a.mydomain.com
     p_mysql_238        (lsb:mysql_238):        Started
 ha07a.mydomain.com
     p_mysql_239        (lsb:mysql_239):        Started
 ha07a.mydomain.com
     p_mysql_240        (lsb:mysql_240):        Started
 ha07a.mydomain.com
     p_mysql_241        (lsb:mysql_241):        Started
 ha07a.mydomain.com
     p_mysql_242        (lsb:mysql_242):        Started
 ha07a.mydomain.com
     p_mysql_243        (lsb:mysql_243):        Started
 ha07a.mydomain.com
     p_mysql_244        (lsb:mysql_244):        Started
 ha07a.mydomain.com
     p_mysql_245        (lsb:mysql_245):        Started
 ha07a.mydomain.com
     p_mysql_246        (lsb:mysql_246):        Started
 ha07a.mydomain.com
     p_mysql_247        (lsb:mysql_247):        Started
 ha07a.mydomain.com
     p_mysql_248        (lsb:mysql_248):        Started
 ha07a.mydomain.com
     p_mysql_249        (lsb:mysql_249):        Started
 ha07a.mydomain.com
     p_mysql_250        (lsb:mysql_250):        Started
 ha07a.mydomain.com
     p_mysql_251        (lsb:mysql_251):        Started
 ha07a.mydomain.com
     p_mysql_252        (lsb:mysql_252):        Started
 ha07a.mydomain.com
     p_mysql_253        (lsb:mysql_253):        Started
 ha07a.mydomain.com
     p_mysql_254        (lsb:mysql_254):        Started
 ha07a.mydomain.com
     p_mysql_255        (lsb:mysql_255):        Started
 ha07a.mydomain.com
     p_mysql_256        (lsb:mysql_256):        Started
 ha07a.mydomain.com
     p_mysql_257        (lsb:mysql_257):        Started
 ha07a.mydomain.com
     p_mysql_258        (lsb:mysql_258):        Started
 ha07a.mydomain.com
     p_mysql_259        (lsb:mysql_259):        Started
 ha07a.mydomain.com
     p_mysql_260        (lsb:mysql_260):        Started
 ha07a.mydomain.com
     p_mysql_261        (lsb:mysql_261):        Started
 ha07a.mydomain.com
     p_mysql_262        (lsb:mysql_262):        Started
 ha07a.mydomain.com
     p_mysql_263        (lsb:mysql_263):        Started
 ha07a.mydomain.com
     p_mysql_264        (lsb:mysql_264):        Started
 ha07a.mydomain.com
     p_mysql_265        (lsb:mysql_265):        Started
 ha07a.mydomain.com
     p_mysql_266        (lsb:mysql_266):        Started
 ha07a.mydomain.com
     p_mysql_267        (lsb:mysql_267):        Started
 ha07a.mydomain.com
     p_mysql_268        (lsb:mysql_268):        Started
 ha07a.mydomain.com
     p_mysql_269        (lsb:mysql_269):        Started
 ha07a.mydomain.com
     p_mysql_270        (lsb:mysql_270):        Started
 ha07a.mydomain.com
     p_mysql_271        (lsb:mysql_271):        Started
 ha07a.mydomain.com
     p_mysql_272        (lsb:mysql_272):        Started
 ha07a.mydomain.com
     p_mysql_273        (lsb:mysql_273):        Started
 ha07a.mydomain.com
     p_mysql_274        (lsb:mysql_274):        Started
 ha07a.mydomain.com
     p_mysql_275        (lsb:mysql_275):        Started
 ha07a.mydomain.com
     p_mysql_276        (lsb:mysql_276):        Started
 ha07a.mydomain.com
     p_mysql_277        (lsb:mysql_277):        Started
 ha07a.mydomain.com
     p_mysql_009        (lsb:mysql_009):        Started
 ha07a.mydomain.com
     p_mysql_021        (lsb:mysql_021):        Started
 ha07a.mydomain.com
     p_mysql_052    

Re: [Linux-HA] Linux HA for VMs

2011-06-26 Thread Hai Tao

any thought on this?


Thanks.
 
Hai Tao
 


 From: taoh...@hotmail.com
 To: linux-ha@lists.linux-ha.org
 Date: Sun, 26 Jun 2011 10:14:13 -0700
 Subject: [Linux-HA] Linux HA for VMs
 
 
 Has anyone deployed Linux HA for VMs before?
 
 A serial cable cannot be set up as heartbeat for VMs, then would using only 
 ethernet network as heartbeating media be a single point of failure?
 
 Another certian is if we migrate a VM to another ESX host, the VM will be 
 freeze for a while, will this cause a split brain? 
 
 
 Thanks.
 
 Hai Tao 
 ___
 Linux-HA mailing list
 Linux-HA@lists.linux-ha.org
 http://lists.linux-ha.org/mailman/listinfo/linux-ha
 See also: http://linux-ha.org/ReportingProblems
  
___
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


Re: [Linux-HA] crm_report versus hb_report

2011-06-26 Thread Andrew Beekhof
Can you run it with -x and send me the screen output please?
It should be copying /var/log/syslog to the collector directory before
trying to call node_events on it.

On Fri, Jun 17, 2011 at 6:04 PM,  alain.mou...@bull.net wrote:
 Hi Andrew,
 ok thanks.
 So I tried it and got an error msg in the collector script around the
 node_events call :
 node_events `basename $logfile`  $EVENTS_F
 it outputs here :
 grep: syslog: No such file or directory

 whereas I trace the things around it :
 # Parse for events
 echo $logfile
 echo $EXTRA_LOGS
 for l in $logfile $EXTRA_LOGS; do
    node_events `basename $logfile`  $EVENTS_F

 and I got lofile : /var/log/syslog
 and I got one :
 -rw-r--r-- 1 root root 10549069 Jun 17 09:40 /var/log/syslog
 and variable EXTRA_LOGS is empty

 So the call seems to be :
 node_events syslog  $EVENTS_F

 So at the end, in the whole report, I got a cluster-log.txt linked to
 syslog which does not exists

 I tried to modifiy substitute the line by :
 node_events /var/log/syslog  $EVENTS_F
 and it does no more display the error about grep: syslog: No such file or
 directory

 but I don't know if it is really the good fix (as I got in both cases an
 empty events.txt but perhaps it is a coincidence ...

 Any idea ?

 Thanks
 Alain



 De :    Andrew Beekhof and...@beekhof.net
 A :     General Linux-HA mailing list linux-ha@lists.linux-ha.org
 Date :  17/06/2011 09:31
 Objet : Re: [Linux-HA] crm_report versus hb_report
 Envoyé par :    linux-ha-boun...@lists.linux-ha.org



 On Fri, Jun 17, 2011 at 5:30 PM, Andrew Beekhof and...@beekhof.net
 wrote:
 On Fri, Jun 17, 2011 at 4:47 PM,  alain.mou...@bull.net wrote:
 Hi,

 I just discover that on RH6 there is no more hb_report, it has been
 remove
 from cluster-glue rpm .
 Does the crm_report delivered in pacemaker rpm give the sames results
 as
 hb_report ?

 Yes.  It re-uses much of the same gathering code but with a slightly
 revised design.

 In fact its also flag compatible with hb_report.
 ___
 Linux-HA mailing list
 Linux-HA@lists.linux-ha.org
 http://lists.linux-ha.org/mailman/listinfo/linux-ha
 See also: http://linux-ha.org/ReportingProblems

 ___
 Linux-HA mailing list
 Linux-HA@lists.linux-ha.org
 http://lists.linux-ha.org/mailman/listinfo/linux-ha
 See also: http://linux-ha.org/ReportingProblems

___
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


Re: [Linux-HA] heartbeat three node configuration

2011-06-26 Thread Andrew Beekhof
On Thu, Jun 9, 2011 at 11:54 PM, Ricardo F ri...@hotmail.com wrote:

 What is the configuration for create a three node cluster?,

Essentially you need Pacemaker on top.
haresources based clusters were only designed for 2-nodes.

 i have this but the servers bring-up the shared ip at same time:
 ha.cflogfacility local0keepalive 2deadtime 10warntime 5initdead 
 30auto_failback offucast bond0 host1 host2 host3node host1node host2node host3
 haresourceshost1 192.168.1.10/24/bond0
 i use  heartbeat 3.0.3 in a debian squeeze in all of the nodes, all of them 
 have in the /etc/hosts the others ips and i can propagate the conf with 
 ha_propagate.

 Thanks
 ___
 Linux-HA mailing list
 Linux-HA@lists.linux-ha.org
 http://lists.linux-ha.org/mailman/listinfo/linux-ha
 See also: http://linux-ha.org/ReportingProblems

___
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


Re: [Linux-HA] ClusterIP clone resource failover and migration issue

2011-06-26 Thread Andrew Beekhof
On Mon, Jun 6, 2011 at 10:22 PM, Randy Wilson randyedwil...@gmail.com wrote:
 Hi,

 I've setup two ClusterIP instances on a two node cluster using the
 below configuration:

 node node1.domain.com
 node node2.domain.com
 primitive clusterip_33 ocf:heartbeat:IPaddr2 \
     params ip=xxx.xxx.xxx.33 cidr_netmask=27 nic=eth0:10
 clusterip_hash=sourceip-sourceport-destport mac=01:XX:XX:XX:XX:XX
 primitive clusterip_34 ocf:heartbeat:IPaddr2 \
     params ip=xxx.xxx.xxx.34 cidr_netmask=27 nic=eth0:11
 clusterip_hash=sourceip-sourceport-destport mac=01:XX:XX:XX:XX:XX
 clone clone_clusterip_33 clusterip_33 \
     meta globally-unique=true clone-max=2 clone-node-max=2
 notify=true target-role=Started \
     params resource-stickiness=0
 clone clone_clusterip_34 clusterip_34 \
     meta globally-unique=true clone-max=2 clone-node-max=2
 notify=true target-role=Started \
     params resource-stickiness=0
 property $id=cib-bootstrap-options \
     dc-version=1.0.8-042548a451fce8400660f6031f4da6f0223dd5dd \
     cluster-infrastructure=openais \
     stonith-enabled=false \
     expected-quorum-votes=2 \
     last-lrm-refresh=1307352624

 The resources start up on each node, with the correct iptables rules
 being assigned.

 
 Last updated: Mon Jun  6 11:29:24 2011
 Stack: openais
 Current DC: node1.domain.com - partition with quorum
 Version: 1.0.8-042548a451fce8400660f6031f4da6f0223dd5dd
 2 Nodes configured, 2 expected votes
 2 Resources configured.
 

 Online: [ node1.domain.com node2.domain.com ]

  Clone Set: clone_clusterip_33 (unique)
  clusterip_33:0    (ocf::heartbeat:IPaddr2):    Started node1.domain.com
  clusterip_33:1    (ocf::heartbeat:IPaddr2):    Started node2.domain.com
  Clone Set: clone_clusterip_34 (unique)
  clusterip_34:0    (ocf::heartbeat:IPaddr2):    Started node1.domain.com
  clusterip_34:1    (ocf::heartbeat:IPaddr2):    Started node2.domain.com

 I receive an error whenever I attempt to migrate one of the resources,
 so that a single node handles all the ClusterIP traffic.

 crm(live)resource# migrate clusterip_33:1 node1.domain.com
 Error performing operation: Update does not conform to the configured 
 schema/DTD

You can't (yet) migrate individual instances.  Although
   migrate clusterip_33 node1.domain.com
might still do what you want.

 crm(live)resource# migrate clusterip_34:1 node1.domain.com
 Error performing operation: Update does not conform to the configured 
 schema/DTD

 And when one of the nodes is taken offline, by stopping corosync, the
 resources are stopped on the remaining node and cannot be started
 without the other node being brought back online.

 
 Last updated: Mon Jun  6 12:42:21 2011
 Stack: openais
 Current DC: node1.domain.com - partition WITHOUT quorum
 Version: 1.0.8-042548a451fce8400660f6031f4da6f0223dd5dd
 2 Nodes configured, 2 expected votes
 2 Resources configured.
 

 Online: [ node1.domain.com ]
 OFFLINE: [ node2.domain.com ]

 If I add a colocation to the config:

 colocation coloc_clusterip inf: clone_clusterip_33 clone_clusterip_34

 When the offline node is brought back up, all the resources are
 started on the other node.

 
 Last updated: Mon Jun  6 13:00:39 2011
 Stack: openais
 Current DC: node1.domain.com - partition WITHOUT quorum
 Version: 1.0.8-042548a451fce8400660f6031f4da6f0223dd5dd
 2 Nodes configured, 2 expected votes
 2 Resources configured.
 

 Online: [ node1.domain.com node2.domain.com ]

  Clone Set: clone_clusterip_33 (unique)
  clusterip_33:0    (ocf::heartbeat:IPaddr2):    Started node1.domain.com
  clusterip_33:1    (ocf::heartbeat:IPaddr2):    Started node1.domain.com
  Clone Set: clone_clusterip_34 (unique)
  clusterip_34:0    (ocf::heartbeat:IPaddr2):    Started node1.domain.com
  clusterip_34:1    (ocf::heartbeat:IPaddr2):    Started node1.domain.com

 Can anyone see where I'm going wrong with this?


 Many thanks,

 REW
 ___
 Linux-HA mailing list
 Linux-HA@lists.linux-ha.org
 http://lists.linux-ha.org/mailman/listinfo/linux-ha
 See also: http://linux-ha.org/ReportingProblems

___
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


[Linux-HA] HA for postgresql

2011-06-26 Thread Sanjay Rao
Hi,

I am new to linux and Linux-HA. Here is my problem :

I want to implement HA between my two postgresql servers working as 
master and standby servers. My main motto behind this implementation is 
faiover not load balancing. Does anybody have any idea how to 
configure HA in this case. Any hint/web link would be good for start.
Thanks in advance.
Regards,
Sanjay Rao



___
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems