Extend volume capacity

The capacity of a volume attached to a virtual machine can be extended by using this PowerVC API extension. The volume capacity can be expanded, and not reduced. The virtual machine can be running when this API is called. It is the responsibility of operating systems client to recognize the volume capacity change.

Options
Table 1. Options for extending volume capacity
Method URI Description

POST

/v3/{tenant_id}/volumes/{volume_id}/action

Extends the capacity of a volume attached to a virtual machine. Specify the os-extend action in the request body.

Response codes
  • Normal response code: No Content (204)
  • Error response codes: The following table lists the various error response codes.
    Table 2. Error response codes for extend volume capacity
    Code Error title Description

    400

    Bad request

    Unsupported or malformed request. For example, the new capacity is smaller than current volume capacity.

    507

    Insufficient storage

    Storage pool capacity exhausted.

    404

    Not found

    Volume to be extended does not exist on storage provider.

    409

    Conflict

    Volume to be extended is part of FlashCopy® Mapping on storage provider.

    409

    Conflict

    Storage provider does not implement volume expansion.

    500

    Server error

    Another failure that is not covered by other types of errors. For example, the RPC request that is timed out.

Request parameters
{
 "ibm-extend": {
  "new_size": <size_in_GBs>
}
}
Note: new_size is an integer number for the new disk capacity.
Response
There is no response body for response code No Content (204)
HTTP/1.1 204 No Content
Content-Type: application/json