Mastakilla
Patron
- Joined
- Jul 18, 2019
- Messages
- 203
Hi everyone,
I'm having a hard time properly setting up TrueNAS Replication and I was hoping to get some assistance / guidance from you good folks ;)
First a little background and what I'm trying to achieve:
First I spend waaaay too much time on setting up a SSH Connection between my backup-TrueNAS (Scale) and master-TrueNAS (Core). As it is bad practice to enable ssh for the root account, I wanted to use a purposely-setup user (ssh-replicator) for this. Although I did succeed in the end, it did give me more grey hairs then I wished for ;)
So over the weekend I was finally able to successfully run my first replication task, but I do notice some behavior that introduces some new questions:
I'm having a hard time properly setting up TrueNAS Replication and I was hoping to get some assistance / guidance from you good folks ;)
First a little background and what I'm trying to achieve:
- My master-TrueNAS server is currently running TrueNAS Core (latest version). I plan to replace (fresh install) this OS with TrueNAS Scale (latest version), once I feel comfortable enough to set it up.
- Currently I'm using loose HDDs as an irregular offline backup strategy (often multiple months old)
- I recently bought an old SuperMicro server that I plan to use for the following purposes:
- Replace my current offline backup strategy of loose HDDs (the idea is to keep it unplugged from the power unless I'm making a new backup, like once a week or month)
- Mirror the configuration of my main TrueNAS server as much as possible, so that it can function as a "spare" in case my main TrueNAS server is offline / broken.
- Test environment for new / changed functionality.
First I spend waaaay too much time on setting up a SSH Connection between my backup-TrueNAS (Scale) and master-TrueNAS (Core). As it is bad practice to enable ssh for the root account, I wanted to use a purposely-setup user (ssh-replicator) for this. Although I did succeed in the end, it did give me more grey hairs then I wished for ;)
So over the weekend I was finally able to successfully run my first replication task, but I do notice some behavior that introduces some new questions:
- As a test I've removed an old snapshot on the backup-TrueNAS and created (at least the cronjob did) some new snapshots on the master-TrueNAS. However, when I now re-run my replication task, it says "No snapshots to send for replication task 'task_1' on dataset 'hgstpool/datads'" and then does nothing. I was expecting it to transfer the new snapshots and re-upload the removed old snapshot to make the dataset in sync once more.
These are my (relevant) settings for my replication:
Does anyone know what I'm doing wrong, what I'm missing or what I'm misunderstanding? - I noticed that the replication also has overwritten the ACLs that I have created on the backup-TrueNAS with the ACLs of the master-TrueNAS, which completely breaks the permissions on the backup-TrueNAS, as it has completely different GIDs for those groups. What is the recommendation to keep these in sync?
I noticed also that TrueNAS Core non-builtin GIDs start at 1000, while on TrueNAS Scale they start at 3000, which complicates things even more. Should I manually start editing the /etc/group file to make the GIDs match? Or should I recreate all my groups on both master-TrueNAS and backup-TrueNAS so that I can configure them in the GUI with matching GIDs? (that would be a lot of work).
Or is there perhaps a way to disable overwriting the ACLs during the replication?