After you have installed and set up a two-node cluster, you can extend the cluster by cloning existing nodes with AutoYaST and adding the clones to the cluster.
AutoYaST uses profiles that contains installation and configuration data. A profile tells AutoYaST what to install and how to configure the installed system to get a ready-to-use system in the end. This profile can then be used for mass deployment in different ways (for example, to clone existing cluster nodes).
For detailed instructions on how to use AutoYaST in various scenarios, see the SUSE Linux Enterprise 12 SP4 Deployment Guide, available at http://www.suse.com/documentation/sles-12. Refer to chapter Automated Installation.
IMPORTANT: Identical Hardware
Cloning a Cluster Node with AutoYaST assumes you are rolling out SUSE Linux Enterprise High Availability Extension 12 SP4 to a set of machines with identical hardware configurations.
If you need to deploy cluster nodes on non-identical hardware, refer to the SUSE Linux Enterprise 12 SP4 Deployment Guide, chapter Automated Installation, section Rule-Based Autoinstallation.
Cloning a Cluster Node with AutoYaST
Make sure the node you want to clone is correctly installed and configured. For details, see the Installation and Setup Quick Start for SUSE Linux Enterprise High Availability Extension or Section 4.0, Using the YaST Cluster Module.
Follow the description outlined in the SUSE Linux Enterprise 12 SP4 Deployment Guide for simple mass installation. This includes the following basic steps:
Creating an AutoYaST profile. Use the AutoYaST GUI to create and modify a profile based on the existing system configuration. In AutoYaST, choose themodule and click the button. If needed, adjust the configuration in the other modules and save the resulting control file as XML.
If you have configured DRBD, you can select and clone this module in the AutoYaST GUI, too.
Determining the source of the AutoYaST profile and the parameter to pass to the installation routines for the other nodes.
Determining the source of the SUSE Linux Enterprise Server and SUSE Linux Enterprise High Availability Extension installation data.
Determining and setting up the boot scenario for autoinstallation.
Passing the command line to the installation routines, either by adding the parameters manually or by creating an info file.
Starting and monitoring the autoinstallation process.
After the clone has been successfully installed, execute the following steps to make the cloned node join the cluster:
Bringing the Cloned Node Online
Transfer the key configuration files from the already configured nodes to the cloned node with Csync2 as described in Section 4.5, Transferring the Configuration to All Nodes.
To bring the node online, start the Pacemaker service on the cloned node as described in Section 4.8, Bringing the Cluster Online.
The cloned node will now join the cluster because the /etc/corosync/corosync.conf file has been applied to the cloned node via Csync2. The CIB is automatically synchronized among the cluster nodes.