Mailing List Archive

CentOS 7 Pacemake/Corosync
Hi,

I'm trying to build a Pacemaker/Corosync Cluster on CentOS7. The default
Corosync configuration with one ring is working but then I only have 1
ring and no encryption.

RING ID 1
id = 10.10.10.1
status = ring 1 active with no faults

I've tried to activate the following configuration but it doesn't work.

[root@linsrv006 corosync]# cat /etc/corosync/corosync.conf
totem {
version: 2
secauth: on
threads: 0
rrp_mode: active
interface {
ringnumber: 0
bindnetaddr: 192.168.0.0
mcastaddr: 226.94.42.7
mcastport: 5411
}
interface {
ringnumber: 1
bindnetaddr: 10.10.10.0
mcastaddr: 226.94.42.11
mcastport: 5419
}
token: 10000
token_retransmits_before_loss_const: 40
rrp_problem_count_timeout: 20000
nodeid: 3
}
quorum {
provider: corosync_votequorum
expected_votes: 3
}

logging {
to_syslog: yes
}


The problem is also than, that pcs status is showing 3 nodes.

[root@linsrv006 corosync]# pcs status
Cluster name:
Last updated: Fri Mar 6 09:10:41 2015
Last change: Fri Mar 6 09:10:30 2015 via crmd on linsrv006.willi-net.local
Stack: corosync
Current DC: NONE
4 Nodes configured
9 Resources configured


OFFLINE: [ linsrv006 linsrv006.willi-net.local linsrv006.willi-net.local
linsrv007 ]

Full list of resources:

Master/Slave Set: ms_drbd_mysql [drbd_mysql] (unmanaged)
Stopped: [ linsrv006 linsrv006.willi-net.local
linsrv006.willi-net.local linsrv007 ]
Clone Set: ping-clone [ping] (unmanaged)
Stopped: [ linsrv006 linsrv006.willi-net.local
linsrv006.willi-net.local linsrv007 ]
Resource Group: mysql
fs_mysql (ocf::heartbeat:Filesystem): Stopped (unmanaged)
mysqld (ocf::heartbeat:mysql): Stopped (unmanaged)
ip_mysql (ocf::heartbeat:IPaddr2): Stopped (unmanaged)

PCSD Status:
Error: no nodes found in corosync.conf

Please support me to fix my Corosync issue.

Many thanks & regards - Willi
_______________________________________________
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems
Re: CentOS 7 Pacemake/Corosync [ In reply to ]
Hi,

I can't offer a solution, but I remember having run into similar issues
when the output of hostname showed the FQDN.

Maybe that helps you narrow down the problem.

Best regards
Lukas Grossar

On Fri, 06 Mar 2015 09:12:47 +0100
Willi Fehler <willi.fehler@t-online.de> wrote:

> Hi,
>
> I'm trying to build a Pacemaker/Corosync Cluster on CentOS7. The
> default Corosync configuration with one ring is working but then I
> only have 1 ring and no encryption.
>
> RING ID 1
> id = 10.10.10.1
> status = ring 1 active with no faults
>
> I've tried to activate the following configuration but it doesn't
> work.
>
> [root@linsrv006 corosync]# cat /etc/corosync/corosync.conf
> totem {
> version: 2
> secauth: on
> threads: 0
> rrp_mode: active
> interface {
> ringnumber: 0
> bindnetaddr: 192.168.0.0
> mcastaddr: 226.94.42.7
> mcastport: 5411
> }
> interface {
> ringnumber: 1
> bindnetaddr: 10.10.10.0
> mcastaddr: 226.94.42.11
> mcastport: 5419
> }
> token: 10000
> token_retransmits_before_loss_const: 40
> rrp_problem_count_timeout: 20000
> nodeid: 3
> }
> quorum {
> provider: corosync_votequorum
> expected_votes: 3
> }
>
> logging {
> to_syslog: yes
> }
>
>
> The problem is also than, that pcs status is showing 3 nodes.
>
> [root@linsrv006 corosync]# pcs status
> Cluster name:
> Last updated: Fri Mar 6 09:10:41 2015
> Last change: Fri Mar 6 09:10:30 2015 via crmd on
> linsrv006.willi-net.local Stack: corosync
> Current DC: NONE
> 4 Nodes configured
> 9 Resources configured
>
>
> OFFLINE: [ linsrv006 linsrv006.willi-net.local
> linsrv006.willi-net.local linsrv007 ]
>
> Full list of resources:
>
> Master/Slave Set: ms_drbd_mysql [drbd_mysql] (unmanaged)
> Stopped: [ linsrv006 linsrv006.willi-net.local
> linsrv006.willi-net.local linsrv007 ]
> Clone Set: ping-clone [ping] (unmanaged)
> Stopped: [ linsrv006 linsrv006.willi-net.local
> linsrv006.willi-net.local linsrv007 ]
> Resource Group: mysql
> fs_mysql (ocf::heartbeat:Filesystem): Stopped (unmanaged)
> mysqld (ocf::heartbeat:mysql): Stopped (unmanaged)
> ip_mysql (ocf::heartbeat:IPaddr2): Stopped (unmanaged)
>
> PCSD Status:
> Error: no nodes found in corosync.conf
>
> Please support me to fix my Corosync issue.

--
Adfinis SyGroup AG
Lukas Grossar, System Engineer

Keltenstrasse 98 | CH-3018 Bern
Tel. 031 550 31 11 | Direkt 031 550 31 06
Re: CentOS 7 Pacemake/Corosync [ In reply to ]
Hi Lukas,

thanks for the feedback. I''ve changed my configuration to use hostnames
without FQDN but the Cluster name: is still not showed. I'll wait for
CentOS-7.1, maybe the latest Pacemaker package will fix this issue.

Best regards,
Willi

Am 09.03.15 um 11:40 schrieb Lukas Grossar:
> Hi,
>
> I can't offer a solution, but I remember having run into similar issues
> when the output of hostname showed the FQDN.
>
> Maybe that helps you narrow down the problem.
>
> Best regards
> Lukas Grossar
>
> On Fri, 06 Mar 2015 09:12:47 +0100
> Willi Fehler <willi.fehler@t-online.de> wrote:
>
>> Hi,
>>
>> I'm trying to build a Pacemaker/Corosync Cluster on CentOS7. The
>> default Corosync configuration with one ring is working but then I
>> only have 1 ring and no encryption.
>>
>> RING ID 1
>> id = 10.10.10.1
>> status = ring 1 active with no faults
>>
>> I've tried to activate the following configuration but it doesn't
>> work.
>>
>> [root@linsrv006 corosync]# cat /etc/corosync/corosync.conf
>> totem {
>> version: 2
>> secauth: on
>> threads: 0
>> rrp_mode: active
>> interface {
>> ringnumber: 0
>> bindnetaddr: 192.168.0.0
>> mcastaddr: 226.94.42.7
>> mcastport: 5411
>> }
>> interface {
>> ringnumber: 1
>> bindnetaddr: 10.10.10.0
>> mcastaddr: 226.94.42.11
>> mcastport: 5419
>> }
>> token: 10000
>> token_retransmits_before_loss_const: 40
>> rrp_problem_count_timeout: 20000
>> nodeid: 3
>> }
>> quorum {
>> provider: corosync_votequorum
>> expected_votes: 3
>> }
>>
>> logging {
>> to_syslog: yes
>> }
>>
>>
>> The problem is also than, that pcs status is showing 3 nodes.
>>
>> [root@linsrv006 corosync]# pcs status
>> Cluster name:
>> Last updated: Fri Mar 6 09:10:41 2015
>> Last change: Fri Mar 6 09:10:30 2015 via crmd on
>> linsrv006.willi-net.local Stack: corosync
>> Current DC: NONE
>> 4 Nodes configured
>> 9 Resources configured
>>
>>
>> OFFLINE: [ linsrv006 linsrv006.willi-net.local
>> linsrv006.willi-net.local linsrv007 ]
>>
>> Full list of resources:
>>
>> Master/Slave Set: ms_drbd_mysql [drbd_mysql] (unmanaged)
>> Stopped: [ linsrv006 linsrv006.willi-net.local
>> linsrv006.willi-net.local linsrv007 ]
>> Clone Set: ping-clone [ping] (unmanaged)
>> Stopped: [ linsrv006 linsrv006.willi-net.local
>> linsrv006.willi-net.local linsrv007 ]
>> Resource Group: mysql
>> fs_mysql (ocf::heartbeat:Filesystem): Stopped (unmanaged)
>> mysqld (ocf::heartbeat:mysql): Stopped (unmanaged)
>> ip_mysql (ocf::heartbeat:IPaddr2): Stopped (unmanaged)
>>
>> PCSD Status:
>> Error: no nodes found in corosync.conf
>>
>> Please support me to fix my Corosync issue.
>
>
> _______________________________________________
> Linux-HA mailing list
> Linux-HA@lists.linux-ha.org
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems

_______________________________________________
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems