dellemc.unity.replication_session module – Manage replication session on Unity storage system
Note
This module is part of the dellemc.unity collection (version 2.0.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.unity
.
You need further requirements to be able to use this module,
see Requirements for details.
To use it in a playbook, specify: dellemc.unity.replication_session
.
New in dellemc.unity 1.7.0
Synopsis
Managing replication session on Unity storage system includes getting details, pause, resume, sync, failover, failback and deleting the replication session.
Requirements
The below requirements are needed on the host that executes this module.
A Dell Unity Storage device version 5.1 or later.
Ansible-core 2.14 or later.
Python 3.9, 3.10 or 3.11.
Storops Python SDK 1.2.11.
Parameters
Parameter |
Comments |
---|---|
Failback a replication session. Choices:
|
|
If If Choices:
|
|
Skip pre-checks on file system(s) replication sessions of a NAS server when a replication failover is issued from the source NAS server. Choices:
|
|
Indicates whether to sync back all data from the destination SP to the source SP during the failback session. Needed during resume operation when replication session goes out of sync due to a fault. Choices:
|
|
The password of the Unity management server. |
|
Pause or resume replication session. Choices:
|
|
Port number through which communication happens with Unity management server. Default: |
|
ID of replication session. |
|
Name of replication session. |
|
State variable to determine whether replication session will exist or not. Choices:
|
|
Sync a replication session. Choices:
|
|
IP or FQDN of the Unity management server. |
|
The username of the Unity management server. |
|
Boolean variable to specify whether or not to validate SSL certificate.
Choices:
|
Notes
Note
The check_mode is supported.
The modules present in this collection named as ‘dellemc.unity’ are built to support the Dell Unity storage platform.
Examples
- name: Get replication session details
dellemc.unity.replication_session:
unispherehost: "{{unispherehost}}"
username: "{{username}}"
password: "{{password}}"
validate_certs: "{{validate_certs}}"
session_name: "fs_replication"
- name: Get replication session details based on session_id
dellemc.unity.replication_session:
unispherehost: "{{unispherehost}}"
username: "{{username}}"
password: "{{password}}"
validate_certs: "{{validate_certs}}"
session_id: "103079215114_APM00213404195_0000_103079215274_APM00213404194_0000"
- name: Pause a replication session
dellemc.unity.replication_session:
unispherehost: "{{unispherehost}}"
username: "{{username}}"
password: "{{password}}"
validate_certs: "{{validate_certs}}"
session_name: "fs_replication"
pause: true
- name: Resume a replication session
dellemc.unity.replication_session:
unispherehost: "{{unispherehost}}"
username: "{{username}}"
password: "{{password}}"
validate_certs: "{{validate_certs}}"
session_name: "fs_replication"
pause: false
force_full_copy: true
- name: Sync a replication session
dellemc.unity.replication_session:
unispherehost: "{{unispherehost}}"
username: "{{username}}"
password: "{{password}}"
validate_certs: "{{validate_certs}}"
session_name: "fs_replication"
sync: true
- name: Failover with sync a replication session
dellemc.unity.replication_session:
unispherehost: "{{unispherehost}}"
username: "{{username}}"
password: "{{password}}"
validate_certs: "{{validate_certs}}"
session_name: "fs_replication"
failover_with_sync: true
force: true
- name: Failover a replication session
dellemc.unity.replication_session:
unispherehost: "{{unispherehost}}"
username: "{{username}}"
password: "{{password}}"
validate_certs: "{{validate_certs}}"
session_name: "fs_replication"
failover_with_sync: false
- name: Failback a replication session
dellemc.unity.replication_session:
unispherehost: "{{unispherehost}}"
username: "{{username}}"
password: "{{password}}"
validate_certs: "{{validate_certs}}"
session_name: "fs_replication"
failback: true
force_full_copy: true
- name: Delete a replication session
dellemc.unity.replication_session:
unispherehost: "{{unispherehost}}"
username: "{{username}}"
password: "{{password}}"
validate_certs: "{{validate_certs}}"
session_name: "fs_replication"
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 session. Returned: When replication session exists. Sample: |
|
Estimated time left for the replication synchronization to complete. Returned: success |
|
Identifier of the destination resource. Returned: success |
|
Status of the destination end of the replication session. Returned: success |
|
Unique identifier of the replicationSession instance. Returned: success |
|
Date and time of the last replication synchronization. Returned: success |
|
Maximum time to wait before the system syncs the source and destination resources. Returned: success |
|
User-specified replication session name. Returned: success |
|
Status of the network connection used by the replication session. Returned: success |
|
Specifies the remote system to use as the destination for the replication session. Returned: success |
|
Information about remote storage system. Returned: success |
|
Unique identifier of the remote system instance. Returned: success |
|
Serial number of the remote system. Returned: success |
|
Replication resource type of replication session endpoints. Returned: success |
|
Status of the source end of the session. Returned: success |
|
Replication status of the replication session. Returned: success |
|
Synchronization completion percentage between source and destination resources of the replication session. Returned: success |
|
Synchronization state between source and destination resource of the replication session. Returned: success |