[ClusterLabs] CentOS 7 - Corosync configuration

Willi Fehler willi.fehler at t-online.de
Sat Mar 7 06:49:40 UTC 2015


Hi,

everything is working now. There is only one small issue. The command 
pcs status does not display the cluster_name.

[root at linsrv006 ~]# pcs status
Cluster name:
WARNING: no stonith devices and stonith-enabled is not false
Last updated: Sat Mar  7 07:48:32 2015
Last change: Sat Mar  7 07:42:20 2015 via crmd on linsrv006
Stack: corosync
Current DC: linsrv007 (2) - partition with quorum
Version: 1.1.10-32.el7_0.1-368c726
2 Nodes configured
0 Resources configured


Online: [ linsrv006 linsrv007 ]

Full list of resources:


PCSD Status:
   linsrv006: Online
   linsrv007: Online

Daemon Status:
   corosync: active/disabled
   pacemaker: active/disabled
   pcsd: active/enabled

[root at linsrv006 ~]# cat /etc/corosync/corosync.conf
totem {
   version: 2
   threads: 2
   secauth: on
   cluster_name: pcmkcluster
   transport: udp
   rrp_mode: active
   interface {
           ringnumber: 0
           bindnetaddr: 192.168.0.0
           mcastaddr: 239.255.1.1
           mcastport: 5404
           ttl: 255
   }
   interface {
           ringnumber: 1
           bindnetaddr: 10.10.10.0
           mcastaddr: 239.255.2.1
           mcastport: 5406
           ttl: 255
   }
}

nodelist {
   node {
         ring0_addr: linsrv006
         nodeid: 1
        }
   node {
         ring0_addr: linsrv007
         nodeid: 2
        }
}

quorum {
provider: corosync_votequorum
two_node: 1
}

logging {
to_syslog: yes
}

Regards - Willi

Am 06.03.15 um 17:54 schrieb Takehiro Matsushima:
> Hi, Willi,
>
> To activate secauth, you should prepare a key.
> Try following and place the key /etc/corosync/ on all nodes;
> # corosync-keygen
> then delete a line 'secauth' or define 'secauth: on' in corosync.conf.
>
> To activate rrp, modify nodelist directive like this;
> ----(snip.)----
> nodelist {
>    node {
>          ring0_addr: [REAL-IPADDR-FOR-RING0-IFACE]
>          ring1_addr: [REAL-IPADDR-FOR-RING1-IFACE]
>          nodeid: 1
>    }
>    node {
>          ring0_addr: [REAL-IPADDR-FOR-RING0-IFACE]
>          ring1_addr: [REAL-IPADDR-FOR-RING1-IFACE]
>          nodeid: 2
>     }
> }
> --------
> and add 'rrp_mode: active' in corosync.conf.
>
> For details, see 'man 5 corosync.conf' and
> '/etc/corosync/corosync.conf.example.udpu'.
>
>
> Alternatively, 'bonding' may be useable.
>
>
> Regards,
> Takehiro Matsushima
>
> _______________________________________________
> Users mailing list: Users at clusterlabs.org
> http://clusterlabs.org/mailman/listinfo/users
>
> 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 Users mailing list