[ClusterLabs] Antw: [EXT] Colocation per site ?

Andrei Borzenkov arvidjaar at gmail.com
Wed Mar 31 03:53:52 EDT 2021


On Wed, Mar 31, 2021 at 8:34 AM Strahil Nikolov <hunter86_bg at yahoo.com> wrote:
>
> Damn... I am too hasty.
>
> It seems that the 2 resources I have already configured are also running on the master.
>
> The colocation constraint is like:
>
> rsc_bkpip3_SAPHana_SID_HDBinst_num with rsc_SAPHana_SID_HDBinst_num-clone (score: INFINITY) (node-attribute:hana_sid_site) (rsc-role:Started) (with-rsc-role:Master)
>
>
> Setting location constraints to prevent from running on the masters causes the resource to stop.
>

Well, this constraint does not prevent two resources from running on
the same node. You would need to either use clone and restrict the
number of total and per-node clone instances or use negative
colocation between each pair of your resources (so they are not
started on the same node).

But I suspect you really overengineer it. At the end SAP HANA backup
is always initiated by SAP HANA itself and you only need the single IP
address to do it. This single IP address is already available as part
of SAP HANA replication setup (and should be active on the master HANA
node). Backup software usually wants to know which *physical* servers
a given virtual client may be allowed to run on, but in this case it
should really be enough to simply add all nodes to this list.

You may want to discuss it with your backup team again.


More information about the Users mailing list