Debian Codegraph @

ansible_collections/dellemc/unity/docs/modules/replication_session.rst

raw
1 .. _replication_session_module:
2
3
4 replication_session -- Manage replication session on Unity storage system
5 =========================================================================
6
7 .. contents::
8 :local:
9 :depth: 1
10
11
12 Synopsis
13 --------
14
15 Managing replication session on Unity storage system includes getting details, pause, resume, sync, failover, failback and deleting the replication session.
16
17
18
19 Requirements
20 ------------
21 The below requirements are needed on the host that executes this module.
22
23 - A Dell Unity Storage device version 5.1 or later.
24 - Ansible-core 2.17 or later.
25 - Python 3.11, or 3.12.
26 - Storops Python SDK 1.2.12.
27
28
29
30 Parameters
31 ----------
32
33 session_id (optional, str, None)
34 ID of replication session.
35
36
37 session_name (optional, str, None)
38 Name of replication session.
39
40
41 pause (optional, bool, None)
42 Pause or resume replication session.
43
44
45 sync (optional, bool, None)
46 Sync a replication session.
47
48
49 failover_with_sync (optional, bool, None)
50 If ``true``, Sync the source and destination resources before failing over the asynchronous replication session or keep them in sync after failing over the synchronous replication session.
51
52 If ``false``, Failover a replication session.
53
54
55 failback (optional, bool, None)
56 Failback a replication session.
57
58
59 force_full_copy (optional, bool, None)
60 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.
61
62
63 force (optional, bool, None)
64 Skip pre-checks on file system(s) replication sessions of a NAS server when a replication failover is issued from the source NAS server.
65
66
67 state (optional, str, present)
68 State variable to determine whether replication session will exist or not.
69
70
71 unispherehost (True, str, None)
72 IP or FQDN of the Unity management server.
73
74
75 username (True, str, None)
76 The username of the Unity management server.
77
78
79 password (True, str, None)
80 The password of the Unity management server.
81
82
83 validate_certs (optional, bool, True)
84 Boolean variable to specify whether or not to validate SSL certificate.
85
86 ``true`` - Indicates that the SSL certificate should be verified.
87
88 ``false`` - Indicates that the SSL certificate should not be verified.
89
90
91 port (optional, int, 443)
92 Port number through which communication happens with Unity management server.
93
94
95
96
97
98 Notes
99 -----
100
101 .. note::
102 - The *check_mode* is supported.
103 - The modules present in this collection named as 'dellemc.unity' are built to support the Dell Unity storage platform.
104
105
106
107
108 Examples
109 --------
110
111 .. code-block:: yaml+jinja
112
113
114 - name: Get replication session details
115 replication_session:
116 unispherehost: "{{unispherehost}}"
117 username: "{{username}}"
118 password: "{{password}}"
119 validate_certs: "{{validate_certs}}"
120 session_name: "fs_replication"
121
122 - name: Get replication session details based on session_id
123 replication_session:
124 unispherehost: "{{unispherehost}}"
125 username: "{{username}}"
126 password: "{{password}}"
127 validate_certs: "{{validate_certs}}"
128 session_id: "103079215114_APM00213404195_0000_103079215274_APM00213404194_0000"
129
130 - name: Pause a replication session
131 replication_session:
132 unispherehost: "{{unispherehost}}"
133 username: "{{username}}"
134 password: "{{password}}"
135 validate_certs: "{{validate_certs}}"
136 session_name: "fs_replication"
137 pause: true
138
139 - name: Resume a replication session
140 replication_session:
141 unispherehost: "{{unispherehost}}"
142 username: "{{username}}"
143 password: "{{password}}"
144 validate_certs: "{{validate_certs}}"
145 session_name: "fs_replication"
146 pause: false
147 force_full_copy: true
148
149 - name: Sync a replication session
150 replication_session:
151 unispherehost: "{{unispherehost}}"
152 username: "{{username}}"
153 password: "{{password}}"
154 validate_certs: "{{validate_certs}}"
155 session_name: "fs_replication"
156 sync: true
157
158 - name: Failover with sync a replication session
159 replication_session:
160 unispherehost: "{{unispherehost}}"
161 username: "{{username}}"
162 password: "{{password}}"
163 validate_certs: "{{validate_certs}}"
164 session_name: "fs_replication"
165 failover_with_sync: true
166 force: true
167
168 - name: Failover a replication session
169 replication_session:
170 unispherehost: "{{unispherehost}}"
171 username: "{{username}}"
172 password: "{{password}}"
173 validate_certs: "{{validate_certs}}"
174 session_name: "fs_replication"
175 failover_with_sync: false
176
177 - name: Failback a replication session
178 replication_session:
179 unispherehost: "{{unispherehost}}"
180 username: "{{username}}"
181 password: "{{password}}"
182 validate_certs: "{{validate_certs}}"
183 session_name: "fs_replication"
184 failback: true
185 force_full_copy: true
186
187 - name: Delete a replication session
188 replication_session:
189 unispherehost: "{{unispherehost}}"
190 username: "{{username}}"
191 password: "{{password}}"
192 validate_certs: "{{validate_certs}}"
193 session_name: "fs_replication"
194 state: "absent"
195
196
197
198 Return Values
199 -------------
200
201 changed (always, bool, True)
202 Whether or not the resource has changed.
203
204
205 replication_session_details (When replication session exists., dict, {'current_transfer_est_remain_time': 0, 'daily_snap_replication_policy': None, 'dst_resource_id': 'nas_8', 'dst_spa_interface': {'UnityRemoteInterface': {'hash': 8771253398547, 'id': 'APM00213404195:if_181'}}, 'dst_spb_interface': {'UnityRemoteInterface': {'hash': 8771253424144, 'id': 'APM00213404195:if_180'}}, 'dst_status': 'ReplicationSessionStatusEnum.OK', 'existed': True, 'hash': 8771259012271, 'health': {'UnityHealth': {'hash': 8771253424168}}, 'hourly_snap_replication_policy': None, 'id': '103079215114_APM00213404195_0000_103079215274_APM00213404194_0000', 'last_sync_time': '2023-04-18 10:35:25+00:00', 'local_role': 'ReplicationSessionReplicationRoleEnum.DESTINATION', 'max_time_out_of_sync': 0, 'members': None, 'name': 'rep_sess_nas', 'network_status': 'ReplicationSessionNetworkStatusEnum.OK', 'remote_system': {'UnityRemoteSystem': {'hash': 8771253380142}}, 'replication_resource_type': 'ReplicationEndpointResourceTypeEnum.NASSERVER', 'src_resource_id': 'nas_213', 'src_spa_interface': {'UnityRemoteInterface': {'hash': 8771253475010, 'id': 'APM00213404194:if_195'}}, 'src_spb_interface': {'UnityRemoteInterface': {'hash': 8771253374169, 'id': 'APM00213404194:if_194'}}, 'src_status': 'ReplicationSessionStatusEnum.OK', 'status': 'ReplicationOpStatusEnum.ACTIVE', 'sync_progress': 0, 'sync_state': 'ReplicationSessionSyncStateEnum.IN_SYNC'})
206 Details of the replication session.
207
208
209 id (, str, )
210 Unique identifier of the replicationSession instance.
211
212
213 name (, str, )
214 User-specified replication session name.
215
216
217 replicationResourceType (, str, )
218 Replication resource type of replication session endpoints.
219
220
221 status (, str, )
222 Replication status of the replication session.
223
224
225 remoteSystem (, dict, )
226 Specifies the remote system to use as the destination for the replication session.
227
228
229 UnityRemoteSystem (, dict, )
230 Information about remote storage system.
231
232
233 id (, str, )
234 Unique identifier of the remote system instance.
235
236
237 serialNumber (, str, )
238 Serial number of the remote system.
239
240
241
242
243 maxTimeOutOfSync (, int, )
244 Maximum time to wait before the system syncs the source and destination resources.
245
246
247 srcStatus (, str, )
248 Status of the source end of the session.
249
250
251 networkStatus (, str, )
252 Status of the network connection used by the replication session.
253
254
255 dstStatus (, str, )
256 Status of the destination end of the replication session.
257
258
259 lastSyncTime (, str, )
260 Date and time of the last replication synchronization.
261
262
263 syncState (, str, )
264 Synchronization state between source and destination resource of the replication session.
265
266
267 syncProgress (, int, )
268 Synchronization completion percentage between source and destination resources of the replication session.
269
270
271 dstResourceId (, str, )
272 Identifier of the destination resource.
273
274
275 currentTransferEstRemainTime (, int, )
276 Estimated time left for the replication synchronization to complete.
277
278
279
280
281
282
283 Status
284 ------
285
286
287
288
289
290 Authors
291 ~~~~~~~
292
293 - Jennifer John (@Jennifer-John) <[email protected]>
294