Datastore access for linux user

onbartik

New Member
Mar 4, 2025
5
0
1
Hello, dear community!

I set up the machine with PBS. In the web UI, I set the ZFS pool, and in the shell, I created a pair of datasets beneath it with root, and after that, I added them as datastores via UI. The first one is for backups from my PVE instance, and the second one would be used as the TrueNASS replication target. The thing is, TrueNAS uses SSH access to access the remote pools/datasets. So in PBS I created a linux user and put him into the group where members do not need to use sudo for zfs and zpool commands. TrueNAS can access the target dataset, but it cannot write to it, because only the internal, nologin PBS user 'backup' can. Is there any chance of "bypassing" this? Many thanks guys.

Ondrej
 
Hey,

what do you mean with "TrueNAS replication" target? Will it pull whatever is in the specified dir off the PBS, or would it write onto it?

Generally maybe take a look at [1], that should give you a rough overview of what a datastore is, how it is used, and why it is not really meant to be read or written to by anything other than a PBS.

[1] https://pbs.proxmox.com/docs/technical-overview.html
 
Did you take a look at [1]? That is not how PBS works, it splits up the data into chunks and just references chunks that already exist. So you can't just copy something into the same directory as a datastore.

Backups directly from stdin is currently being worked on [2], with zfs send ... you could use that. But just copying something over will, and should, not work.


[1] https://pbs.proxmox.com/docs/technical-overview.html
[2] https://lore.proxmox.com/pbs-devel/20260130164552.281581-1-r.obkircher@proxmox.com/T/#t
 
  • Like
Reactions: Johannes S