[SOLVED] who to connect PBS to QNAP TS 431

muekno

Member
Dec 15, 2023
220
13
18
I hab a PVE cluster, one vm is a PBS, the backups should go to a QNAP NAS.
The PVEs are all ZFS,
. How should I connect best the PBS with the QNAP NFS, iSCSI ore what else
What are the features

Thanks for any hint

Best Regards
 
How should I connect best the PBS with the QNAP NFS, iSCSI ore what else
Do what works for you! NFS is probably the easiest.

Both NFS and iSCSI needs to go over the wire for each and every single chunk - both may work and both may be slow.

If QNAP utilizes only rotating rust it may work for some backups but it will probably not work for a ton of them. (Yes, this is a suspicion, not approved for QNAP.)

For good performance PBS wants to have local storage as it needs IOPS: https://pbs.proxmox.com/docs/installation.html#recommended-server-system-requirements

That said..., I do use NFS for some PBS datastore and I am fine. But I really had to add some "accelerator" in form of metadata-SSDs into my storage box.



Copied from another thread of mine because of my suspicion that your QNAP is not "SSD-only":

... This worked. At first. With the amount of backups stored the number of chunks increased. After several weeks(!) of adding more backups I had the effect that I could not list the backups in the Web Gui anymore. The first click just got a timeout. When I clicked a second time the most of the backups listing was already read into cache and now this second click worked.

The solution for my problem would be easy: kick out rotating rust. Yeah, that would've been expensive...

So my solution (better: workaround) was to introduce fast meta data storage. This approach is possible for ZFS (with a fast "Special Device" added before filling in much data) and also (for example) for brtfs on a Synology.

For me the "lesson learned" was no surprise as it is documented everywhere: PBS needs IOPS!
 
  • Like
Reactions: Johannes S
Another option might be to host the PBS vm on the NAS (some NAS support hosting VMs) since then you won't have the protocol overhead of the network for stuff like verify and garbage collection. This could even be combined with a ssd metadata storage
Edit: Nevermind, this won't work with this NAS since it's an ARM cpu, PBS is only supported for amd64. It might be worth to setup a ISCSI share instead of NFS though, this should still be faster
 
Last edited:
What are the features
As @UdoB and @Johannes S write: "Do what you feel comfortable with, there are many options"

PVE and PBS run on 'plain Debian', making all features available that Debian provides.

Another possible option with iSCSI and LVM could be:
  • configure to use iSCSI storage from your NAS
  • use the iSCSI as physical volume for LVM and create your volume groups and logical volumes
  • use fast local (to PBS) storage as LVM caching device for those volume groups
Any setup will suffer from any latency introduced by the network.

I'd second @Johannes S' suggestion. I have a QNAP device with Intel CPU, so check the specs of your NAS.
 
  • Like
Reactions: Johannes S