Am Freitag, 19. Juni 2020, 17:04:56 CEST schrieb Dan Yasny:
> If you are restoring to the same amount and size (core count) of nodes,
> just make sure you backup and restore the system tables as well. That will
> enforce a similar token ring topology as the original cluster had. You need
> to have the exact same IP addresses as before of course.
ok, the IPs are different, this cannot be changed.
> Another option would be to set the token list in scylla.yaml as
> initial_token: [tokenlist] but this will require for you to remove the
> settings later on.
Just to be sure:
From each node I get the tokenlist and set it as "initial_token:..." on a new
node: so, on node new_1 I set the initial_token from, say, node old_1.
Then I put the backup from old_1 into new_1's table directories.
After doing this for all 8 nodes I start the new cluster, do a repair.
After that I have to remove the initial_token setting from the config.
>
> One last and the more genetic option would be to simply load all the
> sstables into all the nodes and do a nodetool refresh/nodetool cleanup
> after each ingestion step. This will load the node with the relevant data
> and shed the irrelevant stuff. Bit of an overkill, but you will not lose
> anything and will be able to restore to any size/configuration cluster
> instead of an exact mirror of the old cluster.
With this variant I do it as:
I put the all the sstable files form say old_1 into the table/upload folders of
node new_1, then do a refresh.
Then I put all the sstables from old_2 into the table/upload folders of new_2
and do a refresh.
After doing this for all 8 nodes, I execute a cleanup on all nodes.
Is this correct? (Any mistake is just... really time consuming )
cheers
Michael