Operate IBM Cloud drives
This page describes operations and troubleshooting for Portworx clusters on IBM VPC Gen2 Cloud with cloud drives
Operate
Limit storage nodes
To control the number of storage nodes in the cluster, use the spec.cloudStorage.maxStorageNodesPerZone
or spec.cloudStorage.maxStorageNodes
configuration in your StorageCluster.
The total number of storage nodes in your cluster will be the number of zones multiplied by max_storage_nodes_per_zone
.
Example:
"-s", "sc=ibmc-vpc-block-10iops-tier,size=200", "-max_storage_nodes_per_zone", "1"
For a cluster of 6 nodes spanning 3 zones (us-south-1, us-south-2, and us-south-3), in the above example Portworx will have 3 storage nodes (one in each zone) and 3 storageless nodes. Portworx will create a total 3 data disks, each of size 200, and will attach one disk to each storage node.
Scale down clusters
A Portworx cluster on IBM VPC Gen2 with cloud drives can contain a mixture of storage and storageless nodes. When scaling down an IBM IKS/ROKS cluster, do not scale down the cluster size lower than the total number of storage nodes in the Portworx cluster.
You can find out the number of storage nodes by running pxctl status
on any Portworx node. This lists all nodes in the cluster and specifies which ones are storage nodes.