DV Troubleshooting - Repair Mode
Repairing a DV is another way to solve problems with the DV functioning. In Virtuozzo terminology, the DV is mounted in the repair mode. This means that a new DV is temporarily created from scratch with the same network and other parameters as the broken DV, and the root directory of the broken DV is mounted as /repair into the newly-created DV. Thereafter, the administrator is supposed to connect to the new DV via ssh or VZPP file manager using the network and login parameters of the broken DV, go to the /repair directory, and perform one of the following actions:
Note: When working inside the DV being repaired by means of the VZPP file manager, the file manager root directory (/) corresponds to the /repair directory of the temporary DV, in other words, it represents the root directory of the problem DV, 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 DV in the repair mode. It is not necessary to stop the DV beforehand; if the DV is running at the moment of pressing the Run Repair button, it will be first automatically stopped. The description of all possible DV statuses is provided in the DV 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 DV enters the repair mode, connect to the new DV via ssh or VZPP file manager and do what you deem reasonable inside the DV. 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 DV is returned to the stopped state, and you may start it to check the repairing effect.
- 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 DV, as it will be destroyed once you exit the repair mode. After quitting the repair mode, the broken DV 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 DV 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 DV being repaired by means of the VZPP file manager, the file manager root directory (/) corresponds to the /repair directory of the temporary DV, in other words, it represents the root directory of the problem DV, 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 DV in the repair mode. It is not necessary to stop the DV beforehand; if the DV is running at the moment of pressing the Run Repair button, it will be first automatically stopped. The description of all possible DV statuses is provided in the DV 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 DV enters the repair mode, connect to the new DV via ssh or VZPP file manager and do what you deem reasonable inside the DV. 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 DV is returned to the stopped state, and you may start it to check the repairing effect.