Re: [Pacemaker] Why location can't work as expected

2014-08-07 Thread david.miao
On 08/07/2014 03:14 AM, David Vossel wrote: - Original Message - Hello everyone: my tools version pacemaker: 1.1.10 corosync: 1.4.5 crmsh-2.0 I have 2 nodes node1 and node2, resource agent Test must running on node1, and Test should not run on node2 if node1 is offline. So I do the f

[Pacemaker] Why location can't work as expected

2014-08-06 Thread david.miao
Hello everyone: my tools version pacemaker: 1.1.10 corosync: 1.4.5 crmsh-2.0 I have 2 nodes node1 and node2, resource agent Test must running on node1, and Test should not run on node2 if node1 is offline. So I do the following config: location TestOnNode1 Test INFINITY: node1 If node1 and no

[Pacemaker] question about collocation and mutex

2014-05-26 Thread david.miao
hello everyone I have 4 resource agents A B C and D. A B C should run on the same node, but D should mutex with any of A B C. The following is my configure, is it correct? crm configure collocation ABC INFINITY: A B C crm configure collocation D-mutex-ABC -INFINITY: D (A B C) please give my so

Re: [Pacemaker] How to config STONITH on centos using fence_ipmilan

2014-05-16 Thread david.miao
Thanks. I see. My nodes both have BMC to implement IPMI. But we don`t hope node shoot itself. So in my case, "location" is necessary to prevent fence_impilan runing on its shooting node. On 05/14/2014 03:00 PM, Andrew Beekhof wrote: On 12 May 2014, at 6:04 pm, david.miao wrote:

[Pacemaker] How to config STONITH on centos using fence_ipmilan

2014-05-12 Thread david.miao
I install fence_ipmilan with the command: yum install fence-agents My stonith configuration is as following: node master node slave ... primitive stonith-master stonith:fence_ipmilan \ params ipaddr=192.168.1.36 login=root passwd=master pcmk_host_list=master pcmk_host_check=static-list actio