[pve-devel] [PATCH container] Always determine the size of the volume in volume_rescan

Thomas Lamprecht t.lamprecht at proxmox.com
Thu Dec 12 15:24:47 CET 2019


On 12/3/19 9:31 AM, Fabian Ebner wrote:
> Otherwise there is an issue when resizing a volume with pending changes:
> 1. Have a running container with a mount point
> 2. Edit the mount point and change the path
> 3. Resize the mount point
> 4. Reboot the container
> Result: the old size is written to the config.
> 
> Signed-off-by: Fabian Ebner <f.ebner at proxmox.com>
> ---
> 
> An other solution would be to disable the resize button when there are
> pending changes. This is what we do for VMs.
> 
>  src/PVE/LXC/Config.pm | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
> 

Applied with Oguz T-b, the other solution you proposed (and Oguz/Wolfgang
re-proposed ;) can be still done and could be OK, but for now I'll apply
this anyway, it makes sense to do and a rescan may be required for other
reasons than your scenario.




More information about the pve-devel mailing list