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

2022-02-10 Thread Lentes, Bernd
- On Feb 10, 2022, at 4:40 PM, Jehan-Guillaume de Rorthais j...@dalibo.com wrote: > > I wonder if after the cluster shutdown complete, the target-role=Stopped could > be removed/edited offline with eg. crmadmin? That would make VirtualDomain > startable on boot. > > I suppose this would

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

2022-02-10 Thread Jehan-Guillaume de Rorthais
On Thu, 10 Feb 2022 22:15:07 +0800 Roger Zhou via Users wrote: > > On 2/9/22 17:46, Lentes, Bernd wrote: > > > > > > - On Feb 7, 2022, at 4:13 PM, Jehan-Guillaume de Rorthais > > j...@dalibo.com wrote: > > > >> On Mon, 7 Feb 2022 14:24:44 +0100 (CET) > >> "Lentes, Bernd" wrote: > >> >

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

2022-02-10 Thread Roger Zhou via Users
On 2/9/22 17:46, Lentes, Bernd wrote: - On Feb 7, 2022, at 4:13 PM, Jehan-Guillaume de Rorthais j...@dalibo.com wrote: On Mon, 7 Feb 2022 14:24:44 +0100 (CET) "Lentes, Bernd" wrote: Hi, i'm currently changing a bit in my cluster because i realized that my configuration for a power

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

2022-02-10 Thread Strahil Nikolov via Users
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,

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

2022-02-10 Thread Jehan-Guillaume de Rorthais
On Wed, 9 Feb 2022 17:42:35 + (UTC) Strahil Nikolov via Users 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

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

2022-02-09 Thread Strahil Nikolov via Users
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. Best Regards,Strahil Nikolov On Wed, Feb 9, 2022 at 12:52, Lentes,

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

2022-02-09 Thread Lentes, Bernd
- On Feb 9, 2022, at 11:26 AM, Jehan-Guillaume de Rorthais j...@dalibo.com wrote: > > I'm not sure how "crm resource stop " actually stop a resource. I thought > it would set "target-role=Stopped", but I might be wrong. > > If "crm resource stop" actually use "target-role=Stopped", I

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

2022-02-09 Thread Jehan-Guillaume de Rorthais
On Wed, 9 Feb 2022 10:46:30 +0100 (CET) "Lentes, Bernd" wrote: > - On Feb 7, 2022, at 4:13 PM, Jehan-Guillaume de Rorthais j...@dalibo.com > wrote: > > > On Mon, 7 Feb 2022 14:24:44 +0100 (CET) > > "Lentes, Bernd" wrote: > > > >> Hi, > >> > >> i'm currently changing a bit in my cluster

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

2022-02-09 Thread Lentes, Bernd
- On Feb 7, 2022, at 4:13 PM, Jehan-Guillaume de Rorthais j...@dalibo.com wrote: > On Mon, 7 Feb 2022 14:24:44 +0100 (CET) > "Lentes, Bernd" wrote: > >> Hi, >> >> i'm currently changing a bit in my cluster because i realized that my >> configuration for a power outtage didn't work as i

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

2022-02-07 Thread Jehan-Guillaume de Rorthais
On Mon, 7 Feb 2022 14:24:44 +0100 (CET) "Lentes, Bernd" wrote: > Hi, > > i'm currently changing a bit in my cluster because i realized the my > configuration for a power outtage didn't work as i expected. My idea is > currently: > - first stop about 20 VirtualDomains, which are my services.

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

2022-02-07 Thread Lentes, Bernd
Hi, i'm currently changing a bit in my cluster because i realized the my configuration for a power outtage didn't work as i expected. My idea is currently: - first stop about 20 VirtualDomains, which are my services. This will surely takes some minutes. I'm thinking of stopping each with a time