After resizing PV/PVC in AKS using standard LRS storage class, Artifactory > monitoring > storage section still shows old storage space. How to fix?

4/7/2021

Issue:

Need to increase the filestore size after resizing my PV but the filestore size is not changing, even if I set the PV/PVC to 800gi or 300gi, it's still stuck at 205

<!-- begin snippet: js hide: false console: true babel: false --><!-- language: lang-js -->
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: artifactory-pv-claim
  namespace: test
spec:
  accessModes:
    - ReadWriteOnce
  resources:
    requests:
      storage: 250Gi
  volumeMode: Filesystem
  storageClassName: "custom-artifactory"
<!-- end snippet -->
-- shan
artifactory
azure
azure-aks
kubernetes

1 Answer

4/8/2021

To resize the PVC, you can edit the PVC to change the storage request to ask for more space. But to make the update works, here shows the way:

File system expansion must be triggered by terminating the pod using the volume. More specifically:

Edit the PVC to request more space. Once underlying volume has been expanded by the storage provider, then the PersistentVolume object will reflect the updated size and the PVC will have the FileSystemResizePending condition.

And here is the screenshot of my test:

before change:

enter image description here

after change, but before recreate pod:

enter image description here

after recreate pod:

enter image description here

-- Charles Xu
Source: StackOverflow