Hi,
I'm new to the forum and to TrueNAS but wanted to use it for a long time. I've been mostly using Linux with ZFS because the system had to do more than just storage. Now I have a dedicated storage server and wanted to give TrueNAS a try.
After setting up the server, I wanted to send my ZFS dataset from the old system to TrueNAS. Traditionally, I've been using syncoid for this which basically does a zfs send and zfs receive over SSH:
However, this failed because TrueNas no longer has (and won't have) /sbin/zfs (https://jira.ixsystems.com/browse/NAS-107132), so I made a symlink.
With the symlink sorted out, I get this error: cannot receive new filesystem stream: permission denied
I just can't figure out how to allow my custom synch account (sagent) to do zfs (create) operations.
After some researching, I decided to give a try to the GUI option for replication tasks in PULL mode. I managed to get the SSH authentication, but the task completes prematurely saying: No snapshots to send for replication task 'task_1' on dataset 'storage/data'
I didn't have snapshots on the source, so I created one (storage/data@1), but no change, TrueNAS replication did not pull my dataset.
So I ended up allowing root SSH connections to receive my ZFS data set, but I feel this is against the spirit of TrueNAS.
My two main questions:
I'm new to the forum and to TrueNAS but wanted to use it for a long time. I've been mostly using Linux with ZFS because the system had to do more than just storage. Now I have a dedicated storage server and wanted to give TrueNAS a try.
After setting up the server, I wanted to send my ZFS dataset from the old system to TrueNAS. Traditionally, I've been using syncoid for this which basically does a zfs send and zfs receive over SSH:
Code:
/sbin/zfs send storage/data@syncoid_alex-desktop_2021-04-02:15:06:02 | /usr/bin/pv -s 346777203064 | /usr/bin/mbuffer -q -s 128k -m 16M 2>/dev/null | /usr/bin/ssh -S /tmp/syncoid-sagent-sagent@192.168.5.112-1617390355 sagent@192.168.5.112 ' /sbin/zfs receive -F data/tank/alex_data'
However, this failed because TrueNas no longer has (and won't have) /sbin/zfs (https://jira.ixsystems.com/browse/NAS-107132), so I made a symlink.
With the symlink sorted out, I get this error: cannot receive new filesystem stream: permission denied
I just can't figure out how to allow my custom synch account (sagent) to do zfs (create) operations.
After some researching, I decided to give a try to the GUI option for replication tasks in PULL mode. I managed to get the SSH authentication, but the task completes prematurely saying: No snapshots to send for replication task 'task_1' on dataset 'storage/data'
I didn't have snapshots on the source, so I created one (storage/data@1), but no change, TrueNAS replication did not pull my dataset.
So I ended up allowing root SSH connections to receive my ZFS data set, but I feel this is against the spirit of TrueNAS.
My two main questions:
- Is it even possible for TrueNAS to act as a destination for zfs datasets from the GUI, or only the other way around?
- Is is possible to give permission to a non-root user to perform zfs operations from the GUI (like using zfs allow from CLI)?