Hi Ken, can you provide a prototype code example.<div id="yMail_cursorElementTracker_1617077128717"><br></div><div id="yMail_cursorElementTracker_1617077128959">Currently,I'm making a script that will be used in a systemd service managed by the cluster.</div><div id="yMail_cursorElementTracker_1617077179372">Yet, I would like to avoid non-pacemaker solutions.</div><div id="yMail_cursorElementTracker_1617077207573"><br></div><div id="yMail_cursorElementTracker_1617077207835">Best Regards,</div><div id="yMail_cursorElementTracker_1617077213952">Strahil Nikolov</div><div id="yMail_cursorElementTracker_1617077134044"> <br> <blockquote style="margin: 0 0 20px 0;"> <div style="font-family:Roboto, sans-serif; color:#6D00F6;"> <div>On Mon, Mar 29, 2021 at 20:12, Ken Gaillot</div><div><kgaillot@redhat.com> wrote:</div> </div> <div style="padding: 10px 0 0 20px; margin: 10px 0 0 0; border-left: 1px solid #6D00F6;"> On Sun, 2021-03-28 at 09:20 +0300, Andrei Borzenkov wrote:<br clear="none">> On 28.03.2021 07:16, Strahil Nikolov wrote:<br clear="none">> > I didn't mean DC as a designated coordinator, but as a physical<br clear="none">> > Datecenter location.<br clear="none">> > Last time I checked, the node attributes for all nodes seemed the<br clear="none">> > same.I will verify that tomorrow (Monday).<br clear="none">> > <br clear="none">> <br clear="none">> Yes, I was probably mistaken. It is different with scale-out, agent<br clear="none">> puts<br clear="none">> information in global property section of CIB.<br clear="none">> <br clear="none">> Ideally we'd need expression that says "on node where site attribute<br clear="none">> is<br clear="none">> the same as on node where clone master is active" but I guess there<br clear="none">> is<br clear="none">> no way to express it in pacemaker.<br clear="none"><br clear="none">Yep, colocation by node attribute (combined with colocation with<br clear="none">promoted role)<br clear="none"><br clear="none"><a shape="rect" href="https://clusterlabs.org/pacemaker/doc/en-US/Pacemaker/2.0/html-single/Pacemaker_Explained/index.html#_colocation_properties" target="_blank">https://clusterlabs.org/pacemaker/doc/en-US/Pacemaker/2.0/html-single/Pacemaker_Explained/index.html#_colocation_properties</a><div class="yqt9083508633" id="yqtfd26131"><br clear="none"><br clear="none"><br clear="none">> <br clear="none">> I do not see any easy way to implement it without essentially<br clear="none">> duplicating SAPHanaTopology. There are some attributes that are<br clear="none">> defined<br clear="none">> but never set so far, you may try to open service request to<br clear="none">> implement<br clear="none">> consistent attribute for all nodes on current primary site.<br clear="none">> <br clear="none">> ...<br clear="none">> <br clear="none">> Hmm ... agent sets (at least, should set) hana_${SID}_vhost attribute<br clear="none">> for each node and this attribute must be unique and different between<br clear="none">> two sites. May be worth to look into it.<br clear="none">> <br clear="none">> <br clear="none">> > Best Regards,Strahil Nikolov<br clear="none">> >  <br clear="none">> >  <br clear="none">> >   On Fri, Feb 19, 2021 at 16:51, Andrei Borzenkov<<br clear="none">> > <a shape="rect" ymailto="mailto:arvidjaar@gmail.com" href="mailto:arvidjaar@gmail.com">arvidjaar@gmail.com</a>> wrote:   On Fri, Feb 19, 2021 at 2:44 PM<br clear="none">> > Strahil Nikolov <<a shape="rect" ymailto="mailto:hunter86_bg@yahoo.com" href="mailto:hunter86_bg@yahoo.com">hunter86_bg@yahoo.com</a>> wrote:<br clear="none">> > > <br clear="none">> > > <br clear="none">> > > > Do you have a fixed relation between node >pairs and VIPs? I.e.<br clear="none">> > > > must<br clear="none">> > > > A/D always get VIP1, B/E - VIP2 etc?<br clear="none">> > > <br clear="none">> > > I have to verify it again, but generally speaking - yes , VIP1 is<br clear="none">> > > always on nodeA/D (master), VIP2 on nodeB/E (worker1) , etc.<br clear="none">> > > <br clear="none">> > > I guess I can set negative constraints (-inf) -> VIP1 on node B/E<br clear="none">> > > + nodeC/F, but the stuff with the 'same DC as master' is the<br clear="none">> > > tricky part.<br clear="none">> > > <br clear="none">> > <br clear="none">> > I am not sure I understand what DC has to do with it. You have two<br clear="none">> > scale-out SAP HANA instances, one is primary, another is secondary.<br clear="none">> > If<br clear="none">> > I understand correctly your requirements, your backup application<br clear="none">> > needs to contact the primary instance which may failover to another<br clear="none">> > site. You must be using some resource agent for it, to manage<br clear="none">> > failover. The only one I am aware of is SAPHanaSR-ScaleOut. It<br clear="none">> > already<br clear="none">> > sets different node properties for primary and secondary sites.<br clear="none">> > Just<br clear="none">> > use them. If you use something else, just look at what attributes<br clear="none">> > your<br clear="none">> > RA sets. Otherwise you will be essentially duplicating your RA<br clear="none">> > functionality because you will somehow need to find out which site<br clear="none">> > is<br clear="none">> > currently primary.<br clear="none">> > <br clear="none">> > There is no guarantee that pacemaker DC wil be on the same site as<br clear="none">> > SAP<br clear="none">> > HANA primary system.</div><br clear="none">> >   <br clear="none">> > <br clear="none">> <br clear="none">> _______________________________________________<br clear="none">> Manage your subscription:<br clear="none">> <a shape="rect" href="https://lists.clusterlabs.org/mailman/listinfo/users" target="_blank">https://lists.clusterlabs.org/mailman/listinfo/users</a><br clear="none">> <br clear="none">> ClusterLabs home: <a shape="rect" href="https://www.clusterlabs.org/" target="_blank">https://www.clusterlabs.org/</a><br clear="none">> <br clear="none">-- <br clear="none">Ken Gaillot <<a shape="rect" ymailto="mailto:kgaillot@redhat.com" href="mailto:kgaillot@redhat.com">kgaillot@redhat.com</a><div class="yqt9083508633" id="yqtfd76753">><br clear="none"><br clear="none"></div> </div> </blockquote></div>