Skip to content
This repository has been archived by the owner on May 5, 2021. It is now read-only.

Excessively large diffs #9

Closed
jskirke opened this issue Aug 3, 2018 · 2 comments
Closed

Excessively large diffs #9

jskirke opened this issue Aug 3, 2018 · 2 comments

Comments

@jskirke
Copy link

jskirke commented Aug 3, 2018

Hi ayufan,

first of all, thanks for your great contribution!
Currently, I am testing your patches for my home server / lab.

What makes me wonder is, that the diffs vary depending on the vm type depending their size.

E.g. an LXC container holding a db and some data results in megabytes up to some gigabytes while a Windows VM running as file server with ~200gb of data results in a diff of ~100gb size after a day without many changes. Qemu agent seems to run, as I can ping the VM without errors.
Is there another aspect I could have a closer look on to remedy this circumstance?

Thanks in advance!

PVE 5.2-2

@freefloris
Copy link

My method:

  1. Clean Windows
  2. Defragment the disk
  3. Create a backup
  4. Restore backup
  5. Shrink VM : https://pve.proxmox.com/wiki/Shrink_Qcow2_Disk_Files

@ayufan
Copy link
Owner

ayufan commented Feb 23, 2019

Yes, you have to shrink qcow2, or trim lvmthin storage, or fill with zeros for efficiently storing data. Otherwise, diffs gonna be large, as it will persist bloat.

@ayufan ayufan closed this as completed Feb 23, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants