How to activate the rescue mode

Overview Rescue Boot

In case of server failure (configuration error, hard disk errors), the rescue mode restarts your server via the network on a minimal operating system. You can use rescue mode to debug your server and recover your system data.

The rescue mode creates a ramdisk with the content of a downloaded rootfs. You will have access to all your disks and will be able to perform debug and rescue actions. After disabling rescue mode, you will have to reboot your server. In addition, your server needs to be running to switch to rescue mode.

Requirements

Activating Rescue Mode

1 . In the Compute section, select a running server

2 . Click on the Advanced Settings tab

3 . Click on Use bootscript in the Boot Mode section

4 . Select the Rescue bootscript from the list of available bootscripts

5 . Click on Save to update the bootscript Settings

6 . Click on Reboot in the top right corner of the page

7 . A pop-up appears to confirm the reboot of your server, click on Reboot this server to initiate the reboot

rescue_mode

Your server is being rebooted into rescue mode.

Disabling Rescue Mode

1 . In the Compute section, select a running server

2 . Click on the Advanced Settings tab

3 . Several options are available in the Boot Mode section to reboot the server:

  • A virtual Cloud Instance can either boot from the local configuration by selecting Use local boot or from a regular bootscript in the Use bootscript section

  • A BareMetal Cloud Instance can boot from a bootscript by selecting regular bootscript in the Use bootscript section

5 . Click on Save to update the bootscript Settings

6 . Click on Reboot in the top right corner of the page

7 . A pop-up appears to confirm the reboot of your server, click on Reboot this server to initiate the reboot

Your server is being rebooted into normal mode.

Mounting Volumes Requiring Debugging

Your server is now running and you have to mount the volumes that require debug/rescue actions.

To mount the device manually as /mnt/volume0, run the following commands:

root@c1-X-Y-Z-T:~# mkdir -p /mnt/volume0
root@c1-X-Y-Z-T:~# mount /dev/nbd0 /mnt/volume0

The server is now running in rescue mode, the volume that requires debug/rescue action is mounted in the /mnt/volume0. You are now be able to perform debug/rescue actions on this volume editing files in the /mnt/volume0 folder.

Discover a New Cloud Experience

Deploy SSD Cloud Servers in seconds.