-
Notifications
You must be signed in to change notification settings - Fork 258
docs(blk): update block doc MTA-6162 #5644
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 7 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
907546a
docs(blk): update block doc MTA-6182
SamyOubouaziz e1c821f
docs(blk): update
SamyOubouaziz 04aca29
docs(blk): update
SamyOubouaziz bcde5b6
docs(blk): update
SamyOubouaziz 9ecc641
docs(blk): update
SamyOubouaziz b8e3274
docs(blk): update
SamyOubouaziz 10d3983
Merge branch 'main' into MTA-6162
SamyOubouaziz 2691ae5
docs(blk): update
SamyOubouaziz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,63 @@ | ||
| --- | ||
| title: Increasing the size of a partition | ||
| description: Learn how to increase the size of a partition within a Block Storage Volume | ||
| tags: volume block-storage block resize growpart increase size | ||
| dates: | ||
| validation: 2025-10-13 | ||
| posted: 2019-11-29 | ||
| --- | ||
| import Requirements from '@macros/iam/requirements.mdx' | ||
|
|
||
| The `growpart` utility allows you to resize partitions. If you have increased the size of the partition's underlying volume, for example, you can increase the size of the partition to make use of the additional space. | ||
|
|
||
| <Requirements /> | ||
|
|
||
| - A Scaleway account logged into the [console](https://console.scaleway.com) | ||
| - [Owner](/iam/concepts/#owner) status or [IAM permissions](/iam/concepts/#permission) allowing you to perform actions in the intended Organization | ||
| - An [Instance](/instances/concepts/#instance) | ||
| - [Attached](/block-storage/how-to/attach-a-volume/) an additional Block Storage volume to your Instance | ||
|
|
||
| <Message type="important"> | ||
| - Make sure to make a backup of your data using the [snapshot](/block-storage/how-to/create-a-snapshot/) feature beforehand to avoid any potential data loss | ||
| - You must have partitioned your volume to follow the procedure below | ||
| - If the partition you want to resize is mounted, you must [unmount it](/block-storage/api-cli/unmounting-a-volume/) beforehand | ||
| </Message> | ||
|
|
||
| 1. Connect to your Instance using [SSH](/instances/how-to/connect-to-instance/). | ||
|
|
||
| 2. Use the `lsblk` command to identify your volume partition. Ensure that the partition is **not mounted before you resize it**. In the following example, we are resizing `sdb1`: | ||
|
|
||
| ``` | ||
| root@scw-festive-agnesi:~# lsblk | ||
| NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS | ||
| sda 8:0 0 23.3G 0 disk | ||
| ├─sda1 8:1 0 23.2G 0 part / | ||
| ├─sda14 8:14 0 4M 0 part | ||
| └─sda15 8:15 0 106M 0 part /boot/efi | ||
| sdb 8:16 0 38.6G 0 disk | ||
| └─sdb1 8:17 0 18.6G 0 part | ||
| ``` | ||
|
|
||
| 3. Use `growpart` to increase the partition size of your Block Storage volume (here `sdb1`): | ||
|
|
||
| ``` | ||
| # Replace /dev/sdX 1 with the name of your partition | ||
| growpart /dev/sdX 1 | ||
| ``` | ||
|
|
||
| An output similar to the following displays: | ||
|
|
||
| ``` | ||
| CHANGED: partition=1 start=0 old: size=39061504 end=39061504 new: size=58490880 end=58490880 | ||
| ``` | ||
|
|
||
| 4. Use `lsblk` to check that the partition was correctly resized. In the following output, you can see that our partition `sbd1` went from `18.6G` (step 2) to `27.9G`. | ||
| ``` | ||
| root@scw-festive-agnesi:~# lsblk | ||
| NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS | ||
| sda 8:0 0 18.6G 0 disk | ||
| ├─sda1 8:1 0 18.5G 0 part / | ||
| ├─sda14 8:14 0 4M 0 part | ||
| └─sda15 8:15 0 106M 0 part /boot/efi | ||
| sdb 8:16 0 27.9G 0 disk | ||
| └─sdb1 8:17 0 27.9G 0 part | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
42 changes: 42 additions & 0 deletions
42
pages/block-storage/api-cli/transfer-local-data-to-volume.mdx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,42 @@ | ||
| --- | ||
| title: Transferring local data to a Block Storage volume | ||
| description: This page explains how to transfer local data to a Block Storage volume mounted to a Scaleway Instance. | ||
| tags: copy transfer upload rsync ftp send data file local fylesystem | ||
| dates: | ||
| validation: 2025-10-10 | ||
| posted: 2025-10-10 | ||
| --- | ||
| import Requirements from '@macros/iam/requirements.mdx' | ||
|
|
||
| You can transfer files from your local machine to your Instance's remote Block volume with [rsync](https://en.wikipedia.org/wiki/Rsync), a tool for efficiently transferring and copying files. The rsync utility is pre-installed on most Linux distributions and macOS. | ||
|
|
||
| <Requirements /> | ||
|
|
||
| - A Scaleway account logged into the [console](https://console.scaleway.com) | ||
| - [Owner](/iam/concepts/#owner) status or [IAM permissions](/iam/concepts/#permission) allowing you to perform actions in the intended Organization | ||
| - An [Instance](/instances/concepts/#instance) | ||
| - [Attached](/block-storage/how-to/attach-a-volume/) a Block Storage volume to your Instance | ||
| - Installed [Rsync](https://rsync.samba.org/) | ||
|
|
||
| 1. Check that rsync is installed on your local machine with the following command: | ||
| ``` | ||
| rsync --version | ||
| ``` | ||
|
|
||
| An output similar to the following displays: | ||
|
|
||
| ```sh no-copy | ||
| rsync version 3.1.3 protocol version 31 | ||
| ``` | ||
|
|
||
| 2. Run the following command to transfer the file to your Instance's mounted block volume. Ensure that you use your own Instance's IP address: | ||
|
|
||
| ``` | ||
| rsync -a path/to/file.txt root@<your_instance_ip>:/mnt/block-volume | ||
| ``` | ||
|
|
||
| The file is now transferred. You can connect to your Instance again, and run the command below to check that your file is present in your Block Storage volume: | ||
SamyOubouaziz marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| ```bash | ||
| ls /mnt/block-volume | ||
| ``` | ||
| Refer to the [official Rsync documentation](https://download.samba.org/pub/rsync/rsync.1#OPTION_SUMMARY) for more information on the different options available. | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.