OpenShift - List Persistent Volume Claims using the oc get pvc command

If you are not familiar with the oc command, refer to OpenShift - Getting Started with the oc command.

The oc get pvc command will return the list of persistent volume cliams.

~]$ oc get pvc
NAME     STATUS    VOLUME      CAPACITY   ACCESS MODES   STORAGECLASS               AGE
pvc001   Bound     volume001   4Gi        RWO            glusterfs-registry-block   1y
pvc002   Bound     volume002   4Gi        RWO            glusterfs-registry-block   1y
pvc003   Bound     volume003   4Gi        RWO            glusterfs-registry-block   1y

 

Or a single persistent volume claim can be returned.

~]$ oc get pvc pvc001
NAME     STATUS    VOLUME      CAPACITY   ACCESS MODES   STORAGECLASS               AGE
pvc001   Bound     volume001   4Gi        RWO            glusterfs-registry-block   1y

 

The -A o --all-namespaces flag can be used to return every persistent volume claim in every namespace.

oc get pvc --all-namespaces

 

 



Add a Comment




We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.





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




Comments

Web design by yours truely - me, myself, and I   |   jeremy.canfield@freekb.net   |