Most of the time, a user or an admin in a Kubernetes or Openshift cluster is confused about what is meant by the persistent volume and persistent volume claim status field.
Just to make sure we are on same page, this is about the “STATUS” field in the output captured below:
Persistent Volume States: PV states:
It can be any of:
“Pending”, “Available”, “Bound”, “Released” or “Failed”
Available: Used for PersistentVolumes that are not yet bound to a PVC.
Bound : Used for PersistentVolumes that are bound with a PVC.
Released : Used for PersistentVolumes where the bound PersistentVolumeClaim was deleted. Released volumes must be recycled before becoming available again.This phase is used by the persistent volume claim binder to signal to another process to reclaim the resource
Failed : Used for PersistentVolumes that failed to be correctly recycled or deleted after being released from a claim
Persistent Volume Claim States: PVC states:
It can be any of:
“Pending”, “Bound”, or “Lost”
Bound: Used for PersistentVolumeClaims that are bound
Lost: Used for PersistentVolumeClaims that lost their underlying PersistentVolume. The claim was bound to a PersistentVolume and this volume does not exist any longer and all data on it was lost.