PV Lifecycle Phases
The status of a PV changes as claims come and go, and sometimes it sticks in Failed until someone steps in. Who moves it, what does each of its phases mean, and how does a retained volume get back to Available?
Play the animation 5 steps, animated, plays on a computer or a tablet
PV Lifecycle Phases, step by step
-
A new claim asks for storage. Under the default Immediate binding mode, the PV controller finds this volume, writes the claim into its claimRef and sets the phase to Bound. The claim itself writes nothing: every phase on this row is written by the controller, in response to events like this one.
Play from step 1 -
The claim is deleted. The PV claimRef now names a claim that no longer exists, so the controller writes Released, not Available. That stale reference stays in place, and it is exactly what stops any other claim from binding. What happens next depends on the reclaim policy.
Play from step 2 -
If the policy is Delete, the PV controller does not delete a CSI volume. The external-provisioner does: it calls DeleteVolume on the driver and then deletes the PV object itself. There is no final phase to write, because the volume leaves this row altogether.
Play from step 3 -
If instead the volume is a hand-made NFS PV set to Delete, no plugin can delete it. The controller finds no deleter and writes Failed, with a VolumeFailedDelete event. A CSI volume set to Delete does not land here: its failed DeleteVolume is retried while it stays Released.
Play from step 4 -
Short of the deprecated Recycle policy, which scrubs a volume and frees it on its own, the way back is by hand. Under Retain, an administrator removes the stale claimRef and the controller writes Available, as it would from Failed. A matching claim can now bind it, with the previous data still on it.
Play from step 5