Re: [ClusterLabs] what is the "best" way to completely shutdown a two-node cluster ?
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, Bernd wrote: - 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 believe the > resources would not start automatically after setting > "stop-all-resources=false". > ha-idg-2:~ # crm resource help stop Stop resources Stop one or more resources using the target-role attribute. If there are multiple meta attributes sets, the attribute is set in all of them. If the resource is a clone, all target-role attributes are removed from the children resources. For details on group management see options manage-children. Usage: stop [ ...] Bernd ___ Manage your subscription: https://lists.clusterlabs.org/mailman/listinfo/users ClusterLabs home: https://www.clusterlabs.org/
Re: [ClusterLabs] what is the "best" way to completely shutdown a two-node cluster ?
- 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 believe the > resources would not start automatically after setting > "stop-all-resources=false". > ha-idg-2:~ # crm resource help stop Stop resources Stop one or more resources using the target-role attribute. If there are multiple meta attributes sets, the attribute is set in all of them. If the resource is a clone, all target-role attributes are removed from the children resources. For details on group management see options manage-children. Usage: stop [ ...] Bernd smime.p7s Description: S/MIME Cryptographic Signature ___ Manage your subscription: https://lists.clusterlabs.org/mailman/listinfo/users ClusterLabs home: https://www.clusterlabs.org/
[ClusterLabs] Antw: [EXT] Re: what is the "best" way to completely shutdown a two‑node cluster ?
>>> Jehan-Guillaume de Rorthais schrieb am 09.02.2022 um 11:26 in Nachricht <20220209112639.3a4e163b@karst>: ... > > 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. That's what it does. Probably the only way to keep it stopped ;-) > > If "crm resource stop" actually use "target‑role=Stopped", I believe the > resources would not start automatically after setting > "stop‑all‑resources=false". True. Regards, Ulrich > > ++ > ___ > Manage your subscription: > https://lists.clusterlabs.org/mailman/listinfo/users > > ClusterLabs home: https://www.clusterlabs.org/ ___ Manage your subscription: https://lists.clusterlabs.org/mailman/listinfo/users ClusterLabs home: https://www.clusterlabs.org/
Re: [ClusterLabs] what is the "best" way to completely shutdown a two-node cluster ?
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 because i realized that 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 > >> difference of about 20 seconds for not getting to much IO load. and then > >> ... > >> - how to stop the other resources ? > > > > I would set cluster option "stop-all-resources" so all remaining resources > > are stopped gracefully by the cluster. > > > > Then you can stop both nodes using eg. "crm cluster stop". > > > > On restart, after both nodes are up and joined to the cluster, you can set > > "stop-all-resources=false", then start your VirtualDomains. > > Aren't the VirtualDomains already started by "stop-all-resources=false" ? 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 believe the resources would not start automatically after setting "stop-all-resources=false". ++ ___ Manage your subscription: https://lists.clusterlabs.org/mailman/listinfo/users ClusterLabs home: https://www.clusterlabs.org/
Re: [ClusterLabs] what is the "best" way to completely shutdown a two-node cluster ?
- 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 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 difference of >> about 20 seconds for not getting to much IO load. and then ... >> - how to stop the other resources ? > > I would set cluster option "stop-all-resources" so all remaining resources are > stopped gracefully by the cluster. > > Then you can stop both nodes using eg. "crm cluster stop". > > On restart, after both nodes are up and joined to the cluster, you can set > "stop-all-resources=false", then start your VirtualDomains. Aren't the VirtualDomains already started by "stop-all-resources=false" ? I wrote a script for the whole procedure which is triggered by the UPS. As i am not a big schellscript-writer please have a look and tell me your opinion. You find it here: https://nc-mcd.helmholtz-muenchen.de/nextcloud/s/rEA9bFxs5Ay6fYG Thanks. Bernd smime.p7s Description: S/MIME Cryptographic Signature ___ Manage your subscription: https://lists.clusterlabs.org/mailman/listinfo/users ClusterLabs home: https://www.clusterlabs.org/