LINUX.ORG.RU

более подробный статус

root@off10:/var/log/corosync# pcs status xml
<?xml version="1.0"?>
<crm_mon version="1.1.16">
    <summary>
        <stack type="corosync" />
        <current_dc present="true" version="1.1.16-94ff4df" name="off10" id="1" with_quorum="false" />
        <last_update time="Tue Jun  4 15:03:20 2019" />
        <last_change time="Tue Jun  4 15:02:47 2019" user="root" client="crm_attribute" origin="off10" />
        <nodes_configured number="3" expected_votes="unknown" />
        <resources_configured number="9" disabled="0" blocked="0" />
        <cluster_options stonith-enabled="false" symmetric-cluster="true" no-quorum-policy="stop" maintenance-mode="false" />
    </summary>
    <nodes>
        <node name="off10" id="1" online="true" standby="false" standby_onfail="false" maintenance="false" pending="false" unclean="false" shutdown="false" expected_up="true" is_dc="true" resources_running="7" type="member" />
        <node name="off11" id="2" online="false" standby="false" standby_onfail="false" maintenance="false" pending="false" unclean="false" shutdown="false" expected_up="false" is_dc="false" resources_running="0" type="member" />
        <node name="off12" id="3" online="false" standby="false" standby_onfail="false" maintenance="false" pending="false" unclean="false" shutdown="true" expected_up="false" is_dc="false" resources_running="0" type="member" />
    </nodes>
    <resources>
        <clone id="pgsql-ha" multi_state="true" unique="false" managed="true" failed="false" failure_ignored="false" >
            <resource id="pgsqld" resource_agent="ocf::heartbeat:pgsqlms" role="Master" active="true" orphaned="false" blocked="false" managed="true" failed="false" failure_ignored="false" nodes_running_on="1" >
                <node name="off10" id="1" cached="false"/>
            </resource>
            <resource id="pgsqld" resource_agent="ocf::heartbeat:pgsqlms" role="Stopped" active="false" orphaned="false" blocked="false" managed="true" failed="false" failure_ignored="false" nodes_running_on="0" />
            <resource id="pgsqld" resource_agent="ocf::heartbeat:pgsqlms" role="Stopped" active="false" orphaned="false" blocked="false" managed="true" failed="false" failure_ignored="false" nodes_running_on="0" />
        </clone>
        <resource id="pgsql-master-ip" resource_agent="ocf::heartbeat:IPaddr2" role="Started" active="true" orphaned="false" blocked="false" managed="true" failed="false" failure_ignored="false" nodes_running_on="1" >
            <node name="off10" id="1" cached="false"/>
        </resource>
        <resource id="zabbix_server" resource_agent="lsb:zabbix-server" role="Started" active="true" orphaned="false" blocked="false" managed="true" failed="false" failure_ignored="false" nodes_running_on="1" >
            <node name="off10" id="1" cached="false"/>
        </resource>
        <resource id="apache2" resource_agent="lsb:apache2" role="Started" active="true" orphaned="false" blocked="false" managed="true" failed="false" failure_ignored="false" nodes_running_on="1" >
            <node name="off10" id="1" cached="false"/>
        </resource>
        <resource id="zabbix_agent" resource_agent="lsb:zabbix-agent" role="Started" active="true" orphaned="false" blocked="false" managed="true" failed="false" failure_ignored="false" nodes_running_on="1" >
            <node name="off10" id="1" cached="false"/>
        </resource>
        <resource id="zabbix_java_gateway" resource_agent="lsb:zabbix-java-gateway" role="Started" active="true" orphaned="false" blocked="false" managed="true" failed="false" failure_ignored="false" nodes_running_on="1" >
            <node name="off10" id="1" cached="false"/>
        </resource>
        <resource id="crontab" resource_agent="lsb:cron" role="Started" active="true" orphaned="false" blocked="false" managed="true" failed="false" failure_ignored="false" nodes_running_on="1" >
            <node name="off10" id="1" cached="false"/>
        </resource>
    </resources>
    <node_attributes>
        <node name="off10">
            <attribute name="master-pgsqld" value="1001" />
        </node>
    </node_attributes>
    <node_history>
        <node name="off10">
            <resource_history id="zabbix_server" orphan="false" migration-threshold="1">
                <operation_history call="107" task="start" last-rc-change="Tue Jun  4 15:02:45 2019" last-run="Tue Jun  4 15:02:45 2019" exec-time="34ms" queue-time="0ms" rc="0" rc_text="ok" />
                <operation_history call="109" task="monitor" interval="10000ms" last-rc-change="Tue Jun  4 15:02:45 2019" exec-time="36ms" queue-time="0ms" rc="0" rc_text="ok" />
            </resource_history>
            <resource_history id="zabbix_agent" orphan="false" migration-threshold="1">
                <operation_history call="111" task="start" last-rc-change="Tue Jun  4 15:02:45 2019" last-run="Tue Jun  4 15:02:45 2019" exec-time="106ms" queue-time="0ms" rc="0" rc_text="ok" />
                <operation_history call="113" task="monitor" interval="10000ms" last-rc-change="Tue Jun  4 15:02:45 2019" exec-time="100ms" queue-time="0ms" rc="0" rc_text="ok" />
            </resource_history>
            <resource_history id="pgsql-master-ip" orphan="false" migration-threshold="1">
                <operation_history call="120" task="start" last-rc-change="Tue Jun  4 15:02:47 2019" last-run="Tue Jun  4 15:02:47 2019" exec-time="43ms" queue-time="0ms" rc="0" rc_text="ok" />
                <operation_history call="122" task="monitor" interval="10000ms" last-rc-change="Tue Jun  4 15:02:47 2019" exec-time="22ms" queue-time="0ms" rc="0" rc_text="ok" />
            </resource_history>
            <resource_history id="pgsqld" orphan="false" migration-threshold="1">
                <operation_history call="117" task="promote" last-rc-change="Tue Jun  4 15:02:46 2019" last-run="Tue Jun  4 15:02:46 2019" exec-time="626ms" queue-time="0ms" rc="0" rc_text="ok" />
                <operation_history call="121" task="monitor" interval="15000ms" last-rc-change="Tue Jun  4 15:02:47 2019" exec-time="599ms" queue-time="1ms" rc="8" rc_text="master" />
            </resource_history>
            <resource_history id="crontab" orphan="false" migration-threshold="1">
                <operation_history call="115" task="start" last-rc-change="Tue Jun  4 15:02:45 2019" last-run="Tue Jun  4 15:02:45 2019" exec-time="87ms" queue-time="0ms" rc="0" rc_text="ok" />
                <operation_history call="116" task="monitor" interval="10000ms" last-rc-change="Tue Jun  4 15:02:45 2019" exec-time="124ms" queue-time="0ms" rc="0" rc_text="ok" />
            </resource_history>
            <resource_history id="apache2" orphan="false" migration-threshold="1">
                <operation_history call="110" task="start" last-rc-change="Tue Jun  4 15:02:45 2019" last-run="Tue Jun  4 15:02:45 2019" exec-time="137ms" queue-time="0ms" rc="0" rc_text="ok" />
                <operation_history call="114" task="monitor" interval="10000ms" last-rc-change="Tue Jun  4 15:02:45 2019" exec-time="89ms" queue-time="0ms" rc="0" rc_text="ok" />
            </resource_history>
            <resource_history id="zabbix_java_gateway" orphan="false" migration-threshold="1">
                <operation_history call="112" task="start" last-rc-change="Tue Jun  4 15:02:45 2019" last-run="Tue Jun  4 15:02:45 2019" exec-time="696ms" queue-time="0ms" rc="0" rc_text="ok" />
                <operation_history call="118" task="monitor" interval="10000ms" last-rc-change="Tue Jun  4 15:02:46 2019" exec-time="186ms" queue-time="0ms" rc="0" rc_text="ok" />
            </resource_history>
        </node>
    </node_history>
    <tickets>
    </tickets>
    <bans>
        <ban id="location-pgsql-ha-rule" resource="pgsql-ha" node="off12" weight="-1000000" master_only="false" />
    </bans>
</crm_mon>

нормально ли, что expected_votes=«unknown» ?

mr_archer
() автор топика
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.