| 1 |
.. _storagepool_v2_module: |
| 2 |
|
| 3 |
|
| 4 |
storagepool_v2 -- Managing storage pool on Dell PowerFlex 5.x |
| 5 |
============================================================= |
| 6 |
|
| 7 |
.. contents:: |
| 8 |
:local: |
| 9 |
:depth: 1 |
| 10 |
|
| 11 |
|
| 12 |
Synopsis |
| 13 |
-------- |
| 14 |
|
| 15 |
Dell PowerFlex storage pool module includes getting the details of storage pool, creating a new storage pool, and modifying the attribute of a 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 PowerFlex storage system version 5.0 or later. |
| 24 |
- PyPowerFlex 2.0.0 |
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
Parameters |
| 29 |
---------- |
| 30 |
|
| 31 |
storage_pool_name (optional, str, None) |
| 32 |
The name of the storage pool. |
| 33 |
|
| 34 |
If more than one storage pool is found with the same name then protection domain id/name is required to perform the task. |
| 35 |
|
| 36 |
Mutually exclusive with :emphasis:`storage\_pool\_id`. |
| 37 |
|
| 38 |
|
| 39 |
storage_pool_id (optional, str, None) |
| 40 |
The id of the storage pool. |
| 41 |
|
| 42 |
It is auto generated, hence should not be provided during creation of a storage pool. |
| 43 |
|
| 44 |
Mutually exclusive with :emphasis:`storage\_pool\_name`. |
| 45 |
|
| 46 |
|
| 47 |
storage_pool_new_name (optional, str, None) |
| 48 |
New name for the storage pool can be provided. |
| 49 |
|
| 50 |
This parameter is used for renaming the storage pool. |
| 51 |
|
| 52 |
|
| 53 |
protection_domain_name (optional, str, None) |
| 54 |
The name of the protection domain. |
| 55 |
|
| 56 |
During creation of a pool, either protection domain name or id must be mentioned. |
| 57 |
|
| 58 |
Mutually exclusive with :emphasis:`protection\_domain\_id`. |
| 59 |
|
| 60 |
|
| 61 |
protection_domain_id (optional, str, None) |
| 62 |
The id of the protection domain. |
| 63 |
|
| 64 |
During creation of a pool, either protection domain name or id must be mentioned. |
| 65 |
|
| 66 |
Mutually exclusive with :emphasis:`protection\_domain\_name`. |
| 67 |
|
| 68 |
|
| 69 |
device_group_id (False, str, None) |
| 70 |
The ID of the device group. |
| 71 |
|
| 72 |
|
| 73 |
device_group_name (False, str, None) |
| 74 |
The name of the device group. |
| 75 |
|
| 76 |
|
| 77 |
cap_alert_thresholds (False, dict, None) |
| 78 |
The capacity alert thresholds. |
| 79 |
|
| 80 |
|
| 81 |
high_threshold (False, int, None) |
| 82 |
The high threshold. |
| 83 |
|
| 84 |
|
| 85 |
critical_threshold (False, int, None) |
| 86 |
The critical threshold. |
| 87 |
|
| 88 |
|
| 89 |
|
| 90 |
compression_method (False, str, None) |
| 91 |
The compression method. |
| 92 |
|
| 93 |
|
| 94 |
over_provisioning_factor (False, int, None) |
| 95 |
The over-provisioning factor. |
| 96 |
|
| 97 |
|
| 98 |
physical_size_gb (False, int, None) |
| 99 |
The physical size in GB. |
| 100 |
|
| 101 |
|
| 102 |
use_all_available_capacity (False, bool, None) |
| 103 |
Whether to use all available capacity for storage pool. |
| 104 |
|
| 105 |
|
| 106 |
protection_scheme (False, str, None) |
| 107 |
The protection scheme. |
| 108 |
|
| 109 |
|
| 110 |
state (True, str, None) |
| 111 |
The state of the storage pool. Can be 'present' or 'absent'. |
| 112 |
|
| 113 |
|
| 114 |
hostname (True, str, None) |
| 115 |
IP or FQDN of the PowerFlex host. |
| 116 |
|
| 117 |
|
| 118 |
username (True, str, None) |
| 119 |
The username of the PowerFlex host. |
| 120 |
|
| 121 |
|
| 122 |
password (True, str, None) |
| 123 |
The password of the PowerFlex host. |
| 124 |
|
| 125 |
|
| 126 |
validate_certs (optional, bool, True) |
| 127 |
Boolean variable to specify whether or not to validate SSL certificate. |
| 128 |
|
| 129 |
:literal:`true` - Indicates that the SSL certificate should be verified. |
| 130 |
|
| 131 |
:literal:`false` - Indicates that the SSL certificate should not be verified. |
| 132 |
|
| 133 |
|
| 134 |
port (optional, int, 443) |
| 135 |
Port number through which communication happens with PowerFlex host. |
| 136 |
|
| 137 |
|
| 138 |
timeout (False, int, 120) |
| 139 |
Time after which connection will get terminated. |
| 140 |
|
| 141 |
It is to be mentioned in seconds. |
| 142 |
|
| 143 |
|
| 144 |
|
| 145 |
|
| 146 |
|
| 147 |
Notes |
| 148 |
----- |
| 149 |
|
| 150 |
.. note:: |
| 151 |
- This module is supported on Dell PowerFlex 5.x and later versions. |
| 152 |
- The :emphasis:`check\_mode` is supported. |
| 153 |
- The modules present in the collection named as 'dellemc.powerflex' are built to support the Dell PowerFlex storage platform. |
| 154 |
|
| 155 |
|
| 156 |
|
| 157 |
|
| 158 |
Examples |
| 159 |
-------- |
| 160 |
|
| 161 |
.. code-block:: yaml+jinja |
| 162 |
|
| 163 |
|
| 164 |
- name: Get the details of storage pool by name |
| 165 |
dellemc.powerflex.storagepool_v2: |
| 166 |
hostname: "{{hostname}}" |
| 167 |
username: "{{username}}" |
| 168 |
password: "{{password}}" |
| 169 |
validate_certs: "{{validate_certs}}" |
| 170 |
storage_pool_name: "sample_pool_name" |
| 171 |
protection_domain_name: "sample_protection_domain" |
| 172 |
state: "present" |
| 173 |
|
| 174 |
- name: Get the details of storage pool by id |
| 175 |
dellemc.powerflex.storagepool_v2: |
| 176 |
hostname: "{{hostname}}" |
| 177 |
username: "{{username}}" |
| 178 |
password: "{{password}}" |
| 179 |
validate_certs: "{{validate_certs}}" |
| 180 |
storage_pool_id: "abcd1234ab12r" |
| 181 |
state: "present" |
| 182 |
|
| 183 |
- name: Create a new Storage pool |
| 184 |
dellemc.powerflex.storagepool_v2: |
| 185 |
hostname: "{{ hostname }}" |
| 186 |
username: "{{ username }}" |
| 187 |
password: "{{ password }}" |
| 188 |
validate_certs: "{{ validate_certs }}" |
| 189 |
storage_pool_name: "{{ pool_name }}" |
| 190 |
protection_domain_name: "{{ protection_domain_name }}" |
| 191 |
device_group_name: "{{ device_group_name }}" |
| 192 |
cap_alert_thresholds: |
| 193 |
high_threshold: 80 |
| 194 |
critical_threshold: 90 |
| 195 |
compression_method: Normal |
| 196 |
over_provisioning_factor: 2 |
| 197 |
physical_size_gb: 100 |
| 198 |
protection_scheme: TwoPlusTwo |
| 199 |
state: "present" |
| 200 |
|
| 201 |
- name: Modify a Storage pool by name |
| 202 |
dellemc.powerflex.storagepool_v2: |
| 203 |
hostname: "{{ hostname }}" |
| 204 |
username: "{{ username }}" |
| 205 |
password: "{{ password }}" |
| 206 |
validate_certs: "{{ validate_certs }}" |
| 207 |
storage_pool_name: "{{ pool_name }}" |
| 208 |
protection_domain_name: "{{ protection_domain_name }}" |
| 209 |
storage_pool_new_name: "pool_name_new" |
| 210 |
cap_alert_thresholds: |
| 211 |
high_threshold: 85 |
| 212 |
critical_threshold: 95 |
| 213 |
compression_method: None |
| 214 |
state: "present" |
| 215 |
|
| 216 |
|
| 217 |
|
| 218 |
Return Values |
| 219 |
------------- |
| 220 |
|
| 221 |
changed (always, bool, false) |
| 222 |
Whether or not the resource has changed. |
| 223 |
|
| 224 |
|
| 225 |
storage_pool_details (When storage pool exists, dict, {'addressSpaceUsage': 'Normal', 'addressSpaceUsageType': 'TypeHardLimit', 'backgroundScannerBWLimitKBps': None, 'backgroundScannerMode': None, 'bgScannerCompareErrorAction': 'Invalid', 'bgScannerReadErrorAction': 'Invalid', 'capacityAlertCriticalThreshold': 90, 'capacityAlertHighThreshold': 80, 'capacityUsageState': 'Normal', 'capacityUsageType': 'NetCapacity', 'checksumEnabled': False, 'compressionMethod': 'Normal', 'dataLayout': 'ErasureCoding', 'deviceGroupId': '39a898be00000000', 'deviceGroupName': 'DG1', 'externalAccelerationType': 'None', 'fglAccpId': None, 'fglExtraCapacity': None, 'fglMaxCompressionRatio': None, 'fglMetadataSizeXx100': None, 'fglNvdimmMetadataAmortizationX100': None, 'fglNvdimmWriteCacheSizeInMb': None, 'fglOverProvisioningFactor': None, 'fglPerfProfile': None, 'fglWriteAtomicitySize': None, 'fragmentationEnabled': False, 'genType': 'EC', 'id': '5dabf3f800000000', 'links': [{'href': '/api/instances/StoragePool::5dabf3f800000000', 'rel': 'self'}, {'body': {'ids': ['5dabf3f800000000'], 'resource_type': 'storage_pool'}, 'href': '/dtapi/rest/v1/metrics/query', 'rel': '/dtapi/rest/v1/metrics/query'}, {'href': '/api/instances/StoragePool::5dabf3f800000000/relationships/SpSds', 'rel': '/api/StoragePool/relationship/SpSds'}, {'href': '/api/instances/StoragePool::5dabf3f800000000/relationships/Volume', 'rel': '/api/StoragePool/relationship/Volume'}, {'href': '/api/instances/StoragePool::5dabf3f800000000/relationships/Device', 'rel': '/api/StoragePool/relationship/Device'}, {'href': '/api/instances/StoragePool::5dabf3f800000000/relationships/VTree', 'rel': '/api/StoragePool/relationship/VTree'}, {'href': '/api/instances/ProtectionDomain::f3d03dcf00000000', 'rel': '/api/parent/relationship/protectionDomainId'}, {'href': '/api/instances/DeviceGroup::39a898be00000000', 'rel': '/api/parent/relationship/deviceGroupId'}, {'href': '/api/instances/WrcDeviceGroup::39a898be00000000', 'rel': '/api/parent/relationship/wrcDeviceGroupId'}], 'mediaType': None, 'name': 'SP_EC', 'numOfParallelRebuildRebalanceJobsPerDevice': None, 'overProvisioningFactor': 0, 'persistentChecksumBuilderLimitKb': None, 'persistentChecksumEnabled': False, 'persistentChecksumState': 'StateInvalid', 'persistentChecksumValidateOnRead': None, 'physicalSizeGB': 5120, 'protectedMaintenanceModeIoPriorityAppBwPerDeviceThresholdInKbps': None, 'protectedMaintenanceModeIoPriorityAppIopsPerDeviceThreshold': None, 'protectedMaintenanceModeIoPriorityBwLimitPerDeviceInKbps': None, 'protectedMaintenanceModeIoPriorityNumOfConcurrentIosPerDevice': None, 'protectedMaintenanceModeIoPriorityPolicy': None, 'protectedMaintenanceModeIoPriorityQuietPeriodInMsec': None, 'protectionDomainId': 'f3d03dcf00000000', 'protectionDomainName': 'PD_EC', 'protectionScheme': 'TwoPlusTwo', 'rawSizeGB': 10240, 'rebalanceEnabled': None, 'rebalanceIoPriorityAppBwPerDeviceThresholdInKbps': None, 'rebalanceIoPriorityAppIopsPerDeviceThreshold': None, 'rebalanceIoPriorityBwLimitPerDeviceInKbps': None, 'rebalanceIoPriorityNumOfConcurrentIosPerDevice': None, 'rebalanceIoPriorityPolicy': None, 'rebalanceIoPriorityQuietPeriodInMsec': None, 'rebuildEnabled': None, 'rebuildIoPriorityAppBwPerDeviceThresholdInKbps': None, 'rebuildIoPriorityAppIopsPerDeviceThreshold': None, 'rebuildIoPriorityBwLimitPerDeviceInKbps': None, 'rebuildIoPriorityNumOfConcurrentIosPerDevice': None, 'rebuildIoPriorityPolicy': None, 'rebuildIoPriorityQuietPeriodInMsec': None, 'replicationCapacityMaxRatio': None, 'rmcacheWriteHandlingMode': 'Invalid', 'spClass': 'Default', 'spHealthState': 'Protected', 'sparePercentage': None, 'statistics': {'format': 'ID_TIMESTAMP_METRIC', 'resource_type': 'storage_pool', 'resources': [{'id': '5dabf3f800000000', 'metrics': [{'name': 'physical_free', 'values': [5443871047680]}, {'name': 'logical_provisioned', 'values': [0]}, {'name': 'raw_used', 'values': [10995116277760]}, {'name': 'logical_used', 'values': [0]}, {'name': 'physical_total', 'values': [5497558138880]}, {'name': 'physical_used', 'values': [0]}, {'name': 'over_provisioning_limit', 'values': [4611686017353646080]}]}], 'timestamps': ['2025-08-25T05:24:06Z']}, 'useRfcache': False, 'useRmcache': False, 'vtreeMigrationIoPriorityAppBwPerDeviceThresholdInKbps': None, 'vtreeMigrationIoPriorityAppIopsPerDeviceThreshold': None, 'vtreeMigrationIoPriorityBwLimitPerDeviceInKbps': None, 'vtreeMigrationIoPriorityNumOfConcurrentIosPerDevice': None, 'vtreeMigrationIoPriorityPolicy': None, 'vtreeMigrationIoPriorityQuietPeriodInMsec': None, 'wrcDeviceGroupId': '39a898be00000000', 'zeroPaddingEnabled': True}) |
| 226 |
Details of the storage pool. |
| 227 |
|
| 228 |
|
| 229 |
id (, str, ) |
| 230 |
ID of the storage pool. |
| 231 |
|
| 232 |
|
| 233 |
name (, str, ) |
| 234 |
Name of the storage pool. |
| 235 |
|
| 236 |
|
| 237 |
protectionDomainId (, str, ) |
| 238 |
ID of the protection domain in which the storage pool resides. |
| 239 |
|
| 240 |
|
| 241 |
zeroPaddingEnabled (, bool, ) |
| 242 |
Indicates whether zero padding is enabled for the storage pool. |
| 243 |
|
| 244 |
|
| 245 |
capacityAlertHighThreshold (, int, ) |
| 246 |
High threshold for capacity alert (percentage). |
| 247 |
|
| 248 |
|
| 249 |
capacityAlertCriticalThreshold (, int, ) |
| 250 |
Critical threshold for capacity alert (percentage). |
| 251 |
|
| 252 |
|
| 253 |
capacityUsageState (, str, ) |
| 254 |
Current capacity usage state of the storage pool. |
| 255 |
|
| 256 |
|
| 257 |
capacityUsageType (, str, ) |
| 258 |
Type of capacity usage being monitored. |
| 259 |
|
| 260 |
|
| 261 |
addressSpaceUsage (, str, ) |
| 262 |
Current address space usage state. |
| 263 |
|
| 264 |
|
| 265 |
addressSpaceUsageType (, str, ) |
| 266 |
Type of address space usage limit. |
| 267 |
|
| 268 |
|
| 269 |
fragmentationEnabled (, bool, ) |
| 270 |
Indicates whether fragmentation is enabled for the storage pool. |
| 271 |
|
| 272 |
|
| 273 |
inflightRequestsFactor (, int, ) |
| 274 |
In-flight requests factor for performance tuning. |
| 275 |
|
| 276 |
|
| 277 |
inflightBandwidthFactor (, int, ) |
| 278 |
In-flight bandwidth factor for performance tuning. |
| 279 |
|
| 280 |
|
| 281 |
compressionMethod (, str, ) |
| 282 |
Compression method used in the storage pool. |
| 283 |
|
| 284 |
|
| 285 |
spClass (, str, ) |
| 286 |
Class of the storage pool. |
| 287 |
|
| 288 |
|
| 289 |
genType (, str, ) |
| 290 |
Data protection generation type of the storage pool. |
| 291 |
|
| 292 |
|
| 293 |
deviceGroupId (, str, ) |
| 294 |
ID of the device group associated with the storage pool. |
| 295 |
|
| 296 |
|
| 297 |
wrcDeviceGroupId (, str, ) |
| 298 |
ID of the WRC device group. |
| 299 |
|
| 300 |
|
| 301 |
rawSizeGb (, int, ) |
| 302 |
Raw size of the storage pool in GB. |
| 303 |
|
| 304 |
|
| 305 |
numDataSlices (, int, ) |
| 306 |
Number of data slices used in erasure coding. |
| 307 |
|
| 308 |
|
| 309 |
numProtectionSlices (, int, ) |
| 310 |
Number of protection slices used in erasure coding. |
| 311 |
|
| 312 |
|
| 313 |
physicalSizeGb (, int, ) |
| 314 |
Physical size of the storage pool in GB. |
| 315 |
|
| 316 |
|
| 317 |
overProvisioningFactor (, int, ) |
| 318 |
Over-provisioning factor for the storage pool. |
| 319 |
|
| 320 |
|
| 321 |
protectionScheme (, str, ) |
| 322 |
Data protection scheme used in the storage pool. |
| 323 |
|
| 324 |
|
| 325 |
spHealthState (, str, ) |
| 326 |
Health state of the storage pool. |
| 327 |
|
| 328 |
|
| 329 |
statistics (, dict, ) |
| 330 |
Statistics details of the storage pool. |
| 331 |
|
| 332 |
|
| 333 |
capacityInUseInKb (, str, ) |
| 334 |
Total capacity of the storage pool. |
| 335 |
|
| 336 |
|
| 337 |
unusedCapacityInKb (, str, ) |
| 338 |
Unused capacity of the storage pool. |
| 339 |
|
| 340 |
|
| 341 |
deviceIds (, list, ) |
| 342 |
Device Ids of the storage pool. |
| 343 |
|
| 344 |
|
| 345 |
|
| 346 |
|
| 347 |
|
| 348 |
|
| 349 |
|
| 350 |
Status |
| 351 |
------ |
| 352 |
|
| 353 |
|
| 354 |
|
| 355 |
|
| 356 |
|
| 357 |
Authors |
| 358 |
~~~~~~~ |
| 359 |
|
| 360 |
- Luis Liu (@vangork) <[email protected]> |
| 361 |
- Yiming Bao (@baoy1) <[email protected]> |
| 362 |
|