Search code examples
azurekubernetesartifactoryazure-aks

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


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

apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: artifactory-pv-claim
  namespace: test
spec:
  accessModes:
    - ReadWriteOnce
  resources:
    requests:
      storage: 250Gi
  volumeMode: Filesystem
  storageClassName: "custom-artifactory"


Solution

  • 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