Debian Codegraph @

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

raw
1 .. _storagepool_module:
2
3
4 storagepool -- Manage storage pool on Unity
5 ===========================================
6
7 .. contents::
8 :local:
9 :depth: 1
10
11
12 Synopsis
13 --------
14
15 Managing storage pool on Unity storage system contains the operations Get details of storage pool, Create a storage pool, Modify storage pool.
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 pool_name (optional, str, None)
34 Name of the storage pool, unique in the storage system.
35
36
37 pool_id (optional, str, None)
38 Unique identifier of the pool instance.
39
40
41 new_pool_name (optional, str, None)
42 New name of the storage pool, unique in the storage system.
43
44
45 pool_description (optional, str, None)
46 The description of the storage pool.
47
48
49 fast_cache (optional, str, None)
50 Indicates whether the fast cache is enabled for the storage pool.
51
52 ``Enabled`` - FAST Cache is enabled for the pool.
53
54 ``Disabled`` - FAST Cache is disabled for the pool.
55
56
57 fast_vp (optional, str, None)
58 Indicates whether to enable scheduled data relocations for the pool.
59
60 ``Enabled`` - Enabled scheduled data relocations for the pool.
61
62 ``Disabled`` - Disabled scheduled data relocations for the pool.
63
64
65 raid_groups (optional, dict, None)
66 Parameters to create RAID group from the disks and add it to the pool.
67
68
69 disk_group_id (optional, str, None)
70 Id of the disk group.
71
72
73 disk_num (optional, int, None)
74 Number of disks.
75
76
77 raid_type (optional, str, None)
78 RAID group types or RAID levels.
79
80
81 stripe_width (optional, str, None)
82 RAID group stripe widths, including parity or mirror disks.
83
84
85
86 alert_threshold (optional, int, None)
87 Threshold at which the system will generate alerts about the free space in the pool, specified as a percentage.
88
89 Minimum threshold limit is 50.
90
91 Maximum threshold limit is 84.
92
93
94 is_harvest_enabled (optional, bool, None)
95 Enable/Disable automatic deletion of snapshots based on pool space usage.
96
97
98 pool_harvest_high_threshold (optional, float, None)
99 Max threshold for space used in pool beyond which the system automatically starts deleting snapshots in the pool.
100
101 Applies when the automatic deletion of snapshots based on pool space usage is enabled for the system and pool.
102
103 Minimum pool harvest high threshold value is 1.
104
105 Maximum pool harvest high threshold value is 99.
106
107
108 pool_harvest_low_threshold (optional, float, None)
109 Min threshold for space used in pool below which the system automatically stops deletion of snapshots in the pool.
110
111 Applies when the automatic deletion of snapshots based on pool space usage is enabled for the system and pool.
112
113 Minimum pool harvest low threshold value is 0.
114
115 Maximum pool harvest low threshold value is 98.
116
117
118 is_snap_harvest_enabled (optional, bool, None)
119 Enable/Disable automatic deletion of snapshots based on pool space usage.
120
121
122 snap_harvest_high_threshold (optional, float, None)
123 Max threshold for space used in snapshot beyond which the system automatically starts deleting snapshots in the pool.
124
125 Applies when the automatic deletion of snapshots based on pool space usage is enabled for the pool.
126
127 Minimum snap harvest high threshold value is 1.
128
129 Maximum snap harvest high threshold value is 99.
130
131
132 snap_harvest_low_threshold (optional, float, None)
133 Min threshold for space used in snapshot below which the system will stop automatically deleting snapshots in the pool.
134
135 Applies when the automatic deletion of snapshots based on pool space usage is enabled for the pool.
136
137 Minimum snap harvest low threshold value is 0.
138
139 Maximum snap harvest low threshold value is 98.
140
141
142 pool_type (optional, str, None)
143 Indicates storage pool type.
144
145
146 state (True, str, None)
147 Define whether the storage pool should exist or not.
148
149 ``Present`` - indicates that the storage pool should exist on the system.
150
151 ``Absent`` - indicates that the storage pool should not exist on the system.
152
153
154 unispherehost (True, str, None)
155 IP or FQDN of the Unity management server.
156
157
158 username (True, str, None)
159 The username of the Unity management server.
160
161
162 password (True, str, None)
163 The password of the Unity management server.
164
165
166 validate_certs (optional, bool, True)
167 Boolean variable to specify whether or not to validate SSL certificate.
168
169 ``true`` - Indicates that the SSL certificate should be verified.
170
171 ``false`` - Indicates that the SSL certificate should not be verified.
172
173
174 port (optional, int, 443)
175 Port number through which communication happens with Unity management server.
176
177
178
179
180
181 Notes
182 -----
183
184 .. note::
185 - Deletion of storage pool is not allowed through Ansible module.
186 - The *check_mode* is not supported.
187 - The modules present in this collection named as 'dellemc.unity' are built to support the Dell Unity storage platform.
188
189
190
191
192 Examples
193 --------
194
195 .. code-block:: yaml+jinja
196
197
198 - name: Get Storage pool details using pool_name
199 storagepool:
200 unispherehost: "{{unispherehost}}"
201 username: "{{username}}"
202 password: "{{password}}"
203 validate_certs: "{{validate_certs}}"
204 pool_name: "{{pool_name}}"
205 state: "present"
206
207 - name: Get Storage pool details using pool_id
208 storagepool:
209 unispherehost: "{{unispherehost}}"
210 username: "{{username}}"
211 password: "{{password}}"
212 validate_certs: "{{validate_certs}}"
213 pool_id: "{{pool_id}}"
214 state: "present"
215
216 - name: Modify Storage pool attributes using pool_name
217 storagepool:
218 unispherehost: "{{unispherehost}}"
219 username: "{{username}}"
220 password: "{{password}}"
221 validate_certs: "{{validate_certs}}"
222 pool_name: "{{pool_name}}"
223 new_pool_name: "{{new_pool_name}}"
224 pool_description: "{{pool_description}}"
225 fast_cache: "{{fast_cache_enabled}}"
226 fast_vp: "{{fast_vp_enabled}}"
227 state: "present"
228
229 - name: Modify Storage pool attributes using pool_id
230 storagepool:
231 unispherehost: "{{unispherehost}}"
232 username: "{{username}}"
233 password: "{{password}}"
234 validate_certs: "{{validate_certs}}"
235 pool_id: "{{pool_id}}"
236 new_pool_name: "{{new_pool_name}}"
237 pool_description: "{{pool_description}}"
238 fast_cache: "{{fast_cache_enabled}}"
239 fast_vp: "{{fast_vp_enabled}}"
240 state: "present"
241
242 - name: Create a StoragePool
243 storagepool:
244 unispherehost: "{{unispherehost}}"
245 username: "{{username}}"
246 password: "{{password}}"
247 validate_certs: "{{validate_certs}}"
248 pool_name: "Test"
249 pool_description: "test pool"
250 raid_groups:
251 disk_group_id : "dg_16"
252 disk_num : 2
253 raid_type : "RAID10"
254 stripe_width : "BEST_FIT"
255 alert_threshold : 50
256 is_harvest_enabled : True
257 pool_harvest_high_threshold : 60
258 pool_harvest_low_threshold : 40
259 is_snap_harvest_enabled : True
260 snap_harvest_high_threshold : 70
261 snap_harvest_low_threshold : 50
262 fast_vp: "enabled"
263 fast_cache: "enabled"
264 pool_type : "DYNAMIC"
265 state: "present"
266
267
268
269
270 Return Values
271 -------------
272
273 changed (always, bool, True)
274 Whether or not the storage pool has changed.
275
276
277 storage_pool_details (When storage pool exists., dict, {'alert_threshold': 50, 'creation_time': '2022-03-08 14:05:32+00:00', 'description': '', 'drives': [{'disk_technology': 'SAS', 'id': 'dpe_disk_22', 'name': 'DPE Drive 22', 'size': 590860984320, 'tier_type': 'PERFORMANCE'}, {'disk_technology': 'SAS', 'id': 'dpe_disk_23', 'name': 'DPE Drive 23', 'size': 590860984320, 'tier_type': 'PERFORMANCE'}, {'disk_technology': 'SAS', 'id': 'dpe_disk_24', 'name': 'DPE Drive 24', 'size': 590860984320, 'tier_type': 'PERFORMANCE'}], 'existed': True, 'harvest_state': 'UsageHarvestStateEnum.IDLE', 'hash': 8744642897210, 'health': {'UnityHealth': {'hash': 8744642799842}}, 'id': 'pool_280', 'is_all_flash': False, 'is_empty': False, 'is_fast_cache_enabled': False, 'is_fast_vp_enabled': False, 'is_harvest_enabled': True, 'is_snap_harvest_enabled': True, 'metadata_size_subscribed': 105763569664, 'metadata_size_used': 57176752128, 'name': 'test_pool', 'object_id': 12884902146, 'pool_fast_vp': {'UnityPoolFastVp': {'hash': 8744647518980}}, 'pool_space_harvest_high_threshold': 59.0, 'pool_space_harvest_low_threshold': 40.0, 'pool_type': 'StoragePoolTypeEnum.DYNAMIC', 'raid_type': 'RaidTypeEnum.RAID10', 'rebalance_progress': None, 'size_free': 470030483456, 'size_free_with_unit': '437.75 GB', 'size_subscribed': 447215820800, 'size_subscribed_with_unit': '416.5 GB', 'size_total': 574720311296, 'size_total_with_unit': '535.25 GB', 'size_used': 76838068224, 'size_used_with_unit': '71.56 GB', 'snap_size_subscribed': 128851369984, 'snap_size_subscribed_with_unit': '120.0 GB', 'snap_size_used': 2351104, 'snap_size_used_with_unit': '2.24 MB', 'snap_space_harvest_high_threshold': 80.0, 'snap_space_harvest_low_threshold': 60.0, 'tiers': {'UnityPoolTierList': [{'disk_count': [0, 3, 0], 'existed': True, 'hash': 8744643017382, 'name': ['Extreme Performance', 'Performance', 'Capacity'], 'pool_units': [None, {'UnityPoolUnitList': [{'UnityPoolUnit': {'hash': 8744642786759, 'id': 'rg_4'}}, {'UnityPoolUnit': {'hash': 8744642786795, 'id': 'rg_5'}}]}, None], 'raid_type': ['RaidTypeEnum.NONE', 'RaidTypeEnum.RAID10', 'RaidTypeEnum.NONE'], 'size_free': [0, 470030483456, 0], 'size_moving_down': [0, 0, 0], 'size_moving_up': [0, 0, 0], 'size_moving_within': [0, 0, 0], 'size_total': [0, 574720311296, 0], 'size_used': [0, 104689827840, 0], 'stripe_width': [None, 'RaidStripeWidthEnum._2', None], 'tier_type': ['TierTypeEnum.EXTREME_PERFORMANCE', 'TierTypeEnum.PERFORMANCE', 'TierTypeEnum.CAPACITY']}]}})
278 The storage pool details.
279
280
281 id (, str, )
282 Pool id, unique identifier of the pool.
283
284
285 name (, str, )
286 Pool name, unique in the storage system.
287
288
289 is_fast_cache_enabled (, bool, )
290 Indicates whether the fast cache is enabled for the storage pool. true - FAST Cache is enabled for the pool. false - FAST Cache is disabled for the pool.
291
292
293 is_fast_vp_enabled (, bool, )
294 Indicates whether to enable scheduled data relocations for the storage pool. true - Enabled scheduled data relocations for the pool. false - Disabled scheduled data relocations for the pool.
295
296
297 size_free_with_unit (, str, )
298 Indicates size_free with its appropriate unit in human readable form.
299
300
301 size_subscribed_with_unit (, str, )
302 Indicates size_subscribed with its appropriate unit in human readable form.
303
304
305 size_total_with_unit (, str, )
306 Indicates size_total with its appropriate unit in human readable form.
307
308
309 size_used_with_unit (, str, )
310 Indicates size_used with its appropriate unit in human readable form.
311
312
313 snap_size_subscribed_with_unit (, str, )
314 Indicates snap_size_subscribed with its appropriate unit in human readable form.
315
316
317 snap_size_used_with_unit (, str, )
318 Indicates snap_size_used with its appropriate unit in human readable form.
319
320
321 drives (, list, )
322 Indicates information about the drives associated with the storage pool.
323
324
325 id (, str, )
326 Unique identifier of the drive.
327
328
329 name (, str, )
330 Indicates name of the drive.
331
332
333 size (, str, )
334 Indicates size of the drive.
335
336
337 disk_technology (, str, )
338 Indicates disk technology of the drive.
339
340
341 tier_type (, str, )
342 Indicates tier type of the drive.
343
344
345
346
347
348
349
350 Status
351 ------
352
353
354
355
356
357 Authors
358 ~~~~~~~
359
360 - Ambuj Dubey (@AmbujDube) <[email protected]>
361