Repairing a VPS is another way to solve problems with the VPS functioning. In Virtuozzo terminology, the VPS is mounted in the repair mode. This means that a new VPS is temporarily created from scratch with the same network and other parameters as the broken VPS, and the root directory of the broken VPS is mounted as /repair into the newly-created VPS. Thereafter, the administrator is supposed to connect to the new VPS via ssh or VZPP file manager using the network and login parameters of the broken VPS, go to the /repair directory, and perform one of the following actions:
Find the personal data that needs to be saved and copy it to a safe location elsewhere. Do not copy your personal data directly into your new VPS, as it will be destroyed once you exit the repair mode. After quitting the repair mode, the broken VPS can be reinstalled and the personal data can further be loaded into it from the place where you have saved them.
Identify the source of the problem and manually correct it. This method can be recommended to advanced VPS administrators, as it presupposes some technical expertise. And it is still recommended to save first your personal data in a safe location, just in case something goes wrong.
Note: When working inside the VPS being repaired by means of the VZPP file manager, the file manager root directory (/) corresponds to the /repair directory of the temporary VPS, in other words, it represents the root directory of the problem VPS, not that of the newly-created one.
The Repair Mode page is accessible through the Repair Mode link on the VZPP menu. Pressing the Run Repair button on this page mounts the VPS in the repair mode. It is not necessary to stop the VPS beforehand; if the VPS is running at the moment of pressing the Run Repair button, it will be first automatically stopped. The description of all possible VPS statuses is provided in the VPS Statuses section.
When the page is refreshed after pressing the Run Repair button, click the Details link at the end of the blue line to see if the repair mode has been successfully entered. Once the VPS enters the repair mode, connect to the new VPS via ssh or VZPP file manager and do what you deem reasonable inside the VPS. After closing your ssh session, press the Repair Mode link on the VZPP menu once again and press the Finish Repair button to exit the repair mode. After the repair mode is exited, the broken VPS is returned to the stopped state, and you may start it to check the repairing effect.