Reclaiming a persistent volume manually
Manually reclaim released persistent volumes (PVs) to make them available for new claims or to properly clean up storage assets.
When a persistent volume claim (PVC) is deleted, the persistent volume (PV) still exists and is considered "released". However, the PV is not yet available for another claim because the data of the previous claimant remains on the volume.
-
Delete the persistent volume (PV) by running the following command:
$ oc delete pv <pv_name>The associated storage asset in the external infrastructure, such as an AWS EBS, GCE PD, Azure Disk, or Cinder volume, still exists after the PV is deleted.
-
Clean up the data on the associated storage asset.
-
Delete the associated storage asset. Alternately, to reuse the same storage asset, create a new PV with the storage asset definition.
The reclaimed PV is now available for use by another PVC.