Deleting volumes

Virtual Storage Platform One SDS Block Virtual Private Storage Administrator Guide

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

Delete unnecessary volumes as follows.

Volumes cannot be deleted in the following cases.

  • If a path is set between a compute node and a volume, the volume cannot be deleted.

    Before you delete a volume, cancel the connection between the volume to be deleted and the associated compute node.

  • Volumes with "P-VOL", "P/S-VOL", or "S-VOL" snapshotAttribute cannot be deleted using the procedure described in this section. For details about how to delete these volumes, see Deleting snapshots.

  • A volume whose status is "ExpansionFailed" cannot be deleted. If you want to delete a volume whose status is "ExpansionFailed", expand the volume, verify that the status becomes "Normal", and then run the volume deletion command again.

  • Required role: VpsStorage

  1. Verify the ID of the intended volume.

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

    REST API: GET /v1/objects/volumes

    CLI: volume_list

  2. Delete the intended volume.

    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: DELETE /v1/objects/volumes/<id>

    CLI: volume_delete

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

    Note:
    • You can confirm the progress status of the data reduction function accompanying the deletion process in dataReductionProgressRate of volume information.

    • Estimate the time required for deleting volumes, see Estimated time required for deleting volumes with data reduction enabled.

  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 a list of volumes and verify that the volumes are deleted.

    REST API: GET /v1/objects/volumes

    CLI: volume_list

    CAUTION:
    • If the storage cluster stops while a volume with data reduction enabled is being deleted, the delete job disappears (as a result of interruption or failure), and the storage cluster stops. When you restart the storage cluster, the delete operation will be automatically resumed.

    • When the data reduction function is enabled for the volume to be deleted, the time required for deleting the volume varies depending on the volume capacity and so on.

    • You can confirm the progress status of the data reduction function accompanying the deletion process in dataReductionProgressRate of volume information.

    • When the volume deletion process is completed, the target volume disappears from volume information. By obtaining a list of volumes, you can verify whether the target volume has disappeared.