<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>    <crm_config></div>
          <div>      <cluster_property_set
            id="cib-bootstrap-options"></div>
          <div>        <nvpair
            id="cib-bootstrap-options-have-watchdog"
            name="have-watchdog" value="true"/></div>
          <div>        <nvpair id="cib-bootstrap-options-dc-version"
            name="dc-version" value="1.1.14-5a6cdd1"/></div>
          <div>        <nvpair
            id="cib-bootstrap-options-cluster-infrastructure"
            name="cluster-infrastructure" value="corosync"/></div>
          <div>        <nvpair
            id="cib-bootstrap-options-cluster-name" name="cluster-name"
            value="mycluster"/></div>
          <div>      </cluster_property_set></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"><<a moz-do-not-send="true"
              href="mailto:kwenning@redhat.com" target="_blank">kwenning@redhat.com</a>></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>
                > Hi,<br>
                ><br>
                > The node is up alright.<br>
                ><br>
                > [root@airv_cu pcs]# pcs cluster status<br>
                > Cluster Status:<br>
                >  Stack: corosync<br>
                >  Current DC: airv_cu (version 1.1.14-5a6cdd1) -
                partition WITHOUT quorum<br>
                >  Last updated: Fri Jun  3 11:01:32 2016       
                 Last change: Fri Jun<br>
                >  3 09:57:52 2016 by hacluster via crmd on airv_cu<br>
                >  2 nodes and 0 resources configured<br>
                ><br>
                > Upon entering command "pcs cluster standby airv_cu"
                getting below error.<br>
                > Error: cannot load cluster status, xml does not
                conform to the schema.<br>
                ><br>
                > What could be wrong?<br>
                ><br>
                > [root@airv_cu pcs]# pcs cluster cib<br>
                > <cib crm_feature_set="3.0.10"
                validate-with="pacemaker-2.4" epoch="4"<br>
                > num_updates="5" admin_epoch="0"
                cib-last-written="Fri Jun  3 09:57:52<br>
                > 2016" update-origin="airv_cu" update-client="crmd"<br>
                > update-user="hacluster" have-quorum="0"
                dc-uuid="1"><br>
                >   <configuration><br>
                >     <crm_config><br>
                >       <cluster_property_set
                id="cib-bootstrap-options"><br>
                >         <nvpair
                id="cib-bootstrap-options-have-watchdog"<br>
                > name="have-watchdog" value="true"/><br>
                >         <nvpair
                id="cib-bootstrap-options-dc-version"<br>
                > name="dc-version" value="1.1.14-5a6cdd1"/><br>
                >         <nvpair
                id="cib-bootstrap-options-cluster-infrastructure"<br>
                > name="cluster-infrastructure" value="corosync"/><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>
                    <nvpair id="cib-bootstrap-options-cluster-name"<br>
            name="cluster-name" value="mycluster"/><br>
            <div>
              <div class="h5"><br>
                >       </cluster_property_set><br>
                >     </crm_config><br>
                >     <nodes><br>
                >       <node id="1" uname="airv_cu"/><br>
                >       <node id="2" uname="0005B9888880"/><br>
                >     </nodes><br>
                >     <resources/><br>
                >     <constraints/><br>
                >   </configuration><br>
                >   <status><br>
                >     <node_state id="1" uname="airv_cu"
                in_ccm="true" crmd="online"<br>
                > crm-debug-origin="do_state_transition"
                join="member" expected="member"><br>
                >       <lrm id="1"><br>
                >         <lrm_resources/><br>
                >       </lrm><br>
                >       <transient_attributes id="1"><br>
                >         <instance_attributes id="status-1"><br>
                >           <nvpair id="status-1-shutdown"
                name="shutdown" value="0"/><br>
                >         </instance_attributes><br>
                >       </transient_attributes><br>
                >     </node_state><br>
                >   </status><br>
                > </cib><br>
                ><br>
                > -Thanks<br>
                > Nikhil<br>
                ><br>
                ><br>
                ><br>
              </div>
            </div>
            > _______________________________________________<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>
            <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>