Interpreting failed backup log

MattE

Member
Jan 12, 2018
20
1
8
43
Hi, I'd appreciate some helping figuring out why the backup on two of my VMs failed. I've attached a copy of the backup log. The two VMs that failed were not running and the two that succeeded were running. The backup job is configured to use Snapshot mode on all the VMs. I see that it tries to start the two VMs that failed before running the backup. Why is that? Is that a result of snapshot mode? I had expected any VM that wasn't running would easily backup. I also see the Cannot allocate memory errors and I'm not sure what that pertains to because I can manually start the VMs just fine and run all 4 simultaneously. Then I'm only using 8GB of 23.5GB total RAM and my backup destination also has 2.5TB free.
 

Attachments

  • failed backup.txt
    20.8 KB · Views: 27
So I left the two previously stopped VMs running overnight and scheduled another backup attempt and this time it worked to backup all 4 running VMs. So, then my question is, what backup mode should I use to handle both running and stopped VMs?
 
Are you using dynamic (balloon) memory for the VM configs, and/or combination with ZFS pool?

This might help:

https://forum.proxmox.com/threads/kvm-cannot-allocate-memory.13914/#post-118664

The solution in was make sure the sum total of all VM config memory (not actual used memory) did not exceed physical memory.
So if you have 4VMs each with dynamic (balloon) memory 4GB-8GB, that's 32GB total, which is over your 24GB physical. If you are using ZFS pool, expect that to take additional memory.

It was an older post, perhaps try dist-upgrade to the latest version of ProxMox, but make sure to full backup your VM's first (stopped), and also the data within those VM's.
 
I am running v 5.1-43 and all my VMs are set to a fix, non-ballooning amount.
 
I'm using an internal WD 4TB Black mounted in Proxmox. Checking SMART data shows no abnormalities. I have now had a regularly scheduled backup that was successful on all my VMs, even the ones turned off so I don't know why the first attempt failed.
 
That's good to hear. BTW this post might better explain the snapshot vs stop modes when doing full backups:

https://forum.proxmox.com/threads/backup-vs-snapshot.24332/#post-122684

also

https://wiki.qemu.org/Features/Snapshots
https://pve.proxmox.com/wiki/Backup_and_Restore


"Creating snapshots through the QEMU live snapshot commands allow for incremental guest image files to be created, with each image file containing differences from its parent backing file."

As I understand it, the first time snapshot is run it does a full backup, and then subsequent snapshots are the "differential" differences between the last full backup (parent backing file) and the current state of the VM. For example, I have 1 full backup (via first snapshot), and I do another snapshot before updating/adding software inside the VM (I'll label the new snapshot "current state of my VM before installing new updates"). Now after I updated software inside the VM, it turns out the update corrupted it, and now I want to go back to previous state before installing updates. So I choose the last snapshot and click restore, and is restored to the previous state when I took the snapshot.

Now if you have multiple snapshots, you can go back to any point in time when the snapshot was made. But beware this will be like a time machine, and restore it to that snapshot's state.

BTW I always recommend that snapshots/vm backups alone by themselves are not a good backup strategy. I recommend a multi-prong approach to backups

Backup data within the VM itself, backup the VM itself, and use 321 backup strategies for both:
https://www.backblaze.com/blog/the-3-2-1-backup-strategy/

cheers!
 
As I understand it, the first time snapshot is run it does a full backup, and then subsequent snapshots are the "differential" differences between the last full backup (parent backing file) and the current state of the VM. For example, I have 1 full backup (via first snapshot), and I do another snapshot before updating/adding software inside the VM (I'll label the new snapshot "current state of my VM before installing new updates"). Now after I updated software inside the VM, it turns out the update corrupted it, and now I want to go back to previous state before installing updates. So I choose the last snapshot and click restore, and is restored to the previous state when I took the snapshot.

I think in this case, you are referring to the VM's snapshot feature, whereas in Backup and Restore, snapshot mode just means the VM backup is done live instead of stopping and restarting the VM.
 
  • Like
Reactions: GadgetPig
@MattE you are correct sir! I wish the terminology in the 'backup' section was changed to "live mode" instead of snapshot mode
 

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!