As I said in my previous post, today we will see how can we move project instances to another farm which including all your project server databases.
Before we delete PWA databases from sql server we need to accomplish some tasks in the order:
- Delete/remove all the pwa instances from project server provisioning center (PWA service app)
- Connect to sql server analysis services and delete the respective pwa instance cube db’s.
- Go to timer service job definition and remove any jobs related starts with PWA*
- Verify back with powershell commands below listed if you still have any orphaned PWA instances or timer jobs and remove them.
- Open the SharePoint management shell and run these commands.$serviceapp = get-spserviceapplication | ? {$_.TypeName –like “*Project*”}
This will get the project server service application
$pwainstances = $serviceapp.Sitecollection$pwainstances | ft name, id
This will list all PWA instances referenced in the config DB -
Repeat these steps for each PWA site to delete them individually
$toberemoved = $pwainstances | ? {$_.Id –eq “a1a29814-983e-4cad-a730-9a80d40737f7”}
Enter the instance ID from query results in the previous step
$toberemoved
This will confirm the instance you want to remove
$toberemoved.Delete()
This will delete the instance
We can now go forward and backup the pwa db’s and restore them to this farm. follow steps to restore db’s
Now comeback to Project Service Application and create a new PWA instance and provide the same PWA instance name which exists in your other farm (eg: http://spserver-webapp/PWA-name ) so PWA-name should be same as restoring farm pwa-name – *important*. Then provide the database names while creating the pwa instance as you restored from source farm. Once the pwa instance is created we need to create the PWA root site. Note: do not backup and restore the root site db from source farm, rather create a new db and assign max site count to 1. Basically we are storing each PWA instance root site separately for each PWA site.
Post Update tasks after the PWA instance and root site are created:
- Open the PWA instance site and go to server settings -> manage users and add the service account or your admin account to the list or users and administrators group, as the current db does not contain the destination farm service account it will hold the source farm farm account.
- Then open up the “Basic Project Plan” under workflow and project detail pages –> Enterprise project Types. Open the Basic project plan and add the project detail pages as below.
-
- Either disable notifications E-mail settings or modify them to suit this farm. This setting under operational policies –> Alerts and Reminders
- Go to OLAP database management which you can find under Database Administration. Edit the existing one listed and change the database server and instance details, give it a couple of seconds and click “build Now” and watch the status there it self as it refreshes.
We should be good, if every thing went well. Also follow the below links for further troubleshooting.
http://pwmather.wordpress.com/category/migration/
http://technet.microsoft.com/en-us/library/gg128952.aspx#section4