Bootstrap FreeKB - OpenShift - Resolve "The volume 'vol-abcdefghijklmnopqrs' does not exist"
OpenShift - Resolve "The volume 'vol-abcdefghijklmnopqrs' does not exist"

Updated:   |  OpenShift articles

Let's say something like this is being returned when attempting to create or restart a pod.

The volume 'vol-abcdefghijklmnopqrs' does not exist

 

This means the pod is attempting to attach a Persistent Volume Claim, and the PVC cannot find or create the volume. This can occur if the PVC accessMode is RWO or RWOP.

  • ReadWriteOnce (RWO) - The volume may only be mounted on a single node
  • ReadWriteOncePod (RWOP) - The volume may only be mounted on a single pod
  • ReadOnlyMany (ROX) - The volume may be mounted on different nodes
  • ReadWriteMany (RWX) - The volume can be mounted on different nodes

 

For example, like this.

apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: my-persistent-volume-claim
  namespace: foo
spec:
  accessModes:
  - ReadWriteOnce
  resources:
    requests:
      storage: 1Gi
  storageClassName: file-storage
  volumeMode: Block
  volumeName: my-persistent-volume

 




Did you find this article helpful?

If so, consider buying me a coffee over at Buy Me A Coffee



Comments


Add a Comment


Please enter 63b966 in the box below so that we can be sure you are a human.