<div dir="ltr"><div><div><div>Hi,<br><br>After some investigation, it seems that my Apache is having trouble starting in both nodes. I get the following error message when I try to restart the service:<br><br>Job for httpd.service failed. See &#39;systemctl status httpd.service&#39; and &#39;journalctl -xn&#39; for details.<br>

<br></div>&quot;systemctl status httpd.service&quot; shows the following output:<br><br>httpd.service - The Apache HTTP Server<br>   Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled)<br>   Active: failed (Result: exit-code) since Tue 2014-09-02 13:45:52 SGT; 8s ago<br>

  Process: 26095 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=0/SUCCESS)<br>  Process: 26093 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)<br> Main PID: 26093 (code=exited, status=1/FAILURE)<br>

<br>Sep 02 13:45:52 node02 httpd[26093]: AH00558: httpd: Could not reliably det...ge<br>Sep 02 13:45:52 node02 httpd[26093]: (98)Address already in use: AH00072: m...80<br>Sep 02 13:45:52 node02 httpd[26093]: no listening sockets available, shutti...wn<br>

Sep 02 13:45:52 node02 httpd[26093]: AH00015: Unable to open logs<br>Sep 02 13:45:52 node02 systemd[1]: httpd.service: main process exited, code...RE<br>Sep 02 13:45:52 node02 systemd[1]: Failed to start The Apache HTTP Server.<br>

Sep 02 13:45:52 node02 systemd[1]: Unit httpd.service entered failed state.<br>Hint: Some lines were ellipsized, use -l to show in full.<br><br></div>/var/log/messages also shows similar messages<br><br>Sep  2 13:41:12 node02 systemd: Starting The Apache HTTP Server...<br>

Sep  2 13:41:12 node02 httpd: AH00558: httpd: Could not reliably determine the server&#39;s fully qualified domain name, using 192.168.0.112. Set the &#39;ServerName&#39; directive globally to suppress this message<br>Sep  2 13:41:12 node02 httpd: (98)Address already in use: AH00072: make_sock: could not bind to address <a href="http://127.0.0.1:80">127.0.0.1:80</a><br>

Sep  2 13:41:12 node02 httpd: no listening sockets available, shutting down<br>Sep  2 13:41:12 node02 httpd: AH00015: Unable to open logs<br>Sep  2 13:41:12 node02 systemd: httpd.service: main process exited, code=exited, status=1/FAILURE<br>

Sep  2 13:41:12 node02 systemd: Failed to start The Apache HTTP Server.<br>Sep  2 13:41:12 node02 systemd: Unit httpd.service entered failed state.<br><br></div>Is this related to the problem?<br><div><div><div><br></div>

</div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Sep 2, 2014 at 12:42 PM, Teerapatr Kittiratanachai <span dir="ltr">&lt;<a href="mailto:maillist.tk@gmail.com" target="_blank">maillist.tk@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Try to set cidr_netmask=32 for resource only, and let the physical<br>
interface&#39;s netmask be 24.<br>
<div class="HOEnZb"><div class="h5"><br>
On Tue, Sep 2, 2014 at 11:27 AM, Sihan Goi &lt;<a href="mailto:goister@gmail.com">goister@gmail.com</a>&gt; wrote:<br>
&gt; Got it. Changed the netmask for both PCs to 255.255.255.0 and changed<br>
&gt; cidr_netmask to 24 and it works...sort of.<br>
&gt;<br>
&gt; It was working for a while, and then I rebooted both PCs, and now each<br>
&gt; thinks its online and the other is offline.<br>
&gt;<br>
&gt; &quot;pcs status&quot; on my node01 gives the following output:<br>
&gt; Cluster name: cluster_web<br>
&gt; Last updated: Tue Sep  2 12:21:25 2014<br>
&gt; Last change: Tue Sep  2 12:13:27 2014 via cibadmin on node02<br>
&gt; Stack: corosync<br>
&gt; Current DC: node01 (1) - partition WITHOUT quorum<br>
&gt; Version: 1.1.10-32.el7_0-368c726<br>
&gt; 2 Nodes configured<br>
&gt; 2 Resources configured<br>
&gt;<br>
&gt;<br>
&gt; Online: [ node01 ]<br>
&gt; OFFLINE: [ node02 ]<br>
&gt;<br>
&gt; Full list of resources:<br>
&gt;<br>
&gt;  virtual_ip    (ocf::heartbeat:IPaddr2):    Started node01<br>
&gt;  webserver    (ocf::heartbeat:apache):    Started node01<br>
&gt;<br>
&gt; PCSD Status:<br>
&gt;   node01: Offline<br>
&gt;   node02: Online<br>
&gt;<br>
&gt; Daemon Status:<br>
&gt;   corosync: active/disabled<br>
&gt;   pacemaker: active/disabled<br>
&gt;   pcsd: active/disabled<br>
&gt;<br>
&gt; However, &quot;pcs status&quot; on node02 shows the following output:<br>
&gt; Cluster name: cluster_web<br>
&gt; Last updated: Tue Sep  2 12:20:41 2014<br>
&gt; Last change: Tue Sep  2 11:59:03 2014 via cibadmin on node02<br>
&gt; Stack: corosync<br>
&gt; Current DC: node02 (2) - partition WITHOUT quorum<br>
&gt; Version: 1.1.10-32.el7_0-368c726<br>
&gt; 2 Nodes configured<br>
&gt; 2 Resources configured<br>
&gt;<br>
&gt;<br>
&gt; Online: [ node02 ]<br>
&gt; OFFLINE: [ node01 ]<br>
&gt;<br>
&gt; Full list of resources:<br>
&gt;<br>
&gt;  virtual_ip    (ocf::heartbeat:IPaddr2):    Started node02<br>
&gt;  webserver    (ocf::heartbeat:apache):    Started node02<br>
&gt;<br>
&gt; PCSD Status:<br>
&gt;   node01: Offline<br>
&gt;   node02: Online<br>
&gt;<br>
&gt; Daemon Status:<br>
&gt;   corosync: active/disabled<br>
&gt;   pacemaker: active/disabled<br>
&gt;   pcsd: active/disabled<br>
&gt;<br>
&gt; Seems like each node thinks it&#39;s online and the other is not. I&#39;m running HA<br>
&gt; on apache webserver, and if I access the webpage on node01, I get node01&#39;s<br>
&gt; index.html. If I access it on node02, I get node02&#39;s index.html. If I access<br>
&gt; it via another PC connected to the same AP, the webpage is unavailable.<br>
&gt;<br>
&gt; What could be wrong?<br>
&gt;<br>
&gt;<br>
&gt; On Mon, Sep 1, 2014 at 9:09 PM, John Lauro &lt;<a href="mailto:john.lauro@covenanteyes.com">john.lauro@covenanteyes.com</a>&gt;<br>
&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; ip=192.168.0.110 cidr_netmask=32<br>
&gt;&gt; /32 leaves no room for any other IP addresses on that interface and so you<br>
&gt;&gt; have to specify the nic.  Are you certain 192.168.0.111 and 192.168.0.112 do<br>
&gt;&gt; not have a different netmask from 255.255.255.255, like 255.255.255.0 for<br>
&gt;&gt; /24 or 255.255.0.0 for /16?  If they do have 255.255.255.255 too, then they<br>
&gt;&gt; are probably not setup correctly...<br>
&gt;&gt;<br>
&gt;&gt; PS: cidr_netmask is optional.  Assuming a proper netmask (not<br>
&gt;&gt; 255.255.255.2555) is on 192.168.0.111 and 192.168.0.112 it should work<br>
&gt;&gt; without specifying cidr_netmask.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; ________________________________<br>
&gt;&gt;<br>
&gt;&gt; From: &quot;Sihan Goi&quot; &lt;<a href="mailto:goister@gmail.com">goister@gmail.com</a>&gt;<br>
&gt;&gt; To: <a href="mailto:pacemaker@oss.clusterlabs.org">pacemaker@oss.clusterlabs.org</a><br>
&gt;&gt; Sent: Monday, September 1, 2014 4:17:20 AM<br>
&gt;&gt; Subject: [Pacemaker] ERROR: Unable to find nic or netmask.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Hi,<br>
&gt;&gt;<br>
&gt;&gt; I&#39;m trying to create a HA cluster with 2 CentOS 7 PCs connected to a<br>
&gt;&gt; wireless AP. The PCs have the static IP addresses 192.168.0.111 and<br>
&gt;&gt; 192.168.0.112 respectively and hostnames node01 and node02 respectively.<br>
&gt;&gt;<br>
&gt;&gt; I&#39;ve tried to create a virtual IP address of 192.168.0.110 using the<br>
&gt;&gt; following command:<br>
&gt;&gt;<br>
&gt;&gt; pcs resource create virtual_ip ocf:heartbeat:IPaddr2 ip=192.168.0.110<br>
&gt;&gt; cidr_netmask=32 op monitor interval=30s<br>
&gt;&gt;<br>
&gt;&gt; However, when I do a &quot;pcs status resources&quot; I get the following output:<br>
&gt;&gt;<br>
&gt;&gt;  virtual_ip    (ocf::heartbeat:IPaddr2):    Stopped<br>
&gt;&gt;<br>
&gt;&gt; The virtual IP is stopped rather than started. I looked into<br>
&gt;&gt; /var/log/messages and /var/log/pacemaker.log<br>
&gt;&gt;  and I find the following error messages:<br>
&gt;&gt;<br>
&gt;&gt; node02 IPaddr2(virtual_ip)[25451]: ERROR: Unable to find nic or netmask.<br>
&gt;&gt; node02 IPaddr2(virtual_ip)[25451]: ERROR: [findif] failed<br>
&gt;&gt;<br>
&gt;&gt; It seems that it&#39;s unable to find my nic. How can I fix this?<br>
&gt;&gt;<br>
&gt;&gt; Thanks.<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; Pacemaker mailing list: <a href="mailto:Pacemaker@oss.clusterlabs.org">Pacemaker@oss.clusterlabs.org</a><br>
&gt;&gt; <a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</a><br>
&gt;&gt;<br>
&gt;&gt; Project Home: <a href="http://www.clusterlabs.org" target="_blank">http://www.clusterlabs.org</a><br>
&gt;&gt; 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>
&gt;&gt; Bugs: <a href="http://bugs.clusterlabs.org" target="_blank">http://bugs.clusterlabs.org</a><br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; - Goi Sihan<br>
&gt; <a href="mailto:goister@gmail.com">goister@gmail.com</a><br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Pacemaker mailing list: <a href="mailto:Pacemaker@oss.clusterlabs.org">Pacemaker@oss.clusterlabs.org</a><br>
&gt; <a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</a><br>
&gt;<br>
&gt; Project Home: <a href="http://www.clusterlabs.org" target="_blank">http://www.clusterlabs.org</a><br>
&gt; 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>
&gt; Bugs: <a href="http://bugs.clusterlabs.org" target="_blank">http://bugs.clusterlabs.org</a><br>
&gt;<br>
<br>
_______________________________________________<br>
Pacemaker mailing list: <a href="mailto:Pacemaker@oss.clusterlabs.org">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>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>- Goi Sihan<br><a href="mailto:goister@gmail.com">goister@gmail.com</a>
</div>