Learn how to put your OVHcloud Public Cloud instance in rescue mode and access your data.
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.
- a Public Cloud instance in your OVHcloud account
- access to the OVHcloud Control Panel
- administrative access (root) to your instance via SSH
Step 1: Activating rescue mode
From the OVHcloud Control Panel:
Public Cloudfrom the top navigation bar.
Instancesfrom the left-hand menu.
- Select the more options
...button to the right of your instance.
Reboot in rescue mode.
You will now see the Reboot in rescue mode dialog box. Click the drop-down list to
select the distribution you would like to use in rescue mode and then click the
Once your instance has been rebooted in rescue mode, an information box will display the options to access it. 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.
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 sda 253:0 0 1G 0 disk └─sda1 253:1 0 1023M 0 part / sdb 253:16 0 10G 0 disk └─sdb1 253:17 0 10G 0 part
Next, mount the partition:
root@instance:/home/admin# mount /dev/sdb1 /mnt
Your data will now be accessible from the
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 the more options
... button and select
Exit rescue mode.
Exit rescue modebutton is not displayed while the instance is in rescue mode, we recommend that you refresh your tab.
Activating rescue mode using the OpenStack API
You can also activate rescue mode via the OpenStack API using the following command:
root@instance:~# nova rescue INSTANCE_ID
To exit rescue mode, use the following command:
root@instance:~# nova unrescue INSTANCE_ID