[ClusterLabs] what is the "best" way to completely shutdown a two-node cluster ?

Strahil Nikolov hunter86_bg at yahoo.com
Thu Feb 10 08:55:25 EST 2022


One drawback of that approach is that adding a the resource stop command will also prevent the resources from starting once the UPS gets enough power and start the servers.
 
Of course a script in cron (@reboot) or in systemd can overcome it.

Best Regards,Strahil Nikolov
 
  On Thu, Feb 10, 2022 at 11:15, Jehan-Guillaume de Rorthais<jgdr at dalibo.com> wrote:   On Wed, 9 Feb 2022 17:42:35 +0000 (UTC)
Strahil Nikolov via Users <users at clusterlabs.org> wrote:

> If you gracefully shutdown a node - pacemaker will migrate all resources away
>  so you need to shut them down simultaneously and all resources should be
> stopped by the cluster.
> 
> Shutting down the nodes would be my choice.

If you want to gracefully shutdown your cluster, then you can add one manual
step to first gracefully stop your resources instead of betting the cluster
will do the good things.

As far as I remember, there's no way the DC/CRM can orchestrate the whole
cluster shutdown gracefully in the same transition. So I prefer standing on the
safe side and add one step to my procedure.

I even add it with commands like `pcs cluster stop --all` which tries to
shutdown all the nodes "kind of" in the same time everywhere. At least, I know
where my resources were stopped and how they will start. It might be important
when you deal with eg. permanent promotion scores.

++
  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clusterlabs.org/pipermail/users/attachments/20220210/8294b77d/attachment.htm>


More information about the Users mailing list