[ClusterLabs] Best way to create a floating identity file

Andrei Borzenkov arvidjaar at gmail.com
Tue Dec 15 10:28:16 EST 2020


15.12.2020 17:10, Tony Stocker пишет:
> On Tue, Dec 15, 2020 at 9:02 AM Andrei Borzenkov <arvidjaar at gmail.com> wrote:
>>
>> On Tue, Dec 15, 2020 at 4:58 PM Tony Stocker <akostocker at gmail.com> wrote:
>>>
>>
>> You could simply query whether a specific resource (group) is active
>> on the node where your script runs. I used a similar approach in two
>> node cluster (in this case I simply needed to make sure only one node
>> runs cron job so I checked for CB master).
>>
> Can you give me the syntax for how you did that?

Something like

ha1:~ # crm_resource -W -r SAP_HA1_A
resource SAP_HA1_A is running on: ha1
ha1:~ # crm_resource -W -r SAP_HA1_new_fs
resource SAP_HA1_new_fs is NOT running
ha1:~ #


More information about the Users mailing list