Configuring HMC or PowerVM NovaLink to work with Resource Optimized High Availability
If you are running PowerHA® SystemMirror® Version 7.2.2 for AIX® or later, and if you want to use the Resource Optimized High Availability (ROHA) function, you must configure each HMC or PowerVM® NovaLink LPAR link to use Secure Shell (SSH). However, if you are running PowerHA SystemMirror Version 7.2.2 for AIX or later, you can also use Representational State Transfer (REST) application programming interface (API) to connect to the HMC instead of SSH. You must also configure a backup HMC. The ROHA function can be used only with HMC version 8.40, or later.
SSH communication with HMC or PowerVM NovaLink
For systems that are running PowerHA SystemMirror Version 7.2.2 for AIX or later, LPARs must use SSH to communicate with the Hardware Management Console (HMC) or PowerVM NovaLink.
# /usr/bin/ssh-keygen –t rsa
Generating public/private rsa key pair.
Enter file in which to save key (//.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in //.ssh/id_rsa.
Your public key has been saved in //.ssh/id_rsa.pub.
The key fingerprint is:
9c:00:9f:61:d9:40:60:0c:1d:6b:89:ac:f9:8e:fc:f5 root@4ndc1
# mykey=`cat ~/.ssh/id_rsa.pub`
# ssh hmcuser@cuodhmc mkauthkeys –a \”$mykey\”
Verify that the SSH communication is configured correctly by running the ssh
<HMCuser>@hmcname ls /tmp command on LPAR, where HMCuser is the
login ID configured in the HMC and hmcname is the name of the HMC or PowerVM NovaLink.clmgr add hmc <HMC> USER_NAME=<hmcuser>
clmgr modify hmc <HMC> USER_NAME=<hmcuser>
REST API communication with HMC
In PowerHA SystemMirror Version 7.2.2 for AIX, or later, you can use SSH or a REST API to communicate securely with an HMC. The REST APIs are provided in HMC Version 8.40, or later, and are based on HTTP protocols. An HMC user should have privileges to run the query and to acquire, and release resource operations when a nonroot user is used.
- SMIT
-
- From the command line, enter
smit sysmirror
. - Select , and press Enter.
- Change Connection Type as REST API.
- From the command line, enter
- clmgr command
- To specify the connection type, run the
clmgr manage cluster hmc
command.Example:
clmgr manage cluster hmc CONNECTION_TYPE=rest
- HMC REST API support
-
- You must use the HMC Version 8.4.3, HMC Version 8.5.3, HMC Version 8.6.2, or later.
- You can download the curl package from the IBM®
AIX Toolbox for Linux® Applications website. You also need to install
ca-certificates during curl package installation. The ssl and crypto library
versions that are shipped with the AIX® operation system must
be compatible with the curl package. The following versions of AIX operating system are tested:
- AIX 7.2 with Technology Level 0 with SP 2
- AIX 7.2 Technology Level 1 with SP 1
- AIX 7.1 with Technology Level 4 with SP 4
Note: The port number that is used for HMC REST API is 12443The latest versions of HMC supports both 12443 and 443 ports. Starting with PowerHA SystemMirror Version 7.2.8, or later, you can modify the HMC port by making following entry in the /etc/environment file.
By default, the port 12443 is used if the port entry is not made in the /etc/environment file.HMC_PORT=<port number>
REST API communication with PowerVM NovaLink
In PowerHA SystemMirror Version 7.2.2, you cannot use REST API to communicate with the PowerVM NovaLink. Therefore, the PowerHA SystemMirror cannot verify the REST API communication.
Timeout and retry mechanism
- SMIT
-
- From the command line, enter
smit sysmirror
. - Select , and press Enter.
- From the command line, enter
- clmgr command
- To display the HMC parameters, run the
clmgr query cluster roha
command.
- SMIT
-
- From the command line, enter
smit sysmirror
. - Select , and press Enter.
- Change Connection Type as REST API.x
- From the command line, enter
- clmgr command
- To display the PowerVM NovaLink parameters, run the
clmgr query cluster nova
command.
Configuring a backup HMC
You can configure more than one HMC. If one HMC fails to respond, the Resource Optimized High Availability (ROHA) function can switch to another HMC. The HMCs are used in the order they are listed in the HMC list. For example, in the HMC list, if you have three systems that are listed in the following order: HMC1, HMC2, and HMC3. If HMC1 fails, ROHA stops trying to communicate with HMC1 and starts to communicate with the next HMC in the list (HMC2). The currently used HMC is saved in the cluster configuration so that the ROHA function skips any failing HMCs and communicates with a working HMC. At the end of the session, the falling HMC information is cleared and HMC1 is listed as the first HMC system in the list again.
- SMIT
-
- From the command line, enter
smit sysmirror
. - Select , and press Enter.
- From the command line, enter
- clmgr command
- To display the HMC parameters, run the
clmgr query cluster hmc
command.
Primary HMC and backup HMC
The HMC that you use to create the EPCoD pool is the primary HMC. When you create the primary HMC, you can create a second HMC and configure it as the backup HMC for the primary HMC. The second HMC can be a backup HMC only if it manages all of the servers that belong to the EPCoD pool.
If the primary HMC is online, you must use the primary HMC to set the backup HMC. You can set a backup HMC by running the chcodpool -p epcodpoolname -o update -a "backup_master_mc_name=backup_hmc" command, where backup_hmc is the name of the backup HMC.
In HMC Version 8.50, or later, if partitions exist at the HMC group level and if
two primary HMC are active at the same time, the resources might move to an
uncompliance
state when resource acquisition occurs. After communication is
restored between first primary HMC and the new primary HMC, the new primary HMC takes over as the
HMC primary for the entire EPCoD pool. In this scenario, the first primary HMC is removed and all
HMCs that are managing the EPCoD pool are notified. The resources that are assigned to the servers
in the EPCoD pool might not be same as the resources identified by the new primary HMC. Therefore,
you must resync all resources with the new primary HMC.
- SMIT:
-
- From the command line enter
smit sysmirror
. - Select and press Enter.
- From the command line enter
- clmgr command:
- To verify and synchronize the cluster, enter the following
command:
clmgr sync cluster