powerflex_storage_pool_erasure_coding_v2 (Resource)
This resource is used to configure Erasure Coding policy on Storage Pools for PowerFlex Gen2 systems (5.0+).
Example Usage
/*
Copyright (c) 2024-2026 Dell Inc., or its subsidiaries. All Rights Reserved.
Licensed under the Mozilla Public License Version 2.0 (the "License");
you may not use this file except in compliance with the License
You may obtain a copy of the License at
http://mozilla.org/MPL/2.0/
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied
See the License for the specific language governing permissions and
limitations under the License.
*/
# Commands to run this tf file : terraform init && terraform plan && terraform apply
# This resource configures Erasure Coding policy on Storage Pools (Gen2 systems 5.0+)
# storage_pool_id and erasure_coding_policy are required
# Valid erasure_coding_policy values: none, rs_2_1, rs_4_1
# Example: Set Erasure Coding policy to rs_2_1
resource "powerflex_storage_pool_erasure_coding_v2" "rs2_1" {
storage_pool_id = "0123456789abcdef"
erasure_coding_policy = "rs_2_1"
}
# Example: Set Erasure Coding policy to rs_4_1
resource "powerflex_storage_pool_erasure_coding_v2" "rs4_1" {
storage_pool_id = "0123456789abcdef"
erasure_coding_policy = "rs_4_1"
}
# Example: Disable Erasure Coding (set to none)
resource "powerflex_storage_pool_erasure_coding_v2" "none" {
storage_pool_id = "0123456789abcdef"
erasure_coding_policy = "none"
}
output "erasure_coding" {
value = powerflex_storage_pool_erasure_coding_v2.rs2_1
}
Schema
Required
erasure_coding_policy(String) The erasure coding policy to set. Valid values:none,rs_2_1,rs_4_1.storage_pool_id(String) The ID of the storage pool to configure erasure coding on.
Read-Only
id(String) The identifier for this resource.