After having installed the HA packages, you can configure the initial cluster setup with YaST. This includes the communication channels between the nodes, security aspects like using encrypted communication and starting OpenAIS as service.
For the communication channels, you need to define a bind network address
(bindnetaddr), a multicast address
(mcastaddr) and a multicast port
(mcastport). The bindnetaddr is the
network address to bind to. To ease sharing configuration files across
the cluster, OpenAIS uses network interface netmask to mask only the
address bits that are used for routing the network. The
mcastaddr can be a IPv4 or IPv6 multicast address. The
mcastport is the UDP port specified for
mcastaddr.
The nodes in the cluster will know each other from using the same multicast address and the same port number. For different clusters, use a different multicast address.
Procedure 3.1. Configuring the Cluster
Start YaST and select + or run yast2 cluster on a command line to start the initial cluster configuration dialog.
In the category, configure the
channels used for communication between the cluster nodes. This
information is written to the
/etc/ais/openais.conf configuration file.
![]() |
Define the , the and the to use for all cluster nodes.
Specify a unique for every cluster node. It
is recommended to start at 1.
In the category, define the authentication settings for the cluster. If is activated, HMAC/SHA1 authentication is used for communication between the cluster nodes.
This authentication method requires a shared secret, which is used to
protect and authenticate messages. The authentication key (password)
you specify will be used on all nodes in the cluster. For a newly
created cluster, click to
create an authentication key that is written to
/etc/ais/authkey.
![]() |
In the category, choose whether you want to start OpenAIS on this cluster server each time it is booted.
![]() |
If you select , you must start OpenAIS manually each time this cluster server is booted. To start OpenAIS manually, use the rcopenais start command.
To start OpenAIS immediately, click .
If all options are set according to your wishes, click . YaST then automatically also adjusts the firewall settings and opens the UDP port used for multicast.
After the initial configuration is done, you need to transfer the
configuration to the other nodes in the cluster. The easiest way to do
so is to copy the /etc/ais/openais.conf file to
the other nodes in the cluster. As each node needs to have a unique
node ID, make sure to adjust the node ID accordingly after copying the
file.
If you want to use encrypted communication, also copy the
/etc/ais/authkey to the other nodes in the
cluster.