ScyllaDB University Live | Free Virtual Training Event
Learn more
ScyllaDB Documentation Logo Documentation
  • Server
  • Cloud
  • Tools
    • ScyllaDB Manager
    • ScyllaDB Monitoring Stack
    • ScyllaDB Operator
  • Drivers
    • CQL Drivers
    • DynamoDB Drivers
  • Resources
    • ScyllaDB University
    • Community Forum
    • Tutorials
Download
ScyllaDB Docs Scylla Manager Restore Restore schema for ScyllaDB 5.4/2024.1 or older

Restore schema for ScyllaDB 5.4/2024.1 or older¶

Note

Currently, Scylla Manager supports only entire schema restoration, so --keyspace flag is not allowed.

Note

Because of small size of schema files, resuming schema restoration always starts from scratch.

Warning

Restoring schema into a cluster with ScyllaDB 5.4.X or 2024.1.X with consistent_cluster_management: true isn’t supported. Please see the following workaround.

In order to restore ScyllaDB cluster schema use sctool restore with --restore-schema flag.
Please note that the term schema specifically refers to the data residing in the system_schema keyspace, such as keyspace and table definitions. All other data stored in keyspaces managed by ScyllaDB, such as authentication data in the system_auth keyspace, is restored as part of the restore tables procedure.
The restore schema procedure works with any cluster size, so the backed-up cluster can have a different number of nodes per data center than the restore destination cluster. However, it is important that the restore destination cluster consists of at least all of the data centers present in the backed-up cluster.

Prerequisites¶

  • ScyllaDB Manager with CQL credentials to restore destination cluster.

  • It is strongly advised to restore schema only into an empty cluster with no schema change history of the keyspace that is going to be restored.

    Otherwise, the restored schema might be overwritten by the already existing one and cause unexpected errors.

  • All nodes in restore destination cluster should be in the UN state (See nodetool status for details).

Procedure¶

This section contains a description of the restore-schema procedure performed by ScyllaDB Manager.

Because of being unable to alter schema tables tombstone_gc option, restore procedure “simulates ad-hoc repair” by duplicating data from each backed-up node into each node in restore destination cluster. However, the small size of schema files makes this overhead negligible.

  • Validate that all nodes are in the UN state

  • For each backup location:

    • Find all ScyllaDB nodes with location access and use them for restoring schema from this location

    • List backup manifests for specified snapshot tag

  • For each manifest:

    • Filter relevant tables from the manifest

    • For each table:

      • For each node (in --parallel):

        • Download all SSTables

  • For all nodes in restore destination cluster:

    • nodetool refresh on all downloaded schema tables (full parallel)

Follow-up action¶

After successful restore it is important to perform necessary follow-up action. In case of restoring schema, you should make a rolling restart of an entire cluster. Without the restart, the restored schema might not be visible, and querying it can return various errors.

Restoring schema into a cluster with ScyllaDB 5.4.X or 2024.1.X with consistent_cluster_management¶

Restoring schema when using ScyllaDB 5.4.X or 2024.1.X with consistent_cluster_management: true in scylla.yaml is not supported. In such case, you should perform the following workaround:

  • Create a fresh cluster with consistent_cluster_management: false configured in scylla.yaml and a desired ScyllaDB version.

  • Restore schema via sctool restore with --restore-schema flag.

  • Perform rolling restart of an entire cluster.

  • Follow the steps of the Enable Raft procedure.

Was this page helpful?

PREVIOUS
Restore schema for ScyllaDB 6.0/2024.2 or newer
NEXT
Examples
  • Create an issue
  • Edit this page

On this page

  • Restore schema for ScyllaDB 5.4/2024.1 or older
    • Prerequisites
    • Procedure
    • Follow-up action
    • Restoring schema into a cluster with ScyllaDB 5.4.X or 2024.1.X with consistent_cluster_management
Scylla Manager
  • 3.5
    • master
    • 3.5
    • 3.4
    • 3.3
  • Docker
  • Install ScyllaDB Manager
  • Install ScyllaDB Manager Agent
  • ScyllaDB Manager Upgrade
  • Compatibility Matrix
  • Add a Cluster
  • Backup
    • Setup Amazon S3
    • Setup S3 compatible storage
    • Setup Google Cloud Storage
    • Setup Azure Blob Storage
    • Examples
    • Specification
  • Restore
    • Restore tables
    • Restore schema for ScyllaDB 6.0/2024.2 or newer
    • Restore schema for ScyllaDB 5.4/2024.1 or older
    • Examples
  • Repair
    • Repair faster
    • Repair slower
    • Examples
  • Health Check
  • CLI sctool
    • Environment variables
    • Completion
    • Download files
    • Backup
    • Restore
    • Cluster
    • Info
    • Progress
    • Repair
    • Start
    • Status
    • Stop
    • Suspend & Resume
    • Tasks
    • Version
  • Configuration Files
    • Scylla Manager Config
    • Scylla Manager Agent Config
  • Swagger File
  • ScyllaDB Monitoring
  • Troubleshooting
  • Slack
Docs Tutorials University Contact Us About Us
© 2025, ScyllaDB. All rights reserved. | Terms of Service | Privacy Policy | ScyllaDB, and ScyllaDB Cloud, are registered trademarks of ScyllaDB, Inc.
Last updated on 07 May 2025.
Powered by Sphinx 7.4.7 & ScyllaDB Theme 1.8.6