I have experimented with Proxmox and Linux (new for me, though I have a unix-like background experience) and set up the following setup:
This works.
But I found out that I have three(?) issues:
[UPDATE: I have been notified that I have another issue as well: if I restore my VM backup, the disk I have excluded from the backup will be wiped, not ignored...]
[It is actually fun to learn all this, keep my tech side alive, but it is a steep learning curve]
- Hardware: standard x86 Core i5
- External 2TB SSD RAID (
pvehost:/dev/sda
) - Internal 1TB SSD (
pvehost:/dev/nvme0n1
hardware encrypted, key to be entered at boot)- PVE installed, so divided into
local
andlocal-lvm
pvehost:/dev/sda1
(the external RAID) setup with LUKS- auto-unlocked at boot
- Added one big PV on
pvehost:/dev/sda1-LUKS
, so the PV setup looks like this:Code:PV VG Fmt Attr PSize PFree /dev/mapper/luks-fa1483bd-f599-4dcf-9732-c09069472150 rna-mepdm-1 lvm2 a-- <1.75t 788.36g /dev/nvme0n1p3 pve lvm2 a-- <931.01g 15.99g
- Two LVs on the LUKS PV, so the total LV setup looks like this:
Code:
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert data pve twi-aotz-- <794.79g 1.26 0.28 root pve -wi-ao---- 96.00g swap pve -wi-ao---- 8.00g vm-100-disk-0 pve Vwi-aotz-- 32.00g data 31.29 rna-pbs-mepdm-1 rna-mepdm-1 -wi-ao---- 500.00g vm-100-disk-0 rna-mepdm-1 -wi-ao---- 500.00g
rna-mepdm-1/rna-pbs-mepdm-1
contains an ext4 filesystem and is mounted onpvehost:/mnt/pbs-backup-1
and used as a datastore for PBSrna-mepdm-1/vm-100-disk-0
contains an ext4 filesystem and is mounted on a client
- Client
pveclient
: Ubuntu 22.04 Server VM resides onlocal-lvm
- LV
rna-mepdm-1/vm-100-disk-0
(on external RAID) is mounted onpveclient:/mnt/ServerData
- LV
- PBS uses
pvehost:/mnt/pbs-backup-1
as data store. This Datastore is used aspbs
storage on PVE. As a result, PVE can backup VMs that live on the internal SSD volumelocal-lvm
to the external RAID volume mounted onpvehost:/mnt/pbs-backup-1
. Important: I must exclude the diskpveclient:/dev/sdb1
from that backup, or it goes to on to backup an additional 500GB (and not just the VM's / disk itself)
- PVE installed, so divided into
- External 2TB SSD RAID (
This works.
But I found out that I have three(?) issues:
- Because I have added
rna-mepdm-1/vm-100-disk-0
as hardware to VMpveclient
I cannot take snapshots of that VM. Other than with backups, the snapshot feature requires the entire VM including all attached hard disks to be 'snapshottable' and /mnt/ServerData is LVM and not LVM-Thin. Backups of just the VM itself (and not the attached 'disk') works fine. I was wondering why this is so. Is 'exclude hardware on snapshot' just a feature that could be there but isn't? Or is there a fundamental reason this would not work? - I cannot my
pveclient:/mnt/ServerData
on a LVM-Thin volume because I cannot put a file system on an LVM-Thin volume. Is this true? - And if the previous is true, I can also not use
local-lvm
as target for backups from the external RAID, true?
pveclient
and use the internal NVMe SSD as backup storage for the data living on the external RAID SSD.[UPDATE: I have been notified that I have another issue as well: if I restore my VM backup, the disk I have excluded from the backup will be wiped, not ignored...]
[It is actually fun to learn all this, keep my tech side alive, but it is a steep learning curve]
Last edited: