in

SharePoint Blogs

The Best Place for SharePoint-related Blogs

Dave Wollerman's SharePoint Blog

I use this blog to share information with the community plus also as a repository for reference material on unique situations that I have come across.

View Dave Wollerman's profile on LinkedIn      Sogeti Logo

Moving to a new database server (or instance)

Updated on 1/28/2008 to include link to post related to web application timer jobs and SharePoint restore. 

There comes a time when SharePoint databases will have to be moved to another database server. The problem is that it is not that easy to just move the databases to a new database server and have everything work. In SharePoint 2003, it was realatively simple to move all the databases, but in 2007 there is alot more involved with communication between the databases making it a more complicated scenario.Outlined below are the steps taken to move a SharePoint farm to a new database server.

  1. Perform a farm level backup of the current farm using the SharePoint backup utility in Central Administration. Make sure the backup gets saved to an accesible location either on this server or on the network.
  2. Run the SharePoint Products and Technologies Configuration Wizard to disconnect the server from the configuration database. If there is only one server in farm, then all you have to do is that server. If there are multiple servers in the farm, make sure the server running central administration is the last server disconnected from the farm. I don't believe this is a requirement, but I would recommended it anyway.
  3. Once all the servers have been removed from the farm. Run the SharePoint Products and Technologies Configuration Wizard on the server to host the central administration site first to create a new SharePoint farm. Once Server is configured, run the configuration wizard on the remaining servers adding them to the new SharePoint farm.
  4. Start both the Office SharePoint Services Search and the Windows SharePoint Services Search services

    *** UPDATE ***
  5. Read the post about web application timer jobs before moving to step 6 VERY IMPORTANT
    *** UPDATE ***
  6. Restore the backup made in step 1 using the SharePoint restore utility in Central Administration. You will have to supply the file path to the files that were backed up
    1. There are 4 steps to restoring from the backup. Step 1 is to locate the backup set that was ran in Step 1


    2. Step 2 is selecting a backup to restore from the location specified in the previous step


    3. Step 3 is selecting a component of the backtup to restore... in this case you want to restore at the farm level


    4. Step 4 is to select the restore options. In this step you want to select new configuration for the type of resture and besure to go through all the databases, web applicatons, and SSP information to specifiy the new database server name and database file locations for each item. Double check everything before hitting ok.


    5. Finally after all selections are made and the restore process is kicked off, you see a summary of the restore in progress.


  7. Once restore is complete the databases should be in their new location and the SSP should be back up and running. To finish the move, you must reconfigure the farm using central administration. Then kick off a full crawl to repopulate the content index.

 

Comments

 

Links (1/2/2008) « Steve Pietrek’s SharePoint Stuff said:

Pingback from  Links (1/2/2008) « Steve Pietrek’s SharePoint Stuff

January 2, 2008 8:02 PM
 

double density design ? Blog Archive » Bookmarking the web - w01/2008 said:

Pingback from  double density design  ? Blog Archive   » Bookmarking the web - w01/2008

January 5, 2008 3:12 AM
 

SharePoint, SharePoint and stuff said:

OT: Live Writer Tools 10 Useful Plugins for Windows Live Writer Mal wieder was zum Content Query Webpart

January 7, 2008 9:11 AM
 

Mirrored Blogs said:

OT: Live Writer Tools 10 Useful Plugins for Windows Live Writer Mal wieder was zum Content Query Webpart

January 9, 2008 7:10 PM
 

odi said:

Hi Dave,

great post, but why do I have to disconnect from the existing farm and create a new one?

Olaf

January 28, 2008 2:36 AM
 

dwollerman said:

Unless you are using a SQL alias, you will have to disconnect the configuration database and create the new on on the new sql server because the linkage to the database is through the server name. You need to create the new configuration database at the new sql server location for the linkage in the database to use the new database name.

Also, please read the post related to creating the web applications before restoring from the sql backups. You will need to run this too since the restore doesn't automatically create all the web application timer jobs.

www.sharepointblogs.com/.../web-application-timer-jobs-not-automatically-created-when-restoring-from-sharepoint-backups.aspx

January 28, 2008 6:56 AM
 

Isaac Gonzalez said:

Excellent post, this worked pretty good for me except i had to reinstall all my application template .wsp files as well as install the application core template file that allows you to deploy application templates...took me a while to figure out why some of my sites weren't working but i figured it out....weird that the farm backup doesn't include this, nor does it get saved on the sharepoint web server,....anyway anyone reading this would help to remember jotting down all your application templates used, cause you will need to redeploy them....other than that, its finally overwith.....

March 11, 2008 8:41 PM
 

dwollerman said:

another thing to consider is using SQL Alias in the farm. This way the SQL Server sharepoint is looking at is the SQL Alias, then all you need to do is change where the SQL Alias is pointing to. This should remove all the issues and time with doing a backup / restore to move databases.

Another way to do it would be to use the stsadm "RenameServer" operation. There are some issues with it I am not sure how to resolve at this point, but it looks as if it will change the database pointer and all the web sites work, but therer is something with the search index that gets lost and it won't return any results.

March 13, 2008 12:31 PM

Leave a Comment

(required )  
(optional )
(required )  
Add

Need SharePoint Training? Attend a SharePoint Bootcamp!

Posts (c) their respective authors. Everything else (c) 2007 SharePoint Experts