Debian Codegraph @

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

raw
1 .. _device_module:
2
3
4 device -- Manage device on Dell PowerFlex
5 =========================================
6
7 .. contents::
8 :local:
9 :depth: 1
10
11
12 Synopsis
13 --------
14
15 Managing device on PowerFlex storage system includes adding new device, getting details of device, and removing a device.
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 current_pathname (optional, str, None)
32 Full path of the device to be added.
33
34 Required while adding a device.
35
36
37 device_name (optional, str, None)
38 Device name.
39
40 Mutually exclusive with :emphasis:`device\_id`.
41
42
43 device_id (optional, str, None)
44 Device ID.
45
46 Mutually exclusive with :emphasis:`device\_name`.
47
48
49 sds_name (optional, str, None)
50 The name of the SDS.
51
52 Required while adding a device.
53
54 Mutually exclusive with :emphasis:`sds\_id`.
55
56
57 sds_id (optional, str, None)
58 The ID of the SDS.
59
60 Required while adding a device.
61
62 Mutually exclusive with :emphasis:`sds\_name`.
63
64
65 storage_pool_name (optional, str, None)
66 Storage Pool name.
67
68 Used while adding a storage device.
69
70 Mutually exclusive with :emphasis:`storage\_pool\_id`\ , :emphasis:`acceleration\_pool\_id` and :emphasis:`acceleration\_pool\_name`.
71
72
73 storage_pool_id (optional, str, None)
74 Storage Pool ID.
75
76 Used while adding a storage device.
77
78 Media type supported are :literal:`SSD` and :literal:`HDD`.
79
80 Mutually exclusive with :emphasis:`storage\_pool\_name`\ , :emphasis:`acceleration\_pool\_id` and :emphasis:`acceleration\_pool\_name`.
81
82
83 acceleration_pool_name (optional, str, None)
84 Acceleration Pool Name.
85
86 Used while adding an acceleration device.
87
88 Media type supported are :literal:`SSD` and :literal:`NVDIMM`.
89
90 Mutually exclusive with :emphasis:`storage\_pool\_id`\ , :emphasis:`storage\_pool\_name` and :emphasis:`acceleration\_pool\_name`.
91
92
93 acceleration_pool_id (optional, str, None)
94 Acceleration Pool ID.
95
96 Used while adding an acceleration device.
97
98 Media type supported are :literal:`SSD` and :literal:`NVDIMM`.
99
100 Mutually exclusive with :emphasis:`acceleration\_pool\_name`\ , :emphasis:`storage\_pool\_name` and :emphasis:`storage\_pool\_id`.
101
102
103 protection_domain_name (optional, str, None)
104 Protection domain name.
105
106 Used while identifying a storage pool along with :emphasis:`storage\_pool\_name`.
107
108 Mutually exclusive with :emphasis:`protection\_domain\_id`.
109
110
111 protection_domain_id (optional, str, None)
112 Protection domain ID.
113
114 Used while identifying a storage pool along with :emphasis:`storage\_pool\_name`.
115
116 Mutually exclusive with :emphasis:`protection\_domain\_name`.
117
118
119 external_acceleration_type (optional, str, None)
120 Device external acceleration types.
121
122 Used while adding a device.
123
124
125 media_type (optional, str, None)
126 Device media types.
127
128 Required while adding a device.
129
130
131 state (True, str, None)
132 State of the device.
133
134
135 force (optional, bool, False)
136 Using the Force flag to add a device.
137
138 Use this flag, to overwrite existing data on the device.
139
140 Use this flag with caution, because all data on the device will be destroyed.
141
142
143 hostname (True, str, None)
144 IP or FQDN of the PowerFlex host.
145
146
147 username (True, str, None)
148 The username of the PowerFlex host.
149
150
151 password (True, str, None)
152 The password of the PowerFlex host.
153
154
155 validate_certs (optional, bool, True)
156 Boolean variable to specify whether or not to validate SSL certificate.
157
158 :literal:`true` - Indicates that the SSL certificate should be verified.
159
160 :literal:`false` - Indicates that the SSL certificate should not be verified.
161
162
163 port (optional, int, 443)
164 Port number through which communication happens with PowerFlex host.
165
166
167 timeout (False, int, 120)
168 Time after which connection will get terminated.
169
170 It is to be mentioned in seconds.
171
172
173
174
175
176 Notes
177 -----
178
179 .. note::
180 - The value for device\_id is generated only after successful addition of the device.
181 - To uniquely identify a device, either :emphasis:`device\_id` can be passed or one of :emphasis:`current\_pathname` or :emphasis:`device\_name` must be passed with :emphasis:`sds\_id` or :emphasis:`sds\_name`.
182 - It is recommended to install Rfcache driver for SSD device on SDS in order to add it to an acceleration pool.
183 - The :emphasis:`check\_mode` is not supported.
184 - The modules present in the collection named as 'dellemc.powerflex' are built to support the Dell PowerFlex storage platform.
185
186
187
188
189 Examples
190 --------
191
192 .. code-block:: yaml+jinja
193
194
195 - name: Add a device
196 dellemc.powerflex.device:
197 hostname: "{{hostname}}"
198 username: "{{username}}"
199 password: "{{password}}"
200 validate_certs: "{{validate_certs}}"
201 port: "{{port}}"
202 current_pathname: "/dev/sdb"
203 sds_name: "node1"
204 media_type: "HDD"
205 device_name: "device2"
206 storage_pool_name: "pool1"
207 protection_domain_name: "domain1"
208 external_acceleration_type: "ReadAndWrite"
209 state: "present"
210 - name: Add a device with force flag
211 dellemc.powerflex.device:
212 hostname: "{{hostname}}"
213 username: "{{username}}"
214 password: "{{password}}"
215 validate_certs: "{{validate_certs}}"
216 port: "{{port}}"
217 current_pathname: "/dev/sdb"
218 sds_name: "node1"
219 media_type: "HDD"
220 device_name: "device2"
221 storage_pool_name: "pool1"
222 protection_domain_name: "domain1"
223 external_acceleration_type: "ReadAndWrite"
224 force: true
225 state: "present"
226 - name: Get device details using device_id
227 dellemc.powerflex.device:
228 hostname: "{{hostname}}"
229 username: "{{username}}"
230 password: "{{password}}"
231 validate_certs: "{{validate_certs}}"
232 port: "{{port}}"
233 device_id: "d7fe088900000000"
234 state: "present"
235 - name: Get device details using (current_pathname, sds_name)
236 dellemc.powerflex.device:
237 hostname: "{{hostname}}"
238 username: "{{username}}"
239 password: "{{password}}"
240 validate_certs: "{{validate_certs}}"
241 port: "{{port}}"
242 current_pathname: "/dev/sdb"
243 sds_name: "node0"
244 state: "present"
245 - name: Get device details using (current_pathname, sds_id)
246 dellemc.powerflex.device:
247 hostname: "{{hostname}}"
248 username: "{{username}}"
249 password: "{{password}}"
250 validate_certs: "{{validate_certs}}"
251 port: "{{port}}"
252 current_pathname: "/dev/sdb"
253 sds_id: "5717d71800000000"
254 state: "present"
255 - name: Remove a device using device_id
256 dellemc.powerflex.device:
257 hostname: "{{hostname}}"
258 username: "{{username}}"
259 password: "{{password}}"
260 validate_certs: "{{validate_certs}}"
261 port: "{{port}}"
262 device_id: "76eb7e2f00010000"
263 state: "absent"
264 - name: Remove a device using (current_pathname, sds_id)
265 dellemc.powerflex.device:
266 hostname: "{{hostname}}"
267 username: "{{username}}"
268 password: "{{password}}"
269 validate_certs: "{{validate_certs}}"
270 port: "{{port}}"
271 current_pathname: "/dev/sdb"
272 sds_name: "node1"
273 state: "absent"
274
275
276
277 Return Values
278 -------------
279
280 changed (always, bool, false)
281 Whether or not the resource has changed.
282
283
284 device_details (When device exists, dict, {'accelerationPoolId': None, 'accelerationProps': None, 'aggregatedState': 'NeverFailed', 'ataSecurityActive': False, 'autoDetectMediaType': 'SSD', 'cacheLookAheadActive': False, 'capacity': 0, 'capacityLimitInKb': 365772800, 'deviceCurrentPathName': '/dev/sdb', 'deviceOriginalPathName': '/dev/sdb', 'deviceState': 'Normal', 'deviceType': 'Unknown', 'errorState': 'None', 'externalAccelerationType': 'None', 'fglNvdimmMetadataAmortizationX100': 150, 'fglNvdimmWriteCacheSize': 16, 'firmwareVersion': None, 'id': 'b6efa59900000000', 'ledSetting': 'Off', 'links': [{'href': '/api/instances/Device::b6efa59900000000', 'rel': 'self'}, {'href': '/api/instances/Device::b6efa59900000000/relationships /Statistics', 'rel': '/api/Device/relationship/Statistics'}, {'href': '/api/instances/Sds::8f3bb0ce00000000', 'rel': '/api/parent/relationship/sdsId'}, {'href': '/api/instances/StoragePool::e0d8f6c900000000', 'rel': '/api/parent/relationship/storagePoolId'}, {'href': '/api/instances/SpSds::fedf6f2000000000', 'rel': '/api/parent/relationship/spSdsId'}], 'logicalSectorSizeInBytes': 0, 'longSuccessfulIos': {'longWindow': None, 'mediumWindow': None, 'shortWindow': None}, 'maxCapacityInKb': 365772800, 'mediaFailing': False, 'mediaType': 'HDD', 'modelName': None, 'name': 'device230', 'persistentChecksumState': 'Protected', 'physicalSectorSizeInBytes': 0, 'protectionDomainId': '9300c1f900000000', 'protectionDomainName': 'domain1', 'raidControllerSerialNumber': None, 'rfcacheErrorDeviceDoesNotExist': False, 'rfcacheProps': None, 'sdsId': '8f3bb0ce00000000', 'sdsName': 'node1', 'serialNumber': None, 'slotNumber': None, 'spSdsId': 'fedf6f2000000000', 'ssdEndOfLifeState': 'NeverFailed', 'storagePoolId': 'e0d8f6c900000000', 'storagePoolName': 'pool1', 'storageProps': {'destFglAccDeviceId': None, 'destFglNvdimmSizeMb': 0, 'fglAccDeviceId': None, 'fglNvdimmSizeMb': 0}, 'temperatureState': 'NeverFailed', 'vendorName': None, 'writeCacheActive': False})
285 Details of the device.
286
287
288 accelerationPoolId (, str, )
289 Acceleration pool ID.
290
291
292 accelerationPoolName (, str, )
293 Acceleration pool name.
294
295
296 accelerationProps (, str, )
297 Indicates acceleration props.
298
299
300 aggregatedState (, str, )
301 Indicates aggregated state.
302
303
304 ataSecurityActive (, bool, )
305 Indicates ATA security active state.
306
307
308 autoDetectMediaType (, str, )
309 Indicates auto detection of media type.
310
311
312 cacheLookAheadActive (, bool, )
313 Indicates cache look ahead active state.
314
315
316 capacity (, int, )
317 Device capacity.
318
319
320 capacityLimitInKb (, int, )
321 Device capacity limit in KB.
322
323
324 deviceCurrentPathName (, str, )
325 Device current path name.
326
327
328 deviceOriginalPathName (, str, )
329 Device original path name.
330
331
332 deviceState (, str, )
333 Indicates device state.
334
335
336 deviceType (, str, )
337 Indicates device type.
338
339
340 errorState (, str, )
341 Indicates error state.
342
343
344 externalAccelerationType (, str, )
345 Indicates external acceleration type.
346
347
348 fglNvdimmMetadataAmortizationX100 (, int, )
349 Indicates FGL NVDIMM meta data amortization value.
350
351
352 fglNvdimmWriteCacheSize (, int, )
353 Indicates FGL NVDIMM write cache size.
354
355
356 firmwareVersion (, str, )
357 Indicates firmware version.
358
359
360 id (, str, )
361 Device ID.
362
363
364 ledSetting (, str, )
365 Indicates LED setting.
366
367
368 links (, list, )
369 Device links.
370
371
372 href (, str, )
373 Device instance URL.
374
375
376 rel (, str, )
377 Relationship of device with different entities.
378
379
380
381 logicalSectorSizeInBytes (, int, )
382 Logical sector size in bytes.
383
384
385 longSuccessfulIos (, list, )
386 Indicates long successful IOs.
387
388
389 maxCapacityInKb (, int, )
390 Maximum device capacity limit in KB.
391
392
393 mediaFailing (, bool, )
394 Indicates media failing.
395
396
397 mediaType (, str, )
398 Indicates media type.
399
400
401 modelName (, str, )
402 Indicates model name.
403
404
405 name (, str, )
406 Device name.
407
408
409 persistentChecksumState (, str, )
410 Indicates persistent checksum state.
411
412
413 physicalSectorSizeInBytes (, int, )
414 Physical sector size in bytes.
415
416
417 protectionDomainId (, str, )
418 Protection domain ID.
419
420
421 protectionDomainName (, str, )
422 Protection domain name.
423
424
425 raidControllerSerialNumber (, str, )
426 RAID controller serial number.
427
428
429 rfcacheErrorDeviceDoesNotExist (, bool, )
430 Indicates RF cache error device does not exist.
431
432
433 rfcacheProps (, str, )
434 RF cache props.
435
436
437 sdsId (, str, )
438 SDS ID.
439
440
441 sdsName (, str, )
442 SDS name.
443
444
445 serialNumber (, str, )
446 Indicates Serial number.
447
448
449 spSdsId (, str, )
450 Indicates SPs SDS ID.
451
452
453 ssdEndOfLifeState (, str, )
454 Indicates SSD end of life state.
455
456
457 storagePoolId (, str, )
458 Storage Pool ID.
459
460
461 storagePoolName (, str, )
462 Storage Pool name.
463
464
465 storageProps (, list, )
466 Storage props.
467
468
469 temperatureState (, str, )
470 Indicates temperature state.
471
472
473 vendorName (, str, )
474 Indicates vendor name.
475
476
477 writeCacheActive (, bool, )
478 Indicates write cache active.
479
480
481
482
483
484
485 Status
486 ------
487
488
489
490
491
492 Authors
493 ~~~~~~~
494
495 - Rajshree Khare (@khareRajshree) <[email protected]>
496