Skip to main content
Hitachi Vantara Knowledge

Resource Partitioning

You can partition storage system resources by limiting the LDEV ID range added to the resource group for a specific Kubernetes cluster. You can also isolate impacts between Kubernetes clusters.

NoteResource Partitioning is not supported for VSSB.

GUID-0B56F534-ED04-4C02-96D7-DD9AC8899157-low.jpg

Storage system requirements

Set your storage system to meet the following requirements:

Storage system resourcesDescriptions
Resource groupOnly one resource group for one Kubernetes is supported. Virtual storage machine is not supported. For more notes, see Unsupported configuration examples.
Storage system user group and Storage system userStorage system users must have access only to the resource group that you created. The storage system user must not have access to other resource groups.
PoolCreate a pool from pool volumes with the resource group that you have created.
LDEVAllocate the necessary number of undefined LDEV IDs to the resource group.
Host Group Allocate the necessary number of undefined host group IDs to the resource group for each storage system port defined in StorageClass. The number of host group IDs must be equal to the number of hosts for all ports.
Unsupported configuration examples

The following configurations are unsupported examples. Before using the resource partitioning feature, carefully check these examples and the above table when configuring system configurations.

  • Example 1: Mixing Secret and StorageClass with resource group configuration and without resource group configuration for the same storage system in a single Kubernetes cluster is not supported.

    GUID-102F9277-E254-4940-9208-36FEEBC979BA-low.jpg

  • Example 2: Mixing more than two Secret and StorageClass for different resource groups of the same storage system in a single Kubernetes cluster is not supported.

    GUID-FB62A490-15F7-40AB-B348-BFE5CE272DF1-low.jpg

Secret settings

Example of secret settings.

apiVersion: v1
kind: Secret
metadata:
  name: secret-sample
type: Opaque
data:
  url: aHR0cDovLzE3Mi4xNi4xLjE= 
  user: VXNlcjAx
  password: UGFzc3dvcmQwMQ==
stringData:
  resourceGroupID: "1"    # Specify resource group ID

StorageClass settings

If you use iSCSI as a storage system connection, specify the port IP address in number order. If you use FC as a storage system connection, no additional setting is required for StorageClass.

apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
  name: sc-sample
provisioner: hspc.csi.hitachi.com
reclaimPolicy: Delete
volumeBindingMode: Immediate
allowVolumeExpansion: true
parameters:
  serialNumber: "54321"
  poolID: "1"
  portID : CL1-A,CL2-A
  connectionType: iscsi
  portIP: “192.168.10.10, 192.168.10.11”  # iSCSI Port IP Addresses.
<...>

 

  • Was this article helpful?