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

Stefan Priebe s.priebe at profihost.ag
Sun Jul 29 09:28:43 CEST 2012


What happens if we send the same monitor command in this case? How to send a block_resize command?

Will test and answer all other mails
tonight.

Stefan

Am 29.07.2012 um 08:57 schrieb Alexandre DERUMIER <aderumier at odiso.com>:

> I've made some, it seem only possible with files (.raw, .qcow2).
> 
> using the monitor command "block_resize".
> 
> then it's resize the file online, and notify the virtio-blk driver that size is updated.
> 
> 
> I don't know if we can launch some kind of manual rescan with virtio-blk. (with scsi and virtio-scsi, we can use sysfs to rescan the scsi layer)
> 
> about the originals commit of block_resize:
> http://comments.gmane.org/gmane.comp.emulators.qemu/91126
> 
> "[PATCH 3/3] virtio-blk: tell the guest about size    changes
> 
> Raise a config change interrupt when the size changed.  This allows
> virtio-blk guest drivers to read-read the information from the
> config space once it got the config chaged interrupt."
> 
> so the question is how to generate a manual config change interrupt ?
> 
> 
> 
> 
> ----- Mail original ----- 
> 
> De: "Alexandre DERUMIER" <aderumier at odiso.com> 
> À: "Stefan Priebe" <s.priebe at profihost.ag> 
> Cc: pve-devel at pve.proxmox.com 
> Envoyé: Dimanche 29 Juillet 2012 08:31:16 
> Objet: Re: [pve-devel] online resize of virtio-blk? 
> 
> 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 
> 
> _______________________________________________ 
> 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 



More information about the pve-devel mailing list