Revert your (dv) to default
It is no longer possible to reinstall a (dv) Dedicated-Virtual Server 3.0 or 3.5, as the required Plesk 8 licenses have been discontinued by Parallels. Since this service is currently in the final stages of its End-of-Life, the only available option should you need to revert to default is to migrate your data to a new DV Managed server.
This article outlines the process of reinstalling your (dv) Dedicated-Virtual Server to bring it back to a default state. The (dv) product includes the functionality to do this from within your Plesk Control Panel. You can also reinstall from the Advanced Recovery Tools section of your AccountCenter's (dv) Control Panel. We will cover both methods in this article.
Before you start
This article has the following dependencies:
- If you currently do not have your root user enabled or our Developer Tools installed, please visit the Root Access & Developer Tools section of your AccountCenter.
- Whenever installing third-party software, please consult the official documentation. (mt) Media Temple does not support the installation and configuration of software not installed at time of service activation. Please consult our (dv) Scope of Support page for further explanation.
- The domain example.com is used as an example. Please be sure to replace this text with the proper information for your site or server.
Using the AccountCenter Advanced Recovery Tools
This tool will revert your (dv) to the default state, just like when you first provisioned the server. This will essentially wipe your server and save all of your old data inside of the /old directory on your server. You can only perform an Archive & Reinstall through the AccountCenter controls.
1. Log into your AccountCenter, select your (dv) and go to the Advanced Recovery section.
Click "Advanced Recovery" to continue.
2. Click the Revert to Default icon to begin the re-installation process.
Click "Revert to Default" to begin.
3. Confirm the action, making note of the directory into which your old contents will be placed.
4. Wait approximately 15-60 minutes for the process to complete. Depending on how much data you have, the time to complete can vary. The page will show you that it is Pending and will let you know when it has Completed.
Using the Plesk/Virtuozzo Reinstall VPS Menu
- Log into your Power Panel.
- Click on Maintenance.
- Click on the Reinstall tab. If your server is currently running, you will be prompted to stop it before proceeding.
- Once your server has stopped, click the "Prepare to Reinstall" button.
- Follow the prompts to continue and make your choices as needed.
- We strongly encourage changing the root password for your new install after your VPS reinstall is complete using our AccountCenter tool.
- If you change your root password via SSH, these tools will not save that password for the reinstall. Please use the AccountCenter tool to reset your root password. This would be one important step to prevent your server from being compromised moving forward, in case that was the reason for your reinstall.
Restoring Databases After Reverting
The following guide will help you restore your databases from the raw MySQL files that are created after you revert your server to default. While these instructions are usually successful, this process is not fully supported by (mt) Media Temple. Please proceed at your own risk.
- Log into SSH as root.
- Run the following command:
service mysqld stop
- Start up MySQL on a new socket.
/usr/libexec/mysqld --user=mysql --socket=/var/lib/mysql/mysql.sock --basedir=/usr --datadir=/restore/var/lib/mysql --user=mysql --pid-file=/var/run/mysqld/mysqld.pid --skip-locking --skip-grant-tables
That command specifies "/restore/var/lib/mysql" as the path to the raw MySQL files. If they are located somewhere else, you will need to replace this path.
- MySQL is now running on the server from the data directory you gave it. You will need to open a new SSH window, leaving this one open as well.
- Make a new directory for your data.
- Create a list of all the databases.
mysql -Ns -uadmin -p`cat /etc/psa/.psa.shadow` -e "show databases" | grep -v "information_schema" > /root/sql_dumps/db_list
- Dump the databases on your list.
for i in `cat /root/sql_dumps/db_list`; do mysqldump --add-drop-table -uadmin -p`cat /etc/psa/.psa.shadow` $i > /root/sql_dumps/$i.sql; done;
- Stop MySQL.
service mysqld stop
- Start MySQL.
service mysqld start
- All of the databases are now in /root/sql_dumps/ on your server.