Libro sobre Proxmox maestria
Backup/restore issues
This section contains issues related to backing up and restoring Proxmox.
Chapter 9
A Proxmox VM is locked after backup crashes unexpectedly
A Proxmox VM getting locked is commonly caused after a VM backup is interrupted or crashed. Simply unlocking the VM through SSH using the following command will fix this issue:
# qm unlock <vm_id>
Backing up only the primary OS virtual disk
By default, Proxmox backup will back up all the virtual disks assigned to a VM. If we want to exclude certain virtual disks from the backup process, we only need to add the option backup=no at the end of a virtual disk line item in <vm_id>.conf, as follows.
virtio0: rbd-hdd-01: vm-101-diskl, size=80G virtio0: rbd-hdd-01: vm-101-disk2, size=200G, backup=no
In the previous example, the virtual machine has two virtual disks. Disk 1 is for the primary OS and disk 2 is for the secondary. By adding backup-no, Proxmox will skip this disk during the backup process and only back up the primary disk.
Backup of VMs stops prematurely with an 'Operation Not Permitted' error
The premature stopping of VMs' backup usually looks like the following message that is taken from the syslog of a Proxmox node:
ERROR: job failed with err -1 - Operation not permitted
INFO: aborting backup job
ERROR: Backup of VM 101 failed job failed with err -1 - Operation not permitted
The primary cause of this issue is that the backup storage has less space than the total storage required to perform a backup task. Verify the total storage space that is required for backing up the selected virtual machines.