pimox / pimox7

Proxmox V7 for Raspberry Pi
1.71k stars 156 forks source link

LXC snapshot fails in snapshot/suspend, works in Stop Mode #97

Open cvocvo opened 2 years ago

cvocvo commented 2 years ago

Sort of an odd issue; I have an LXC Debian container and it fails to do backups when the mode is set to Snapshot. It tries to fall back to Suspend mode but eventually that fails. I was successful in running a backup in Stop mode, but that's not ideal as it turns the container off for a period of time.

Any ideas? Thank you for any help!

Backup log (notice that there isn't any issue with a full VM running a snapshot backup):

INFO: starting new backup job: vzdump 101 100 --prune-backups 'keep-last=4' --mailnotification always --compress zstd --all 0 --mode snapshot --node raspi4 --mailto {redacted} --storage nas-pimox7
INFO: Starting Backup of VM 100 (lxc)
INFO: Backup started at 2022-09-05 14:48:37
INFO: status = running
INFO: CT Name: raspihole
INFO: including mount point rootfs ('/') in backup
INFO: mode failure - some volumes do not support snapshots
INFO: trying 'suspend' mode instead
INFO: backup mode: suspend
INFO: ionice priority: 7
INFO: CT Name: raspihole
INFO: including mount point rootfs ('/') in backup
INFO: temporary directory is on NFS, disabling xattr and acl support, consider configuring a local tmpdir via /etc/vzdump.conf
INFO: starting first sync /proc/132015/root/ to /mnt/pve/nas-pimox7/dump/vzdump-lxc-100-2022_09_05-14_48_36.tmp
ERROR: Backup of VM 100 failed - command 'rsync --stats -h --numeric-ids -aH --delete --no-whole-file --sparse --one-file-system --relative '--exclude=/tmp/?*' '--exclude=/var/tmp/?*' '--exclude=/var/run/?*.pid' /proc/132015/root//./ /mnt/pve/nas-pimox7/dump/vzdump-lxc-100-2022_09_05-14_48_36.tmp' failed: exit code 23
INFO: Failed at 2022-09-05 15:39:18
INFO: Starting Backup of VM 101 (qemu)
INFO: Backup started at 2022-09-05 15:39:18
INFO: status = running
INFO: VM Name: omv
INFO: include disk 'scsi0' 'local:101/vm-101-disk-1.qcow2' 32G
INFO: include disk 'efidisk0' 'local:101/vm-101-disk-0.raw' 64M
INFO: backup mode: snapshot
INFO: ionice priority: 7
INFO: creating vzdump archive '/mnt/pve/nas-pimox7/dump/vzdump-qemu-101-2022_09_05-15_39_18.vma.zst'
INFO: started backup task 'f1d1e95f-78ba-45cb-ad5b-53ff34127065'
INFO: resuming VM again
INFO:   2% (670.6 MiB of 32.1 GiB) in 3s, read: 223.5 MiB/s, write: 15.7 MiB/s
INFO:   3% (986.0 MiB of 32.1 GiB) in 17s, read: 22.5 MiB/s, write: 18.8 MiB/s
INFO:   4% (1.3 GiB of 32.1 GiB) in 32s, read: 22.5 MiB/s, write: 20.2 MiB/s
INFO:   5% (1.6 GiB of 32.1 GiB) in 52s, read: 16.5 MiB/s, write: 14.8 MiB/s
INFO:   6% (1.9 GiB of 32.1 GiB) in 1m 4s, read: 26.6 MiB/s, write: 20.2 MiB/s
INFO:   7% (2.3 GiB of 32.1 GiB) in 1m 21s, read: 21.1 MiB/s, write: 18.8 MiB/s
INFO:   8% (2.6 GiB of 32.1 GiB) in 1m 30s, read: 40.7 MiB/s, write: 21.2 MiB/s
INFO:  10% (3.3 GiB of 32.1 GiB) in 1m 37s, read: 103.1 MiB/s, write: 15.4 MiB/s
INFO:  18% (5.8 GiB of 32.1 GiB) in 1m 41s, read: 626.2 MiB/s, write: 47.0 KiB/s
INFO:  20% (6.7 GiB of 32.1 GiB) in 1m 44s, read: 317.8 MiB/s, write: 30.7 MiB/s
INFO:  21% (6.8 GiB of 32.1 GiB) in 1m 47s, read: 36.2 MiB/s, write: 22.4 MiB/s
INFO:  27% (8.9 GiB of 32.1 GiB) in 1m 50s, read: 714.1 MiB/s, write: 8.6 MiB/s
INFO:  38% (12.3 GiB of 32.1 GiB) in 1m 53s, read: 1.1 GiB/s, write: 14.7 KiB/s
INFO:  45% (14.7 GiB of 32.1 GiB) in 1m 57s, read: 604.3 MiB/s, write: 18.3 MiB/s
INFO:  51% (16.6 GiB of 32.1 GiB) in 2m, read: 663.6 MiB/s, write: 26.0 MiB/s
INFO:  52% (16.7 GiB of 32.1 GiB) in 2m 3s, read: 31.4 MiB/s, write: 31.3 MiB/s
INFO:  53% (17.0 GiB of 32.1 GiB) in 2m 16s, read: 22.6 MiB/s, write: 22.3 MiB/s
INFO:  54% (17.3 GiB of 32.1 GiB) in 2m 32s, read: 19.9 MiB/s, write: 17.3 MiB/s
INFO:  57% (18.4 GiB of 32.1 GiB) in 2m 49s, read: 61.6 MiB/s, write: 16.7 MiB/s
INFO:  58% (18.9 GiB of 32.1 GiB) in 2m 53s, read: 141.4 MiB/s, write: 21.8 MiB/s
INFO:  64% (20.7 GiB of 32.1 GiB) in 2m 56s, read: 604.2 MiB/s, write: 19.6 MiB/s
INFO:  70% (22.7 GiB of 32.1 GiB) in 2m 59s, read: 680.3 MiB/s, write: 20.3 MiB/s
INFO:  73% (23.7 GiB of 32.1 GiB) in 3m 2s, read: 344.4 MiB/s, write: 13.1 MiB/s
INFO:  79% (25.6 GiB of 32.1 GiB) in 3m 5s, read: 669.4 MiB/s, write: 22.6 MiB/s
INFO:  86% (27.6 GiB of 32.1 GiB) in 3m 9s, read: 496.6 MiB/s, write: 15.7 MiB/s
INFO:  91% (29.4 GiB of 32.1 GiB) in 3m 12s, read: 636.8 MiB/s, write: 15.3 MiB/s
INFO: 100% (32.1 GiB of 32.1 GiB) in 3m 14s, read: 1.3 GiB/s, write: 404.0 KiB/s
INFO: backup is sparse: 28.67 GiB (89%) total zero data
INFO: transferred 32.06 GiB in 194 seconds (169.2 MiB/s)
INFO: archive file size: 1.19GB
INFO: prune older backups with retention: keep-last=4
INFO: pruned 0 backup(s)
INFO: Finished Backup of VM 101 (00:03:18)
INFO: Backup finished at 2022-09-05 15:42:36
INFO: Backup job finished with errors
TASK ERROR: job errors