dellemc.powerflex.replication_pair module – Manage replication pairs on Dell PowerFlex
Note
This module is part of the dellemc.powerflex collection (version 1.9.0).
You might already have this collection installed if you are using the ansible
package.
It is not included in ansible-core
.
To check whether it is installed, run ansible-galaxy collection list
.
To install it, use: ansible-galaxy collection install dellemc.powerflex
.
You need further requirements to be able to use this module,
see Requirements for details.
To use it in a playbook, specify: dellemc.powerflex.replication_pair
.
New in dellemc.powerflex 1.6.0
Synopsis
Managing replication pairs on PowerFlex storage system includes getting details, creating, pause, resume initial copy and deleting a replication pair.
Requirements
The below requirements are needed on the host that executes this module.
A Dell PowerFlex storage system version 3.5 or later.
Ansible-core 2.13 or later.
PyPowerFlex 1.8.0.
Python 3.9, 3.10 or 3.11.
Parameters
Parameter |
Comments |
---|---|
IP or FQDN of the PowerFlex host. |
|
The ID of the replication pair. Mutually exclusive with pair_name. |
|
The name of the replication pair. Mutually exclusive with pair_id. |
|
List of replication pairs to add to rcg. |
|
Copy type. Choices:
|
|
Name of replication pair. |
|
Source volume ID. Mutually exclusive with source_volume_name. |
|
Source volume name. Mutually exclusive with source_volume_id. |
|
Target volume ID. Mutually exclusive with target_volume_name. |
|
Target volume name. If specified, remote_peer details should also be specified. Mutually exclusive with target_volume_id. |
|
The password of the PowerFlex host. |
|
Pause or resume the initial copy of replication pair. Choices:
|
|
Port number through which communication happens with PowerFlex host. Default: |
|
The ID of the replication consistency group. Mutually exclusive with rcg_name. |
|
The name of the replication consistency group. Mutually exclusive with rcg_id. |
|
Remote peer system. |
|
IP or FQDN of the remote peer gateway host. |
|
The password of the remote peer gateway host. |
|
Port number through which communication happens with remote peer gateway host. Default: |
|
Time after which connection will get terminated. It is to be mentioned in seconds. Default: |
|
The username of the remote peer gateway host. |
|
Boolean variable to specify whether or not to validate SSL certificate.
Choices:
|
|
State of the replication pair. Choices:
|
|
Time after which connection will get terminated. It is to be mentioned in seconds. Default: |
|
The username of the PowerFlex host. |
|
Boolean variable to specify whether or not to validate SSL certificate.
Choices:
|
Notes
Note
The check_mode is supported.
In 4.0 the creation of replication pair fails when copy_type is specified as
OfflineCopy
.The modules present in the collection named as ‘dellemc.powerflex’ are built to support the Dell PowerFlex storage platform.
Examples
- name: Get replication pair details
dellemc.powerflex.replication_pair:
hostname: "{{hostname}}"
username: "{{username}}"
password: "{{password}}"
validate_certs: "{{validate_certs}}"
port: "{{port}}"
pair_id: "123"
- name: Create a replication pair
dellemc.powerflex.replication_pair:
hostname: "{{hostname}}"
username: "{{username}}"
password: "{{password}}"
validate_certs: "{{validate_certs}}"
port: "{{port}}"
rcg_name: "test_rcg"
pairs:
- source_volume_id: "002"
target_volume_id: "001"
copy_type: "OnlineCopy"
name: "pair1"
- name: Create a replication pair with target volume name
dellemc.powerflex.replication_pair:
hostname: "{{hostname}}"
username: "{{username}}"
password: "{{password}}"
validate_certs: "{{validate_certs}}"
port: "{{port}}"
rcg_name: "test_rcg"
pairs:
- source_volume_name: "src_vol"
target_volume_name: "dest_vol"
copy_type: "OnlineCopy"
name: "pair1"
remote_peer:
hostname: "{{hostname}}"
username: "{{username}}"
password: "{{password}}"
validate_certs: "{{validate_certs}}"
port: "{{port}}"
- name: Pause replication pair
dellemc.powerflex.replication_pair:
hostname: "{{hostname}}"
username: "{{username}}"
password: "{{password}}"
validate_certs: "{{validate_certs}}"
port: "{{port}}"
pair_name: "pair1"
pause: true
- name: Resume replication pair
dellemc.powerflex.replication_pair:
hostname: "{{hostname}}"
username: "{{username}}"
password: "{{password}}"
validate_certs: "{{validate_certs}}"
port: "{{port}}"
pair_name: "pair1"
pause: false
- name: Delete replication pair
dellemc.powerflex.replication_pair:
hostname: "{{hostname}}"
username: "{{username}}"
password: "{{password}}"
validate_certs: "{{validate_certs}}"
port: "{{port}}"
pair_name: "pair1"
state: "absent"
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
Whether or not the resource has changed. Returned: always Sample: |
|
Details of the replication pairs of rcg. Returned: When rcg exists Sample: |
|
The copy type of the replication pair. Returned: success |
|
The ID of the replication pair. Returned: success |
|
Initial copy priority. Returned: success |
|
The inital copy state of the replication pair. Returned: success |
|
Lifetime state of replication pair. Returned: success |
|
The state of activity of the local replication pair. Returned: success |
|
The ID of the local volume. Returned: success |
|
The name of the local volume. Returned: success |
|
The name of the replication pair. Returned: success |
|
Peer system name. Returned: success |
|
The state of activity of the remote replication pair. Returned: success |
|
Remote Capacity in MB. Returned: success |
|
The ID of the remote replication pair. Returned: success |
|
Remote Volume ID. Returned: success |
|
Remote Volume Name. Returned: success |
|
The ID of the replication consistency group. Returned: success |
|
Value of user requested pause transmit initial copy. Returned: success |
|
Details of the replication pair. Returned: When replication pair exists Sample: |
|
The copy type of the replication pair. Returned: success |
|
The ID of the replication pair. Returned: success |
|
Initial copy priority. Returned: success |
|
The inital copy state of the replication pair. Returned: success |
|
Lifetime state of replication pair. Returned: success |
|
The state of activity of the local replication pair. Returned: success |
|
The ID of the local volume. Returned: success |
|
The name of the local volume. Returned: success |
|
The name of the replication pair. Returned: success |
|
Peer system name. Returned: success |
|
The state of activity of the remote replication pair. Returned: success |
|
Remote Capacity in MB. Returned: success |
|
The ID of the remote replication pair. Returned: success |
|
Remote Volume ID. Returned: success |
|
Remote Volume Name. Returned: success |
|
The ID of the replication consistency group. Returned: success |
|
Value of user requested pause transmit initial copy. Returned: success |