On 20 September 2010 17:07, Pavlos Parissis <[email protected]> wrote: > On 20 September 2010 16:06, John Adams <[email protected]> wrote: >> Hi >> >> running with heartbeat 3.0.2 I set up a active-passive 2-node cluster. >> If I transfer all resources to the other node is there a command that >> returns which of both clusters is active? >> Or is it possible to find out on a per resource basis which resource is >> active on which cluster node? > You can use crm_mon -1 and do some grep to get what you want, like > the following > [r...@node-01 ~]# crm_mon -1 |grep ip_02|awk -F" " '{print $4}' > node-02 > > i looked up for a specific resource and got back where it is started
there is also a faster way: crm_resource --resource ip_01 --locate resource ip_01 is running on: node-01 Cheers, Pavlos _______________________________________________ Linux-HA mailing list [email protected] http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems
