15.12.2020 17:10, Tony Stocker пишет: > On Tue, Dec 15, 2020 at 9:02 AM Andrei Borzenkov <[email protected]> wrote: >> >> On Tue, Dec 15, 2020 at 4:58 PM Tony Stocker <[email protected]> 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:~ # _______________________________________________ Manage your subscription: https://lists.clusterlabs.org/mailman/listinfo/users ClusterLabs home: https://www.clusterlabs.org/
