Volume management

This article explains how to manage Remote Block Storage (RBS) volumes using the Customer Portal, Kubernetes, Public API, and command-line interface (CLI).

In addition to the Customer Portal, you can manage RBS volumes with the following tools:

Rename a volume

You can rename an RBS volume in the Customer Portal without affecting its data or requiring any changes on the connected server or in Kubernetes.

  1. In the Customer Portal, navigate to Remote Block Storage and select the volume you want to rename
  2. Click the pencil icon next to the volume name
  3. Enter a new name and click Rename

Resize a volume

You can increase the size of an RBS volume in the Customer Portal, through the Public API, or with the CLI. For dynamically provisioned volumes, you can also do it in Kubernetes. Decreasing the volume size is not supported. The minimum size increment is 1 GB.

Note

Increasing the volume size does not extend the file system on a server or on a statically provisioned Kubernetes volume. Until you extend it, the additional space is not visible to the operating system or to your workload. The RBS Container Storage Interface (CSI) driver extends the file system of a dynamically provisioned volume automatically.

In the Customer Portal

  1. In the Customer Portal, navigate to Remote Block Storage and select the volume you want to resize
  2. In Volume details, click Update
  3. Enter the new volume size in GB

The maximum input/output operations per second (IOPS) and bandwidth are recalculated based on the new volume size.

After you increase the volume size, you must extend the file system on the server. See Extend the file system on a server.

For a dynamically provisioned Kubernetes volume, resize the PersistentVolumeClaim (PVC) instead, see In Kubernetes.

In Kubernetes

For a dynamically provisioned volume, increase the requested storage size in the PVC:

kubectl patch pvc <PVC_NAME> \
  -p '{"spec":{"resources":{"requests":{"storage":"<NEW_SIZE>Gi"}}}}'

The RBS CSI driver expands the volume and its file system automatically. For details, see Managed Kubernetes or your Kubernetes cluster.

For a statically provisioned volume, increase the size by using one of the other methods, and then extend the file system on the worker node. See Resize a statically provisioned volume.

Through the Public API

To change the volume size, use the Update an RBS volume operation. For request parameters, see the Update an RBS volume reference.

After you increase the volume size, you must extend the file system on the server. See Extend the file system on a server.

With the CLI

To change the volume size, run the update command with the --size option. Specify the size in GB:

srvctl rbs-volumes update <VOLUME_ID> --size <NEW_SIZE>

After you increase the volume size, you must extend the file system on the server. See Extend the file system on a server.

Extend the file system on a server

Linux

  1. Rescan the active iSCSI sessions: sudo iscsiadm -m session --rescan

  2. Verify that the block device reports the new size: lsblk

  3. Extend the file system. The commands depend on the file system type:

    • For ext4 (replace <DEVICE_NAME> with the device, for example, sdc): sudo resize2fs /dev/<DEVICE_NAME>

    • For XFS (replace <MOUNT_PATH> with the mount point, for example, /mnt/iscsi): sudo xfs_growfs <MOUNT_PATH>

You can extend ext4 and XFS file systems while they are mounted.

Windows

  1. Open Disk Management and select Action → Rescan Disks
  2. Right-click the volume and select Extend Volume
  3. Follow the wizard to use the new unallocated space

To do this in PowerShell, run:

Update-HostStorageCache
$size = (Get-PartitionSupportedSize -DriveLetter <DRIVE_LETTER>).SizeMax
Resize-Partition -DriveLetter <DRIVE_LETTER> -Size $size

Disconnect a volume

Before you disconnect a volume, unmount it and log out of the iSCSI target to avoid data loss. For instructions, see How to disconnect the volume.

In Kubernetes, delete the workload that uses the volume. A volume can be connected to only one server or node at a time.

You can also unpublish a volume to make it unavailable for iSCSI connections without deleting it. See Volume status.

Reset the volume password

You can reset the password used to authenticate iSCSI connections to an RBS volume.

  1. In the Customer Portal, navigate to Remote Block Storage and select the volume
  2. In the Volume details section, find the Credentials row and click Reset password
  3. Confirm the action

Wait until the password reset is complete.

After resetting the password, update the CHAP credentials on all servers or Kubernetes workloads that use the volume. Existing connections may fail to reconnect if they use the old password.

Delete a volume

You can delete an RBS volume from the Customer Portal.

Deleting a volume permanently removes all data stored on it. This action cannot be undone.

To delete a volume:

  1. In the Customer Portal, navigate to Remote Block Storage and select the volume you want to delete
  2. In the Volume details section, click Delete
  3. Confirm the deletion

To delete a dynamically provisioned RBS volume from Kubernetes, see Managed Kubernetes or your Kubernetes cluster.

On this page