[ClusterLabs] Antw: Safe way to stop pacemaker on both nodes of a two node cluster

Andrei Borzenkov arvidjaar at gmail.com
Wed Oct 23 06:12:21 EDT 2019


21.10.2019 9:39, Ulrich Windl пишет:
>>>> "Dileep V Nair" <dilenair at in.ibm.com> schrieb am 20.10.2019 um 17:54 in
> Nachricht
> <OFEF1DF8BA.A3AAEEAA-ON65258499.0056C5D6-65258499.00576384 at notes.na.collabserv.c
> 
> m>:
> 
>> Hi,
>>
>> 	I am confused about the best way to stop pacemaker on both nodes of a
>> two node cluster. The options I know of are
>> 1. Put the cluster in Maintenance Mode, stop the applications manually and
>> then stop pacemaker on both nodes. For this I need the application to  be
>> stopped manually
> 
> I think stopping cluster resources that way is a bad idea, because the cluster
> when started again thinks the apps are up.
> 

That's not how I interpret documentation.

5. Verify that the cluster re-detected all resources correctly.

Which implies that after full restart cluster is not aware of previous
application state and relies on normal probing.

> There has been a "stop cluster" thread recently. AFAIR there was not perfect
> solution. Maybe try to find that thread.
> 

This is recurring request. And it is not really specific to two-node
cluster.

>> 2. Stop pacemaker on one node, wait for all resources to come up on second
>> node, then stop pacemaker on second node. This might cause a significant
>> delay because all resources has to come up on second node.
> 
> I think there is a "stop  all resources" somewhere that might avoid that.
> 

Pacemaker does not really have concept of actions. It works with target
state; so this would mean either setting target-role of each individual
resource to Stopped which is impractical or setting global resource
defaults which is unreliable as they may be overridden.

>>
>> 	Is there any other way to stop pacemaker on both nodes gracefully ?
> 
> Not a perfect one, I'm afraid.
> 
> Regards,
> Ulrich
> 
> 
>> Thanks in advance.
>>
>> Thanks & Regards
>>
>> Dileep Nair
>> Squad Lead ‑ SAP Base
>> Togaf Certified Enterprise Architect
>> IBM Services for Managed Applications
>> +91 98450 22258 Mobile
>> dilenair at in.ibm.com 
>>
>> IBM Services
> 
> 
> 
> _______________________________________________
> Manage your subscription:
> https://lists.clusterlabs.org/mailman/listinfo/users
> 
> ClusterLabs home: https://www.clusterlabs.org/
> 



More information about the Users mailing list