Debian Codegraph @

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

raw symbols SCIP
1 # Playbook to Set Up and configure PBRHA (3-site)
2
3 This suite of playbooks helps user to configure disaster recovery site, for an existing High Availability(PBHA) setup.
4
5 ## Table of Contents
6
7 - [Objective](#objective)
8 - [Prerequisites](#prerequisites)
9 - [Tasks Performed](#tasks-performed)
10 - [Playbooks Overview](#playbooks-overview)
11 - [Variables](#variables)
12
13 ## Objective
14
15 - Set up and configure PBRHA (3-site).
16
17 ## Prerequisites
18
19 - IBM Storage Virtualize ansible collection plugins must be installed.
20 - From here on, refer to highly-available site 1 as HA1, highly-available site 2 as HA2, and the disaster recovery
21 site as DR1.
22 - Partition-based High-availability (PBHA) must be configured between HA1 and HA2 sites. Please refer to `PBHA/`
23 and `move_existing_objects_into_PBHA_env/` directories in `playbooks/` folder to configure PBHA for new and existing
24 objects respectively.
25 - Disaster recovery (DR) site must be in partnership with both HA1 and HA2 sites.
26 - DR site must have a pool for replication.
27
28 ## Tasks Performed
29
30 - Set replication pool link uid on DR site.
31 - Create Storage Partition at DR site. `(Note: Existing partition can also be specified in inventory.ini)`
32 - Configure DR link to HA1's Storage Partition.
33 - Create async-dr replication policy in HA1 stoarge.
34 - Assign DR replication-policy to existing volumegroups.
35
36 ## Playbooks Overview
37
38 ### 1. main.yml:
39 - It will configure PBRHA 3-site over existing PBHA.
40 - This is the main file to be executed using: `ansible-playbook main.yml`
41
42 ### 2. remove_dr_link.yml:
43 - It will remove async-dr replication policy from volumgroup, removes the DR system from PBRHA setup, and it will remove partition used for DR-link.
44
45 >[!NOTE]
46 > There are 2 relevant playbook directories as below in `playbooks/` section of this collection:
47 > - `PBHA/`: For configuring new PBHA setup
48 > - `move_existing_objects_into_PBHA_env/`: For configuring PBHA for existing volumegroups
49
50 ## Variables
51
52 ### These variables should be defined in your inventory.ini file,
53
54 | Parameter | Description |
55 |------------------------------|---------------------------------------------------------------------------------------------------------------------------------|
56 | `clusters` | A list containing AMS system from PBHA configuration and DR site. |
57 | `clusters[x].name` | Cluster name of the system. |
58 | `clusters[x].clustername` | Cluster IP Address of the system. |
59 | `clusters[x].username` | Username for authentication on the system. |
60 | `clusters[x].password` | Password for authentication on the system. |
61 | `clusters[x].pool_name` | Storage pool name to be used for linking. |
62 | `clusters[x].partition_name` | Name of the storage partition used in PBRHA. |
63 | `ha_policy_name` | Name of the High Availability (HA) Replication policy. |
64 | `dr_policy_name` | Name of the Disaster Recovery (DR) Replication policy. |
65 | `volume_group_name` | List of volume groups. |
66 | `log_path` | Log path of the playbook. Defaults to `/tmp/ansiblePBRHA.log` if not specified. |
67
68 ## Authors
69
70 Sandip Gulab Rajbanshi ([email protected])