PBS self-backup fail and success

logui

Member
Feb 22, 2024
84
11
8
I am running PBS as a VM in Proxmox, I have a cluster with 3 nodes, and PBS in running on one of them, I have an external USB drive with USB passthrough to the VM, everything works fine, backing up all the different VMs across all nodes in the cluster.

Today I tried to backup the PBS VM, I know, it sounds non-sense, but I wanted to try, in theory If the backup process takes a Snapshot of the VM without doing anything to it, it should work.

Initially it failed when issuing the quest-agent 'fs-freeze' command, that makes sense, because while backing up the PBS VM, itself (PBS VM) received an instruction to freeze itself, and that broke the backup process, no issues here.

Then I decided to remove the qemu-guest-agent from the PBS VM and try again, in this scenario the backup of the PBS VM on PBS worked fine, because a Snapshot was taken without impacting the running PBS VM.

So, my question is, please could you explain what is happening here? Are my assumptions (as described above) correct? Is everything working as per design? Should I do it differently? Thank you
 
for VMs, there is no actual snapshot that is being taken - Qemu is instructed to handle writes differently, intercepting them before hitting the guest volumes. how exactly this works depends on the guest and backup settings, but backing up a VM that is itself the backup target doesn't work, because there is a short time at the start of the backup where the VM's I/O is basically paused or even execution suspended entirely.
 
  • Like
Reactions: Johannes S
yes, container backup and VM backup work very differently. for containers it does also depend on the backup mode though - a stop mode backup will still be rather hard ;)
 

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!