Product SiteDocumentation Site

Capitolo 14. Status - Here be dragons

Indice

14.1. Stato dei nodi
14.2. Attributi dei nodi transitori
14.3. Storico delle operazioni
14.3.1. Un semplice esempio
14.3.2. Un complesso esempio di storico per risorsa
Most users never need to understand the contents of the status section and can be happy with the output from crm_mon.
However for those with a curious inclination, this section attempts to provide an overview of its contents.

14.1. Stato dei nodi

In addition to the cluster’s configuration, the CIB holds an up-to-date representation of each cluster node in the status section.

Esempio 14.1. A bare-bones status entry for a healthy node called cl-virt-1

  <node_state id="cl-virt-1" uname="cl-virt-2" ha="active" in_ccm="true" crmd="online" join="member" expected="member" crm-debug-origin="do_update_resource">
   <transient_attributes id="cl-virt-1"/>
   <lrm id="cl-virt-1"/>
  </node_state>

Users are highly recommended not to modify any part of a node’s state directly. The cluster will periodically regenerate the entire section from authoritative sources. So any changes should be done with the tools for those subsystems.

Tabella 14.1. Sorgenti autoritative per le informazioni di stato

Dataset Sorgente autoritativa
node_state fields
crmd
transient_attributes tag
attrd
lrm tag
lrmd

The fields used in the node_state objects are named as they are largely for historical reasons and are rooted in Pacemaker’s origins as the Heartbeat resource manager.
They have remained unchanged to preserve compatibility with older versions.

Tabella 14.2. Campi relativi allo status dei nodi

Campo Descrizione
id
Unique identifier for the node. Corosync based clusters use the uname of the machine, Heartbeat clusters use a human-readable (but annoying) UUID.
uname
The node’s machine name (output from uname -n).
ha
Flag specifying whether the cluster software is active on the node. Allowed values: active, dead.
in_ccm
Flag for cluster membership; allowed values: true, false.
crmd
Flag: is the crmd process active on the node? One of online, offline.
join
Flag saying whether the node participates in hosting resources. Possible values: down, pending, member, banned.
expected
Expected value for join.
crm-debug-origin
Diagnostic indicator: the origin of the most recent change(s).

Il cluster utilizza questi campi per determinare se, a livello di nodo, il nodo è sano o in uno stato fallito e necessita di essere ucciso (fenced).