Automatisches Backup schlägt fehl

mibru

Member
Sep 8, 2021
6
0
6
50
Hallo Zusamen,
derzeit arbeite ich mich in Proxmox ein. Installiert ist die aktuelle Version 7, den ersten Container habe ich in Benutzung, Mailbenachrichtigung und Backup sind eingerichtet.
Soweit läuft erst mal Alles. Das Backup wird erstellt, sofern ich es manuell starte. Das automatische Backup soll täglich um 2:30 auf eine NAS erfolgen. Den entsprechenden Backupjob habe ich im Datacenter eingerichtet.

Nun zu dem Problem. Das erste Backup läuft ohne Fehler durch, das nächste Backup am darauffolgenden Tag bricht ab.
Hier der entsprechende Log dazu.
Code:
vzdump --compress zstd --mailnotification always --storage Synology-NAS --mode snapshot --all 1 --mailto xxxxx@xx --quiet 1


100: 2021-09-08 02:30:01 INFO: Starting Backup of VM 100 (lxc)
100: 2021-09-08 02:30:01 INFO: status = running
100: 2021-09-08 02:30:01 INFO: CT Name: Nextcloud
100: 2021-09-08 02:30:01 INFO: including mount point rootfs ('/') in backup
100: 2021-09-08 02:30:01 INFO: including mount point mp0 ('/mnt/data') in backup
100: 2021-09-08 02:30:01 INFO: backup mode: snapshot
100: 2021-09-08 02:30:01 INFO: ionice priority: 7
100: 2021-09-08 02:30:01 INFO: suspend vm to make snapshot
100: 2021-09-08 02:30:01 INFO: create storage snapshot 'vzdump'
100: 2021-09-08 02:30:02 INFO: resume vm
100: 2021-09-08 02:30:02 INFO: guest is online again after 1 seconds
100: 2021-09-08 02:30:02 INFO: creating vzdump archive '/mnt/pve/Synology-NAS/dump/vzdump-lxc-100-2021_09_08-02_30_01.tar.zst'
100: 2021-09-08 02:30:21 INFO: tar: ./var/lib/php/sessions/sess_en7mkl26q5qtrh5a36ic9729Ph: File removed before we read it
100: 2021-09-08 02:34:01 INFO: Total bytes written: 13378549760 (13GiB, 54MiB/s)
100: 2021-09-08 02:34:02 INFO: cleanup temporary 'vzdump' snapshot
100: 2021-09-08 02:34:05 ERROR: Backup of VM 100 failed - command 'set -o pipefail && lxc-usernsexec -m u:0:100000:65536 -m g:0:100000:65536 -- tar cpf - --totals --one-file-system -p --sparse --numeric-owner --acls --xattrs '--xattrs-include=user.*' '--xattrs-include=security.capability' '--warning=no-file-ignored' '--warning=no-xattr-write' --one-file-system '--warning=no-file-ignored' '--directory=/mnt/pve/Synology-NAS/dump/vzdump-lxc-100-2021_09_08-02_30_01.tmp' ./etc/vzdump/pct.conf ./etc/vzdump/pct.fw '--directory=/mnt/vzsnap0' --no-anchored '--exclude=lost+found' --anchored '--exclude=./tmp/?*' '--exclude=./var/tmp/?*' '--exclude=./var/run/?*.pid' ./ ./mnt/data | zstd --rsyncable '--threads=1' >/mnt/pve/Synology-NAS/dump/vzdump-lxc-100-2021_09_08-02_30_01.tar.dat' failed: exit code 1

Hat jemand einen Tipp für mich woran es liegen könnte? Ich selbst komme hier nicht weiter.

Vielen Dank
Mike
 
Hi,

kannst du uns bitte sagen auf welchen Storage die CT images liegen und was der Host welchen storage benützts, die container configuration wäre auch noch gut.

Also am besten den output von den folgenden Befehlen:
Bash:
pvesm status
pct config 100
findmnt

Damit hätten wir einen bessern Storage-Überblick fürs System.
 
So hier die Ausgabe der einzelnen Befehle.
Code:
root@server1:~# pvesm status
Name                Type     Status           Total            Used       Available        %
DATA             zfspool     active      1885339648        10266096      1875073552    0.54%
Synology-NAS         nfs     active      3840802176      2468275840      1372407552   64.26%
local                dir     active        60837724         4197768        53517168    6.90%
local-lvm        lvmthin     active       158994432         6677766       152316665    4.20%

Code:
root@server1:~# pct config 100
arch: amd64
cores: 2
features: keyctl=1,nesting=1
hostname: Nextcloud
memory: 4096
mp0: DATA:subvol-100-disk-0,mp=/mnt/data,backup=1,size=900G
net0: name=eth0,bridge=vmbr0,firewall=1,gw=xxx.xxx.xxx.xxx,hwaddr=xx:xx:xx:xx:xx:xx,ip=xxx.xxx.xxx.xxx/24,type=veth
ostype: debian
parent: snap7
rootfs: local-lvm:vm-100-disk-0,size=16G
swap: 4096
unprivileged: 1

Code:
root@server1:~# findmnt
TARGET                       SOURCE     FSTYPE     OPTIONS
/                            /dev/mapper/pve-root
│                                       ext4       rw,relatime,errors=remount-ro
├─/sys                       sysfs      sysfs      rw,nosuid,nodev,noexec,relatime
│ ├─/sys/kernel/security     securityfs securityfs rw,nosuid,nodev,noexec,relatime
│ ├─/sys/fs/cgroup           cgroup2    cgroup2    rw,nosuid,nodev,noexec,relatime
│ ├─/sys/fs/pstore           pstore     pstore     rw,nosuid,nodev,noexec,relatime
│ ├─/sys/fs/bpf              none       bpf        rw,nosuid,nodev,noexec,relatime,mode=700
│ ├─/sys/kernel/debug        debugfs    debugfs    rw,nosuid,nodev,noexec,relatime
│ ├─/sys/kernel/tracing      tracefs    tracefs    rw,nosuid,nodev,noexec,relatime
│ ├─/sys/fs/fuse/connections fusectl    fusectl    rw,nosuid,nodev,noexec,relatime
│ └─/sys/kernel/config       configfs   configfs   rw,nosuid,nodev,noexec,relatime
├─/proc                      proc       proc       rw,relatime
│ └─/proc/sys/fs/binfmt_misc systemd-1  autofs     rw,relatime,fd=30,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=16782
├─/dev                       udev       devtmpfs   rw,nosuid,relatime,size=8106412k,nr_inodes=2026603,mode=755,inode64
│ ├─/dev/pts                 devpts     devpts     rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000
│ ├─/dev/shm                 tmpfs      tmpfs      rw,nosuid,nodev,inode64
│ ├─/dev/hugepages           hugetlbfs  hugetlbfs  rw,relatime,pagesize=2M
│ └─/dev/mqueue              mqueue     mqueue     rw,nosuid,nodev,noexec,relatime
├─/run                       tmpfs      tmpfs      rw,nosuid,nodev,noexec,relatime,size=1627696k,mode=755,inode64
│ ├─/run/lock                tmpfs      tmpfs      rw,nosuid,nodev,noexec,relatime,size=5120k,inode64
│ ├─/run/rpc_pipefs          sunrpc     rpc_pipefs rw,relatime
│ └─/run/user/0              tmpfs      tmpfs      rw,nosuid,nodev,relatime,size=1627692k,nr_inodes=406923,mode=700,inode64
├─/DATA                      DATA       zfs        rw,xattr,noacl
│ └─/DATA/subvol-100-disk-0  DATA/subvol-100-disk-0
│                                       zfs        rw,xattr,posixacl
├─/var/lib/lxcfs             lxcfs      fuse.lxcfs rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other
├─/etc/pve                   /dev/fuse  fuse       rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other
└─/mnt/pve/Synology-NAS      xxx.xxx.xxx.xxx:/volume1/07_Proxmox
                                        nfs rw,relatime,vers=3,rsize=131072,wsize=131072,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=xxx.xxx.xxx.xxx,mountvers=3,mountport=892,mountproto=udp,local_lock=none,addr=xxx.xxx.xxx.xxx

Der Proxmoxserver ist ein Thinkcenter M900 mit einer NVME (256GB) und einer 2,5 Zoll HDD (2TB). Das System und der Container sind auf der NVME installiert. Die Daten ( in dem Fall der Nextcloud) liegen auf der HDD. Die Daten werden im Container unter /mnt/data gemounted.
Sollte noch was fehlen, so reiche ich es gern noch nach.

Mike
 
Hallo,
ich habe das Backup jetzt mal im Terminal als root gestartet
Code:
root@server1:~# vzdump --compress zstd --mode snapshot --mailnotification always --all 1 --storage Synology-NAS --quiet 1 --mailto xxxxx
Das Backup läuft so problemlos durch (mehrfach gestestet).
Code:
2021-09-10 07:55:36 INFO: Starting Backup of VM 100 (lxc)
2021-09-10 07:55:36 INFO: status = running
2021-09-10 07:55:36 INFO: CT Name: Nextcloud
2021-09-10 07:55:36 INFO: including mount point rootfs ('/') in backup
2021-09-10 07:55:36 INFO: including mount point mp0 ('/mnt/data') in backup
2021-09-10 07:55:36 INFO: backup mode: snapshot
2021-09-10 07:55:36 INFO: ionice priority: 7
2021-09-10 07:55:36 INFO: suspend vm to make snapshot
2021-09-10 07:55:36 INFO: create storage snapshot 'vzdump'
2021-09-10 07:55:37 INFO: resume vm
2021-09-10 07:55:37 INFO: guest is online again after 1 seconds
2021-09-10 07:55:37 INFO: creating vzdump archive '/mnt/pve/Synology-NAS/dump/vzdump-lxc-100-2021_09_10-07_55_36.tar.zst'
2021-09-10 07:59:39 INFO: Total bytes written: 13681305600 (13GiB, 54MiB/s)
2021-09-10 07:59:40 INFO: archive file size: 9.95GB
2021-09-10 07:59:40 INFO: prune older backups with retention: keep-daily=7, keep-monthly=2, keep-weekly=4
2021-09-10 07:59:40 INFO: removing backup 'Synology-NAS:backup/vzdump-lxc-100-2021_09_10-03_41_55.tar.zst'
2021-09-10 07:59:40 INFO: pruned 1 backup(s) not covered by keep-retention policy
2021-09-10 07:59:40 INFO: cleanup temporary 'vzdump' snapshot
2021-09-10 07:59:40 INFO: Finished Backup of VM 100 (00:04:04)

Ich habe jetzt mal versuchsweise mit "crontab -e" als root einen neuen Cronjob erstellt.


Code:
00 6 * * *    vzdump --compress zstd --mode snapshot --mailnotification always --all 1 --storage Synology-NAS --quiet 1 --mailto xxxxxx
Der Cronjob startet, bricht dann aber mit der selben Fehlermeldung (Post 1) ab. Den andern Backupjob aus dem Datacenter (GUI) habe ich zuvor noch gelöscht. Vielleicht hilft es das Problem einzugrenzen.

Mike
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!