Re: [libvirt-users] Questions about qcow2 file size management

2015-12-16 Thread Eric Blake
[Just now noticing this thread] On 10/14/2015 08:43 AM, Jérôme wrote: > Le 2015-10-14 13:27, Jérôme a écrit : > >>> TRIM is needed to indicate that space is reclaimable. This needs file >>> system support (no fat32, e.g.), and support by QEMU('s I/O driver). >>> Once Qemu is set up to accept TRIM

Re: [libvirt-users] Questions about qcow2 file size management

2015-10-14 Thread Jérôme
Le 2015-10-14 13:27, Jérôme a écrit : >> TRIM is needed to indicate that space is reclaimable. This needs file >> system support (no fat32, e.g.), and support by QEMU('s I/O driver). >> Once Qemu is set up to accept TRIM, you can either enable the discard >> mount option, or set up an fstrim cron

Re: [libvirt-users] Questions about qcow2 file size management

2015-10-14 Thread Jérôme
Le 2015-10-14 12:09, Sven Schwedas a écrit : > On 2015-10-14 11:34, Jérôme wrote: > >> In other words, can I have this on a 60Go drive? >> total 53G >> 7,4G -rw--- 1 root root 11G oct. 8 06:34 prod_151008.qcow2 >> 7,4G -rw--- 1 root root 11G oct. 9 06:37 prod_151009.qcow2 >> 7,5G -rw--

Re: [libvirt-users] Questions about qcow2 file size management

2015-10-14 Thread Sven Schwedas
On 2015-10-14 11:34, Jérôme wrote: > In other words, can I have this on a 60Go drive? > total 53G > 7,4G -rw--- 1 root root 11G oct. 8 06:34 prod_151008.qcow2 > 7,4G -rw--- 1 root root 11G oct. 9 06:37 prod_151009.qcow2 > 7,5G -rw--- 1 root root 11G oct. 10 06:41 prod_151010.qcow2

Re: [libvirt-users] Questions about qcow2 file size management

2015-10-14 Thread Jérôme
Le 2015-10-14 11:34, Jérôme a écrit : > 4/ Playing with qcow2 file sizes I just found information about this on the wiki: http://wiki.libvirt.org/page/Tips#Increasing_the_disk_size_of_a_virtual_machine I'll post specific questions if I'm stuck. Sorry for the noise. -- Jérôme ___

[libvirt-users] Questions about qcow2 file size management

2015-10-14 Thread Jérôme
Hi all. I have a few questions regarding the qcow2 format. 1/ Allocated size vs. file size When creating a VM, I indicated a size of 10 G. $ls -lsh 7,7G -rw--- 1 libvirt-qemu libvirt-qemu 11G oct. 14 10:04 prod.qcow2 The allocated size is lesser than max size. Alright. I think I more o