Open networkingana opened 1 year ago
Hi @networkingana,
rack aware restores were introduced in k8ssandra-operator v1.8.0.
I'm not entirely sure v1.2.0 provided placement information in the backups, which could make them unsuitable for restoring with v1.8.0 🤔 You'd have to check the topology.json
files from the backups to verify this. If you have the dc/rack information in that file, it means you should be able to safely restore backups to v1.8.0.
You'll need to have the exact same dc and rack names in the target cluster.
@adejanovski, I have another issue but not sure if it's related. When trying to restore the backup into a new cluster, but with a different datacenter, I get this error: Both clusters run on the same namespace, so I'm using different names of datacenters.
I'm using this documentation to create the restore: https://docs.k8ssandra.io/tasks/backup-restore/#restoring-a-backup
Hi @EmanuelSanchez, this is not supported. The datacenter names are part of the replication settings for each keyspace, and Medusa restores the schema by downloading the system_schema sstables. Hence we cannot modify the dc names. Note that you can override the datacenter name in order to create another "dc1" datacenter but with a different CassandraDatacenter name:
....
datacenters:
- config:
jvmOptions:
gc: G1GC
datacenterName: dc1
metadata:
name: override-dc1
...
The CQL name of the dc will be dc1
but the CassandraDatacenter kubernetes object will be named override-dc1
.
That's great. It worked. Thank you so much
What did you do?
I created a backup using MedusaBackupJob of my datacenter with production data, after the backup finished it was stored on MinIO, then I used MedusaTask to sync the backup to the new separated cluster, and then run MedusaRestoreJob, the restore seems to finish successfully looking from the medusa-restore logs, but after that, nodes one start, the issue is the following:
I tried to add the flag to ignore rack but then the
nodetool status
command showed two racks with same name, which was wrongEnvironment
Source DC: k8ssandra-operator version 1.2.1 Destination DC: k8ssandra-operator version 1.7.1
┆Issue is synchronized with this Jira Story by Unito ┆Issue Number: K8OP-78