We have PBS doing daily backups of all VMs in our PVE cluster, VMs are backed by ZFS storage. Yesterday we had a problem with one VM and restored the most recent PBS backup. When booting the newly restored VM, the data on the filesystem is back at a date of a ~7 month old manual snapshot that was still present instead of the current data at the time of the PBS backup.
Here is the original VM's task list, showing that a snapshot was taken Jun 14 (2021) 11:27:28 and stayed around until it was deleted on Jan 04 (2022):
The PBS restore was done via the PVE GUI and this is the command from the task log, showing the backup from 2022-01-04 was restored:
Looking at data on the restored VM, some of the last timestamps are from Jun 14 2021 11:20:56 (~7 minutes before the manual snapshot) and then jumps to the current time on Jan 4 2022 when the VM was restored.
It appears that PBS has been backing up the old Jun 14, 2021 snapshot instead of the live VM disk, even though the backup log (below) says it is ignoring the snapshot. Restoring a different PBS backup date also restored the old June 14, 2021 snapshot instead of that day's backup.
Any ideas what might be causing this and should I file a bug report? We are on PBS 1.0-1 which is due for an upgrade, but I don't see anything similar in the release notes.
Thanks in advance.
Backup job log:
Here is the original VM's task list, showing that a snapshot was taken Jun 14 (2021) 11:27:28 and stayed around until it was deleted on Jan 04 (2022):
The PBS restore was done via the PVE GUI and this is the command from the task log, showing the backup from 2022-01-04 was restored:
Code:
/usr/bin/pbs-restore --repository xxx@pbs@ip.ip.ip.ip:backup-vmdata1 vm/264/2022-01-04T08:31:36Z drive-scsi0.img.fidx /dev/zvol/ssd1/vmdata1/vm-301-disk-0 --verbose --format raw --skip-zero
Looking at data on the restored VM, some of the last timestamps are from Jun 14 2021 11:20:56 (~7 minutes before the manual snapshot) and then jumps to the current time on Jan 4 2022 when the VM was restored.
It appears that PBS has been backing up the old Jun 14, 2021 snapshot instead of the live VM disk, even though the backup log (below) says it is ignoring the snapshot. Restoring a different PBS backup date also restored the old June 14, 2021 snapshot instead of that day's backup.
Any ideas what might be causing this and should I file a bug report? We are on PBS 1.0-1 which is due for an upgrade, but I don't see anything similar in the release notes.
Thanks in advance.
Backup job log:
Code:
INFO: Starting Backup of VM 264 (qemu)
INFO: Backup started at 2022-01-04 02:31:36
INFO: status = stopped
INFO: backup mode: stop
INFO: ionice priority: 7
INFO: VM Name: vmname
INFO: include disk 'scsi0' 'vmdata1:vm-264-disk-0' 60G
INFO: snapshots found (not included into backup)
INFO: creating Proxmox Backup Server archive 'vm/264/2022-01-04T08:31:36Z'
INFO: starting kvm to execute backup task
INFO: started backup task 'c5355c6a-aa73-4ef1-846a-bdb56712a72b'
INFO: scsi0: dirty-bitmap status: created new
INFO: 1% (728.0 MiB of 60.0 GiB) in 3s, read: 242.7 MiB/s, write: 0 B/s
INFO: 2% (1.5 GiB of 60.0 GiB) in 6s, read: 269.3 MiB/s, write: 0 B/s
INFO: 6% (3.8 GiB of 60.0 GiB) in 9s, read: 784.0 MiB/s, write: 0 B/s
[...etc...]
INFO: 100% (60.0 GiB of 60.0 GiB) in 3m 14s, read: 560.0 MiB/s, write: 0 B/s
INFO: backup is sparse: 25.36 GiB (42%) total zero data
INFO: backup was done incrementally, reused 60.00 GiB (100%)
INFO: transferred 60.00 GiB in 194 seconds (316.7 MiB/s)
INFO: stopping kvm after backup task
INFO: Finished Backup of VM 264 (00:03:18)