[Pacemaker] help building 2 node config
Andrew Beekhof
andrew at beekhof.net
Tue Mar 18 23:23:56 UTC 2014
On 18 Mar 2014, at 3:17 pm, Alex Samad - Yieldbroker <Alex.Samad at yieldbroker.com> wrote:
>
>
>> -----Original Message-----
>> From: Andrew Beekhof [mailto:andrew at beekhof.net]
>> Sent: Tuesday, 18 March 2014 2:02 PM
>> To: The Pacemaker cluster resource manager
>> Subject: Re: [Pacemaker] help building 2 node config
>>
>>
>> On 18 Mar 2014, at 1:36 pm, Alex Samad - Yieldbroker
>> <Alex.Samad at yieldbroker.com> wrote:
>>
> [snip]
>
>>>
>>> pcs status
>>> pcs status
>>> Cluster name: ybrp
>>> Last updated: Tue Mar 18 13:31:29 2014 Last change: Tue Mar 18
>>> 13:26:51 2014 via cibadmin on alcdevrp01
>>> Stack: cman
>>> Current DC: dc1devrp01 - partition with quorum
>>> Version: 1.1.10-14.el6-368c726
>>> 2 Nodes configured
>>> 4 Resources configured
>>>
>>>
>>> Online: [ alcdevrp01 dc1devrp01 ]
>>>
>>> Full list of resources:
>>>
>>> Clone Set: ybrpstat-clone [ybrpstat]
>>> Started: [ alcdevrp01 dc1devrp01 ] Clone Set: ybrpip-clone
>>> [ybrpip] (unique)
>>> ybrpip:0 (ocf::heartbeat:IPaddr2): Started dc1devrp01
>>> ybrpip:1 (ocf::heartbeat:IPaddr2): Started dc1devrp01
>>>
>>> this is after I rebooted the alcdevrp01, the resources that were on it moved
>> over to the dc1devrp01, but I want one of the ybrpip resources to move back
>> to it. I guess another way of saying this is, can I place a constraint on an
>> instance of 1 of the cloned resources ...
>
> So why didn't the resources get rebalanced here ?
>
>
>>>
>>>
>>> So this is the result after reboot dc1devrp01 pcs status Cluster name:
>>> ybrp Last updated: Tue Mar 18 13:32:08 2014 Last change: Tue Mar 18
>>> 13:26:51 2014 via cibadmin on alcdevrp01
>>> Stack: cman
>>> Current DC: alcdevrp01 - partition with quorum
>>> Version: 1.1.10-14.el6-368c726
>>> 2 Nodes configured
>>> 4 Resources configured
>>>
>>>
>>> Online: [ alcdevrp01 dc1devrp01 ]
>>>
>>> Full list of resources:
>>>
>>> Clone Set: ybrpstat-clone [ybrpstat]
>>> Started: [ alcdevrp01 dc1devrp01 ] Clone Set: ybrpip-clone
>>> [ybrpip] (unique)
>>> ybrpip:0 (ocf::heartbeat:IPaddr2): Started alcdevrp01
>>> ybrpip:1 (ocf::heartbeat:IPaddr2): Started dc1devrp01
>>>
>>>
>>> the ybrpip resource rebalanced themselves, I am guessing because I
>>> have the constraint for location
>>
>> it should do so anyway
>>
> [snip]
>
>>>
>>> If I have these constraints on location how do I manually move a resource
>> from one node to another....
>>
>> crm_resource --ban
>
>
> # current status
>
> pcs status
> Cluster name: ybrp
> Last updated: Tue Mar 18 15:08:36 2014
> Last change: Tue Mar 18 15:08:09 2014 via crm_resource on alcdevrp01
> Stack: cman
> Current DC: alcdevrp01 - partition with quorum
> Version: 1.1.10-14.el6-368c726
> 2 Nodes configured
> 4 Resources configured
>
>
> Online: [ alcdevrp01 dc1devrp01 ]
>
> Full list of resources:
>
> Clone Set: ybrpstat-clone [ybrpstat]
> Started: [ alcdevrp01 dc1devrp01 ]
> Clone Set: ybrpip-clone [ybrpip] (unique)
> ybrpip:0 (ocf::heartbeat:IPaddr2): Started alcdevrp01
> ybrpip:1 (ocf::heartbeat:IPaddr2): Started alcdevrp01
>
>
> # move it
> crm_resource --resource ybrpip-clone --move
>
>
> Clone Set: ybrpip-clone [ybrpip] (unique)
> ybrpip:0 (ocf::heartbeat:IPaddr2): Started dc1devrp01
> ybrpip:1 (ocf::heartbeat:IPaddr2): Started dc1devrp01
>
> # remove constraint
> crm_resource --resource ybrpip-clone --clear
>
> Clone Set: ybrpip-clone [ybrpip] (unique)
> ybrpip:0 (ocf::heartbeat:IPaddr2): Started dc1devrp01
> ybrpip:1 (ocf::heartbeat:IPaddr2): Started dc1devrp01
>
> #still doesn't balance out. How do I move just 1 of the clones !
Can you send me the result of cibadmin -Ql when the cluster is in this state?
>
>
>
>
>>
>>> do I just move the node into standby mode ?
>>>
>>> A
> [snip]
>
>
>
> _______________________________________________
> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://bugs.clusterlabs.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 841 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20140319/3aa5a5fd/attachment-0004.sig>
More information about the Pacemaker
mailing list