[Pacemaker] Question about crm_mon -n option

Kazunori INOUE inouekazu at intellilink.co.jp
Mon Apr 1 08:32:56 UTC 2013


(13.03.27 18:01), Andrew Beekhof wrote:
> On Wed, Mar 27, 2013 at 7:44 PM, Kazunori INOUE
> <inouekazu at intellilink.co.jp> wrote:
>> Hi,
>>
>> I'm using pacemaker-1.1 (c7910371a5. the latest devel).
>>
>> In the case of globally-unique="false", instance numbers are appended
>> to the result of "crm_mon -n", as with in the case of
>> globally-unique="true".
>> Is this specifications?
>>
>> $ crm configure show
>>   :
>> primitive prmDummy ocf:pacemaker:Dummy
>> clone clnDummy prmDummy \
>>          meta clone-max="2" clone-node-max="1" globally-unique="false"
>>
>> $ crm_mon -n
>>   :
>> Node dev1 (3232261525): online
>>          prmDummy:1      (ocf::pacemaker:Dummy): Started
>> Node dev2 (3232261523): online
>>          prmDummy:0      (ocf::pacemaker:Dummy): Started
>>
>>
>> Case without -n, instance numbers are not appended.
>
> Yeah, instance numbers shouldn't show up here

I wrote the patch which does not display instance numbers, when
globally-unique is false.
https://github.com/inouekazu/pacemaker/commit/c9b0ef4e4b3be336a31d83a9297ef23f1adf7c8b

The following files are results of crm_mon before and after applying
this patch.
- before_applying.log
- after_applying.log

The cluster configuration is as follows.

$ crm configure show
node $id="3232261523" dev2
node $id="3232261525" dev1
primitive prmDummy ocf:pacemaker:Dummy \
        op monitor on-fail="restart" interval="10s"
primitive prmDummy2 ocf:pacemaker:Dummy \
        op monitor on-fail="restart" interval="10s"
primitive prmStateful ocf:pacemaker:Stateful \
        op monitor interval="11s" role="Master" on-fail="restart" \
        op monitor interval="12s" role="Slave" on-fail="restart"
ms msStateful prmStateful \
        meta master-max="1" master-node-max="1" clone-max="2" clone-node-max="1" notify="true" globally-unique="false"
clone clnDummy prmDummy \
        meta clone-max="2" clone-node-max="1" globally-unique="false"
property $id="cib-bootstrap-options" \
        dc-version="1.1.10-1.el6-e8caee8" \
        cluster-infrastructure="corosync" \
        no-quorum-policy="ignore" \
        stonith-enabled="false" \
        startup-fencing="false"
rsc_defaults $id="rsc-options" \
        resource-stickiness="INFINITY" \
        migration-threshold="1"
>
>>
>> $ crm_mon -r
>>   :
>> Full list of resources:
>>
>>   Clone Set: clnDummy [prmDummy]
>>       Started: [ dev1 dev2 ]
>>
>> ----
>> Best Regards,
>> Kazunori INOUE
>>
>>
>> _______________________________________________
>> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
>> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>>
>> Project Home: http://www.clusterlabs.org
>> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
>> Bugs: http://bugs.clusterlabs.org
>
> _______________________________________________
> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://bugs.clusterlabs.org
-------------- next part --------------
$ crm_mon -1
Last updated: Mon Apr  1 16:09:19 2013
Last change: Mon Apr  1 15:27:44 2013 via cibadmin on dev1
Stack: corosync
Current DC: dev2 (3232261523) - partition with quorum
Version: 1.1.10-1.el6-e8caee8
2 Nodes configured, unknown expected votes
5 Resources configured.


Online: [ dev1 dev2 ]

 prmDummy2      (ocf::pacemaker:Dummy): Started dev1
 Master/Slave Set: msStateful [prmStateful]
     Masters: [ dev1 ]
     Stopped: [ prmStateful:1 ]
 Clone Set: clnDummy [prmDummy]
     Started: [ dev1 ]
     Stopped: [ prmDummy:1 ]

Failed actions:
    prmStateful_monitor_12000 (node=dev2, call=38, rc=7, status=complete): not running
    prmDummy_monitor_10000 (node=dev2, call=25, rc=7, status=complete): not running
$
$ crm_mon -n1
Last updated: Mon Apr  1 16:09:26 2013
Last change: Mon Apr  1 15:27:44 2013 via cibadmin on dev1
Stack: corosync
Current DC: dev2 (3232261523) - partition with quorum
Version: 1.1.10-1.el6-e8caee8
2 Nodes configured, unknown expected votes
5 Resources configured.


Node dev1 (3232261525): online
        prmDummy2       (ocf::pacemaker:Dummy): Started
        prmStateful:0   (ocf::pacemaker:Stateful):      Master
        prmDummy:0      (ocf::pacemaker:Dummy): Started
Node dev2 (3232261523): online

Failed actions:
    prmStateful_monitor_12000 (node=dev2, call=38, rc=7, status=complete): not running
    prmDummy_monitor_10000 (node=dev2, call=25, rc=7, status=complete): not running
$
$ crm_mon -r1
Last updated: Mon Apr  1 16:09:30 2013
Last change: Mon Apr  1 15:27:44 2013 via cibadmin on dev1
Stack: corosync
Current DC: dev2 (3232261523) - partition with quorum
Version: 1.1.10-1.el6-e8caee8
2 Nodes configured, unknown expected votes
5 Resources configured.


Online: [ dev1 dev2 ]

Full list of resources:

 prmDummy2      (ocf::pacemaker:Dummy): Started dev1
 Master/Slave Set: msStateful [prmStateful]
     Masters: [ dev1 ]
     Stopped: [ prmStateful:1 ]
 Clone Set: clnDummy [prmDummy]
     Started: [ dev1 ]
     Stopped: [ prmDummy:1 ]

Failed actions:
    prmStateful_monitor_12000 (node=dev2, call=38, rc=7, status=complete): not running
    prmDummy_monitor_10000 (node=dev2, call=25, rc=7, status=complete): not running
$
$ crm_mon -o1
Last updated: Mon Apr  1 16:09:36 2013
Last change: Mon Apr  1 15:27:44 2013 via cibadmin on dev1
Stack: corosync
Current DC: dev2 (3232261523) - partition with quorum
Version: 1.1.10-1.el6-e8caee8
2 Nodes configured, unknown expected votes
5 Resources configured.


Online: [ dev1 dev2 ]

 prmDummy2      (ocf::pacemaker:Dummy): Started dev1
 Master/Slave Set: msStateful [prmStateful]
     Masters: [ dev1 ]
     Stopped: [ prmStateful:1 ]
 Clone Set: clnDummy [prmDummy]
     Started: [ dev1 ]
     Stopped: [ prmDummy:1 ]

Operations:
* Node dev1:
   prmDummy2: migration-threshold=1
    + (20) start: rc=0 (ok)
    + (27) monitor: interval=10000ms rc=0 (ok)
   prmStateful:0: migration-threshold=1
    + (41) promote: rc=0 (ok)
    + (47) monitor: interval=11000ms rc=8 (master)
   prmDummy:0: migration-threshold=1
    + (24) start: rc=0 (ok)
    + (30) monitor: interval=10000ms rc=0 (ok)
* Node dev2:
   prmStateful:0: migration-threshold=1 last-failure='Mon Apr  1 15:31:22 2013'
    + (38) monitor: interval=12000ms rc=0 (ok)
    + (38) monitor: interval=12000ms rc=7 (not running)
    + (52) stop: rc=0 (ok)
   prmDummy:0: migration-threshold=1 last-failure='Mon Apr  1 15:31:15 2013'
    + (25) monitor: interval=10000ms rc=0 (ok)
    + (25) monitor: interval=10000ms rc=7 (not running)
    + (43) stop: rc=0 (ok)

Failed actions:
    prmStateful_monitor_12000 (node=dev2, call=38, rc=7, status=complete): not running
    prmDummy_monitor_10000 (node=dev2, call=25, rc=7, status=complete): not running
$
$ crm_mon -X1
<?xml version="1.0"?>
<crm_mon version="1.1.10-1.el6">
    <summary>
        <last_update time="Mon Apr  1 16:09:43 2013" />
        <last_change time="Mon Apr  1 15:27:44 2013" user="" client="cibadmin" origin="dev1" />
        <stack type="corosync" />
        <current_dc present="true" version="1.1.10-1.el6-e8caee8" name="dev2" id="3232261523" with_quorum="true" />
        <nodes_configured number="2" expected_votes="unknown" />
        <resources_configured number="5" />
    </summary>
    <nodes>
        <node name="dev1" id="3232261525" online="true" standby="false" standby_onfail="false" pending="false" unclean="false" shutdown="false" expected_up="true" is_dc="false" resources_running="3" type="member" />
        <node name="dev2" id="3232261523" online="true" standby="false" standby_onfail="false" pending="false" unclean="false" shutdown="false" expected_up="true" is_dc="true" resources_running="0" type="member" />
    </nodes>
    <resources>
        <resource id="prmDummy2" resource_agent="ocf::pacemaker:Dummy" role="Started" active="true" orphaned="false" managed="true" failed="false" failure_ignored="false" nodes_running_on="1" >
            <node name="dev1" id="3232261525" cached="false"/>
        </resource>
        <clone id="msStateful" multi_state="true" unique="false" managed="true" failed="false" failure_ignored="false" >
            <resource id="prmStateful:0" resource_agent="ocf::pacemaker:Stateful" role="Master" active="true" orphaned="false" managed="true" failed="false" failure_ignored="false" nodes_running_on="1" >
                <node name="dev1" id="3232261525" cached="false"/>
            </resource>
            <resource id="prmStateful:1" resource_agent="ocf::pacemaker:Stateful" role="Stopped" active="false" orphaned="false" managed="true" failed="false" failure_ignored="false" nodes_running_on="0" />
        </clone>
        <clone id="clnDummy" multi_state="false" unique="false" managed="true" failed="false" failure_ignored="false" >
            <resource id="prmDummy:0" resource_agent="ocf::pacemaker:Dummy" role="Started" active="true" orphaned="false" managed="true" failed="false" failure_ignored="false" nodes_running_on="1" >
                <node name="dev1" id="3232261525" cached="false"/>
            </resource>
            <resource id="prmDummy:1" resource_agent="ocf::pacemaker:Dummy" role="Stopped" active="false" orphaned="false" managed="true" failed="false" failure_ignored="false" nodes_running_on="0" />
        </clone>
    </resources>
</crm_mon>
$
$ crm_mon -Xn1
<?xml version="1.0"?>
<crm_mon version="1.1.10-1.el6">
    <summary>
        <last_update time="Mon Apr  1 16:09:50 2013" />
        <last_change time="Mon Apr  1 15:27:44 2013" user="" client="cibadmin" origin="dev1" />
        <stack type="corosync" />
        <current_dc present="true" version="1.1.10-1.el6-e8caee8" name="dev2" id="3232261523" with_quorum="true" />
        <nodes_configured number="2" expected_votes="unknown" />
        <resources_configured number="5" />
    </summary>
    <nodes>
        <node name="dev1" id="3232261525" online="true" standby="false" standby_onfail="false" pending="false" unclean="false" shutdown="false" expected_up="true" is_dc="false" resources_running="3" type="member" >
            <resource id="prmDummy2" resource_agent="ocf::pacemaker:Dummy" role="Started" active="true" orphaned="false" managed="true" failed="false" failure_ignored="false" nodes_running_on="1" />
            <resource id="prmStateful:0" resource_agent="ocf::pacemaker:Stateful" role="Master" active="true" orphaned="false" managed="true" failed="false" failure_ignored="false" nodes_running_on="1" />
            <resource id="prmDummy:0" resource_agent="ocf::pacemaker:Dummy" role="Started" active="true" orphaned="false" managed="true" failed="false" failure_ignored="false" nodes_running_on="1" />
        </node>
        <node name="dev2" id="3232261523" online="true" standby="false" standby_onfail="false" pending="false" unclean="false" shutdown="false" expected_up="true" is_dc="true" resources_running="0" type="member" >
        </node>
    </nodes>
</crm_mon>
$
$ crm_mon -w1
Content-type: text/html

<html><head><title>Cluster status</title><meta http-equiv="refresh" content="5"></head><h2>Cluster summary</h2>Last updated: <b>Mon Apr  1 16:09:56 2013</b><br/>
Current DC: dev2 (3232261523)<br/>2 Nodes configured.<br/>5 Resources configured.<br/><h3>Config Options</h3>
<table>
<tr><td>STONITH of failed nodes</td><td>:</td><td>disabled</td></tr>
<tr><td>Cluster is</td><td>:</td><td>symmetric</td></tr>
<tr><td>No Quorum Policy</td><td>:</td><td>Ignore
</td></tr>
</table>
<h2>Node List</h2>
<ul>
<li>Node: dev1 (3232261525): <font color="green">online</font>
</li>
<li>Node: dev2 (3232261523): <font color="green">online</font>
</li>
</ul>
<h2>Resource List</h2>
<font color="green">prmDummy2   (ocf::pacemaker:Dummy): Started dev1  </font> <br/>
 Master/Slave Set: msStateful [prmStateful]
<ul>
<li>     Masters: [ dev1 ]</li>
<li>     Stopped: [ prmStateful:1 ]</li>
</ul>
 Clone Set: clnDummy [prmDummy]
<ul>
<li>     Started: [ dev1 ]</li>
<li>     Stopped: [ prmDummy:1 ]</li>
</ul>
</html>
$
$ crm_mon -wn1
Content-type: text/html

<html><head><title>Cluster status</title><meta http-equiv="refresh" content="5"></head><h2>Cluster summary</h2>Last updated: <b>Mon Apr  1 16:10:04 2013</b><br/>
Current DC: dev2 (3232261523)<br/>2 Nodes configured.<br/>5 Resources configured.<br/><h3>Config Options</h3>
<table>
<tr><td>STONITH of failed nodes</td><td>:</td><td>disabled</td></tr>
<tr><td>Cluster is</td><td>:</td><td>symmetric</td></tr>
<tr><td>No Quorum Policy</td><td>:</td><td>Ignore
</td></tr>
</table>
<h2>Node List</h2>
<ul>
<li>Node: dev1 (3232261525): <font color="green">online</font>
<ul>
<li><font color="green">prmDummy2       (ocf::pacemaker:Dummy): Started  </font> <br/>
</li>
<li><font color="green">prmStateful:0   (ocf::pacemaker:Stateful):      Master  </font> <br/>
</li>
<li><font color="green">prmDummy:0      (ocf::pacemaker:Dummy): Started  </font> <br/>
</li>
</ul>
</li>
<li>Node: dev2 (3232261523): <font color="green">online</font>
<ul>
</ul>
</li>
</ul>
</html>
$

-------------- next part --------------
$ crm_mon -1
Last updated: Mon Apr  1 16:09:19 2013
Last change: Mon Apr  1 15:27:44 2013 via cibadmin on dev1
Stack: corosync
Current DC: dev2 (3232261523) - partition with quorum
Version: 1.1.10-1.el6-e8caee8
2 Nodes configured, unknown expected votes
5 Resources configured.


Online: [ dev1 dev2 ]

 prmDummy2      (ocf::pacemaker:Dummy): Started dev1
 Master/Slave Set: msStateful [prmStateful]
     Masters: [ dev1 ]
     Stopped: [ prmStateful ]
 Clone Set: clnDummy [prmDummy]
     Started: [ dev1 ]
     Stopped: [ prmDummy ]

Failed actions:
    prmStateful_monitor_12000 (node=dev2, call=38, rc=7, status=complete): not running
    prmDummy_monitor_10000 (node=dev2, call=25, rc=7, status=complete): not running
$
$ crm_mon -n1
Last updated: Mon Apr  1 16:09:26 2013
Last change: Mon Apr  1 15:27:44 2013 via cibadmin on dev1
Stack: corosync
Current DC: dev2 (3232261523) - partition with quorum
Version: 1.1.10-1.el6-e8caee8
2 Nodes configured, unknown expected votes
5 Resources configured.


Node dev1 (3232261525): online
        prmDummy2       (ocf::pacemaker:Dummy): Started
        prmStateful     (ocf::pacemaker:Stateful):      Master
        prmDummy        (ocf::pacemaker:Dummy): Started
Node dev2 (3232261523): online

Failed actions:
    prmStateful_monitor_12000 (node=dev2, call=38, rc=7, status=complete): not running
    prmDummy_monitor_10000 (node=dev2, call=25, rc=7, status=complete): not running
$
$ crm_mon -r1
Last updated: Mon Apr  1 16:09:30 2013
Last change: Mon Apr  1 15:27:44 2013 via cibadmin on dev1
Stack: corosync
Current DC: dev2 (3232261523) - partition with quorum
Version: 1.1.10-1.el6-e8caee8
2 Nodes configured, unknown expected votes
5 Resources configured.


Online: [ dev1 dev2 ]

Full list of resources:

 prmDummy2      (ocf::pacemaker:Dummy): Started dev1
 Master/Slave Set: msStateful [prmStateful]
     Masters: [ dev1 ]
     Stopped: [ prmStateful ]
 Clone Set: clnDummy [prmDummy]
     Started: [ dev1 ]
     Stopped: [ prmDummy ]

Failed actions:
    prmStateful_monitor_12000 (node=dev2, call=38, rc=7, status=complete): not running
    prmDummy_monitor_10000 (node=dev2, call=25, rc=7, status=complete): not running
$
$ crm_mon -o1
Last updated: Mon Apr  1 16:09:36 2013
Last change: Mon Apr  1 15:27:44 2013 via cibadmin on dev1
Stack: corosync
Current DC: dev2 (3232261523) - partition with quorum
Version: 1.1.10-1.el6-e8caee8
2 Nodes configured, unknown expected votes
5 Resources configured.


Online: [ dev1 dev2 ]

 prmDummy2      (ocf::pacemaker:Dummy): Started dev1
 Master/Slave Set: msStateful [prmStateful]
     Masters: [ dev1 ]
     Stopped: [ prmStateful ]
 Clone Set: clnDummy [prmDummy]
     Started: [ dev1 ]
     Stopped: [ prmDummy ]

Operations:
* Node dev1:
   prmDummy2: migration-threshold=1
    + (20) start: rc=0 (ok)
    + (27) monitor: interval=10000ms rc=0 (ok)
   prmStateful: migration-threshold=1
    + (41) promote: rc=0 (ok)
    + (47) monitor: interval=11000ms rc=8 (master)
   prmDummy: migration-threshold=1
    + (24) start: rc=0 (ok)
    + (30) monitor: interval=10000ms rc=0 (ok)
* Node dev2:
   prmStateful: migration-threshold=1 last-failure='Mon Apr  1 15:31:22 2013'
    + (38) monitor: interval=12000ms rc=0 (ok)
    + (38) monitor: interval=12000ms rc=7 (not running)
    + (52) stop: rc=0 (ok)
   prmDummy: migration-threshold=1 last-failure='Mon Apr  1 15:31:15 2013'
    + (25) monitor: interval=10000ms rc=0 (ok)
    + (25) monitor: interval=10000ms rc=7 (not running)
    + (43) stop: rc=0 (ok)

Failed actions:
    prmStateful_monitor_12000 (node=dev2, call=38, rc=7, status=complete): not running
    prmDummy_monitor_10000 (node=dev2, call=25, rc=7, status=complete): not running
$
$ crm_mon -X1
<?xml version="1.0"?>
<crm_mon version="1.1.9">
    <summary>
        <last_update time="Mon Apr  1 16:09:43 2013" />
        <last_change time="Mon Apr  1 15:27:44 2013" user="" client="cibadmin" origin="dev1" />
        <stack type="corosync" />
        <current_dc present="true" version="1.1.10-1.el6-e8caee8" name="dev2" id="3232261523" with_quorum="true" />
        <nodes_configured number="2" expected_votes="unknown" />
        <resources_configured number="5" />
    </summary>
    <nodes>
        <node name="dev1" id="3232261525" online="true" standby="false" standby_onfail="false" pending="false" unclean="false" shutdown="false" expected_up="true" is_dc="false" resources_running="3" type="member" />
        <node name="dev2" id="3232261523" online="true" standby="false" standby_onfail="false" pending="false" unclean="false" shutdown="false" expected_up="true" is_dc="true" resources_running="0" type="member" />
    </nodes>
    <resources>
        <resource id="prmDummy2" resource_agent="ocf::pacemaker:Dummy" role="Started" active="true" orphaned="false" managed="true" failed="false" failure_ignored="false" nodes_running_on="1" >
            <node name="dev1" id="3232261525" cached="false"/>
        </resource>
        <clone id="msStateful" multi_state="true" unique="false" managed="true" failed="false" failure_ignored="false" >
            <resource id="prmStateful" resource_agent="ocf::pacemaker:Stateful" role="Master" active="true" orphaned="false" managed="true" failed="false" failure_ignored="false" nodes_running_on="1" >
                <node name="dev1" id="3232261525" cached="false"/>
            </resource>
            <resource id="prmStateful" resource_agent="ocf::pacemaker:Stateful" role="Stopped" active="false" orphaned="false" managed="true" failed="false" failure_ignored="false" nodes_running_on="0" />
        </clone>
        <clone id="clnDummy" multi_state="false" unique="false" managed="true" failed="false" failure_ignored="false" >
            <resource id="prmDummy" resource_agent="ocf::pacemaker:Dummy" role="Started" active="true" orphaned="false" managed="true" failed="false" failure_ignored="false" nodes_running_on="1" >
                <node name="dev1" id="3232261525" cached="false"/>
            </resource>
            <resource id="prmDummy" resource_agent="ocf::pacemaker:Dummy" role="Stopped" active="false" orphaned="false" managed="true" failed="false" failure_ignored="false" nodes_running_on="0" />
        </clone>
    </resources>
</crm_mon>
$
$ crm_mon -Xn1
<?xml version="1.0"?>
<crm_mon version="1.1.9">
    <summary>
        <last_update time="Mon Apr  1 16:09:49 2013" />
        <last_change time="Mon Apr  1 15:27:44 2013" user="" client="cibadmin" origin="dev1" />
        <stack type="corosync" />
        <current_dc present="true" version="1.1.10-1.el6-e8caee8" name="dev2" id="3232261523" with_quorum="true" />
        <nodes_configured number="2" expected_votes="unknown" />
        <resources_configured number="5" />
    </summary>
    <nodes>
        <node name="dev1" id="3232261525" online="true" standby="false" standby_onfail="false" pending="false" unclean="false" shutdown="false" expected_up="true" is_dc="false" resources_running="3" type="member" >
            <resource id="prmDummy2" resource_agent="ocf::pacemaker:Dummy" role="Started" active="true" orphaned="false" managed="true" failed="false" failure_ignored="false" nodes_running_on="1" />
            <resource id="prmStateful" resource_agent="ocf::pacemaker:Stateful" role="Master" active="true" orphaned="false" managed="true" failed="false" failure_ignored="false" nodes_running_on="1" />
            <resource id="prmDummy" resource_agent="ocf::pacemaker:Dummy" role="Started" active="true" orphaned="false" managed="true" failed="false" failure_ignored="false" nodes_running_on="1" />
        </node>
        <node name="dev2" id="3232261523" online="true" standby="false" standby_onfail="false" pending="false" unclean="false" shutdown="false" expected_up="true" is_dc="true" resources_running="0" type="member" >
        </node>
    </nodes>
</crm_mon>
$
$ crm_mon -w1
Content-type: text/html

<html><head><title>Cluster status</title><meta http-equiv="refresh" content="5"></head><h2>Cluster summary</h2>Last updated: <b>Mon Apr  1 16:09:56 2013</b><br/>
Current DC: dev2 (3232261523)<br/>2 Nodes configured.<br/>5 Resources configured.<br/><h3>Config Options</h3>
<table>
<tr><td>STONITH of failed nodes</td><td>:</td><td>disabled</td></tr>
<tr><td>Cluster is</td><td>:</td><td>symmetric</td></tr>
<tr><td>No Quorum Policy</td><td>:</td><td>Ignore
</td></tr>
</table>
<h2>Node List</h2>
<ul>
<li>Node: dev1 (3232261525): <font color="green">online</font>
</li>
<li>Node: dev2 (3232261523): <font color="green">online</font>
</li>
</ul>
<h2>Resource List</h2>
<font color="green">prmDummy2   (ocf::pacemaker:Dummy): Started dev1  </font> <br/>
 Master/Slave Set: msStateful [prmStateful]
<ul>
<li>     Masters: [ dev1 ]</li>
<li>     Stopped: [ prmStateful ]</li>
</ul>
 Clone Set: clnDummy [prmDummy]
<ul>
<li>     Started: [ dev1 ]</li>
<li>     Stopped: [ prmDummy ]</li>
</ul>
</html>
$
$ crm_mon -wn1
Content-type: text/html

<html><head><title>Cluster status</title><meta http-equiv="refresh" content="5"></head><h2>Cluster summary</h2>Last updated: <b>Mon Apr  1 16:10:04 2013</b><br/>
Current DC: dev2 (3232261523)<br/>2 Nodes configured.<br/>5 Resources configured.<br/><h3>Config Options</h3>
<table>
<tr><td>STONITH of failed nodes</td><td>:</td><td>disabled</td></tr>
<tr><td>Cluster is</td><td>:</td><td>symmetric</td></tr>
<tr><td>No Quorum Policy</td><td>:</td><td>Ignore
</td></tr>
</table>
<h2>Node List</h2>
<ul>
<li>Node: dev1 (3232261525): <font color="green">online</font>
<ul>
<li><font color="green">prmDummy2       (ocf::pacemaker:Dummy): Started  </font> <br/>
</li>
<li><font color="green">prmStateful     (ocf::pacemaker:Stateful):      Master  </font> <br/>
</li>
<li><font color="green">prmDummy        (ocf::pacemaker:Dummy): Started  </font> <br/>
</li>
</ul>
</li>
<li>Node: dev2 (3232261523): <font color="green">online</font>
<ul>
</ul>
</li>
</ul>
</html>
$



More information about the Pacemaker mailing list