Role: cluster_create
Description
This role creates a simple dual-node PowerHA cluster with one resource group on IBM AIX. It doesn’t configure any volume groups into the resource group.
The role is part of PowerHA SystemMirror for AIX collection.
Prerequisites
IBM AIX 7.2 or IBM AIX 7.3
IBM PowerHA SystemMirror for AIX 7.2.X
Ansible 2.13 or newer
Python 3.9
Inventory requirements
Hosts where PowerHA cluster will be created must be in one of two groups:
node1
node2
The hosts from node1
group will be primary nodes in the cluster.
[node1]
aix11
aix21
aix31
[node2]
aix12
aix22
aix32
Variables
Name |
Type |
Default |
Description |
---|---|---|---|
cluster_create_cluster_name |
str |
cluster1 |
Name of PowerHA cluster. |
cluster_create_caarepo_luns |
array of str |
[00000000000000000000000000000000] |
Disks to create CAA repository. |
cluster_create_caa_disk |
str |
ldev |
Method of finding CAA repository disks. See below for more information. |
cluster_create_nodes |
array of dict |
[] |
Cluster nodes. Each item must have two fields: |
cluster_create_service |
array of dict |
[] |
Service IP labels. Each item must have two fields: |
cluster_create_app |
dict |
see below |
Application controller resource in PowerHA clsuter. |
cluster_create_rg |
dict |
see below |
Resource group resource in PowerHA cluster. |
cluster_create_app variable
cluster_create_app:
name: "ac_ora" # name of the application controller
start: "start_app.sh" # script to start the application
stop: "stop_app.sh" # script to stop the application
cluster_create_rg variable
cluster_create_rg:
name: "rg_oracle" # name of the resource group
startup: "OHN" # startup policy of the resource group
fallover: "FNPN" # fallover policy of the resource group
fallback: "NFB" # fallback policy of the resource group
cluster_create_caa_disk
The variable defines which method is used to find the disks for CAA repository. Depending on the value of cluster_create_caa_disk
, the role analyzes the values in variable cluster_create_caarepo_luns
.
It can be set to the following values:
Value |
Meaning |
---|---|
ldev |
Variable |
disk |
Variable |
pvid |
Variable |
uuid |
Variable |
Example
---
- name: Create dual-node PowerHA cluster
hosts: all
become: true
gather_facts: false
roles:
- role: enfence.powerha_aix.cluster_create
cluster_create_caarepo_luns:
- "60050X6801Z081D3Y8000000000002D5"
cluster_create_nodes:
- { name: "node1", ip: "10.0.0.11" }
- { name: "node2", ip: "10.0.0.12" }
cluster_create_service:
- { name: "cluster", ip: "10.0.0.10" }
License
GNU General Public License v3.0 or later.
See LICENSE to see the full text.