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

Alexandre DERUMIER aderumier at odiso.com
Thu Jan 12 15:05:29 CET 2017


Why just forbid resizing, if we can fix it?
----- Mail original -----
De: "Dmitry Petuhov" <mityapetuhov at gmail.com>
À: "pve-devel" <pve-devel at pve.proxmox.com>
Envoyé: Jeudi 12 Janvier 2017 12:12:25
Objet: Re: [pve-devel] qemu-kvm online resize with device-backed storage

12.01.2017 14:02, Alexandre DERUMIER пишет: 
>>> 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}; 

>>Why just forbid resizing, if we can fix it? 

sorry, the correct patch is

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


the rbdplugin resize with rbd command.
when it's return, this is the qemu block_resize which is called (in QemuServer.pm)

when krbd is enabled, the rbd volume is mounted in the vm through /dev/rbd..., so it's not possible to use qemu block_resize feature.

qemu block resize feature only work for qemu block driver (rbd, sheepdog,qcow2,...) but not host devices.


_______________________________________________ 
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