[pve-devel] online resize of virtio-blk?

Alexandre DERUMIER aderumier at odiso.com
Sun Jul 29 14:29:50 CEST 2012


oh, thanks about that. 


I have done test in the past, and I had always problem. 


Do you know in which kernel version this patch is applied ? 

----- Mail original -----

De: "Stefan Priebe" <s.priebe at profihost.ag> 
À: "Alexandre DERUMIER" <aderumier at odiso.com> 
Cc: pve-devel at pve.proxmox.com 
Envoyé: Dimanche 29 Juillet 2012 12:09:56 
Objet: Re: [pve-devel] online resize of virtio-blk? 

this works fine, wenn the disk is not mounted. if it is mounted you need 
this kernel patch in guest system: 

http://markmail.org/thread/brnvz2kzjyqg4kay#query:+page:1+mid:brnvz2kzjyqg4kay+state:results 

Otherwise fdisk and blockdev still thinks the disk is smaller. 

Stefan 
Am 29.07.2012 11:57, schrieb Alexandre DERUMIER: 
> oh great to know :) 
> 
> what happen if block_resize drive-virtio0 XXG is different that real 
> lvm disk size ? 
> 
> 
> ------------------------------------------------------------------------ 
> *De: *"Stefan Priebe" <s.priebe at profihost.ag> 
> *À: *"Alexandre DERUMIER" <aderumier at odiso.com> 
> *Cc: *pve-devel at pve.proxmox.com 
> *Envoyé: *Dimanche 29 Juillet 2012 11:39:56 
> *Objet: *Re: [pve-devel] online resize of virtio-blk? 
> 
> Hello, 
> 
> it works perfectly this way: 
> 
> lvextend -L ${newsize}G /dev/pve/vm-100-disk-1 
> 
> ~# qm monitor 100 
> Entering Qemu Monitor for VM 100 - type 'help' for help 
> qm> block_resize drive-virtio0 30G 
> qm> quit 
> 
> in VM: 
> dmesg shows: 
> [53925.713083] virtio_blk virtio0: new size: 62914560 512-byte logical 
> blocks (32.2 GB/30.0 GiB) 
> 
> Stefan 
> Am 29.07.2012 08:31, schrieb Alexandre DERUMIER: 
> > i'm not sure it's possible with virtio-blk. 
> > 
> > virtio-scsi seem to support it in qemu git. 
> > 
> > I'll make some tests today with .raw files to see what is possible. 
> > 
> > 
> > 
> > BTW, I would like to implement resize of volume in proxmox for the 
> future, could you describe how to resize an lvm device ? 
> > 
> > 
> > ----- Mail original ----- 
> > 
> > De: "Stefan Priebe" <s.priebe at profihost.ag> 
> > À: pve-devel at pve.proxmox.com 
> > Envoyé: Samedi 28 Juillet 2012 21:58:42 
> > Objet: [pve-devel] online resize of virtio-blk? 
> > 
> > Hello list, 
> > 
> > is online resizing of virtio blk devices supported? It seems Redhat 
> > itself supports it: 
> > https://bugzilla.redhat.com/show_bug.cgi?id=648594 
> > 
> > I've resized the LVM block device outside of the VM but inside the VM 
> > i've no idea how to get the new size. 
> > 
> > Stefan 
> > _______________________________________________ 
> > pve-devel mailing list 
> > pve-devel at pve.proxmox.com 
> > http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel 
> > 
> > 
> > 
> 
> 
> 
> -- 
> 
> 
> 
> *Alexandre **D**e**rumier* 
> 
> *Ingénieur Systèmes et Réseaux* 
> 
> *Fixe : *03 20 68 88 85 
> 
> *Fax : *03 20 68 90 88 
> 
> 45 Bvd du Général Leclerc 59100 Roubaix 
> 12 rue Marivaux 75002 Paris 
> 
> 
> 



-- 



	
Alexandre D e rumier 
Ingénieur Systèmes et Réseaux 

Fixe : 03 20 68 88 85 

Fax : 03 20 68 90 88 

45 Bvd du Général Leclerc 59100 Roubaix 
12 rue Marivaux 75002 Paris 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.proxmox.com/pipermail/pve-devel/attachments/20120729/7da795cc/attachment.htm>


More information about the pve-devel mailing list