I‘ve got 2 Machines with Proxmox on both installed. One hosts my data and media and runs Services like Jellyfin, NAS,… The other one is a Mini-PC that hosts my Services like Adguard, Home Assistant,…
Whats the best way to Backup the data and configs of those 2 machines? Installing Proxmox Backup Server on each and store the Backups on a seperate HDD? Or would it be better if a move all the services to a single machine and use the second only for backups?
thank you!
hoshikarakitaridia@lemmy.world
I use 1 host running Proxmox VE (PVE) with a VM for Proxmox BS (PBS). Datastores are located on a USB HDD with passthrough of that specific USB ID to the PBS VM.
It works really well and the only actual downside is that, for a complete-restore (e.g. reinstall PVE or new server or hard drives) you need to set up the PBS VM again before you can use your backups.
For the host-config on PVE, I use a systemd service and timer starting a simple proxmox-backup-client backup of /etc. That is enough to restore the configuration in case of some emergency.
Also: Is there a benefit for splitting your services on 2 hosts? Shouldn’t 1 host with all VMs consume less electricity than the same VMs split on multiple hosts?
I don’t know about OPs situation, but I have a mini-PC as proxmox hypervisor too addition to my main server. Mini-PC is located middle-ish of the house as it’s running home assistant with ZWA-2 and the location helps a lot with Z-wave coverage. But added benefit is that I can (within the pretty strict resource limits) move VMs to the mini-pc when doing maintenance on main server. It’s pretty handy to move PiHole and some other small stuff to another host so that everything on network still functions even if one hypervisor is down.
doctorflynt@feddit.org 3 weeks ago
while the machines are physicaly next to esch other i also runy whole home automation over zwave. the reason i have 2 machines currently is that the media server used to run truenas and i virtualized everything there. since truenas is no longer true open source i wanted to replace it with open media vault, but i dont really used shares i figured that proxmox would be better suited. so i set up a machine where i host all the services until i figure out how i want to run my media-server.
i still need to find a way to setup a simple sambashare via a web gui and a good backup solution.
Interesting. I do not know a lot about Home Assistant devices, but I thought they would just be communicating via standard WIFI + data encryption. I definitely didn’t suspect there to be a whole new standard of wireless communication to that.
I understand the thing about downtime, running
piholemyself. My setup is rather simple and centralized on purpose and I don’t really mind the few minutes of “filtered DNS” downtime whilepiholeandpveare rebooting. As my UniFi Dream Router 7 is the firewall / gateway / DHCP server anyway, I just usepiholeas primary DNS and1.1.1.1as secondary DNS. It’s not filtering “bad domains” via DNS, sure, but I gotadblock originand other browser extensions dealing with whatever comes along anyway.But, yeah, for redundancy and always-online-production-setups it’s actually great having a secondary
pveas a temporary stop-gap. Plus, it’s a nice and kinda fancy setup, of course. Always appreciated in selfhosted :)doctorflynt@feddit.org 3 weeks ago
How does it work if my ssd dies, where proxmox boot and the lvm for the containers is located on? Would i have to reinstall proxmox + pbs again and then id be able to restore the disk again? or do i habe to install pbs on another drive altogether and then id be able to restore my boot drive + lvm?
the machines are located next to each other and i run 2 currently because 1 was originally a truenas server and the other one a proxmox-server with my services. Since truenas stopped publishing its open source code to github i reinstalled it with proxmox. im also just started setting everything up and i wanted to have my services running while i figure out how i want to run my media server. originally i tried open media vault instead of truenas, but since i virtualize stuff like jellyfin anyways i thought that running that directly in proxmox is easier.
if that n100 cpu can run everything i need on the media server, i want to move the containers over. otherwise the two n100 machines stay.
If you only have 1 disk on your server (no RAID), you will have to
Are you talking about containers (
lxc,docker) or the VM disks? You need a backup for VM disks anyway (Proxmox BS).If you’re talking about containers, I do not know how to backup those. I do use
dockercontainers but they’re all inside VMs. I like to seperate things via VMs, as a rogue container taking down it’s VM (or having other negative effects on its host) is less of a headache than a rogue container taking down the whole hypervisor because it’s running directly on the that.For comparison, this is my disk setup for my server (my old PC):
The 2 NVME-disks are used in a ZFS mirror (
rpoolinzpool listabove) and store the Proxmox OS. The 3 SATA SSDs (seesd*inlsblkabove) are housing all VM data in a ZFS RAID-Z1 calleddata_raid. With this hardware- and RAID-setup, one disk of eachzpoolcould die right now and all I’d have to do is pay the currently horrendous hardware-prices and replace it. No data-loss or downtime until at least 2 disks of a singlezpooldie together.All hardware dies at some point. Preperation is key.