Hi,
I'm very new to the openais. I try to configure 2 nodes cluster with openais
and pacemaker as
cluster manager.
I have the same configuration in /etc/ais/openais.conf on both machines but
when I
start /etc/init.d/ais start both machines run ans two separate clusters. How
can I define node
members in openais? How can I make both nodes to join each other?
My config:
/etc/ais/openais.conf:
totem {
version: 2
secauth: off
threads: 0
interface {
ringnumber: 0
bindnetaddr: 10.191.21.0
mcastaddr: 226.94.1.1
mcastport: 5405
}
}
logging {
debug: on
fileline: off
syslog_facility: daemon
to_stderr: yes
to_file: yes
to_syslog: yes
logfile: /var/log/openais.log
debug: on
timestamp: on
}
amf {
mode: disabled
}
aisexec {
user: root
group: root
}
pacemaker {
logfacility: daemon
debug: 0
}
I've generated authky with ais-keygen and copied it to the second node.
/var/log/messages:
openais[8401]: [MAIN ] Copyright (C) 2002-2006 MontaVista Software, Inc and
contributors.
openais[8401]: [MAIN ] Copyright (C) 2006-2007 Red Hat, Inc.
openais[8401]: [MAIN ] AIS Executive Service: started and ready to provide
service.
openais[8401]: [MAIN ] Successfully read main configuration file
'/etc/ais/openais.conf'.
openais[8401]: [TOTEM] Token Timeout (1000 ms) retransmit timeout (238 ms)
openais[8401]: [TOTEM] token hold (180 ms) retransmits before loss (4 retrans)
openais[8401]: [TOTEM] join (50 ms) send_join (0 ms) consensus (800 ms) merge
(200 ms)
openais[8401]: [TOTEM] downcheck (1000 ms) fail to recv const (50 msgs)
openais[8401]: [TOTEM] seqno unchanged const (30 rotations) Maximum network MTU
1500
openais[8401]: [TOTEM] window size per rotation (50 messages) maximum messages
per rotation (17 messages)
openais[8401]: [TOTEM] send threads (0 threads)
openais[8401]: [TOTEM] RRP token expired timeout (238 ms)
openais[8401]: [TOTEM] RRP token problem counter (2000 ms)
openais[8401]: [TOTEM] RRP threshold (10 problem count)
openais[8401]: [TOTEM] RRP mode set to none.
openais[8401]: [TOTEM] heartbeat_failures_allowed (0)
openais[8401]: [TOTEM] max_network_delay (50 ms)
openais[8401]: [TOTEM] HeartBeat is Disabled. To enable set
heartbeat_failures_allowed > 0
openais[8401]: [TOTEM] Receive multicast socket recv buffer size (262142
bytes).
openais[8401]: [TOTEM] Transmit multicast socket send buffer size (262142
bytes).
openais[8401]: [TOTEM] The network interface is down.
openais[8401]: [TOTEM] Created or loaded sequence id 0.127.0.0.1 for this ring.
openais[8401]: [TOTEM] entering GATHER state from 15.
openais[8401]: [SERV ] Service initialized 'openais extended virtual synchrony
service'
openais[8401]: [SERV ] Service initialized 'openais cluster membership service
B.01.01'
openais[8401]: [SERV ] Service initialized 'openais availability management
framework B.01.01'
openais[8401]: [SERV ] Service initialized 'openais checkpoint service B.01.01'
openais[8401]: [SERV ] Service initialized 'openais event service B.01.01'
openais[8401]: [SERV ] Service initialized 'openais distributed locking service
B.01.01'
openais[8401]: [SERV ] Service initialized 'openais message service B.01.01'
openais[8401]: [SERV ] Service initialized 'openais configuration service'
openais[8401]: [SERV ] Service initialized 'openais cluster closed process
group service v1.01'
openais[8401]: [crm ] info: objdb_get_string: Found 'daemon' for option
logfacility
openais[8401]: [crm ] info: objdb_get_string: Defaulting to '20' for option
initdead
openais[8401]: [crm ] info: objdb_get_string: Found '0' for option debug
openais[8401]: [crm ] info: crm_config_init_fn: CRM: Initialized
openais[8401]: [crm ] Logging: Initialized crm_config_init_fn
openais[8401]: [crm ] info: crm_config_init_fn: Local hostname: node1
openais[8401]: [crm ] info: update_member: Creating entry for node 2130706433
born on 0
openais[8401]: [crm ] info: update_member: 0x81a2848 Node 2130706433 now known
as node1 (was: (null))
openais[8401]: [crm ] info: update_member: Node node1 now has 1 quorum votes
(was 0)
openais[8401]: [crm ] info: update_member: Node 2130706433/node1 is now: lost
openais[8401]: [crm ] info: spawn_child: Nothing to do for child "none"
openais[8401]: [crm ] info: spawn_child: Nothing to do for child "ais"
openais[8401]: [crm ] info: spawn_child: Forked child 8407 for process lrmd
openais[8401]: [crm ] info: spawn_child: Forked child 8408 for process cib
openais[8401]: [crm ] info: spawn_child: Forked child 8409 for process crmd
openais[8401]: [crm ] info: spawn_child: Forked child 8410 for process attrd
openais[8401]: [crm ] info: crm_exec_init_fn: CRM: Initialized
openais[8401]: [SERV ] Service initialized 'LHA Cluster Manager'
openais[8401]: [SYNC ] Not using a virtual synchrony filter.
openais[8401]: [TOTEM] Creating commit token because I am the rep.
openais[8401]: [TOTEM] Saving state aru 0 high seq received 0
openais[8401]: [TOTEM] Storing new sequence id for ring 0
openais[8401]: [TOTEM] entering COMMIT state.
openais[8401]: [TOTEM] entering RECOVERY state.
openais[8401]: [TOTEM] position [0] member 127.0.0.1:
openais[8401]: [TOTEM] previous ring seq 0 rep 127.0.0.1
openais[8401]: [TOTEM] aru 0 high delivered 0 received flag 1
openais[8401]: [TOTEM] Did not need to originate any messages in recovery.
openais[8401]: [TOTEM] Sending initial ORF token
openais[8401]: [CLM ] CLM CONFIGURATION CHANGE
openais[8401]: [CLM ] New Configuration:
openais[8401]: [CLM ] Members Left:
openais[8401]: [CLM ] Members Joined:
openais[8401]: [crm ] notice: global_confchg_fn: Transitional membership event
on ring 0: memb=0, new=0, lost=0
openais[8401]: [CLM ] CLM CONFIGURATION CHANGE
openais[8401]: [CLM ] New Configuration:
openais[8401]: [CLM ] r(0) ip(127.0.0.1)
openais[8401]: [CLM ] Members Left:
openais[8401]: [CLM ] Members Joined:
openais[8401]: [CLM ] r(0) ip(127.0.0.1)
openais[8401]: [crm ] notice: global_confchg_fn: Stable membership event on
ring 0: memb=1, new=1, lost=0
openais[8401]: [crm ] info: update_member: Node 2130706433/node1 is now: member
openais[8401]: [crm ] info: global_confchg_fn: NEW: node1 2130706433
openais[8401]: [crm ] info: global_confchg_fn: MEMB: node1 2130706433
openais[8401]: [crm ] info: update_member: Node node1 now has process list:
00000000000000000000000000010312 (66322)
openais[8401]: [SYNC ] This node is within the primary component and will
provide service.
openais[8401]: [TOTEM] entering OPERATIONAL state.
openais[8401]: [CLM ] got nodejoin message 127.0.0.1
openais[8401]: [crm ] info: ais_ipc_message_callback: Recorded connection
0x81a7360 for cib/8408
openais[8401]: [crm ] info: ais_ipc_message_callback: Sending membership update
0 to cib
openais[8401]: [crm ] notice: process_ais_message: Msg[0] (dest=local:ais,
from=node1:cib.8408, remote=true, size=5): 8408
ifconfig
eth0 Link encap:Ethernet HWaddr 00:0C:29:B1:B2:B7
inet addr:10.191.21.41 Bcast:10.191.255.255 Mask:255.255.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:69970 errors:0 dropped:0 overruns:0 frame:0
TX packets:22979 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:9555186 (9.1 Mb) TX bytes:5520866 (5.2 Mb)
Interrupt:10 Base address:0x2000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:44027 errors:0 dropped:0 overruns:0 frame:0
TX packets:44027 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:4445674 (4.2 Mb) TX bytes:4445674 (4.2 Mb)
route -n
Destination Gateway Genmask Flags Metric Ref Use Iface
10.191.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
224.0.0.0 0.0.0.0 240.0.0.0 U 0 0 0 eth0
0.0.0.0 10.191.254.254 0.0.0.0 UG 0 0 0 eth0
Also why openais does not log in /var/log/openais.log?
Any help is highly appreciated!
Atanas
_______________________________________________
Openais mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/openais