qemu-server 6.1-6 / Hot resize not working

Kipawa

New Member
Mar 2, 2020
3
0
1
45
Hi !

I have 20 Proxmox v6.1 in cluster with GlusterFS 7.2. Since last qemu-server (6.1-6) and pve-qemu-kvm (4.1.1-3), I can't hot resize virtual disk VM. I try with qcow2 and raw, on local storage or GlusterFS storage : same issue. It's working with LVM storage.

A resize request is:

- In the best of cases, not processed by Proxmox and the resized virtual machine system does not see the new size of the disk.

- In the worst case, not processed by Proxmox but the virtual machine system sees the new disk size (while the virtual disk has not been extended). File system corruption in the event of an increase in the partition on the VM is to be expected. If the virtual machine system sees the new disk size, I fix the problem with "qm rescan --vmid xxx" on Proxmox. Sometimes, it's working, sometimes not. It's really random.

Resize request show no error on web client and command line. I don't see any error on /var/log/.

I don't have this issue with Proxmox v6.1 in cluster with GlusterFS 7.2, qemu-server 6.1-5 and pve-qemu-kvm 4.1.1-2.

I see in qemu-server 6.1-6 changelog :
"resize volume: always request new size from storage after resizing"

Bug reported on Proxmox bugzilla : https://bugzilla.proxmox.com/show_bug.cgi?id=2621

Do you have any idea how to fix the problem manually?

Thanks,

Kipawa
 
Were you able to resolve the issue in the end? I could only see the last message from Fabian, in the bug report.
 
Hi !

I ended up figuring out how to fix my problem temporarily. When I create a GlusterFS cluster, I use certain options, recommended by Red Hat. In particular : performance.stat-prefetch: off

If I remove this option, the resizing errors are no longer present.