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;
- Connection to power distribution unit (PDU) or BMC (Intel AMT) is configured.
Recovery mode start
To run server recovery mode:
- Go to Servers → select server → menu → Run recovery.
- Select the Recovery template:
- Sysrescd6-x86_64 — a template based on SystemRescue CD 6.
- Press Run.
- Enter Server administrator password.
After the start of operation, DCImanager 6 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
Recovery mode does not turn off automatically. To exit recovery mode:
- Reboot the server being recovered.
- On DCImanager 6 server, go to Servers → select the server → → Cancel the current operation → Cancel recovery.
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:
lsblk
- Define the root directory.
-
Create the directory:
mkdir /true_root
-
Mount the root directory:
mount /dev/device /true_root
Where:
- device — device of a root directory
-
Change the root directory:
chroot /true_root
-
To change the superuser password, run:
passwd root
-
Insert the new password twice and exit the chroot with:
exit
-
Unmount the directory:
umount /true_root