NavigationContentFooter
Jump toSuggest an edit

How to migrate existing volumes and snapshots to Scaleway's new Block Storage management

Reviewed on 07 August 2024Published on 07 August 2024

Scaleway is transitioning the management of Block Storage volumes and snapshots from compute teams to storage teams to enhance performance and reliability. While the characteristics of your migrated volumes and snapshots will remain unchanged, they will now be managed by Scaleway’s new storage management system. This guide provides the steps needed to migrate your volumes and snapshots smoothly.

Before you start

To complete the actions presented below, you must have:

  • A Scaleway account logged into the console
  • An Instance using Block Storage volumes

Migrating an existing Block Storage volume to Scaleway Block Storage management

Important

This process applies only to Block SSD (b_ssd) volumes.

  1. Plan the migration by using the following curl command:

    curl --location "https://api.scaleway.com/instance/v1/zones/$SCW_AVAILABILITY_ZONE/block-migration/plan" \
    --header "Content-Type: application/json" \
    --header "X-Auth-Token: $SCW_SECRET_KEY" \
    --data "{
    \"volume_id\": \"$SCW_VOLUME_ID\"
    }"

    The response includes the volume and any snapshots created from the volume that will be migrated. It also returns a validation_key.

  2. Confirm the migration by using the following curl command:

    curl --location "https://api.scaleway.com/instance/v1/zones/$SCW_AVAILABILITY_ZONE/block-migration/apply" \
    --header "Content-Type: application/json" \
    --header "X-Auth-Token: $SCW_SECRET_KEY" \
    --data "{
    \"volume_id\": \"$SCW_VOLUME_ID\",
    \"validation_key\": \"$SCW_VALIDATION_KEY\"
    }"

Migrating an existing Block Storage snapshot to Scaleway Block Storage management

Important

This process applies to Block SSD (b_ssd) or Unified (unified) snapshots.

  1. Plan the migration by using the following curl command:

    curl --location "https://api.scaleway.com/instance/v1/zones/$SCW_AVAILABILITY_ZONE/block-migration/plan" \
    --header "Content-Type: application/json" \
    --header "X-Auth-Token: $SCW_SECRET_KEY" \
    --data "{
    \"snapshot_id\": \"$SCW_SNAPSHOT_ID\"
    }"

    The response includes the source volume of the snapshot and any snapshots created from this volume, including the snapshot_id provided by the user. It also returns a validation_key.

  2. Confirm the migration using the following curl command:

    curl --location "https://api.scaleway.com/instance/v1/zones/$SCW_AVAILABILITY_ZONE/block-migration/apply" \
    --header "Content-Type: application/json" \
    --header "X-Auth-Token: $SCW_SECRET_KEY" \
    --data "{
    \"snapshot_id\": \"$SCW_SNAPSHOT_ID\",
    \"validation_key\": \"$SCW_VALIDATION_KEY\"
    }"

Going further

To learn more about managing your migrated Block Storage volumes from the Scaleway console, refer to the Block Storage - Console documentation. Additionally, you can manage your Block Storage volumes using the Scaleway Block Storage API.

See also
How to use the snapshot import/export featureHow to migrate Instances
Docs APIScaleway consoleDedibox consoleScaleway LearningScaleway.comPricingBlogCarreer
© 2023-2024 – Scaleway