-
Notifications
You must be signed in to change notification settings - Fork 258
feat(elastic-metal): add page for rescue data for EM in rescue mode and troubleshoot ssh issues #4756
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
bene2k1
merged 11 commits into
scaleway:main
from
Jonathan-alter:ext-elastic-metal-rescue-data-ssh-issues
Apr 8, 2025
Merged
feat(elastic-metal): add page for rescue data for EM in rescue mode and troubleshoot ssh issues #4756
Changes from 7 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
641fd47
feat(elastic-metal): add page for rescue data for EM in rescue mode a…
Jonathan-alter a7eb8da
--- meta: title: How to rescue and recover your data using rescue m…
Jonathan-alter c272333
Update pages/elastic-metal/troubleshooting/troubleshoot-rescue-your-d…
Jonathan-alter 80b1ca3
Update pages/elastic-metal/troubleshooting/troubleshoot-ssh-issues.mdx
Jonathan-alter 4136ddf
Update pages/elastic-metal/troubleshooting/troubleshoot-rescue-your-d…
Jonathan-alter 9e912f3
Update pages/elastic-metal/troubleshooting/troubleshoot-rescue-your-d…
Jonathan-alter ee7f82d
Update pages/elastic-metal/troubleshooting/troubleshoot-rescue-your-d…
Jonathan-alter 6f34439
Update pages/elastic-metal/troubleshooting/troubleshoot-rescue-your-d…
Jonathan-alter b0c3ff4
Update pages/elastic-metal/troubleshooting/troubleshoot-rescue-your-d…
Jonathan-alter 59e5d16
Update pages/elastic-metal/troubleshooting/troubleshoot-rescue-your-d…
Jonathan-alter 37284ab
Update pages/elastic-metal/troubleshooting/troubleshoot-ssh-issues.mdx
nerda-codes 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
93 changes: 93 additions & 0 deletions
93
pages/elastic-metal/troubleshooting/troubleshoot-rescue-your-data.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,93 @@ | ||
| --- | ||
| meta: | ||
| title: Rescuing and recovering your data using rescue mode on Elastic Metal servers | ||
| description: Learn how to recover and download backups of your data from a Scaleway Elastic Metal server using rescue mode with SFTP | ||
| content: | ||
| h1: Rescuing and recovering your data using rescue mode on Elastic Metal servers | ||
| paragraph: Learn how to recover and download backups of your data from a Scaleway Elastic Metal server using rescue mode with SFTP. | ||
| tags: recovery rescue data rescue-mode | ||
| dates: | ||
| validation: 2025-04-01 | ||
| posted: 2025-04-01 | ||
| categories: | ||
| - bare-metal | ||
| - elastic-metal | ||
| --- | ||
|
|
||
| If your Elastic Metal server encounters issues but does not have a hardware failure, you can still recover your data using rescue mode, regardless of whether you are using Windows or Linux. | ||
|
|
||
| <Macro id="requirements" /> | ||
|
|
||
| - A Scaleway account logged into the [console](https://console.scaleway.com) | ||
| - A [created](/elastic-metal/how-to/create-server/) and [installed](/elastic-metal/how-to/install-server/) Elastic Metal server | ||
|
|
||
| ## Booting into rescue mode | ||
|
|
||
| 1. Follow [these instructions](/elastic-metal/how-to/use-rescue-mode/) to start your server in rescue mode (emergency system) via the Scaleway console. | ||
| 2. Log into your server using one of the following methods: | ||
| - [PuTTY](http://the.earth.li/~sgtatham/putty/latest/x86/putty.exe) on [Windows](/elastic-metal/how-to/connect-to-server/#how-to-connect-to-an-elastic-metal-server-from-windows) | ||
| - `ssh` from a terminal on [Linux or macOS](/elastic-metal/how-to/connect-to-server/#how-to-connect-to-an-elastic-metal-server-from-osx-mac-and-linux). | ||
|
|
||
| <Message type="tip"> | ||
| The rescue mode credentials (username and password) are displayed in your Scaleway console. | ||
| </Message> | ||
|
|
||
| ## Gaining root access | ||
|
|
||
| By default, you are logged in as a regular user in rescue mode and may not have permission to execute all necessary commands. | ||
|
|
||
| 1. Switch to the `root` account by typing the following command and pressing Enter: | ||
| ```bash | ||
| sudo su | ||
| ``` | ||
| 2. Enter the rescue user password displayed in the Scaleway console and press Enter. | ||
|
|
||
| <Message type="tip"> | ||
| For security reasons, the password will not be visible when typing. | ||
| </Message> | ||
|
|
||
| ## Mounting partitions | ||
|
|
||
| To access your data, you need to mount your server’s partitions in rescue mode. If this step succeeds, you can likely recover your files. | ||
|
|
||
| 1. As the `root` user, run the following command to mount all partitions: | ||
Jonathan-alter marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| ```bash | ||
| mountall.sh | ||
| ``` | ||
| The partitions will be mounted in the `/mnt` directory. | ||
|
|
||
| <Message type="note"> | ||
| You may encounter errors such as `swap cannot be mounted` or `many partitions do not exist`. These can be safely ignored. | ||
| </Message> | ||
|
|
||
| ## Recovering your data | ||
|
|
||
| You can recover your data by downloading it directly to your local computer via SFTP. | ||
|
|
||
| <Message type="important"> | ||
| Exercise caution when editing your data in rescue mode. The `root` user has full permissions, including the ability to irreversibly delete files. | ||
| </Message> | ||
|
|
||
| ### Backing up data to your personal computer (via SFTP) | ||
|
|
||
| You can use an SFTP client like [FileZilla](https://filezilla-project.org/) to download data from your server. | ||
|
|
||
| 1. Open FileZilla and fill in the following details: | ||
Jonathan-alter marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| - **Host**: Your server’s IP address | ||
| - **Username**: Rescue mode username (e.g., `em-XXXX`) | ||
| - **Password**: Rescue mode password | ||
| - **Port**: 22 | ||
|
|
||
| <Message type="tip"> | ||
| These details are available in your console once rescue mode is active. | ||
| </Message> | ||
|
|
||
| #### Example configuration | ||
|
|
||
| <Lightbox src="sftp.webp" /> | ||
|
|
||
| Your data will be located in the `/mnt`, `/sda1`, or `/sda` directories. You can download it before reinstalling the server or transferring data to another server. | ||
|
|
||
| <Message type="tip"> | ||
| If you encounter difficulties, consider contacting a [certified outsourcer](https://www.scaleway.com/en/dedibox/outsourcing/) for professional data recovery. | ||
| </Message> | ||
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
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.