This mode allows to restore the server's operation if the server is unable to start after reboot, or no remote connection is available. One of the templates is loaded from the location to the server when recovery starts. Template is a LiveCD image of the operating system SystemRescueCD. This OS is intended for maintenance, diagnostics and debugging of the server. Read more about SystemRescueCD in the official documentation.
Preparing the server for recovery
Server can be recovered if:
- a Linux family OS is installed;
- network boot function via iPXE or PXE is configured.
We recommend configuring the server connection to a BMC (Intel AMT) or PDU. If the connection is not configured, the server will need to be rebooted manually to start the operation.
Make sure that the recovered server is in the same L2 network segment with the location server, and DHCP, TFTP and HTTP traffic is allowed on this segment.
Prior to starting the recovery, install recovery templates onto the server's location. Read more in How to add a location.
Recovery mode start
To run server recovery mode:
- Go to Servers → select server → Run recovery → .
- Select the Recovery template:
- Sysrescd6-x86_64 — a recommended template based on SystemRescue CD 6;
- FreeBSD-rescue-amd64 — for FreeBSD OS;
- Select Server boot mode. If the server supports only one of the network boot modes, select a required one: PXE or iPXE. If both variants are supported, we recommend that you use the one set by the operation template per default.
- Press Run.
- Enter Server administrator password.
- If the server is not configured to connect to a PDU, BMC or Intel AMT, reboot the server manually.
After the start of operation, DCImanager will proceed to load the selected recovery template to the server. The template loading process is displayed at Servers page in Status column. After completion of loading, you can connect to the server via SSH with superuser permissions using the password you have created.
Recovery mode canceling
To exit recovery mode, go to Servers → select the server → → Cancel the current operation → Cancel recovery. The server will reboot automatically. If the server is not configured to connect to a PDU, BMC or Intel AMT, reboot the server manually.
Example of the superuser password recovery on the server
- Connect to the server, loaded with the recovery template via SSH.
Specify the drives connection method. For instance wit the command:
- Define the root directory.
Create the directory:
Mount the root directory:
mount /dev/device /true_rootBASH
device — device of a root directory
Change the root directory:
To change the superuser password, run:
Insert the new password twice and exit the chroot with:
Unmount the directory: