Resize volumes to increase storage capacity with minimal downtime, without migrating data or creating new volumes. You can only increase volume size; the Block Storage service (cinder) does not support reducing size.
About this task
Note
The ability to resize a volume in use is supported but it is driver dependent. Red Hat Ceph Storage is supported. You cannot extend in-use multi-attach volumes. For more information about support for this feature, contact Red Hat Support.
Procedure
-
Access the remote shell for the
openstackclient pod from your workstation:
$ oc rsh -n openstack openstackclient
-
Increase the size of the volume:
$ openstack volume set --size <size> <volume>
- Replace
<size> with the required size of this volume, in gigabytes.
- Replace
<volume> with the name or ID of the volume you want to extend. You can list the available volumes by using the openstack volume list command.
-
Optional: This command does not provide any confirmation that volume has been successfully resized. You can run the following command to review the changes made to this volume:
$ openstack volume show <volume>
-
Exit the
openstackclient pod: