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

2019-10-20 Thread Roger Zhou

On 10/21/19 12:28 AM, Valentin Vidić wrote:
> On Sun, Oct 20, 2019 at 09:24:31PM +0530, Dileep V Nair wrote:
>>  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

To put the whole cluster in the maintenance node is a reliable approach 
to shutdown pacemaker gracefully and leave the applications running 
behind. It fits the use case per the title of this thread.

>> then stop pacemaker on both nodes. For this I need the application to  be
>> stopped manually
>> 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.
>>
>>  Is there any other way to stop pacemaker on both nodes gracefully ?
> 
> Maybe this pacemaker option can help?
> 
> stop-all-resources FALSE Should the cluster stop all resources?
> 

To shutdown the applications all together with pacemaker, this option is 
useful. But be caution about stop failure of the application migrate 
trigger stonith. "stonith-enabled=false" could remove such risk.

Cheers,
Roger

___
Manage your subscription:
https://lists.clusterlabs.org/mailman/listinfo/users

ClusterLabs home: https://www.clusterlabs.org/

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

2019-10-20 Thread Valentin Vidić
On Sun, Oct 20, 2019 at 09:24:31PM +0530, Dileep V Nair wrote:
>   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
> 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.
> 
>   Is there any other way to stop pacemaker on both nodes gracefully ?

Maybe this pacemaker option can help?

stop-all-resources FALSE Should the cluster stop all resources? 

-- 
Valentin
___
Manage your subscription:
https://lists.clusterlabs.org/mailman/listinfo/users

ClusterLabs home: https://www.clusterlabs.org/


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

2019-10-20 Thread Dileep V Nair

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
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.

Is there any other way to stop pacemaker on both nodes gracefully ?
Thanks in advance.

Thanks & Regards

Dileep Nair
Squad Lead - SAP Base
Togaf Certified Enterprise Architect
IBM Services for Managed Applications
+91 98450 22258 Mobile
dilen...@in.ibm.com

IBM Services
___
Manage your subscription:
https://lists.clusterlabs.org/mailman/listinfo/users

ClusterLabs home: https://www.clusterlabs.org/