Prior to installing LifeKeeper, configure the OS for the three virtual machines that you have created.
Logging In to a Virtual Machine
Perform the following steps on both cluster nodes and clients.
- Select Azure Portal > Virtual machines > Overview > Connect and review the information required for the connection.
- Using terminal software (Putty, Tera Term, etc.) on the local PC, SSH to the public IP of the virtual machine with the account created when creating the virtual machine.
- Log in to the virtual machine. (The screenshot below displays what you’ll see when you login to Putty for the first time. Click Yes to Proceed.)
- Set it up for subsequent use by root. Change to root privileges.
- Set the root password.
- Allow root login.
- Launch another window with the terminal software and confirm that you can log in as root (do not close the terminal window that you have been using).
- After successfully logging in, perform all subsequent tasks as root.
Fixing NIC Addresses
The NIC address is fixed to prevent it from being updated when the Azure infrastructure is updated. Make the following settings on both cluster nodes.
- Display the NIC information of the virtual machine and take a note of each interface name and MAC address.
- By default, there is only a network configuration file for eth0, so create a network configuration file for eth1.
- Edit the eth0 and eth1 configuration files. For HWADDR, use the value you took a note in the previous step.
SELinux
Disable SELinux. Make the following settings on both cluster nodes.
- Open the following file.
- Change the following parameters from “enforcing” to “disabled” and save.
- Reboot the virtual machine for the settings to take effect.
- Confirm that SELinux is disabled.
Firewall
Since LifeKeeper uses a specific port, refer to Running LifeKeeper with a Firewall to change the OS firewall configuration.
Disable the firewall. Configure the following settings on both cluster nodes.
- Execute the following commands.
Address Conversion
Configure the following settings at the same time.
- To enable communication to the VIP, the destination address of the packet for port 1521 where the load is balanced by ILB is converted to [VIP protected with IP resources].
- Convert the source address of the ICMP packet to [Private IP address of Azure] so that the monitoring process of IP resources can be performed successfully.
Make the following settings on both cluster nodes.
- Install the IP tables package.
- Enable IP tables.
- Make sure the IP tables are enabled.
- Configure the IP tables.
Execute the following command on the active node (lk4lnode1):
Execute the following command on the standby node (lk4lnode02):
- Confirm that the ip table settings have been added. The following is an example of the active node.
- Reboot the virtual machine for the settings to take effect.
GUI Connection Settings
By default, Azure virtual machines do not have a GUI environment installed. We need to set up an X11 environment on the cluster nodes and a GUI environment on the client to use the LifeKeeper GUI.
Make the following settings on both cluster nodes.
- Install the GUI package. Execute the following command.
- After installing the package, execute the following command.
- Next, set the permission for intra-subnet communication. Edit the following file and add an entry before [REJECT].
- Reboot the virtual machine for the settings to take effect.
- Configure the local PC. Install the X Server software (such as Xming) on your local PC and start it.
- Next, configure the X 1 1 forwarding in the local PC terminal software (such as Putty or TeraTerm).
The setting method varies depending on the terminal software you are using. The following is an example of the configuration in Putty.
Name Resolution
Configure the following settings on both cluster nodes and clients.
- Register the information of the cluster node (active) and cluster node (standby) clients and three Witness servers in /etc/hosts.
- Verify that each of them can communicate with each other with host name.
Checking the Kernel Version
Check the kernel version of RHEL.
For each distribution that supports LifeKeeper, refer to the LifeKeeper for Linux Support Matrix.
Now you are ready to install LifeKeeper.
Post your comment on this topic.