vzdump appears to be slowing down VM IO

SagnikS

Well-Known Member
Feb 23, 2018
42
2
48
23
When trying to backup a large VM to a remote server using vzdump (snapshot mode), the writes on the VM appear to be slowed down greatly. Are disk writes affected (maybe writes are slowed down during a backup) when a backup is in progress, to maintain consistency?
 
When trying to backup a large VM to a remote server using vzdump (snapshot mode), the writes on the VM appear to be slowed down greatly. Are disk writes affected (maybe writes are slowed down during a backup) when a backup is in progress, to maintain consistency?
Yes, it need a consistent filesystem state, which often requires QEMU Guest Agent to be running. Backup to a local Proxmox Backup Server (and sync to a remote one separately) if you want less slow down.
 
  • Like
Reactions: SagnikS
I back up several VMs few times a day to the PBS server without much of a slowdown regardless of VM size. The storage is all ZFS with scheduled replication. If you're using CEPH yes it will slow the VMs down a bit during backups.
 
  • Like
Reactions: SagnikS
My storage is regular raw files on a EXT4 partition. I'm primarily curious if disk writes are hijacked to write to both the backup and the actual disk, as limited bandwidth seems to aggravate this.
 
My storage is regular raw files on a EXT4 partition. I'm primarily curious if disk writes are hijacked to write to both the backup and the actual disk, as limited bandwidth seems to aggravate this.
Putting them on ZFS storage will help a great deal as it will make use of ZFS snapshots. And then the backups will save the snapshots without affecting the VMs much. So give that a try. Also, definitely make sure qemu agent is installed as it will coordinate the internal snapshot of the VM during backups.
 
Last edited:
  • Like
Reactions: SagnikS
I'm primarily curious if disk writes are hijacked to write to both the backup and the actual disk
Yes, to do a consistent backup, new writes must not go into the backup and therefore need to be saved somewhere else.
Are disk writes affected (maybe writes are slowed down during a backup) when a backup is in progress, to maintain consistency?
Yes, the new writes needs to be delayed and buffered in order to do a consistent backup of the old data.
In short: Yes, you are right. Writes are diverted to ensure consistency of the backup. And yes, this will probably cause slowdowns. Whether it be because of increased memory usage or because data needs to be stored separately instead of overwriting existing data.
 
Last edited:
  • Like
Reactions: SagnikS

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!