Unsetting size
property does not change block based volume's sizes
#14838
Labels
Maybe
Undecided whether in scope for the project
Summary
Unsetting
size
never resizes block based volumes filesystem volumes and block type volumes.This applies both to instance volumes, by unsetting the
size
on the disk device throughlxc config device unset inst root size
, and to custom volumes, by unsetting itssize
property throughlxc storage volume unset pool vol size
. In both cases, setting such property doesn't resize the volume and only unsets the config key, masking the instance's real size.Although a logical behavior, this could raise a lot of complexity:
For this reason I dont think we should apply this change at this time.
Also, block volumes currently can not be shrunk this would only really be useful in a handful of scenarios. This issue aims to raise discussion on whether we want to keep this behavior or we want to resize volumes in such scenarios. This PR has a proposed method to resize on such cases, assuming we want to go that route.
The text was updated successfully, but these errors were encountered: