Debian Codegraph @

ansible_collections/dellemc/powerflex/docs/modules/replication_pair.rst

raw
1 .. _replication_pair_module:
2
3
4 replication_pair -- Manage replication pairs on Dell PowerFlex
5 ==============================================================
6
7 .. contents::
8 :local:
9 :depth: 1
10
11
12 Synopsis
13 --------
14
15 Managing replication pairs on PowerFlex storage system includes getting details, creating, pause, resume initial copy and deleting a replication pair.
16
17
18
19 Requirements
20 ------------
21 The below requirements are needed on the host that executes this module.
22
23 - A Dell PowerFlex storage system version 3.6 or later.
24 - PyPowerFlex 2.0.0.
25
26
27
28 Parameters
29 ----------
30
31 pair_id (optional, str, None)
32 The ID of the replication pair.
33
34 Mutually exclusive with \ :emphasis:`pair\_name`\ .
35
36
37 pair_name (optional, str, None)
38 The name of the replication pair.
39
40 Mutually exclusive with \ :emphasis:`pair\_id`\ .
41
42
43 rcg_name (optional, str, None)
44 The name of the replication consistency group.
45
46 Mutually exclusive with \ :emphasis:`rcg\_id`\ .
47
48
49 rcg_id (optional, str, None)
50 The ID of the replication consistency group.
51
52 Mutually exclusive with \ :emphasis:`rcg\_name`\ .
53
54
55 pause (optional, bool, None)
56 Pause or resume the initial copy of replication pair.
57
58
59 pairs (optional, list, None)
60 List of replication pairs to add to rcg.
61
62
63 source_volume_id (optional, str, None)
64 Source volume ID.
65
66 Mutually exclusive with \ :emphasis:`source\_volume\_name`\ .
67
68
69 source_volume_name (optional, str, None)
70 Source volume name.
71
72 Mutually exclusive with \ :emphasis:`source\_volume\_id`\ .
73
74
75 target_volume_id (optional, str, None)
76 Target volume ID.
77
78 Mutually exclusive with \ :emphasis:`target\_volume\_name`\ .
79
80
81 target_volume_name (optional, str, None)
82 Target volume name.
83
84 If specified, \ :emphasis:`remote\_peer`\ details should also be specified.
85
86 Mutually exclusive with \ :emphasis:`target\_volume\_id`\ .
87
88
89 copy_type (True, str, None)
90 Copy type.
91
92
93 name (optional, str, None)
94 Name of replication pair.
95
96
97
98 remote_peer (optional, dict, None)
99 Remote peer system.
100
101
102 hostname (True, str, None)
103 IP or FQDN of the remote peer gateway host.
104
105
106 username (True, str, None)
107 The username of the remote peer gateway host.
108
109
110 password (True, str, None)
111 The password of the remote peer gateway host.
112
113
114 validate_certs (optional, bool, True)
115 Boolean variable to specify whether or not to validate SSL certificate.
116
117 \ :literal:`true`\ - Indicates that the SSL certificate should be verified.
118
119 \ :literal:`false`\ - Indicates that the SSL certificate should not be verified.
120
121
122 port (optional, int, 443)
123 Port number through which communication happens with remote peer gateway host.
124
125
126 timeout (optional, int, 120)
127 Time after which connection will get terminated.
128
129 It is to be mentioned in seconds.
130
131
132
133 state (optional, str, present)
134 State of the replication pair.
135
136
137 hostname (True, str, None)
138 IP or FQDN of the PowerFlex host.
139
140
141 username (True, str, None)
142 The username of the PowerFlex host.
143
144
145 password (True, str, None)
146 The password of the PowerFlex host.
147
148
149 validate_certs (optional, bool, True)
150 Boolean variable to specify whether or not to validate SSL certificate.
151
152 \ :literal:`true`\ - Indicates that the SSL certificate should be verified.
153
154 \ :literal:`false`\ - Indicates that the SSL certificate should not be verified.
155
156
157 port (optional, int, 443)
158 Port number through which communication happens with PowerFlex host.
159
160
161 timeout (False, int, 120)
162 Time after which connection will get terminated.
163
164 It is to be mentioned in seconds.
165
166
167
168
169
170 Notes
171 -----
172
173 .. note::
174 - The \ :emphasis:`check\_mode`\ is supported.
175 - In 4.0 the creation of replication pair fails when \ :emphasis:`copy\_type`\ is specified as \ :literal:`OfflineCopy`\ .
176 - The modules present in the collection named as 'dellemc.powerflex' are built to support the Dell PowerFlex storage platform.
177
178
179
180
181 Examples
182 --------
183
184 .. code-block:: yaml+jinja
185
186
187 - name: Get replication pair details
188 dellemc.powerflex.replication_pair:
189 hostname: "{{hostname}}"
190 username: "{{username}}"
191 password: "{{password}}"
192 validate_certs: "{{validate_certs}}"
193 port: "{{port}}"
194 pair_id: "123"
195
196 - name: Create a replication pair
197 dellemc.powerflex.replication_pair:
198 hostname: "{{hostname}}"
199 username: "{{username}}"
200 password: "{{password}}"
201 validate_certs: "{{validate_certs}}"
202 port: "{{port}}"
203 rcg_name: "test_rcg"
204 pairs:
205 - source_volume_id: "002"
206 target_volume_id: "001"
207 copy_type: "OnlineCopy"
208 name: "pair1"
209
210 - name: Create a replication pair with target volume name
211 dellemc.powerflex.replication_pair:
212 hostname: "{{hostname}}"
213 username: "{{username}}"
214 password: "{{password}}"
215 validate_certs: "{{validate_certs}}"
216 port: "{{port}}"
217 rcg_name: "test_rcg"
218 pairs:
219 - source_volume_name: "src_vol"
220 target_volume_name: "dest_vol"
221 copy_type: "OnlineCopy"
222 name: "pair1"
223 remote_peer:
224 hostname: "{{hostname}}"
225 username: "{{username}}"
226 password: "{{password}}"
227 validate_certs: "{{validate_certs}}"
228 port: "{{port}}"
229
230 - name: Pause replication pair
231 dellemc.powerflex.replication_pair:
232 hostname: "{{hostname}}"
233 username: "{{username}}"
234 password: "{{password}}"
235 validate_certs: "{{validate_certs}}"
236 port: "{{port}}"
237 pair_name: "pair1"
238 pause: true
239
240 - name: Resume replication pair
241 dellemc.powerflex.replication_pair:
242 hostname: "{{hostname}}"
243 username: "{{username}}"
244 password: "{{password}}"
245 validate_certs: "{{validate_certs}}"
246 port: "{{port}}"
247 pair_name: "pair1"
248 pause: false
249
250 - name: Delete replication pair
251 dellemc.powerflex.replication_pair:
252 hostname: "{{hostname}}"
253 username: "{{username}}"
254 password: "{{password}}"
255 validate_certs: "{{validate_certs}}"
256 port: "{{port}}"
257 pair_name: "pair1"
258 state: "absent"
259
260
261
262 Return Values
263 -------------
264
265 changed (always, bool, false)
266 Whether or not the resource has changed.
267
268
269 replication_pair_details (When replication pair exists, dict, {'copyType': 'OnlineCopy', 'id': '23aa0bc900000001', 'initialCopyPriority': -1, 'initialCopyState': 'Done', 'lifetimeState': 'Normal', 'localActivityState': 'RplEnabled', 'localVolumeId': 'e2bc1fab00000008', 'localVolumeName': 'vol1', 'name': None, 'peerSystemName': None, 'remoteActivityState': 'RplEnabled', 'remoteCapacityInMB': 8192, 'remoteId': 'a058446700000001', 'remoteVolumeId': '1cda7af20000000d', 'remoteVolumeName': 'vol', 'replicationConsistencyGroupId': 'e2ce036b00000002', 'userRequestedPauseTransmitInitCopy': False})
270 Details of the replication pair.
271
272
273 id (, str, )
274 The ID of the replication pair.
275
276
277 name (, str, )
278 The name of the replication pair.
279
280
281 remoteId (, str, )
282 The ID of the remote replication pair.
283
284
285 localVolumeId (, str, )
286 The ID of the local volume.
287
288
289 localVolumeName (, str, )
290 The name of the local volume.
291
292
293 replicationConsistencyGroupId (, str, )
294 The ID of the replication consistency group.
295
296
297 copyType (, str, )
298 The copy type of the replication pair.
299
300
301 initialCopyState (, str, )
302 The inital copy state of the replication pair.
303
304
305 localActivityState (, str, )
306 The state of activity of the local replication pair.
307
308
309 remoteActivityState (, str, )
310 The state of activity of the remote replication pair.
311
312
313 initialCopyPriority (, int, )
314 Initial copy priority.
315
316
317 lifetimeState (, int, )
318 Lifetime state of replication pair.
319
320
321 peerSystemName (, int, )
322 Peer system name.
323
324
325 remoteCapacityInMB (, int, )
326 Remote Capacity in MB.
327
328
329 userRequestedPauseTransmitInitCopy (, int, )
330 Value of user requested pause transmit initial copy.
331
332
333 remoteVolumeId (, int, )
334 Remote Volume ID.
335
336
337 remoteVolumeName (, int, )
338 Remote Volume Name.
339
340
341
342 rcg_replication_pairs (When rcg exists, list, [{'copyType': 'OnlineCopy', 'id': '23aa0bc900000001', 'initialCopyPriority': -1, 'initialCopyState': 'Done', 'lifetimeState': 'Normal', 'localActivityState': 'RplEnabled', 'localVolumeId': 'e2bc1fab00000008', 'localVolumeName': 'vol1', 'name': None, 'peerSystemName': None, 'remoteActivityState': 'RplEnabled', 'remoteCapacityInMB': 8192, 'remoteId': 'a058446700000001', 'remoteVolumeId': '1cda7af20000000d', 'remoteVolumeName': 'vol', 'replicationConsistencyGroupId': 'e2ce036b00000002', 'userRequestedPauseTransmitInitCopy': False}])
343 Details of the replication pairs of rcg.
344
345
346 id (, str, )
347 The ID of the replication pair.
348
349
350 name (, str, )
351 The name of the replication pair.
352
353
354 remoteId (, str, )
355 The ID of the remote replication pair.
356
357
358 localVolumeId (, str, )
359 The ID of the local volume.
360
361
362 localVolumeName (, str, )
363 The name of the local volume.
364
365
366 replicationConsistencyGroupId (, str, )
367 The ID of the replication consistency group.
368
369
370 copyType (, str, )
371 The copy type of the replication pair.
372
373
374 initialCopyState (, str, )
375 The inital copy state of the replication pair.
376
377
378 localActivityState (, str, )
379 The state of activity of the local replication pair.
380
381
382 remoteActivityState (, str, )
383 The state of activity of the remote replication pair.
384
385
386 initialCopyPriority (, int, )
387 Initial copy priority.
388
389
390 lifetimeState (, int, )
391 Lifetime state of replication pair.
392
393
394 peerSystemName (, int, )
395 Peer system name.
396
397
398 remoteCapacityInMB (, int, )
399 Remote Capacity in MB.
400
401
402 userRequestedPauseTransmitInitCopy (, int, )
403 Value of user requested pause transmit initial copy.
404
405
406 remoteVolumeId (, int, )
407 Remote Volume ID.
408
409
410 remoteVolumeName (, int, )
411 Remote Volume Name.
412
413
414
415
416
417
418 Status
419 ------
420
421
422
423
424
425 Authors
426 ~~~~~~~
427
428 - Jennifer John (@Jennifer-John) <[email protected]>
429