powerflex_storage_node_v2 (Resource)

This resource is used to manage Storage Nodes on PowerFlex Gen2 systems (5.0+). Storage Nodes are the Gen2 replacement for SDS.

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
# Create, Update, Delete is supported for this resource
# To import, check import.tf for more info
# protection_domain_id is required
# name and ip_list are required parameters to create
# port and fault_set_id are optional
# This resource is for PowerFlex Gen2 systems (5.0+)

# Example for creating a Storage Node (Gen2 replacement for SDS)
resource "powerflex_storage_node_v2" "create" {
  name                 = "demo-storage-node-01"
  protection_domain_id = "202a046600000000"
  ip_list = [
    {
      ip   = "10.10.10.12"
      role = "all" # all/sdsOnly/sdcOnly
    },
    {
      ip   = "10.10.10.11"
      role = "sdcOnly" # all/sdsOnly/sdcOnly
    },
  ]
}

# Example for creating a Storage Node with fault set
resource "powerflex_fault_set" "test" {
  protection_domain_id = "202a046600000000"
  name                 = "demo_fault_set"
}

resource "powerflex_storage_node_v2" "create_with_fs" {
  name                 = "demo-storage-node-02"
  protection_domain_id = "202a046600000000"
  fault_set_id         = powerflex_fault_set.test.id
  port                 = "6611"
  ip_list = [
    {
      ip   = "10.10.10.13"
      role = "all"
    },
  ]
}

output "storage_node" {
  value = powerflex_storage_node_v2.create
}

Schema

Required

  • protection_domain_id (String) The ID of the protection domain.

Optional

  • fault_set_id (String) The ID of the fault set.
  • ip_list (Block List) List of IPs associated with the storage node. (see below for nested schema)
  • name (String) The name of the storage node.
  • performance_profile (String) The performance profile of the storage node.
  • port (String) The port number for the storage node.

Read-Only

  • id (String) The unique identifier of the storage node.
  • maintenance_state (String) The maintenance state of the storage node.
  • mdm_connection_state (String) The MDM connection state of the storage node.
  • membership_state (String) The membership state of the storage node.
  • num_of_devices (Number) The number of devices attached to the storage node.
  • software_version (String) The software version of the storage node.
  • state (String) The state of the storage node.
  • status (String) The status of the storage node.
  • total_capacity_in_kb (Number) The total capacity of the storage node in KB.
  • used_capacity_in_kb (Number) The used capacity of the storage node in KB.

Nested Schema for ip_list

Required:

  • ip (String) IP address.
  • role (String) Role of the IP. Valid values: SdsOnly, SdcOnly, All.