Pod shows incorrect volume size for the PVC created from an NFS share

Solution Verified - Updated -

Issue

  • A Persistent Volume Claim of 10Gi is created out of an NFS share of size 5T. However, after mounting the PVC into the pod, the pod shows the size of NFS share instead of PVC as the available storage:
# oc rsh <pod-name>  df -h
10.230.xx.xx:/abc/xyz   nfs4            5.0T     76.3G      4.9T   1% /var/lib/rabbitmq

# oc get pvc
fleetvisibility-dev-pvc                                           Bound    pvc-b4815a9b-5eb7-4367-8374-bd41a18ec34e   10Gi       RWX            dynamic-nfs    16d

Environment

  • Red Hat OpenShift Container Platform (RHOCP)
    • 3.x
    • 4.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content