[pve-devel] [PATCH qemu-server] Fix #1242 : clone_disk : call qga fstrim after clone

Alexandre DERUMIER aderumier at odiso.com
Wed May 30 07:48:16 CEST 2018


>>Shouldn't the VM internal fstrim cronjob/timer (or windows equivalent)
>>do this anyway sooner or later?
yes sure, I'm already doing it. (around 1 fstrim by week random on all my vms).
 

But sometime I can't wait (mainly for big volume).

>>I mean, although I understand your use case, this can really be a big and 
>>long operation.

yes . it's depend of the storage and free io/s available. (personnaly, I don't care, I have only ssd storage)

>>not sure if we want to do this unconditionally for qga  enabled VMs.

Yes, better if user can choose to do it or not.


>>If we actually do this I rather would go the way proposed in this thread 
>>and convert qga to an format_string, then we could convert the QGA UI 
>>dialog to a small component with checkbox(es): 

>>qga: 1,fstrim_cloned_disks=1 

sound good to me.


Regards,

Alexandre

----- Mail original -----
De: "Thomas Lamprecht" <t.lamprecht at proxmox.com>
À: "pve-devel" <pve-devel at pve.proxmox.com>, "aderumier" <aderumier at odiso.com>
Envoyé: Mercredi 30 Mai 2018 07:39:00
Objet: Re: [pve-devel] [PATCH qemu-server] Fix #1242 : clone_disk : call qga fstrim after clone

On 5/28/18 5:36 PM, Alexandre Derumier wrote: 
> Some storage like rbd or lvm can't keep thin-provising after a qemu-mirror. 
> 
> Call qga guest-fstrim if qga is available 

Shouldn't the VM internal fstrim cronjob/timer (or windows equivalent) 
do this anyway sooner or later? 

I mean, although I understand your use case, this can really be a big and 
long operation, not sure if we want to do this unconditionally for qga 
enabled VMs. 

If we actually do this I rather would go the way proposed in this thread 
and convert qga to an format_string, then we could convert the QGA UI 
dialog to a small component with checkbox(es): 

qga: 1,fstrim_cloned_disks=1 

(it could be argued what the default should be) 

Maybe we get, or even have already, some more operations regarding the 
QGA where it makes sense to have a similar approach. 

cheers, 
Thomas 




More information about the pve-devel mailing list