local-path-provisioner icon indicating copy to clipboard operation
local-path-provisioner copied to clipboard

Does the local-path storageclass support AllowVolumeExpansion or dynamic resize/expansion the PVC?

Open walk1ng opened this issue 5 years ago • 6 comments

If it support, could you please figure out how to do this? I have a try to edit the local-path storageclass to add the below:

allowVolumeExpansion: true

then I edit the PVC created from local-path storageclass to update the spec.resources.requests.storage to larger size, edit successfully but the capacity size is not change/expansion, any mistake here?

Thanks a lot!

walk1ng avatar Jul 22 '20 01:07 walk1ng

I may be wrong, but this is ignored when using in PV. Also, briefly looking at source, I did not find any reconciliation mechanism in local-path-provisioner when a storageClass is updated which indicates this is not updated.

frederiko avatar Aug 05 '20 20:08 frederiko

Local Path Provisioner doesn't take PVC size into consideration, since it's backed by a directory on the node. So there is no quota/enforcement for the volume size.

yasker avatar Aug 05 '20 21:08 yasker

@yasker Sorry for my ignorance, but does it mean when I request 1G my database or so can also have 5G?

timvol avatar Jun 23 '21 18:06 timvol

@yasker Sorry for my ignorance, but does it mean when I request 1G my database or so can also have 5G?

it means that it can have up to the full storage capacity of the node the volume is created on

cstruck avatar Apr 06 '22 09:04 cstruck