I recently built a new TrueNAS machine with the intent to migrate from an existing TrueNAS. In order to copy the data I created a snapshot manually and recursively on the root dataset of the old machine. Then I created a replication task on old machine. My intent was to copy all of the datasets recursively and keep the same dataset names, structure, and configuration on the new machine. For this task I used the root dataset as the source, `manual-%Y-%m-%d_%H-%M` as the snapshot naming schema, and checked both "Synchronize Destination Snapshots With Source" and "(Almost) Full Filesystem Replication". Everything seemed to be going alright until after several days the new machine suffered a power outage and the replication task running from the old machine failed.
One odd thing I noticed is that I had been monitoring the size of the pool on the new machine as a sort of progress indicator and after booting up I saw it has made about 60% of the way through the replication. But then refreshing the pools page repeatedly I kept seeing the size of the pool drop, eventually stopping at about 50% of the total size of the source. I don't understand what was happening there.
Anyway, what I'd really like to do now is resume my replication, have it pick up where it left off, and hopefully finish successfully. I was really afraid of the "Synchronize Destination Snapshots With Source" option deleting the progress I had made so I unchecked it and reran the task. This fails with an error "Last full ZFS replication failed to transfer snapshot". It says "Please run `zfs destroy storage@manual-2023-12-30_22-45` on the target system and run replication again." which I'm also afraid to do because I don't fully understand the implication in this case and don't want to lose all the data on the new pool or inadvertently re-copy all the same bytes.
One odd thing I noticed is that I had been monitoring the size of the pool on the new machine as a sort of progress indicator and after booting up I saw it has made about 60% of the way through the replication. But then refreshing the pools page repeatedly I kept seeing the size of the pool drop, eventually stopping at about 50% of the total size of the source. I don't understand what was happening there.
Anyway, what I'd really like to do now is resume my replication, have it pick up where it left off, and hopefully finish successfully. I was really afraid of the "Synchronize Destination Snapshots With Source" option deleting the progress I had made so I unchecked it and reran the task. This fails with an error "Last full ZFS replication failed to transfer snapshot". It says "Please run `zfs destroy storage@manual-2023-12-30_22-45` on the target system and run replication again." which I'm also afraid to do because I don't fully understand the implication in this case and don't want to lose all the data on the new pool or inadvertently re-copy all the same bytes.