Abstract
After your cluster is installed and set up as described in Chapter 3, Installation and Basic Setup with YaST and you have learned how to configure resources either with the GUI or from command line, this chapter provides a basic example for the configuration of a simple resource: an IP address. It demonstrates both approaches to do so, using either the Linux HA Management Client or the crm command line tool.
For the following example, we assume that your cluster consists of at least two nodes.
Creating a sample cluster resource and migrating it to another server can help you test to ensure your cluster is functioning properly. A simple resource to configure and migrate is an IP address.
Procedure 6.1. Creating an IP Address Cluster Resource
Start the Linux HA Management Client and log in to the cluster as described in Section 4.1, “Linux HA Management Client”.
In the left pane, switch to the view and in the right pane, select the group to modify and click . The next window shows the basic group parameters and the meta attributes and primitives already defined for that resource.
Click the tab and click .
In the next dialog, set the following parameters to add an IP address as sub-resource of the group:
Enter a unique ID, for example,
myIP.
From the list, select as resource agent class.
As of your OCF resource agent, select .
From the list, select as resource agent.
Click .
In the tab, select the entry and click (or double-click the entry).
As , enter the desired IP address, for
example, 10.10.0.1 and click .
a new instance attribute and specify
nic as and
eth0 as , then click
.
The name and value are dependent on your hardware configuration and what you chose for the media configuration during the installation of the High Availability Extension software.
If all parameters are set according to your wishes, click to finish the configuration of that resource. The configuration dialog is closed and the main window shows the modified resource.
To start the resource with the Linux HA Management Client, select in the left pane. In the right pane, right-click the resource and select (or start it from the toolbar).
To migrate the IP address resource to another node
(saturn) proceed as follows:
Procedure 6.2. Migrating Resources to Another Node
Switch to the view in the left pane, then right-click the IP address resource in the right pane and select .
In the new window, select saturn from the drop-down list to move the selected resource to the node
saturn.
If you want to migrate the resource only temporarily, activate and enter the time frame for which the resource should migrate to the new node.
Click to confirm the migration.