[Pacemaker] "pcs cluster status" options seems to not work

Bob Haxo bhaxo at sgi.com
Fri Feb 21 03:49:11 UTC 2014


Per 3.5 of the Configuring the RH HA Add-on with Pacemaker document, these should return
different information. They do not.

What I really need is something that gives this output so that
I can quickly script a check whether a resource is running ...

[root at mici-admin ~]# crm resource show libvirtd-clone
resource libvirtd-clone is running on: mici-admin-ptp
resource libvirtd-clone is running on: mici-admin2-ptp

... but does not use crmsh.


[root at mici-admin ~]# pcs cluster status
Cluster Status:
 Last updated: Thu Feb 20 21:43:53 2014
 Last change: Thu Feb 20 18:56:35 2014 via crm_resource on mici-admin-ptp
 Stack: cman
 Current DC: mici-admin2-ptp - partition with quorum
 Version: 1.1.10-14.el6_5.2-368c726
 2 Nodes configured
 8 Resources configured

PCSD Status:
Error: no nodes found in corosync.conf
[root at mici-admin ~]# pcs cluster status cluster
Cluster Status:
 Last updated: Thu Feb 20 21:44:03 2014
 Last change: Thu Feb 20 18:56:35 2014 via crm_resource on mici-admin-ptp
 Stack: cman
 Current DC: mici-admin2-ptp - partition with quorum
 Version: 1.1.10-14.el6_5.2-368c726
 2 Nodes configured
 8 Resources configured

PCSD Status:
Error: no nodes found in corosync.conf
[root at mici-admin ~]# pcs cluster status rewources
Cluster Status:
 Last updated: Thu Feb 20 21:44:18 2014
 Last change: Thu Feb 20 18:56:35 2014 via crm_resource on mici-admin-ptp
 Stack: cman
 Current DC: mici-admin2-ptp - partition with quorum
 Version: 1.1.10-14.el6_5.2-368c726
 2 Nodes configured
 8 Resources configured

PCSD Status:
Error: no nodes found in corosync.conf

Bob Haxo






More information about the Pacemaker mailing list