Putting an instance in rescue mode

Find out how to activate rescue mode for your Public Cloud instance

Last updated 26th July 2021

Objective

Your Public Cloud instance may become inaccessible due to a lost SSH key or configuration errors.

In such circumstances, you can use the rescue mode to reconfigure your instance or to recover your data.

This guide explains how to put your OVHcloud Public Cloud instance in rescue mode and access your data.

Requirements

Instructions

Step 1: Activating rescue mode

First, log in to the OVHcloud Control Panel, go to the Public Cloud section and select the Public Cloud service concerned. Then, click on the Instances tab in the left-hand navigation.

control panel

Next, click on ... to the right of the instance and select Reboot in rescue mode

control panel

You will now see the 'Reboot in rescue mode' dialog box. Click the dropdown list to select the distribution you would like to use in rescue mode and then click the Restart button.

control panel

Once your instance has been rebooted in rescue mode, an information box will display the available ways of access. Your temporary rescue mode password will only be shown in the VNC console. Click on your instance in the table, then switch to the tab VNC console to retrieve it.

control panel

Step 2: Accessing your data

When rescue mode has been activated, your instance's data will be attached as an additional disk. You will now need to mount it, by taking the following steps.

First, establish an SSH connection to your instance. Once you are connected, verify the available disks with this command:

root@instance:/home/admin# lsblk

NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
vda 253:0 0 1G 0 disk
└─vda1 253:1 0 1023M 0 part /
vdb 253:16 0 10G 0 disk
└─vdb1 253:17 0 10G 0 part

Next, mount the partition:

root@instance:/home/admin# mount /dev/vdb1 /mnt

Your data will now be accessible from the /mnt folder.

Step 3: Deactivating rescue mode

Once you have completed your tasks, you can deactivate rescue mode by rebooting your instance from the Control Panel interface. To execute this, click on on ... and select Exit rescue mode.

control panel

Activating rescue mode using the OpenStack API

You can also activate rescue mode via the OpenStack API using the following command:

# root@server:~# nova rescue INSTANCE_ID

To exit rescue mode, use the following command:

# root@server:~# nova unrescue INSTANCE_ID

Go further

Join our community of users on https://community.ovh.com/en/.


Did you find this guide useful?

Please feel free to give any suggestions in order to improve this documentation.

Whether your feedback is about images, content, or structure, please share it, so that we can improve it together.

Your support requests will not be processed via this form. To do this, please use the "Create a ticket" form.

Thank you. Your feedback has been received.


These guides might also interest you...

OVHcloud Community

Access your community space. Ask questions, search for information, post content, and interact with other OVHcloud Community members.

Discuss with the OVHcloud community

In accordance with the 2006/112/CE Directive, modified on 01/01/2015, prices exclude VAT. VAT may vary according to the customer's country of residence.