[pve-devel] qemu-kvm online resize with device-backed storage

Alexandre DERUMIER aderumier at odiso.com
Thu Jan 12 12:06:36 CET 2017


>>Seem to be a regression in proxmox, because we don't do it before.

oh sorry, we had fixed it for snapshot, but not resize yet



----- Mail original -----
De: "Alexandre Derumier" <aderumier at odiso.com>
À: "pve-devel" <pve-devel at pve.proxmox.com>
Envoyé: Jeudi 12 Janvier 2017 12:02:34
Objet: Re: [pve-devel] qemu-kvm online resize with device-backed storage

>>I think because of this resize is failing for CEPH with krbd enabled 

qemu block resize can't work with krbd, only librbd. 

Seem to be a regression in proxmox, because we don't do it before. 

we can add in 

/usr/share/perl5/PVE/Storage/RBDPlugin.pm 
sub volume_resize { 

return 1 if $running || $scfg->{krbd}; 






----- Mail original ----- 
De: "Dmitry Petuhov" <mityapetuhov at gmail.com> 
À: "pve-devel" <pve-devel at pve.proxmox.com> 
Envoyé: Jeudi 12 Janvier 2017 11:40:12 
Objet: [pve-devel] qemu-kvm online resize with device-backed storage 

Hello. 

Looks like PVE's qemu is affected by bug 
https://bugzilla.redhat.com/show_bug.cgi?id=1070531 

I think because of this resize is failing for CEPH with krbd enabled 
(seen several reports on forum). It also affects my custom DELL plugin. 

After backing device is resized, I had error "qmp command 'block_resize' 
failed - Could not resize: Invalid argument". Manual qmp command also 
failed: 
# block_resize drive-scsi1 16492674416640 
Could not resize: Invalid argument 

Surprisingly, 
# block_resize drive-scsi1 15T 

done job. 

Just tested (in another machine) with megabytes instead of terabytes, 
also works OK: 
# block_resize drive-scsi0 8603566080 
Could not resize: Invalid argument 

# block_resize drive-scsi0 8205M 

So maybe we could do something like 
- vm_mon_cmd($vmid, "block_resize", device => $deviceid, size => 
int($size)); 
+ vm_mon_cmd($vmid, "block_resize", device => $deviceid, size => 
ceil($size/1024/1024) . "M"); 
in PVE::QemuServer::qemu_block_resize() as workaround? 


_______________________________________________ 
pve-devel mailing list 
pve-devel at pve.proxmox.com 
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel 

_______________________________________________ 
pve-devel mailing list 
pve-devel at pve.proxmox.com 
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel 




More information about the pve-devel mailing list