How to migrate from Linux (Centos) to TrueNAS?

saloomy

Cadet
Joined
Mar 27, 2023
Messages
4
Hello, thanks for reading my post.

I have a CentOS 7 server with ZFS on Linux running. On this server, we created cron-jobs to make snapshots on a schedule, and purge the old snapshots, once the retention targets were passed. This has been running well. We had a backup server which ran the same configuration, and we replicated between the two servers with a script to run zfs-send / zfs-receive. Worked well.

We have now migrate the backup server to TrueNAS Scale to get the GUI friendliness, optimized configs, reporting, and alerting functional niceties that come with a refined product like TrueNAS.

My issue now is how to get the data to replicate from the source Linux system to the new one? I figured out how to make the SSH connection, and how to list the remote filesystems, which works!

But when I try to run it, I come across a python error about not having common snapshots (I am trying to do the initial sync).

I have uploaded my Replication Task properties.

The error I get is as follows:

[2023/03/27 20:14:10] DEBUG [replication_task__task_1] [zettarepl.transport.base_ssh] [ssh:root@172.***] [shell:12] Connecting...
[2023/03/27 20:14:10] DEBUG [Thread-48] [zettarepl.paramiko.replication_task__task_1] starting thread (client mode): 0x946fd5e0
[2023/03/27 20:14:10] DEBUG [Thread-48] [zettarepl.paramiko.replication_task__task_1] Local version/idstring: SSH-2.0-paramiko_2.10.3
[2023/03/27 20:14:10] DEBUG [Thread-48] [zettarepl.paramiko.replication_task__task_1] Remote version/idstring: SSH-2.0-OpenSSH_7.4
[2023/03/27 20:14:10] INFO [Thread-48] [zettarepl.paramiko.replication_task__task_1] Connected (version 2.0, client OpenSSH_7.4)
[2023/03/27 20:14:10] DEBUG [Thread-48] [zettarepl.paramiko.replication_task__task_1] === Key exchange possibilities ===
[2023/03/27 20:14:10] DEBUG [Thread-48] [zettarepl.paramiko.replication_task__task_1] kex algos: curve25519-sha256, curve25519-sha256@libssh.org, ecdh-sha2-nistp256, ecdh-sha2-nistp384, ecdh-sha2-nistp521, diffie-hellman-group-exchange-sha256, diffie-hellman-group16-sha512, diffie-hellman-group18-sha512, diffie-hellman-group-exchange-sha1, diffie-hellman-group14-sha256, diffie-hellman-group14-sha1, diffie-hellman-group1-sha1
[2023/03/27 20:14:10] DEBUG [Thread-48] [zettarepl.paramiko.replication_task__task_1] server key: ssh-rsa, rsa-sha2-512, rsa-sha2-256, ecdsa-sha2-nistp256, ssh-ed25519
[2023/03/27 20:14:10] DEBUG [Thread-48] [zettarepl.paramiko.replication_task__task_1] client encrypt: chacha20-poly1305@openssh.com, aes128-ctr, aes192-ctr, aes256-ctr, aes128-gcm@openssh.com, aes256-gcm@openssh.com, aes128-cbc, aes192-cbc, aes256-cbc, blowfish-cbc, cast128-cbc, 3des-cbc
[2023/03/27 20:14:10] DEBUG [Thread-48] [zettarepl.paramiko.replication_task__task_1] server encrypt: chacha20-poly1305@openssh.com, aes128-ctr, aes192-ctr, aes256-ctr, aes128-gcm@openssh.com, aes256-gcm@openssh.com, aes128-cbc, aes192-cbc, aes256-cbc, blowfish-cbc, cast128-cbc, 3des-cbc
... 77 more lines ...
[2023/03/27 20:14:11] DEBUG [Thread-48] [zettarepl.paramiko.replication_task__task_1] [chan 4] EOF sent (4)
[2023/03/27 20:14:11] DEBUG [replication_task__task_1] [zettarepl.transport.local] [shell:1] [async_exec:124] Running ['zfs', 'list', '-t', 'filesystem,volume', '-H', '-o', 'readonly,receive_resume_token,name', '-s', 'name', '-r', 'Muria/Reventon']
[2023/03/27 20:14:11] DEBUG [replication_task__task_1] [zettarepl.transport.local] [shell:1] [async_exec:124] Success: 'off\t-\tMuria/Reventon\n'
[2023/03/27 20:14:11] DEBUG [replication_task__task_1] [zettarepl.transport.local] [shell:1] [async_exec:125] Running ['zfs', 'list', '-t', 'snapshot', '-H', '-o', 'name', '-s', 'name', '-r', 'Muria/Reventon']
[2023/03/27 20:14:11] DEBUG [replication_task__task_1] [zettarepl.transport.local] [shell:1] [async_exec:125] Success: ''
[2023/03/27 20:14:11] DEBUG [replication_task__task_1] [zettarepl.transport.local] [shell:1] [async_exec:126] Running ['zfs', 'get', '-H', '-p', '-t', 'filesystem,volume', 'encryption,encryptionroot', 'Muria/Reventon']
[2023/03/27 20:14:11] DEBUG [replication_task__task_1] [zettarepl.transport.local] [shell:1] [async_exec:126] Success: 'Muria/Reventon\tencryption\toff\tdefault\nMuria/Reventon\tencryptionroot\t-\t-\n'
[2023/03/27 20:14:11] INFO [replication_task__task_1] [zettarepl.replication.pre_retention] Pre-retention destroying snapshots: []
[2023/03/27 20:14:11] INFO [replication_task__task_1] [zettarepl.replication.run] No snapshots to send for replication task 'task_1' on dataset 'reventon'
[2023/03/27 20:14:11] ERROR [replication_task__task_1] [zettarepl.replication.run] For task 'task_1' non-recoverable replication error ReplicationError("Dataset 'reventon' does not have any matching snapshots to replicate")
 

Attachments

  • Screenshot 2023-03-27 at 8.33.54 PM.png
    Screenshot 2023-03-27 at 8.33.54 PM.png
    225 KB · Views: 67
Top