Upgrading DPM 2012 SP1 to Windows Server 2012

Ok so if you have followed my previous post and upgraded your DPM 2010 server to DPM 2012 SP1 you may be wanting to upgrade your operating system from Windows Server 2008 R2 SP1 to Windows Server 2012 and wondering how best to go about this, well here is how I've done it.

There are two ways this can be done, one way is to simply perform an in-place upgrade of the operating system which I don't like particularly as this always seems to come back and bite you further down the line. The more complex option involves performing a clean install of Windows Server 2012 and recovering DPM 2012 SP1 from backup. A high level overview is as follows:

  • Backup the DPM database
  • Uninstall DPM 2012 SP1 (retaining backups)
  • Install a fresh copy of Windows Server 2012
  • Install DPM 2012 SP1
  • Recover the DPM databases

Step 1 - Backup the DPM database

On the DPM server, open an elevated command prompt window, type cd <system drive>:Program FilesMicrosoft DPMDPMbin, and then type DPMBackup.exe -db and press ENTER.

This will create a backup file called DPMDB.bak in the location %DPMInstallLocation%VolumesShadowCopyDatabase Backups which you should then copy off the DPM server to some other secure location.

Step 2 – Uninstall DPM 2012 SP1

In Control Panel go into Programs and Features and uninstall DPM 2012 SP1 making sure to select retain data which is crucial in this scenario


Step 3 – Install a fresh copy of Server 2012

After uninstalling DPM 2012 SP1 you should power off the server, insert the Server 2012 media and boot from this. You will then run through the Server 2012 setup and select to perform a new installation. If applicable make sure you format the previous system volume that Server 2008 R2 resided on. Be careful not to touch the volume where the DPM disk backups are stored if it’s a locally attached drive.

After the operating system has installed, make sure to name the server the same as it was previously and if domain joined reset the computer account and join back to the domain.

if your DPM disk backups are stored on SAN or some other kind of remote storage you should reconnect them now so the new OS can see them (the disk may appear as offline so will need bringing back online). You should also apply any available Windows Updates to the server ready for installing DPM 2012 SP1 again.

Step 4 – Install DPM 2012 SP1

You should install DPM 2012 SP1 again as a new installation which I'm not going to cover in any detail because its a fairly simple process.

Step 5 – Restoring the DPM database

Now that you have a fresh installation of DPM 2012 SP1 you should restore the database backups you took initially. Follow these steps on how to do this.

Normally to restore a DPM database you would use the DpmSync command with the –restoredb –dbloc switches but because we have done an in-place upgrade of DPM 2010 to DPM 2012 SP1 this will not work. The reason for this is that the command tried to restore the database back to its original location which doesn’t exist anymore. The location in the previous version of DPM was C:Program FilesMicrosoft DPMDPMDPMDB which is maintained when you perform an in-place upgrade of DPM. The location of the database in a fresh installation of DPM 2012 SP1 is C:Program FilesSystem Center 2012DPMDPMDB which you cannot override in the installation as it automatically appends System Centre 2012DPM to whatever path you select to install to.

The workaround is to restore the database using the SQL Server Management Studio and then use the DpmSync –sync command to bring things back in sync and DPM will be happy again. When restoring the database using the SQL Management Studio make sure to tick the Overwrite the existing database (WITH REPLACE) option otherwise the restore will fail.

When you open the DPM console if your protected content need consistency checks then simply trigger the consistency checks and when this completes you will be done and have a working DPM 2012 SP1 installation running on Windows Server 2012.

2 thoughts on “Upgrading DPM 2012 SP1 to Windows Server 2012

  1. Vadim

    After upgrading server 2008 with DPM 2012 SP1 to Server 2012 following all your steps,I have attempted to restore database as it is described above and receive error message

    Restore failed for Server "localhostMSDPM2012" (Microsoft.SqlServer.SmoExtended)
    Exclusive access cannot be obtained because the database is in use"

  2. Daniel

    I had the same issue as Vadim, fortunately in a test environment. Resolution was to stop the following services prior to restore; DPM, DPM AccessManager Service and DPM Writer.

    Thanks Andy for the post though, very helpful.


Leave a Reply

Your email address will not be published. Required fields are marked *