<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">On 06/03/2016 01:39 PM, Nikhil Utane
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAGNWmJW+OK6rwoLNcSNqN5jpmhZQWmuGe1gueOhfcicp4PVVUA@mail.gmail.com"
      type="cite">
      <div dir="ltr">Thanks for your response Klaus.
        <div>Any command to add the cluster name?</div>
        <div>All examples use '<span style="color:inherit;font-family:Menlo,Monaco,'Courier New',monospace;font-size:13.86px;font-style:inherit;font-variant:inherit;font-weight:inherit;line-height:inherit;white-space:pre-wrap;background-color:transparent">pcs cluster setup</span>'
          command. But if my cluster is already running, how do I update
          it?</div>
        <div>I tried with crm_attribute:</div>
        <div>crm_attribute -t crm_config -n cluster-name -v mycluster<br>
        </div>
        <div><br>
        </div>
        <div>It has updated in cib but pcs status still doesn't show the
          cluster name.</div>
      </div>
    </blockquote>
    <br>
    Somewhere in the back of my mind something is telling me it wanted
    to have the name in corosync.conf<br>
    as well.<br>
    <br>
    totem {<br>
    ...<br>
        cluster_name: mycluster<br>
    ...<br>
    }<br>
    <br>
    <blockquote
cite="mid:CAGNWmJW+OK6rwoLNcSNqN5jpmhZQWmuGe1gueOhfcicp4PVVUA@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div><br>
        </div>
        <div>
          <div>    &lt;crm_config&gt;</div>
          <div>      &lt;cluster_property_set
            id="cib-bootstrap-options"&gt;</div>
          <div>        &lt;nvpair
            id="cib-bootstrap-options-have-watchdog"
            name="have-watchdog" value="true"/&gt;</div>
          <div>        &lt;nvpair id="cib-bootstrap-options-dc-version"
            name="dc-version" value="1.1.14-5a6cdd1"/&gt;</div>
          <div>        &lt;nvpair
            id="cib-bootstrap-options-cluster-infrastructure"
            name="cluster-infrastructure" value="corosync"/&gt;</div>
          <div>        &lt;nvpair
            id="cib-bootstrap-options-cluster-name" name="cluster-name"
            value="mycluster"/&gt;</div>
          <div>      &lt;/cluster_property_set&gt;</div>
        </div>
        <div><br>
        </div>
        <div>
          <div>[root@airv_cu root]# pcs status</div>
          <div>Cluster name:</div>
        </div>
        <div><br>
        </div>
        <div>-Regards</div>
        <div>Nikhil</div>
        <div><br>
        </div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Fri, Jun 3, 2016 at 4:46 PM, Klaus
          Wenninger <span dir="ltr">&lt;<a moz-do-not-send="true"
              href="mailto:kwenning@redhat.com" target="_blank">kwenning@redhat.com</a>&gt;</span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div class="HOEnZb">
              <div class="h5">On 06/03/2016 01:03 PM, Nikhil Utane
                wrote:<br>
                &gt; Hi,<br>
                &gt;<br>
                &gt; The node is up alright.<br>
                &gt;<br>
                &gt; [root@airv_cu pcs]# pcs cluster status<br>
                &gt; Cluster Status:<br>
                &gt;  Stack: corosync<br>
                &gt;  Current DC: airv_cu (version 1.1.14-5a6cdd1) -
                partition WITHOUT quorum<br>
                &gt;  Last updated: Fri Jun  3 11:01:32 2016       
                 Last change: Fri Jun<br>
                &gt;  3 09:57:52 2016 by hacluster via crmd on airv_cu<br>
                &gt;  2 nodes and 0 resources configured<br>
                &gt;<br>
                &gt; Upon entering command "pcs cluster standby airv_cu"
                getting below error.<br>
                &gt; Error: cannot load cluster status, xml does not
                conform to the schema.<br>
                &gt;<br>
                &gt; What could be wrong?<br>
                &gt;<br>
                &gt; [root@airv_cu pcs]# pcs cluster cib<br>
                &gt; &lt;cib crm_feature_set="3.0.10"
                validate-with="pacemaker-2.4" epoch="4"<br>
                &gt; num_updates="5" admin_epoch="0"
                cib-last-written="Fri Jun  3 09:57:52<br>
                &gt; 2016" update-origin="airv_cu" update-client="crmd"<br>
                &gt; update-user="hacluster" have-quorum="0"
                dc-uuid="1"&gt;<br>
                &gt;   &lt;configuration&gt;<br>
                &gt;     &lt;crm_config&gt;<br>
                &gt;       &lt;cluster_property_set
                id="cib-bootstrap-options"&gt;<br>
                &gt;         &lt;nvpair
                id="cib-bootstrap-options-have-watchdog"<br>
                &gt; name="have-watchdog" value="true"/&gt;<br>
                &gt;         &lt;nvpair
                id="cib-bootstrap-options-dc-version"<br>
                &gt; name="dc-version" value="1.1.14-5a6cdd1"/&gt;<br>
                &gt;         &lt;nvpair
                id="cib-bootstrap-options-cluster-infrastructure"<br>
                &gt; name="cluster-infrastructure" value="corosync"/&gt;<br>
              </div>
            </div>
            Your cluster doesn't have a name. iirc pcs (at least I've
            seen that in a<br>
            version I was working with) doesn't like that.<br>
            <br>
            Something like:<br>
                    &lt;nvpair id="cib-bootstrap-options-cluster-name"<br>
            name="cluster-name" value="mycluster"/&gt;<br>
            <div>
              <div class="h5"><br>
                &gt;       &lt;/cluster_property_set&gt;<br>
                &gt;     &lt;/crm_config&gt;<br>
                &gt;     &lt;nodes&gt;<br>
                &gt;       &lt;node id="1" uname="airv_cu"/&gt;<br>
                &gt;       &lt;node id="2" uname="0005B9888880"/&gt;<br>
                &gt;     &lt;/nodes&gt;<br>
                &gt;     &lt;resources/&gt;<br>
                &gt;     &lt;constraints/&gt;<br>
                &gt;   &lt;/configuration&gt;<br>
                &gt;   &lt;status&gt;<br>
                &gt;     &lt;node_state id="1" uname="airv_cu"
                in_ccm="true" crmd="online"<br>
                &gt; crm-debug-origin="do_state_transition"
                join="member" expected="member"&gt;<br>
                &gt;       &lt;lrm id="1"&gt;<br>
                &gt;         &lt;lrm_resources/&gt;<br>
                &gt;       &lt;/lrm&gt;<br>
                &gt;       &lt;transient_attributes id="1"&gt;<br>
                &gt;         &lt;instance_attributes id="status-1"&gt;<br>
                &gt;           &lt;nvpair id="status-1-shutdown"
                name="shutdown" value="0"/&gt;<br>
                &gt;         &lt;/instance_attributes&gt;<br>
                &gt;       &lt;/transient_attributes&gt;<br>
                &gt;     &lt;/node_state&gt;<br>
                &gt;   &lt;/status&gt;<br>
                &gt; &lt;/cib&gt;<br>
                &gt;<br>
                &gt; -Thanks<br>
                &gt; Nikhil<br>
                &gt;<br>
                &gt;<br>
                &gt;<br>
              </div>
            </div>
            &gt; _______________________________________________<br>
            &gt; Users mailing list: <a moz-do-not-send="true"
              href="mailto:Users@clusterlabs.org">Users@clusterlabs.org</a><br>
            &gt; <a moz-do-not-send="true"
              href="http://clusterlabs.org/mailman/listinfo/users"
              rel="noreferrer" target="_blank">http://clusterlabs.org/mailman/listinfo/users</a><br>
            &gt;<br>
            &gt; Project Home: <a moz-do-not-send="true"
              href="http://www.clusterlabs.org" rel="noreferrer"
              target="_blank">http://www.clusterlabs.org</a><br>
            &gt; Getting started: <a moz-do-not-send="true"
              href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf"
              rel="noreferrer" target="_blank">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a><br>
            &gt; Bugs: <a moz-do-not-send="true"
              href="http://bugs.clusterlabs.org" rel="noreferrer"
              target="_blank">http://bugs.clusterlabs.org</a><br>
            <br>
            <br>
            _______________________________________________<br>
            Users mailing list: <a moz-do-not-send="true"
              href="mailto:Users@clusterlabs.org">Users@clusterlabs.org</a><br>
            <a moz-do-not-send="true"
              href="http://clusterlabs.org/mailman/listinfo/users"
              rel="noreferrer" target="_blank">http://clusterlabs.org/mailman/listinfo/users</a><br>
            <br>
            Project Home: <a moz-do-not-send="true"
              href="http://www.clusterlabs.org" rel="noreferrer"
              target="_blank">http://www.clusterlabs.org</a><br>
            Getting started: <a moz-do-not-send="true"
              href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf"
              rel="noreferrer" target="_blank">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a><br>
            Bugs: <a moz-do-not-send="true"
              href="http://bugs.clusterlabs.org" rel="noreferrer"
              target="_blank">http://bugs.clusterlabs.org</a><br>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
    <br>
  </body>
</html>