Debian Codegraph @

ansible_collections/ibm/storage_virtualize/playbooks/PBHA/README.md

raw symbols SCIP
1 # Playbook to Set Up Policy-Based High Availability (PBHA)
2
3 ## Table of Contents
4
5 - [Objective](#objective)
6 - [Prerequisites](#prerequisites)
7 - [Tasks Performed](#tasks-performed)
8 - [Playbooks Overview](#playbooks-overview)
9 - [Variables](#variables)
10
11 ## Objective
12
13 - Set up **Policy Based High Availability (PBHA) Replication**.
14
15 ## Prerequisites
16
17 - IBM Storage Virtualize ansible collection plugins must be installed.
18 - FC partnership must be present between the clusters.
19 - Truststores with certificates of partnered system must be present on both clusters.
20 - Policy-based Replication must be enabled for the partnership. It can be done by running the below command on **both clusters**:
21 ```bash
22 chpartnership -pbrinuse yes <partnership_name>
23 ```
24
25 ## Tasks Performed
26
27 This playbook automates the setup and configure PBHA Replication between source cluster to destination cluster. It performs the following tasks,
28 - Creates Data Reduction Pool, links them, and creates provisionining policy.
29 - Create multiple volumes with specified prefix, along with volume group, and maps them to the specified host.
30
31 ## Playbooks Overview
32
33 ### 1. main.yml:
34 - This is the main file to be executed using:
35 ```ansible-playbook main.yml```
36 - It leverages other files for PBHA configuration. It executes playbook like `create_mdiskgrp_provisioningpolicy.yml` and later on, this playbook creates partition, volume group and associated volumes with volume_prefix name specified in inventory file `inventory.ini`.
37 - It also maps all the volumes to specified host.
38
39 ### 2. create_mdiskgrp_provisioning_policy.yml:
40 - This playbook checks the drive status and drive count. Based on this drive info, it creates standard or data reduction pool with specified level.
41 - It links pools of both the sites, and creates provisioning policy.
42
43 > [!NOTE]
44 > After successfully executing the playbook, the quorum application will be ready for use. Please copy it to the any host. This may need to be run later in case of broken quorum. Please make sure the host has Java Runtime Environment (JRE) installed, as it is required to run the application.
45
46 ## Variables
47
48 ### These variables should be defined in your inventory.ini file,
49
50 | Parameter | Description |
51 |-----------------------------------|---------------------------------------------------------------------------------------------------------------------------------|
52 | `users_data` | Details of primary (source) and secondary (target) clusters for replication. |
53 | `users_data[x].cluster_name` | Cluster name of the system. |
54 | `users_data[x].cluster_ip` | Cluster IP Address of the system. |
55 | `users_data[x].cluster_username` | Username for authentication on the system. |
56 | `users_data[x].cluster_password` | Password for authentication on the system. |
57 | `host_name` | FC host name to which all volumes should be mapped after creation. |
58 | `fcwwpn` | List of Fibre Channel (FC) WWPNs to be added to the FC host. |
59 | `pool_name` | Name of the storage pool to be created. |
60 | `provisioning_policy_name` | Name of the provisioning policy to be created and added to the storage pool. |
61 | `mdisk_name` | Name of the array to be created and added to the storage pool. |
62 | `level` | RAID level for the array being created. [Refer to RAID level combinations](https://www.ibm.com/docs/en/flashsystem-5x00/8.7.x?topic=commands-mkdistributedarray). |
63 | `drivecount` | Number of drives to be used in the array. |
64 | `ha_policy_name` | Name of the High Availability (HA) replication policy to be created. |
65 | `partition_name` | Name of the storage partition to be created. |
66 | `volume_size` | Size of each volume to be created. |
67 | `volume_prefix` | Prefix for naming volumes (e.g., `vol_` results in `vol_1`, `vol_2`, etc.). |
68 | `volume_group_name` | Name of the volume group under which all created volumes will be grouped. |
69 | `number_of_volumes` | Number of volumes to be created. |
70 | `log_path` | Path where playbook logs will be stored. Defaults to `/tmp/ansiblePB.debug` if not specified. |
71
72 ## Authors
73
74 - Lavanya C R ([email protected])
75 - Sandip Rajbanshi ([email protected])