[Pacemaker] ERROR: Unable to find nic or netmask.

Teerapatr Kittiratanachai maillist.tk at gmail.com
Tue Sep 2 04:42:59 UTC 2014


Try to set cidr_netmask=32 for resource only, and let the physical
interface's netmask be 24.

On Tue, Sep 2, 2014 at 11:27 AM, Sihan Goi <goister at gmail.com> wrote:
> Got it. Changed the netmask for both PCs to 255.255.255.0 and changed
> cidr_netmask to 24 and it works...sort of.
>
> It was working for a while, and then I rebooted both PCs, and now each
> thinks its online and the other is offline.
>
> "pcs status" on my node01 gives the following output:
> Cluster name: cluster_web
> Last updated: Tue Sep  2 12:21:25 2014
> Last change: Tue Sep  2 12:13:27 2014 via cibadmin on node02
> Stack: corosync
> Current DC: node01 (1) - partition WITHOUT quorum
> Version: 1.1.10-32.el7_0-368c726
> 2 Nodes configured
> 2 Resources configured
>
>
> Online: [ node01 ]
> OFFLINE: [ node02 ]
>
> Full list of resources:
>
>  virtual_ip    (ocf::heartbeat:IPaddr2):    Started node01
>  webserver    (ocf::heartbeat:apache):    Started node01
>
> PCSD Status:
>   node01: Offline
>   node02: Online
>
> Daemon Status:
>   corosync: active/disabled
>   pacemaker: active/disabled
>   pcsd: active/disabled
>
> However, "pcs status" on node02 shows the following output:
> Cluster name: cluster_web
> Last updated: Tue Sep  2 12:20:41 2014
> Last change: Tue Sep  2 11:59:03 2014 via cibadmin on node02
> Stack: corosync
> Current DC: node02 (2) - partition WITHOUT quorum
> Version: 1.1.10-32.el7_0-368c726
> 2 Nodes configured
> 2 Resources configured
>
>
> Online: [ node02 ]
> OFFLINE: [ node01 ]
>
> Full list of resources:
>
>  virtual_ip    (ocf::heartbeat:IPaddr2):    Started node02
>  webserver    (ocf::heartbeat:apache):    Started node02
>
> PCSD Status:
>   node01: Offline
>   node02: Online
>
> Daemon Status:
>   corosync: active/disabled
>   pacemaker: active/disabled
>   pcsd: active/disabled
>
> 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.
>
> What could be wrong?
>
>
> On Mon, Sep 1, 2014 at 9:09 PM, John Lauro <john.lauro at covenanteyes.com>
> wrote:
>>
>> ip=192.168.0.110 cidr_netmask=32
>> /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...
>>
>> 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.
>>
>>
>> ________________________________
>>
>> From: "Sihan Goi" <goister at gmail.com>
>> To: pacemaker at oss.clusterlabs.org
>> Sent: Monday, September 1, 2014 4:17:20 AM
>> Subject: [Pacemaker] ERROR: Unable to find nic or netmask.
>>
>>
>> Hi,
>>
>> 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.
>>
>> I've tried to create a virtual IP address of 192.168.0.110 using the
>> following command:
>>
>> pcs resource create virtual_ip ocf:heartbeat:IPaddr2 ip=192.168.0.110
>> cidr_netmask=32 op monitor interval=30s
>>
>> However, when I do a "pcs status resources" I get the following output:
>>
>>  virtual_ip    (ocf::heartbeat:IPaddr2):    Stopped
>>
>> The virtual IP is stopped rather than started. I looked into
>> /var/log/messages and /var/log/pacemaker.log
>>  and I find the following error messages:
>>
>> node02 IPaddr2(virtual_ip)[25451]: ERROR: Unable to find nic or netmask.
>> node02 IPaddr2(virtual_ip)[25451]: ERROR: [findif] failed
>>
>> It seems that it's unable to find my nic. How can I fix this?
>>
>> Thanks.
>>
>> _______________________________________________
>> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
>> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>>
>> Project Home: http://www.clusterlabs.org
>> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
>> Bugs: http://bugs.clusterlabs.org
>>
>>
>
>
>
> --
> - Goi Sihan
> goister at gmail.com
>
> _______________________________________________
> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://bugs.clusterlabs.org
>




More information about the Pacemaker mailing list