vzdump mailnotification

Stefan Radman stefan.radman at me.com
Wed Nov 29 00:23:41 CET 2023


I recently upgraded from PVE 8.0 to 8.1 and ever since started receiving emails for successful backup jobs, even though I configured the job to only send emails when a backup fails.

The backup job was configured in the GUI:
Node: — All —
Storage: pbs
Schedule: 21:00
Selection mode: All
Notification mode: Default (Auto)
Send email: On failure only
Send email to:
Mode: Snapshot
Enable: Yes
Job comment: Daily backup

The backup job completes sucessfully but the email is sent anyway.

Has any one else seen that?

How do I configure backup jobs in PVE 8.1 to only send emails when a backup job fails?

Stefan

Logs

vzdump --mode snapshot --storage pbs --mailnotification failure --all 1 --quiet 1 --notes-template '{{guestname}}'

100: 2023-11-28 21:00:09 INFO: Starting Backup of VM 100 (qemu)
100: 2023-11-28 21:00:09 INFO: status = running
100: 2023-11-28 21:00:09 INFO: VM Name: vm100
100: 2023-11-28 21:00:09 INFO: include disk 'scsi0' 'ssd:vm-100-disk-0' 1G
100: 2023-11-28 21:00:09 INFO: include disk 'scsi1' 'ssd:vm-100-disk-1' 75G
100: 2023-11-28 21:00:09 INFO: include disk 'scsi2' 'ssd:vm-100-disk-2' 100G
100: 2023-11-28 21:00:09 INFO: include disk 'scsi3' 'hdd:vm-100-disk-0' 1000G
100: 2023-11-28 21:00:11 INFO: backup mode: snapshot
100: 2023-11-28 21:00:11 INFO: ionice priority: 7
100: 2023-11-28 21:00:11 INFO: creating Proxmox Backup Server archive 'vm/100/2023-11-28T18:00:09Z'
100: 2023-11-28 21:00:11 INFO: issuing guest-agent 'fs-freeze' command
100: 2023-11-28 21:00:12 INFO: issuing guest-agent 'fs-thaw' command
100: 2023-11-28 21:00:12 INFO: started backup task '748b3551-d4ba-4973-8bbb-aa6e9bc6252d'
100: 2023-11-28 21:00:12 INFO: resuming VM again
100: 2023-11-28 21:00:12 INFO: scsi0: dirty-bitmap status: OK (8.0 MiB of 1.0 GiB dirty)
100: 2023-11-28 21:00:12 INFO: scsi1: dirty-bitmap status: OK (1.5 GiB of 75.0 GiB dirty)
100: 2023-11-28 21:00:12 INFO: scsi2: dirty-bitmap status: OK (21.3 GiB of 100.0 GiB dirty)
100: 2023-11-28 21:00:12 INFO: scsi3: dirty-bitmap status: OK (8.1 GiB of 1000.0 GiB dirty)
100: 2023-11-28 21:00:12 INFO: using fast incremental mode (dirty-bitmap), 31.0 GiB dirty of 1.1 TiB total
100: 2023-11-28 21:00:15 INFO:   0% (288.0 MiB of 31.0 GiB) in 3s, read: 96.0 MiB/s, write: 96.0 MiB/s
…
100: 2023-11-28 21:05:01 INFO: 100% (31.0 GiB of 31.0 GiB) in 4m 49s, read: 34.7 MiB/s, write: 33.3 MiB/s
100: 2023-11-28 21:05:01 INFO: Waiting for server to finish backup validation...
100: 2023-11-28 21:05:13 INFO: backup was done incrementally, reused 1.12 TiB (97%)
100: 2023-11-28 21:05:13 INFO: transferred 31.02 GiB in 301 seconds (105.5 MiB/s)
100: 2023-11-28 21:05:13 INFO: adding notes to backup
100: 2023-11-28 21:05:13 INFO: Finished Backup of VM 100 (00:05:04)

101: 2023-11-28 21:05:13 INFO: Starting Backup of VM 101 (qemu)
101: 2023-11-28 21:05:13 INFO: status = running
101: 2023-11-28 21:05:13 INFO: VM Name: vm101
101: 2023-11-28 21:05:13 INFO: include disk 'scsi0' 'ssd:vm-101-disk-0' 75G
101: 2023-11-28 21:05:13 INFO: include disk 'scsi1' 'hdd:vm-101-disk-1' 25G
101: 2023-11-28 21:05:14 INFO: backup mode: snapshot
101: 2023-11-28 21:05:14 INFO: ionice priority: 7
101: 2023-11-28 21:05:14 INFO: creating Proxmox Backup Server archive 'vm/101/2023-11-28T18:05:13Z'
101: 2023-11-28 21:05:14 INFO: issuing guest-agent 'fs-freeze' command
101: 2023-11-28 21:05:19 INFO: issuing guest-agent 'fs-thaw' command
101: 2023-11-28 21:05:19 INFO: started backup task '67f7605f-b577-4f21-a162-bd6113215fc1'
101: 2023-11-28 21:05:19 INFO: resuming VM again
101: 2023-11-28 21:05:19 INFO: scsi0: dirty-bitmap status: OK (16.2 GiB of 75.0 GiB dirty)
101: 2023-11-28 21:05:19 INFO: scsi1: dirty-bitmap status: OK (16.0 MiB of 25.0 GiB dirty)
101: 2023-11-28 21:05:19 INFO: using fast incremental mode (dirty-bitmap), 16.2 GiB dirty of 100.0 GiB total
101: 2023-11-28 21:05:22 INFO:   2% (372.0 MiB of 16.2 GiB) in 3s, read: 124.0 MiB/s, write: 124.0 MiB/s
…
101: 2023-11-28 21:07:13 INFO: 100% (16.2 GiB of 16.2 GiB) in 1m 54s, read: 97.3 MiB/s, write: 84.0 MiB/s
101: 2023-11-28 21:07:13 INFO: Waiting for server to finish backup validation...
101: 2023-11-28 21:07:24 INFO: backup is sparse: 216.00 MiB (1%) total zero data
101: 2023-11-28 21:07:24 INFO: backup was done incrementally, reused 89.19 GiB (89%)
101: 2023-11-28 21:07:24 INFO: transferred 16.23 GiB in 125 seconds (132.9 MiB/s)
101: 2023-11-28 21:07:24 INFO: adding notes to backup
101: 2023-11-28 21:07:24 INFO: Finished Backup of VM 101 (00:02:11)

103: 2023-11-28 21:07:24 INFO: Starting Backup of VM 103 (qemu)
103: 2023-11-28 21:07:24 INFO: status = running
103: 2023-11-28 21:07:24 INFO: VM Name: vm103
103: 2023-11-28 21:07:24 INFO: include disk 'scsi0' 'ssd:vm-103-disk-0' 1G
103: 2023-11-28 21:07:24 INFO: include disk 'scsi1' 'ssd:vm-103-disk-1' 50G
103: 2023-11-28 21:07:24 INFO: include disk 'scsi2' 'ssd:vm-103-disk-2' 100G
103: 2023-11-28 21:07:25 INFO: backup mode: snapshot
103: 2023-11-28 21:07:25 INFO: ionice priority: 7
103: 2023-11-28 21:07:25 INFO: creating Proxmox Backup Server archive 'vm/103/2023-11-28T18:07:24Z'
103: 2023-11-28 21:07:25 INFO: issuing guest-agent 'fs-freeze' command
103: 2023-11-28 21:07:26 INFO: issuing guest-agent 'fs-thaw' command
103: 2023-11-28 21:07:26 INFO: started backup task 'c291f53f-3352-4df1-b3a7-a81975af5e8b'
103: 2023-11-28 21:07:26 INFO: resuming VM again
103: 2023-11-28 21:07:26 INFO: scsi0: dirty-bitmap status: OK (8.0 MiB of 1.0 GiB dirty)
103: 2023-11-28 21:07:26 INFO: scsi1: dirty-bitmap status: OK (824.0 MiB of 50.0 GiB dirty)
103: 2023-11-28 21:07:26 INFO: scsi2: dirty-bitmap status: OK (6.0 GiB of 100.0 GiB dirty)
103: 2023-11-28 21:07:26 INFO: using fast incremental mode (dirty-bitmap), 6.8 GiB dirty of 151.0 GiB total
103: 2023-11-28 21:07:29 INFO:   4% (288.0 MiB of 6.8 GiB) in 3s, read: 96.0 MiB/s, write: 96.0 MiB/s
…
103: 2023-11-28 21:08:36 INFO: 100% (6.8 GiB of 6.8 GiB) in 1m 10s, read: 69.3 MiB/s, write: 66.7 MiB/s
103: 2023-11-28 21:08:36 INFO: Waiting for server to finish backup validation...
103: 2023-11-28 21:08:48 INFO: backup was done incrementally, reused 144.76 GiB (95%)
103: 2023-11-28 21:08:48 INFO: transferred 6.80 GiB in 82 seconds (85.0 MiB/s)
103: 2023-11-28 21:08:48 INFO: adding notes to backup
103: 2023-11-28 21:08:48 INFO: Finished Backup of VM 103 (00:01:24)

root at pve:~# pveversion  -v
proxmox-ve: 8.1.0 (running kernel: 6.5.11-4-pve)
pve-manager: 8.1.3 (running version: 8.1.3/b46aac3b42da5d15)
proxmox-kernel-helper: 8.0.9
proxmox-kernel-6.5.11-4-pve-signed: 6.5.11-4
proxmox-kernel-6.5: 6.5.11-4
pve-kernel-5.4: 6.4-7
proxmox-kernel-6.2.16-19-pve: 6.2.16-19
proxmox-kernel-6.2: 6.2.16-19
pve-kernel-5.13.19-1-pve: 5.13.19-3
pve-kernel-5.4.143-1-pve: 5.4.143-1
pve-kernel-5.4.34-1-pve: 5.4.34-2
ceph-fuse: 16.2.11+ds-2
corosync: 3.1.7-pve3
criu: 3.17.1-2
glusterfs-client: 10.3-5
ifupdown: residual config
ifupdown2: 3.2.0-1+pmx7
ksm-control-daemon: 1.4-1
libjs-extjs: 7.0.0-4
libknet1: 1.28-pve1
libproxmox-acme-perl: 1.5.0
libproxmox-backup-qemu0: 1.4.0
libproxmox-rs-perl: 0.3.1
libpve-access-control: 8.0.7
libpve-apiclient-perl: 3.3.1
libpve-common-perl: 8.1.0
libpve-guest-common-perl: 5.0.6
libpve-http-server-perl: 5.0.5
libpve-network-perl: 0.9.4
libpve-rs-perl: 0.8.7
libpve-storage-perl: 8.0.5
libqb0: 1.0.5-1
libspice-server1: 0.15.1-1
lvm2: 2.03.16-2
lxc-pve: 5.0.2-4
lxcfs: 5.0.3-pve3
novnc-pve: 1.4.0-3
proxmox-backup-client: 3.0.4-1
proxmox-backup-file-restore: 3.0.4-1
proxmox-kernel-helper: 8.0.9
proxmox-mail-forward: 0.2.2
proxmox-mini-journalreader: 1.4.0
proxmox-offline-mirror-helper: 0.6.2
proxmox-widget-toolkit: 4.1.3
pve-cluster: 8.0.5
pve-container: 5.0.8
pve-docs: 8.1.3
pve-edk2-firmware: 4.2023.08-2
pve-firewall: 5.0.3
pve-firmware: 3.9-1
pve-ha-manager: 4.0.3
pve-i18n: 3.1.2
pve-qemu-kvm: 8.1.2-4
pve-xtermjs: 5.3.0-2
qemu-server: 8.0.10
smartmontools: 7.3-pve1
spiceterm: 3.3.0
swtpm: 0.8.0+pve1
vncterm: 1.8.0
zfsutils-linux: 2.2.0-pve3




More information about the pve-user mailing list