<p>I've created GCP's disk form a snapshot and now I'm trying to resize it using PVC in kubernetes: 100GB -&gt; 400GB. I've applied:</p>
<pre><code>apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
  name: restored-resize
parameters:
  type: pd-standard
provisioner: kubernetes.io/gce-pd
allowVolumeExpansion: true
reclaimPolicy: Retain
---
apiVersion: v1
kind: PersistentVolume
metadata:
  name: restored-graphite
spec:
  storageClassName: restored-resize
  capacity:
    storage: 400G
  accessModes:
    - ReadWriteOnce
  gcePersistentDisk:
    pdName: dev-restored-graphite
    fsType: ext4
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: restored-graphite
spec:
  # It's necessary to specify &quot;&quot; as the storageClassName
  # so that the default storage class won't be used, see
  # https://kubernetes.io/docs/concepts/storage/persistent-volumes/#class-1
  storageClassName: restored-resize
  volumeName: restored-graphite
  accessModes:
    - ReadWriteOnce
  resources:
    requests:
      storage: 400G
</code></pre>
<p>Status in PVC shows 400G:</p>
<pre><code>(...)
status:
  accessModes:
  - ReadWriteOnce
  capacity:
    storage: 400G
  phase: Bound
</code></pre>
<p>However pod mounts previous disk value:</p>
<pre><code>/dev/sdc                 98.4G     72.8G     25.6G  74% /opt/graphite/storage
</code></pre>
<p>What am I doing wrong?</p>

sacherus
<p>To me seems that you have setted 400G directly on the manifest, but as the manual said, you should had edited only</p>
<pre><code>resources:
    requests:
      storage: 400G
</code></pre>
<p><a href="https://kubernetes.io/blog/2018/07/12/resizing-persistent-volumes-using-kubernetes/" rel="nofollow noreferrer">https://kubernetes.io/blog/2018/07/12/resizing-persistent-volumes-using-kubernetes/</a></p>
<p>and those, triggering the new condition: <code>FileSystemResizePending</code></p>
<p>As of Kubernetes v1.11, those PVC will autoresize in time after some time in this status, due to that, you shouldn't even have to restart the pod bounded to the pc.</p>
<p>But, again on your problem: i would edit this way the manifes:</p>
<pre><code>spec:
  storageClassName: restored-resize
  capacity:
    storage: 100G
</code></pre>
<p>in order for the system to reload the old config and notice that the situation is not as he thinks.
or at least, that is what i would try (on another environment, not production for sure.)</p>
