[ClusterLabs] Corosync over dedicated interface?

Jehan-Guillaume de Rorthais jgdr at dalibo.com
Wed Sep 28 12:22:06 EDT 2022


Hi,

A small addendum below.

On Wed, 28 Sep 2022 11:42:53 -0400
"Kevin P. Fleming" <kevin at km6g.us> wrote:

> On Wed, Sep 28, 2022 at 11:37 AM Dave Withheld <davewithheld at hotmail.com>
> wrote:
> >
> > Is it possible to get corosync to use the private network and stop trying
> > to use the LAN for cluster communications? Or am I totally off-base and am
> > missing something in my drbd/pacemaker configuration?  
> 
> Absolutely! When I setup my two-node cluster recently I did exactly
> that. If you are using 'pcs' to manage your cluster, ensure that you
> add the 'addr=' parameter during 'pcs host auth' so that Corosync and
> the layers above it will use that address for the host. Something
> like:
> 
> $ pcs host auth cluster-node-1 addr=192.168.10.1 cluster-node-2
> addr=192.168.10.2

You can even set multiple rings so corosync can rely on both:

  $ pcs host auth                                    \
    cluster-node-1 addr=192.168.10.1 addr=10.20.30.1 \
    cluster-node-2 addr=192.168.10.2 addr=10.20.30.2

Then, compare (but do not edit!) your "/etc/corosync/corosync.conf" on all
nodes.

Regards,


More information about the Users mailing list