LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-28-2016, 09:04 AM   #1
ogniemi
LQ Newbie
 
Registered: Sep 2016
Posts: 3

Rep: Reputation: Disabled
Corosync configuration:


hello,
I have setup corosync with following ocnfiguration:

Code:
# cat /etc/corosync/corosync.conf
totem {
    version: 2
    secauth: off
    cluster_name: pacemaker1
    transport: udpu
    rrp_mode: passive
}

nodelist {
    node {
        ring0_addr: lvs1
        ring1_addr: lvs1b
        nodeid: 101
    }
    node {
        ring0_addr: lvs2
        ring1_addr: lvs2b
        nodeid: 102
    }
}

quorum {
   provider: corosync_votequorum
   two_node: 1
   wait_for_all: 1
   last_man_standing: 1
   auto_tie_breaker: 0
}

logging {
    to_logfile: yes
    logfile: /var/log/cluster/corosync.log
    to_syslog: yes
}
it works fine - both rings are fine:

Code:
# corosync-cfgtool -s
Printing ring status.
Local node ID 102
RING ID 0
        id      = 192.168.198.21
        status  = ring 0 active with no faults
RING ID 1
        id      = 192.168.199.21
        status  = ring 1 active with no faults
Question1: why corosync.conf manual says that interfaces in totem is required? I don't have it and cluster works fine.

Code:
       Within the totem directive, an interface directive is required.  There is also one configuration option which is required:

       Within the interface sub-directive of totem there are four parameters which are required.  There is one parameter which is optional.
I don't want to use any multicast - with my configuration when I run "tcpdump -n "broadcast or multicast or ip" -i eth2" it only catch only:

Code:
13:13:55.936454 IP 192.168.199.20.5405 > 192.168.199.21.5405: UDP, length 74
13:13:55.936677 IP 192.168.199.21.5405 > 192.168.199.20.5405: UDP, length 74
13:13:55.937025 IP 192.168.199.20.5405 > 192.168.199.21.5405: UDP, length 74
13:13:55.937253 IP 192.168.199.21.5405 > 192.168.199.20.5405: UDP, length 74
13:13:55.937593 IP 192.168.199.20.5405 > 192.168.199.21.5405: UDP, length 74
so looks fine.

I just want to be sure that there is no risk using configuration I have now.
 
Old 09-28-2016, 12:55 PM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora 34
Posts: 3,666

Rep: Reputation: 1059Reputation: 1059Reputation: 1059Reputation: 1059Reputation: 1059Reputation: 1059Reputation: 1059Reputation: 1059
How did your failover testing go?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Using corosync on Ubuntu/Debian vasis Linux - Server 2 02-16-2015 04:29 PM
Openvz+DRBD+corosync yekezun Linux - Virtualization and Cloud 3 12-22-2014 11:46 AM
pacemaker + corosync + nginx weenux28 Linux - Software 0 03-09-2013 01:44 AM
[SOLVED] Pacemaker/Corosync/LinuxHA mscolar Linux - Server 0 02-24-2013 04:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:05 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration