Hello,
I found a few days ago that most of my backups on some Proxmox hosts are gone.
It seems to be a bug on some of my Proxmox Hosts, but not all of them. vzdump is removing all backups when a specific VMID gets backed up.
Here is the backup log of one host where ID 161 is bugged:
Storage configuration:
Using the most recent Proxmox version:
The bug is even reproducible if VMID 161 gets backed up manually.
Setting the storage to keep all backups fixes the bug, but will never remove any backups.
Can someone please explain to me why it does this?
I found a few days ago that most of my backups on some Proxmox hosts are gone.
It seems to be a bug on some of my Proxmox Hosts, but not all of them. vzdump is removing all backups when a specific VMID gets backed up.
Here is the backup log of one host where ID 161 is bugged:
Code:
vzdump --exclude 12350 --storage backupstore --compress zstd --mailto <removed> --all 1 --quiet 1 --mailnotification always --mode snapshot
...
160: 2021-04-02 11:21:40 INFO: Starting Backup of VM 160 (lxc)
160: 2021-04-02 11:21:40 INFO: status = running
160: 2021-04-02 11:21:40 INFO: CT Name: <removed>
160: 2021-04-02 11:21:40 INFO: including mount point rootfs ('/') in backup
160: 2021-04-02 11:21:40 INFO: mode failure - some volumes do not support snapshots
160: 2021-04-02 11:21:40 INFO: trying 'suspend' mode instead
160: 2021-04-02 11:21:40 INFO: backup mode: suspend
160: 2021-04-02 11:21:40 INFO: ionice priority: 7
160: 2021-04-02 11:21:40 INFO: CT Name: <removed>
160: 2021-04-02 11:21:40 INFO: including mount point rootfs ('/') in backup
160: 2021-04-02 11:21:40 INFO: starting first sync /proc/30876/root/ to /var/lib/vz/tmp_backup/vzdumptmp27722_160/
160: 2021-04-02 11:21:45 INFO: first sync finished - transferred 1.08G bytes in 5s
160: 2021-04-02 11:21:45 INFO: suspending guest
160: 2021-04-02 11:21:45 INFO: starting final sync /proc/30876/root/ to /var/lib/vz/tmp_backup/vzdumptmp27722_160/
160: 2021-04-02 11:21:46 INFO: final sync finished - transferred 0 bytes in 1s
160: 2021-04-02 11:21:46 INFO: resuming guest
160: 2021-04-02 11:21:46 INFO: guest is online again after 1 seconds
160: 2021-04-02 11:21:46 INFO: creating vzdump archive '/mnt/pve/backupstore/dump/vzdump-lxc-160-2021_04_02-11_21_40.tar.zst'
160: 2021-04-02 11:21:50 INFO: Total bytes written: 1123921920 (1.1GiB, 225MiB/s)
160: 2021-04-02 11:21:55 INFO: archive file size: 354MB
160: 2021-04-02 11:21:55 INFO: removing backup 'backupstore:backup/vzdump-lxc-160-2021_03_28-11_21_17.tar.zst'
160: 2021-04-02 11:21:55 INFO: Finished Backup of VM 160 (00:00:15)
161: 2021-04-02 11:21:55 INFO: Starting Backup of VM 161 (lxc)
161: 2021-04-02 11:21:55 INFO: status = running
161: 2021-04-02 11:21:55 INFO: CT Name: <removed>
161: 2021-04-02 11:21:55 INFO: including mount point rootfs ('/') in backup
161: 2021-04-02 11:21:55 INFO: mode failure - some volumes do not support snapshots
161: 2021-04-02 11:21:55 INFO: trying 'suspend' mode instead
161: 2021-04-02 11:21:55 INFO: backup mode: suspend
161: 2021-04-02 11:21:55 INFO: ionice priority: 7
161: 2021-04-02 11:21:55 INFO: CT Name: <removed>
161: 2021-04-02 11:21:55 INFO: including mount point rootfs ('/') in backup
161: 2021-04-02 11:21:55 INFO: starting first sync /proc/13231/root/ to /var/lib/vz/tmp_backup/vzdumptmp27722_161/
161: 2021-04-02 11:22:04 INFO: first sync finished - transferred 2.03G bytes in 9s
161: 2021-04-02 11:22:04 INFO: suspending guest
161: 2021-04-02 11:22:04 INFO: starting final sync /proc/13231/root/ to /var/lib/vz/tmp_backup/vzdumptmp27722_161/
161: 2021-04-02 11:22:05 INFO: final sync finished - transferred 0 bytes in 1s
161: 2021-04-02 11:22:05 INFO: resuming guest
161: 2021-04-02 11:22:05 INFO: guest is online again after 1 seconds
161: 2021-04-02 11:22:05 INFO: creating vzdump archive '/mnt/pve/backupstore/dump/vzdump-lxc-161-2021_04_02-11_21_55.tar.zst'
161: 2021-04-02 11:22:13 INFO: Total bytes written: 1798000640 (1.7GiB, 220MiB/s)
161: 2021-04-02 11:22:16 INFO: archive file size: 497MB
161: 2021-04-02 11:22:16 INFO: removing backup 'backupstore:backup/vzdump-lxc-100-2021_03_29-11_00_02.tar.zst'
161: 2021-04-02 11:22:16 INFO: removing backup 'backupstore:backup/vzdump-lxc-100-2021_03_30-11_00_01.tar.zst'
161: 2021-04-02 11:22:17 INFO: removing backup 'backupstore:backup/vzdump-lxc-100-2021_03_31-11_00_02.tar.zst'
161: 2021-04-02 11:22:17 INFO: removing backup 'backupstore:backup/vzdump-lxc-100-2021_04_01-11_00_01.tar.zst'
161: 2021-04-02 11:22:17 INFO: removing backup 'backupstore:backup/vzdump-lxc-100-2021_04_02-11_00_02.tar.zst'
161: 2021-04-02 11:22:17 INFO: removing backup 'backupstore:backup/vzdump-lxc-101-2021_03_29-11_00_22.tar.zst'
161: 2021-04-02 11:22:17 INFO: removing backup 'backupstore:backup/vzdump-lxc-101-2021_03_30-11_00_21.tar.zst'
161: 2021-04-02 11:22:17 INFO: removing backup 'backupstore:backup/vzdump-lxc-101-2021_03_31-11_00_22.tar.zst'
161: 2021-04-02 11:22:17 INFO: removing backup 'backupstore:backup/vzdump-lxc-101-2021_04_01-11_00_19.tar.zst'
161: 2021-04-02 11:22:17 INFO: removing backup 'backupstore:backup/vzdump-lxc-101-2021_04_02-11_00_18.tar.zst'
161: 2021-04-02 11:22:52 INFO: removing backup 'backupstore:backup/vzdump-lxc-158-2021_03_29-11_21_09.tar.zst'
161: 2021-04-02 11:22:52 INFO: removing backup 'backupstore:backup/vzdump-lxc-158-2021_03_30-11_22_36.tar.zst'
161: 2021-04-02 11:22:52 INFO: removing backup 'backupstore:backup/vzdump-lxc-158-2021_03_31-11_21_21.tar.zst'
161: 2021-04-02 11:22:53 INFO: removing backup 'backupstore:backup/vzdump-lxc-158-2021_04_01-11_21_32.tar.zst'
161: 2021-04-02 11:22:53 INFO: removing backup 'backupstore:backup/vzdump-lxc-159-2021_03_29-11_21_27.tar.zst'
161: 2021-04-02 11:22:53 INFO: removing backup 'backupstore:backup/vzdump-lxc-159-2021_03_30-11_22_54.tar.zst'
161: 2021-04-02 11:22:53 INFO: removing backup 'backupstore:backup/vzdump-lxc-159-2021_03_31-11_21_39.tar.zst'
161: 2021-04-02 11:22:53 INFO: removing backup 'backupstore:backup/vzdump-lxc-159-2021_04_01-11_21_51.tar.zst'
161: 2021-04-02 11:22:53 INFO: removing backup 'backupstore:backup/vzdump-lxc-160-2021_03_29-11_21_41.tar.zst'
161: 2021-04-02 11:22:53 INFO: removing backup 'backupstore:backup/vzdump-lxc-160-2021_03_30-11_23_09.tar.zst'
161: 2021-04-02 11:22:53 INFO: removing backup 'backupstore:backup/vzdump-lxc-160-2021_03_31-11_21_55.tar.zst'
161: 2021-04-02 11:22:54 INFO: removing backup 'backupstore:backup/vzdump-lxc-160-2021_04_01-11_22_09.tar.zst'
161: 2021-04-02 11:22:54 INFO: removing backup 'backupstore:backup/vzdump-lxc-161-2021_03_28-11_21_27.tar.zst'
161: 2021-04-02 11:22:54 INFO: removing backup 'backupstore:backup/vzdump-lxc-161-2021_03_29-11_21_52.tar.zst'
161: 2021-04-02 11:22:54 INFO: removing backup 'backupstore:backup/vzdump-lxc-161-2021_03_30-11_23_20.tar.zst'
161: 2021-04-02 11:22:54 INFO: removing backup 'backupstore:backup/vzdump-lxc-161-2021_03_31-11_22_07.tar.zst'
161: 2021-04-02 11:22:54 INFO: removing backup 'backupstore:backup/vzdump-lxc-161-2021_04_01-11_22_21.tar.zst'
161: 2021-04-02 11:22:54 INFO: removing backup 'backupstore:backup/vzdump-lxc-162-2021_03_28-11_22_00.tar.zst'
161: 2021-04-02 11:22:54 INFO: removing backup 'backupstore:backup/vzdump-lxc-162-2021_03_29-11_22_14.tar.zst'
161: 2021-04-02 11:22:54 INFO: removing backup 'backupstore:backup/vzdump-lxc-162-2021_03_30-11_23_42.tar.zst'
161: 2021-04-02 11:22:55 INFO: removing backup 'backupstore:backup/vzdump-lxc-162-2021_03_31-11_22_28.tar.zst'
161: 2021-04-02 11:22:55 INFO: removing backup 'backupstore:backup/vzdump-lxc-162-2021_04_01-11_22_42.tar.zst'
161: 2021-04-02 11:22:55 INFO: removing backup 'backupstore:backup/vzdump-lxc-163-2021_03_29-11_22_32.tar.zst'
161: 2021-04-02 11:22:55 INFO: removing backup 'backupstore:backup/vzdump-lxc-163-2021_03_30-11_24_01.tar.zst'
161: 2021-04-02 11:22:55 INFO: removing backup 'backupstore:backup/vzdump-lxc-163-2021_03_31-11_22_47.tar.zst'
161: 2021-04-02 11:22:55 INFO: removing backup 'backupstore:backup/vzdump-lxc-163-2021_04_01-11_23_01.tar.zst'
161: 2021-04-02 11:22:55 INFO: removing backup 'backupstore:backup/vzdump-lxc-164-2021_03_28-11_22_18.tar.zst'
161: 2021-04-02 11:22:55 INFO: removing backup 'backupstore:backup/vzdump-lxc-164-2021_03_29-11_22_45.tar.zst'
161: 2021-04-02 11:22:56 INFO: removing backup 'backupstore:backup/vzdump-lxc-164-2021_03_30-11_24_13.tar.zst'
161: 2021-04-02 11:22:56 INFO: removing backup 'backupstore:backup/vzdump-lxc-164-2021_03_31-11_23_03.tar.zst'
161: 2021-04-02 11:22:56 INFO: removing backup 'backupstore:backup/vzdump-lxc-164-2021_04_01-11_23_15.tar.zst'
161: 2021-04-02 11:22:56 INFO: removing backup 'backupstore:backup/vzdump-lxc-165-2021_03_28-11_22_35.tar.zst'
161: 2021-04-02 11:22:56 INFO: removing backup 'backupstore:backup/vzdump-lxc-165-2021_03_29-11_23_02.tar.zst'
161: 2021-04-02 11:22:56 INFO: removing backup 'backupstore:backup/vzdump-lxc-165-2021_03_30-11_24_31.tar.zst'
161: 2021-04-02 11:22:56 INFO: removing backup 'backupstore:backup/vzdump-lxc-165-2021_03_31-11_23_20.tar.zst'
161: 2021-04-02 11:22:56 INFO: removing backup 'backupstore:backup/vzdump-lxc-165-2021_04_01-11_23_33.tar.zst'
161: 2021-04-02 11:22:57 INFO: removing backup 'backupstore:backup/vzdump-lxc-166-2021_03_28-11_22_48.tar.zst'
161: 2021-04-02 11:22:57 INFO: removing backup 'backupstore:backup/vzdump-lxc-166-2021_03_29-11_23_15.tar.zst'
161: 2021-04-02 11:22:57 INFO: removing backup 'backupstore:backup/vzdump-lxc-166-2021_03_30-11_24_44.tar.zst'
161: 2021-04-02 11:22:57 INFO: removing backup 'backupstore:backup/vzdump-lxc-166-2021_03_31-11_23_35.tar.zst'
161: 2021-04-02 11:22:57 INFO: removing backup 'backupstore:backup/vzdump-lxc-166-2021_04_01-11_23_46.tar.zst'
161: 2021-04-02 11:22:57 INFO: removing backup 'backupstore:backup/vzdump-lxc-167-2021_03_28-11_23_03.tar.zst'
161: 2021-04-02 11:22:57 INFO: removing backup 'backupstore:backup/vzdump-lxc-167-2021_03_29-11_23_26.tar.zst'
161: 2021-04-02 11:22:57 INFO: removing backup 'backupstore:backup/vzdump-lxc-167-2021_03_30-11_24_56.tar.zst'
161: 2021-04-02 11:22:57 INFO: removing backup 'backupstore:backup/vzdump-lxc-167-2021_03_31-11_23_47.tar.zst'
161: 2021-04-02 11:22:57 INFO: removing backup 'backupstore:backup/vzdump-lxc-167-2021_04_01-11_23_59.tar.zst'
161: 2021-04-02 11:23:20 INFO: Finished Backup of VM 161 (00:01:25)
162: 2021-04-02 11:23:20 INFO: Starting Backup of VM 162 (lxc)
162: 2021-04-02 11:23:20 INFO: status = running
162: 2021-04-02 11:23:20 INFO: CT Name: <removed>
162: 2021-04-02 11:23:20 INFO: including mount point rootfs ('/') in backup
162: 2021-04-02 11:23:20 INFO: mode failure - some volumes do not support snapshots
162: 2021-04-02 11:23:20 INFO: trying 'suspend' mode instead
162: 2021-04-02 11:23:20 INFO: backup mode: suspend
162: 2021-04-02 11:23:20 INFO: ionice priority: 7
162: 2021-04-02 11:23:20 INFO: CT Name: <removed>
162: 2021-04-02 11:23:20 INFO: including mount point rootfs ('/') in backup
162: 2021-04-02 11:23:20 INFO: starting first sync /proc/32058/root/ to /var/lib/vz/tmp_backup/vzdumptmp27722_162/
162: 2021-04-02 11:23:27 INFO: first sync finished - transferred 1.67G bytes in 7s
162: 2021-04-02 11:23:27 INFO: suspending guest
162: 2021-04-02 11:23:27 INFO: starting final sync /proc/32058/root/ to /var/lib/vz/tmp_backup/vzdumptmp27722_162/
162: 2021-04-02 11:23:27 INFO: final sync finished - transferred 67.57M bytes in 0s
162: 2021-04-02 11:23:27 INFO: resuming guest
162: 2021-04-02 11:23:27 INFO: guest is online again after <1 seconds
162: 2021-04-02 11:23:27 INFO: creating vzdump archive '/mnt/pve/backupstore/dump/vzdump-lxc-162-2021_04_02-11_23_20.tar.zst'
162: 2021-04-02 11:23:34 INFO: Total bytes written: 1594777600 (1.5GiB, 229MiB/s)
162: 2021-04-02 11:23:37 INFO: archive file size: 338MB
162: 2021-04-02 11:23:37 INFO: Finished Backup of VM 162 (00:00:17)
Storage configuration:
Code:
nfs: backupstore
export /export/ftpbackup/backupstore
path /mnt/pve/backupstore
server ftpback-...net
content backup
prune-backups keep-last=5
Using the most recent Proxmox version:
Code:
proxmox-ve: 6.3-1 (running kernel: 5.4.101-1-pve)
pve-manager: 6.3-6 (running version: 6.3-6/2184247e)
pve-kernel-5.4: 6.3-8
pve-kernel-helper: 6.3-8
pve-kernel-5.3: 6.1-6
pve-kernel-5.0: 6.0-11
pve-kernel-5.4.106-1-pve: 5.4.106-1
pve-kernel-5.4.101-1-pve: 5.4.101-1
pve-kernel-5.3.18-3-pve: 5.3.18-3
pve-kernel-5.0.21-5-pve: 5.0.21-10
ceph-fuse: 12.2.11+dfsg1-2.1+b1
corosync: 3.1.0-pve1
criu: 3.11-3
glusterfs-client: 5.5-3
ifupdown: 0.8.35+pve1
libjs-extjs: 6.0.1-10
libknet1: 1.20-pve1
libproxmox-acme-perl: 1.0.8
libproxmox-backup-qemu0: 1.0.3-1
libpve-access-control: 6.1-3
libpve-apiclient-perl: 3.1-3
libpve-common-perl: 6.3-5
libpve-guest-common-perl: 3.1-5
libpve-http-server-perl: 3.1-1
libpve-storage-perl: 6.3-7
libqb0: 1.0.5-1
libspice-server1: 0.14.2-4~pve6+1
lvm2: 2.03.02-pve4
lxc-pve: 4.0.6-2
lxcfs: 4.0.6-pve1
novnc-pve: 1.1.0-1
proxmox-backup-client: 1.0.12-1
proxmox-mini-journalreader: 1.1-1
proxmox-widget-toolkit: 2.4-9
pve-cluster: 6.2-1
pve-container: 3.3-4
pve-docs: 6.3-1
pve-edk2-firmware: 2.20200531-1
pve-firewall: 4.1-3
pve-firmware: 3.2-2
pve-ha-manager: 3.1-1
pve-i18n: 2.3-1
pve-qemu-kvm: 5.2.0-5
pve-xtermjs: 4.7.0-3
pve-zsync: 2.0-4
qemu-server: 6.3-10
smartmontools: 7.2-pve2
spiceterm: 3.1-1
vncterm: 1.6-2
zfsutils-linux: 2.0.4-pve1
The bug is even reproducible if VMID 161 gets backed up manually.
Setting the storage to keep all backups fixes the bug, but will never remove any backups.
Can someone please explain to me why it does this?