Expanding volumes

Virtual Storage Platform One SDS Block Virtual Private Storage Administrator Guide

Version
1.15.x
Audience
anonymous
Part Number
MK-24VSP1SDS003-02

You can only expand a volume whose status is "Normal" or "ExpansionFailed", and "volumeType" is "Normal".

  • If you expand a volume whose "status" is "Normal", the volume is expanded by the capacity specified in the parameter "additionalCapacity".

  • If you expand a volume whose status is "ExpansionFailed", the volume expansion is performed again.

  • Required role: VpsStorage

  1. Check the ID of the volume you want to extend.

    If you use the CLI to specify a volume by name, check the name of the volume.

    It also checks the status and volumeType of the volume to expand the capacity of the volume.

    REST API: GET /v1/objects/volumes

    CLI: volume_list

    When "status" of the volume to be expanded is "Normal" or "ExpansionFailed", and "volumeType" is "Normal", go to the next step.

  2. Expand the volume capacity.

    Run one of the following commands with the capacity to be added to the volume specified for additionalCapacity. Run the command with a value specified if the status of the volume is "Normal", or with no value specified if the status is "ExpansionFailed".

    Run either of the following commands with the volume ID specified.

    If you use the CLI, you can specify a name instead of the ID of the volume.

    REST API: POST /v1/objects/volumes/<id>/actions/expand/invoke

    CLI: volume_expand

    Verify the job ID which is displayed after the command is run.

  3. Verify the state of the job.

    Run either of the following commands with the job ID specified.

    REST API: GET /v1/objects/jobs/<jobId>

    CLI: job_show

    If the job state is "Succeeded", the job is completed.

  4. Obtain volume information to verify that the volume capacity is expanded.

    Run either of the following commands with the volume ID specified.

    If you use the CLI, you can specify a name instead of the ID of the volume.

    REST API: GET /v1/objects/volumes/<id>

    CLI: volume_show