<div dir="ltr"><div><div><div><div>Got it. Changed the netmask for both PCs to 255.255.255.0 and changed cidr_netmask to 24 and it works...sort of.<br><br></div><div>It was working for a while, and then I rebooted both PCs, and now each thinks its online and the other is offline.<br>

</div><div><br></div>"pcs status" on my node01 gives the following output:<br>Cluster name: cluster_web<br>Last updated: Tue Sep  2 12:21:25 2014<br>Last change: Tue Sep  2 12:13:27 2014 via cibadmin on node02<br>

Stack: corosync<br>Current DC: node01 (1) - partition WITHOUT quorum<br>Version: 1.1.10-32.el7_0-368c726<br>2 Nodes configured<br>2 Resources configured<br><br><br>Online: [ node01 ]<br>OFFLINE: [ node02 ]<br><br>Full list of resources:<br>

<br> virtual_ip    (ocf::heartbeat:IPaddr2):    Started node01 <br> webserver    (ocf::heartbeat:apache):    Started node01 <br><br>PCSD Status:<br>  node01: Offline<br>  node02: Online<br><br>Daemon Status:<br>  corosync: active/disabled<br>

  pacemaker: active/disabled<br>  pcsd: active/disabled<br><br>However, "pcs status" on node02 shows the following output:<br></div>Cluster name: cluster_web<br>Last updated: Tue Sep  2 12:20:41 2014<br>Last change: Tue Sep  2 11:59:03 2014 via cibadmin on node02<br>

Stack: corosync<br>Current DC: node02 (2) - partition WITHOUT quorum<br>Version: 1.1.10-32.el7_0-368c726<br>2 Nodes configured<br>2 Resources configured<br><br><br>Online: [ node02 ]<br>OFFLINE: [ node01 ]<br><br>Full list of resources:<br>

<br> virtual_ip    (ocf::heartbeat:IPaddr2):    Started node02 <br> webserver    (ocf::heartbeat:apache):    Started node02 <br><br>PCSD Status:<br>  node01: Offline<br>  node02: Online<br><br>Daemon Status:<br>  corosync: active/disabled<br>

  pacemaker: active/disabled<br>  pcsd: active/disabled<br><br></div>Seems like each node thinks it's online and the other is not. I'm running HA on apache webserver, and if I access the webpage on node01, I get node01's index.html. If I access it on node02, I get node02's index.html. If I access it via another PC connected to the same AP, the webpage is unavailable.<br>

<br></div>What could be wrong?<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Sep 1, 2014 at 9:09 PM, John Lauro <span dir="ltr"><<a href="mailto:john.lauro@covenanteyes.com" target="_blank">john.lauro@covenanteyes.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-family:times new roman,new york,times,serif;font-size:12pt;color:#000000"> ip=192.168.0.110 cidr_netmask=32<br>

/32 leaves no room for any other IP addresses on that interface and so you have to specify the nic.  Are you certain 192.168.0.111 and 192.168.0.112 do not have a different netmask from 255.255.255.255, like 255.255.255.0 for /24 or 255.255.0.0 for /16?  If they do have 255.255.255.255 too, then they are probably not setup correctly...<br>

<br>PS: cidr_netmask is optional.  Assuming a proper netmask (not 255.255.255.2555) is on 192.168.0.111 and 192.168.0.112 it should work without specifying cidr_netmask.<br><br><br><hr><blockquote style="border-left:2px solid #1010ff;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt">

<b>From: </b>"Sihan Goi" <<a href="mailto:goister@gmail.com" target="_blank">goister@gmail.com</a>><br><b>To: </b><a href="mailto:pacemaker@oss.clusterlabs.org" target="_blank">pacemaker@oss.clusterlabs.org</a><br>

<b>Sent: </b>Monday, September 1, 2014 4:17:20 AM<br><b>Subject: </b>[Pacemaker] ERROR: Unable to find nic or netmask.<div><div class="h5"><br><br><div dir="ltr"><div>Hi,<br><br>I'm trying to create a HA cluster with 2 CentOS 7 PCs connected to a wireless AP. The PCs have the static IP addresses 192.168.0.111 and 192.168.0.112 respectively and hostnames node01 and node02 respectively.<br>



<br></div>I've tried to create a virtual IP address of 192.168.0.110 using the following command:<br><br clear="all"><div><div>pcs resource create virtual_ip ocf:heartbeat:IPaddr2 ip=192.168.0.110 cidr_netmask=32 op monitor interval=30s<br>



<br></div><div>However, when I do a "pcs status resources" I get the following output:<br><br> virtual_ip    (ocf::heartbeat:IPaddr2):    Stopped <br></div><div><br>The virtual IP is stopped rather than started. I looked into /var/log/messages and /var/log/pacemaker.log<br>



</div><div> and I find the following error messages:<br><br>node02 IPaddr2(virtual_ip)[25451]: ERROR: Unable to find nic or netmask.<div>node02 IPaddr2(virtual_ip)[25451]: ERROR: [findif] failed<br><br></div><div>

It seems that it's unable to find my nic. How can I fix this?<br><br>Thanks.<br></div></div></div></div>
<br></div></div>_______________________________________________<br>Pacemaker mailing list: <a href="mailto:Pacemaker@oss.clusterlabs.org" target="_blank">Pacemaker@oss.clusterlabs.org</a><br><a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</a><br>

<br>Project Home: <a href="http://www.clusterlabs.org" target="_blank">http://www.clusterlabs.org</a><br>Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" target="_blank">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a><br>

Bugs: <a href="http://bugs.clusterlabs.org" target="_blank">http://bugs.clusterlabs.org</a><br></blockquote><br></div></div></blockquote></div><br><br clear="all"><br>-- <br>- Goi Sihan<br><a href="mailto:goister@gmail.com">goister@gmail.com</a>
</div>