Expanding volume size

You can use the console to expand the size of a volume.

Before you begin

You must be assigned one of the following permissions to expand volume size:
  • Cloud group administration role with permission to View all cloud groups (Read-only permission)
  • Resource level administration role with Write or All access rights permission (ACL) for a specific instance

About this task

You can use the console, the command line interface, or the REST API to complete this task. For the command line and REST API information, see the Related information section.
Important: You must not use the Expand operation that is provided on the Cloud > Volumes page to expand the size of the volumes that are attached to an IBM Spectrum Scale pattern. For details on how to expand the size of IBM Spectrum Scale file systems, see Expanding the IBM Storage Scale file system size.
Note: You can extent the volume size by using PowerVC. The volume size can be expanded but not reduce. The virtual machine will run during the volume expansion. As a operating system user, it is your responsibility to recognise the volume size.

Procedure

  1. Log in to the IBM Cloud Pak System user interface and do the following:
    • Go to Cloud > Volumes page and note the volume name.
    • Use the REST API https://<psm ip>/admin/resources/volumes?name="Volume Name to retrieve the volume information. Search for the id field in the output, which is an alphanumeric string. The volume name in the IBM Cloud Pak System user interface will differ from the one in PowerVC. The PowerVC volume name is a combination of "p_" + id.
    • To view PowerVC details, go to IBM Cloud Pak System user interface > System > System Settings. Expand the Virtual Center Access section to see the IP details.
  2. Log in to the PowerVC using the IP.
    • Select the volume and set the new size.
      Note: Only volume expansion is supported; size reduction is not allowed.
    • After adding the new volume size, click Save. After a few minutes, the updated size will be displayed.
    • After the new size is updated, you can view the new volume in PowerVC.
  3. Log in to the IBM Cloud Pak System user interface. Go to Hardware > Storage Resources and click Discover, which executes the storage_controllers_create job. Once the job is complete, the volume size will be updated with the new size.