Backup von PBS VM

pascal09

New Member
Jan 9, 2025
8
1
3
Hallo,
ich bin noch ziemlich neu und unerfahren was Proxmox betrifft.

Ich habe Proxmox mit ein paar VM/LXCs eingerichtet und jetzt auch den Backupserver als VM installiert.

Ich habe jetzt mal zum testen Backups über die PVE Funktion erstellt unteranderem auch von der VM vom Backupserver.

Die Sicherung vom Backupserver ist fast 1 TB groß. Ich habe im PBS eine 1TB SSD hinzugefügt die aber noch leer ist ansonsten habe ich noch nichts eingestellt in PBS.

Es sieht so aus als würde die leere 1TB SSD im Backup auch einfach 1TB belegen. Ist das normal? Oder eine Einstellungssache?

Die anderen Backups der VMs haben eine normale „realistische Größe“.
 
Das zeigt mir was ich sehen wollte. Die virtuellen Festplatten sollten eventuell discard haben.
Kannst du auch cat /etc/pve/storage.cfg, pvesm list NAMEDESBACKUPSTORAGES und den letzten Backup log teilen?
 
root@miniPC:~# cat /etc/pve/storage.cfg
dir: local
path /var/lib/vz
content backup,vztmpl,iso

lvmthin: local-lvm
thinpool data
vgname pve
content images,rootdir

lvm: OCZ60GB
vgname OCZ60GB
content images,rootdir
nodes miniPC
shared 0

lvm: SSD1TB
vgname SSD1TB
content rootdir,images
nodes miniPC
shared 0

lvm: NVME4TB
vgname NVME4TB
content images,rootdir
nodes miniPC
shared 0

lvm: USBnvme4TB
vgname USBnvme4TB
content images,rootdir
nodes miniPC
shared 0

cifs: SMBbackup
path /mnt/pve/SMBbackup
server 192.168.83.92
share NAS
content backup
prune-backups keep-all=1
subdir /Backups/PVE Backups
username PVEbackup


Das ist die SSD vom Backupserver
root@miniPC:~# pvesm list SSD1TB
Volid Format Type Size VMID
SSD1TB:vm-199-disk-0 raw images 998579896320 199


Das ist die SSD worauf ich die Backups vom PVE gespeichert hab
root@miniPC:~# pvesm list SMBbackup
Volid Format Type Size VMID
SMBbackup:backup/vzdump-lxc-101-2025_07_01-15_37_19.tar.zst tar.zst backup 1420731444 101
SMBbackup:backup/vzdump-qemu-100-2025_07_01-15_36_51.vma.zst vma.zst backup 837482592 100
SMBbackup:backup/vzdump-qemu-199-2025_07_01-15_38_15.vma.zst vma.zst backup 981933345368 199
 

Attachments

Last edited:
Thick Provisionierter Speicher wie LVM ist generell nicht was du möchtest wenn du Speicherplatz optimieren möchtest.
Da die Festplatte noch leer ist könntest du sie wipen und es mal mit LVM-Thin oder ZFS versuchen und discard zu aktivieren? Das erlaubt dir auch ein Snapshot Backup zu machen.
Ich werde später mal probieren das zu reproduzieren. Ich nutze kein pures LVM für meine Virtuellen Festplatten und will dir nichts falsches erzählen.
 
Last edited:
  • Like
Reactions: Johannes S
Nein, in PBS sollte es ext4 sein. Nur auf der PVE Seite sollte es ZFS oder LVM-Thin anstatt LVM wie momentan sein.
 
  • Like
Reactions: pascal09
Hab es grade getestet also mit LVM Thin funktioniert es leider nicht, er will immer noch die leeren 1TB speichern.
 
Ich kann es nicht reproduzieren. Ich habe eine VM mit 2 Festplatten auf unterschiedlichen Storages erstellt wie du es auch hast.
Eine auf LVM-Thin (local-lvm) und eine auf LVM.
Ich habe PBS auf der 15G Platte installiert und auf der 16G Platte ein Directory mit ext4 und ein Datastore darauf erstellt.

PVE test Storage
Code:
lvm: test
        vgname test
        content images,rootdir
        nodes pve-v
        shared 0

PVE PBS VM config
Code:
boot: order=scsi0;ide2;net0
cores: 2
cpu: x86-64-v2-AES
ide2: local:iso/proxmox-backup-server_3.4-1.iso,media=cdrom,size=1275816K
memory: 2048
meta: creation-qemu=9.2.0,ctime=1751395172
name: test
net0: virtio=BC:24:11:2B:06:B3,bridge=vmbr0,firewall=1
numa: 0
ostype: l26
scsi0: test:vm-102-disk-0,iothread=1,size=15G
scsi1: local-lvm:vm-102-disk-0,iothread=1,size=16G
scsihw: virtio-scsi-single
smbios1: uuid=4d418b99-9434-4d5c-8d61-92b43b0e3325
sockets: 1
vmgenid: 5a811881-6fad-48fe-b92b-45543a175bb6

PBS datastore/storage
Code:
datastore: test
        path /mnt/datastore/test

Filesystem           Type      Size  Used Avail Use% Mounted on
/dev/mapper/pbs-root ext4       13G  2.0G  9.9G  17% /
/dev/sdb1            ext4       16G  258M   15G   2% /mnt/datastore/test


PVE Backup Log
Code:
()
INFO: starting new backup job: vzdump 102 --remove 0 --storage local --notes-template '{{guestname}}' --compress zstd --notification-mode auto --node pve-v --mode stop
INFO: Starting Backup of VM 102 (qemu)
INFO: Backup started at 2025-07-01 20:53:22
INFO: status = running
INFO: backup mode: stop
INFO: ionice priority: 7
INFO: VM Name: test
INFO: include disk 'scsi0' 'test:vm-102-disk-0' 15G
INFO: include disk 'scsi1' 'local-lvm:vm-102-disk-0' 16G
INFO: stopping virtual guest
INFO: creating vzdump archive '/var/lib/vz/dump/vzdump-qemu-102-2025_07_01-20_53_22.vma.zst'
INFO: starting kvm to execute backup task
trying to acquire lock...
 OK
INFO: started backup task '82bb3371-9e0a-46c9-ba72-05deddd090b6'
INFO: resuming VM again after 4 seconds
INFO:  15% (4.7 GiB of 31.0 GiB) in 3s, read: 1.6 GiB/s, write: 28.1 MiB/s
INFO:  28% (8.9 GiB of 31.0 GiB) in 6s, read: 1.4 GiB/s, write: 34.6 MiB/s
INFO:  42% (13.3 GiB of 31.0 GiB) in 9s, read: 1.4 GiB/s, write: 31.7 MiB/s
INFO:  55% (17.1 GiB of 31.0 GiB) in 12s, read: 1.3 GiB/s, write: 23.2 MiB/s
INFO:  60% (18.8 GiB of 31.0 GiB) in 15s, read: 564.3 MiB/s, write: 111.8 MiB/s
INFO:  62% (19.3 GiB of 31.0 GiB) in 18s, read: 197.0 MiB/s, write: 160.6 MiB/s
INFO:  64% (20.0 GiB of 31.0 GiB) in 21s, read: 240.5 MiB/s, write: 162.2 MiB/s
INFO:  66% (20.6 GiB of 31.0 GiB) in 24s, read: 183.7 MiB/s, write: 138.3 MiB/s
INFO:  77% (24.1 GiB of 31.0 GiB) in 27s, read: 1.2 GiB/s, write: 18.6 MiB/s
INFO:  80% (24.9 GiB of 31.0 GiB) in 30s, read: 256.9 MiB/s, write: 170.5 MiB/s
INFO:  89% (27.7 GiB of 31.0 GiB) in 33s, read: 969.9 MiB/s, write: 50.0 MiB/s
INFO: 100% (31.0 GiB of 31.0 GiB) in 36s, read: 1.1 GiB/s, write: 1.2 MiB/s
INFO: backup is sparse: 28.27 GiB (91%) total zero data
INFO: transferred 31.00 GiB in 36 seconds (881.8 MiB/s)
INFO: archive file size: 849MB
INFO: adding notes to backup
INFO: Finished Backup of VM 102 (00:00:41)
INFO: Backup finished at 2025-07-01 20:54:03
INFO: Backup job finished successfully
INFO: notified via target `mail-to-root`
TASK OK
Der einzige Unterschied ist dass ich local als Backup Ziel nutze. Wie du sehen kannst ist mein Backup nur 849MB groß.
Ich muss wohl etwas übersehen haben.
 
Also ich habe das Backup eben abgebrochen, weil im Log stand x GiB von 1000 GiB und es sah so aus als wenn er alles komplett speichern will.
Aber bei den anderen VMs sah es auch so aus und nachher ist das Backup trotzdem kleiner. Also ich lasse es jetzt nochmal komplett durchlaufen und gucke wie groß es am Ende wird. Danke schonmal.
 
Was hat sich geändert dass es nun funktioniert? Das lesen der ganzen Platte(n) ist übrigens normal.
 
Ich habe nach der Umstellung auf lvm-thin das Backup abgebrochen, weil ich dachte er will wieder alles komplett speichern. Allerdings hat er nur die ganze Platte gelesen und das Backup war dann kleiner.
 
  • Like
Reactions: Impact