Skip to content

Commit fdb6b74

Browse files
committed
feat(ins): add how-to migrate to sbs
1 parent 8c34ba3 commit fdb6b74

File tree

2 files changed

+98
-0
lines changed

2 files changed

+98
-0
lines changed

menu/navigation.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1514,6 +1514,10 @@
15141514
"label": "Use flexible IPs",
15151515
"slug": "use-flexips"
15161516
},
1517+
{
1518+
"label": "Migrate Local Storage volumes to Block Storage",
1519+
"slug": "migrate-local-storage-sbs"
1520+
},
15171521
{
15181522
"label": "Move an Instance to routed flexible IPs",
15191523
"slug": "migrate-routed-ips"
Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
---
2+
meta:
3+
title: How to migrate Instance Local Storage to Block Storage volumes
4+
description: This page explains how to migrate Instance Local Storage to Block Storage volumes.
5+
h1: How to migrate Instance Local Storage to Block Storage volumes
6+
paragraph: This page explains how to migrate Instance Local Storage to Block Storage volumes.
7+
tags: instance migration local sroage block storage sbs
8+
dates:
9+
validation: 2025-04-22
10+
posted: 2024-04-22
11+
categories:
12+
- compute
13+
---
14+
15+
This tutorial guides you through the process of migrating your Instance's Local Storage (`l_ssd`) to Scaleway Block Storage (SBS).
16+
By following these steps, you will be able to export your local storage and restart your Instance with SBS.
17+
18+
<Macro id="requirements" />
19+
- A Scaleway account logged into the [console](https://console.scaleway.com)
20+
- [Owner](/iam/concepts/#owner) status or [IAM permissions](/iam/concepts/#permission) allowing you to perform actions in the intended Organization
21+
- An [Instance](/instances/how-to/create-an-instance/) using [Local Storage (`l_ssd`)](/local-storage/)
22+
- An [Object Storage bucket](/object-storage/how-to/create-a-bucket/) in the same geographical region as your Instance
23+
24+
## Creating a snapshot of your Local Storage volume
25+
26+
To begin the migration process, you need to create a snapshot of your Local Storage volume. This will allow you to export the snapshot and import it into a new SBS volume.
27+
28+
1. Click **Instances** in the **Compute** section of the side menu. The [Instances page](https://console.scaleway.com/instance/servers) displays.
29+
2. Click the Instance you want to snapshot.
30+
3. Click the **Storage** tab to display the storage options of your Instance.
31+
4. Click <Icon name="more" /> > **Snapshot** next to the volume you want to snapsot.
32+
5. A pop-up displays. Choose a **name** for the snapshot, or use the default suggested name.
33+
6. Click **Create snapshot** to finish. You are redirected to the **Snapshots** tab in the **Local Storage** section of the Scaleway console, where your new snapshot now appears in the list.
34+
35+
## Exporting the snapshot
36+
37+
Once you have created the snapshot, you need to export it. This will allow you to import the snapshot into a new SBS volume.
38+
39+
1. Click the [snapshots](https://console.scaleway.com/local-storage/snapshots) tab in the **Local Storage** section of the Scaleway console.
40+
2. A list of your Local Storage snapshots displays. Click <Icon name="more" /> > **Copy to bucket**.
41+
3. A pop-up displays. Enter a name for the QCOW2 export of your snapshot and select the Object Storage bucket to export your snapshot into from the drop-down list.
42+
<Message type="note">
43+
The Object Storage bucket must be in the same region as your snapshot.
44+
</Message>
45+
4. Click **Copy snapshot to bucket** to start the export.
46+
47+
## Importing the snapshot into a new SBS volume
48+
49+
After exporting the snapshot, you need to import it into a new SBS volume. This will create a new volume with the same data as your local storage volume.
50+
51+
1. Click the [Object Storage section](https://console.scaleway.com/object-storage/buckets) of the Scaleway console, then click the bucket to which you have exported the snapshot. The snapshot copy should display in the list of your objects.
52+
<Message type="note">
53+
Depending on the size of your snapshot, the export to Object Storage may take some time. It is ready once the status indicator changes to green.
54+
</Message>
55+
2. Click <Icon name="more" /> next to the snapshot copy, then click **Import as snapshot**. A pop-up displays. Enter the name of the snapshot, select the destination AZ, and choose the snapshot type.
56+
Select **Block SSD** as the snapshot type. Click **Import file as snapshot** to import the snapshot into the destination AZ.
57+
<Message type="important">
58+
- Ensure that the QCOW / QCOW2 image file you want to import uses the file extension `.qcow` or `.qcow2` to avoid issues during import.
59+
- Imported snapshots must have a volume size between 1 GB and 1 TB.
60+
</Message>
61+
62+
## Attaching the new SBS volume to your Instance
63+
64+
Once the new SBS volume is created, you need to attach it to your instance. This will allow you to use the new volume as your primary storage.
65+
66+
1. Click **Block Storage** in the **Storage** section of the Scaleway console side menu. The Block Storage page displays.
67+
2. Click **Attach an Instance** under the **Linked Instance** section.
68+
3. Select the Instance to which you want to attach your volume from the drop-down.
69+
4. Click **Attach volume to Instance**.
70+
71+
<Message type="tip">
72+
Alternatively you can [create a new Instance](/instances/how-to/create-an-instance/) and use the SBS volume as boot volume for your Instance.
73+
</Message>
74+
75+
## Restarting your Instance
76+
77+
After attaching the new SBS volume, you need to restart your instance. This will ensure that your Instance is using the new SBS volume as its primary storage.
78+
79+
1. Click **Instances** in the **Compute** section of the side menu. The [Instances page](https://console.scaleway.com/instance/servers) displays.
80+
2. Click the Instance you want to reboot.
81+
3. Click **Actions** > **Reboot** in the top right corner of the Instance overview page.
82+
4. A pop-up displays to confirm the Instance reboot. Click **Reboot Instance**.
83+
84+
## Conclusion
85+
86+
By following these steps, you have successfully migrated your local storage (`l_ssd`) to Scaleway Block Storage (SBS).
87+
Your Instance is now up and running using SBS, and you can benefit from the advantages of Scaleway's advanced Block Storage solution.
88+
89+
For furher information, refer to [How to migrate existing volumes and snapshots to Scaleway's new Block Storage management](/instances/how-to/migrate-volumes-snapshots-to-sbs/).
90+
91+
<Message type="note">
92+
This tutorial does not cover specific modifications done by the user in the Instance that would break the mounting system.
93+
If you have made any modifications, ensure that they are compatible with SBS before proceeding with the migration.
94+
</Message>

0 commit comments

Comments
 (0)