All about SharePoint best practice... ask me how
Planning for SharePoint 2010 – Upgrade Planning Part 2 Moving the Databases [ Posted on: 25-September-2009 ]

Please read Part 1 of this post series before you continue.

In this post I will highlight how to move your (32 bit) SQL Server tier to 64 bit.

In the case of moving your data tier there are few prerequisites that you should consider. In this case we have the assumption that your new 64bit SQL server deployment has followed best practice guidelines for SQL server. From a SharePoint point of view you should consider the following to enable effective management of your existing content databases or any new databases you are creating. SQL Server 2008 or 2005 (64bit) are both supported when moving to SP2010. Details about preparing your database server can be found here (TechNet).

This may be a good time to also plan what your SQL maintenance regime would look like for your new data tier. Start with Database maintenance guidance for SharePoint Server on TechNet. Most important though is that you should read up about Kimberly L. Tripp’s extended blog post series on these tasks in detail. If you are not an SQL server expert or have a DBA who usually looks after your SharePoint SQL databases make sure that they read the series of posts as well.

Remember we are now moving our data tier. At the end of the process you will have your 32 bit farm (APP and WFEs) pointing to a new 64bit data tier.

Moving your Databases

When moving from your 32bit source SQL server to a new 64bit SQL server there are two paths you have to consider. In my example the topology of the final destination 64bit farm is as follows. SPWEB1 , SPWEB2, SPAPP1 and SQLSERVER08 (all 64 bit). At the end of the database only tier you will have a configuration that will reflect MOSSWEB1, MOSSWEB2, MOSSAPP1 (32bit) and SQLSERVER08 (64bit).  The options that you have is to completely build a new farm provided that you have the hardware available or just build as you go along. In the case of you doing the big bang approach you can choose to build an entirely new farm and only move the associated web application content databases or you can move all of your databases.

One of the recommendations when deploying your SharePoint farm is to use a combination of DNS record or a SQL Server alias for SharePoint servers to connect to, rather than the actual name of the SQL Server. This gives you the flexibility to move SharePoint databases to another SQL Server instance in the event of general maintenance.

Example: You can move from SQL\sharepointsql to SQLSERVER08\sharepointsql

By using an alias name to connect to (ex: sharepointsql.yourcompany.com), you can save a lot of effort of doing manual steps and a full re-index post deployment. In the case of this scenario both options are considered. To set this straight what you should do is setup this alias and use the stsadm renameserver command to rename the name of the SQL instance prior to carrying out your database move.

Let’s first look at what databases we need to backup. You can find out about all the databases used in your SharePoint deployment by doing a site audit as described in my previous post. At a high level these are.

  • Databases for Shared Services Providers (SSPs)
  • Search databases for SSPs
  • Content databases
  • Search database
  • Central Administration content database
  • Configuration database

You can get a full view of your backup tree using stsadm –o backup –showtree you can use this to note down the databases which are are part of your deployment.

Note: We are not backing up the databases using STSADM or the SharePoint GUI but rather using SQL server management tools on the source 32bit SQL server to backup the databases. Please note that if you are using Single Sign On (SSO) in your deployment you should read this TechNet article first.

Once you have a list of your databases you can choose to backup and restore the databases or alternatively detach all the databases from the source 32bit SQL Server and copy and move the MDF and LDF files and re-attach them to the 64bit destination SQL server and restart the farm.

Before you do that you need to document and identify and test what the overall steps are for your chosen scenario. (Please make sure you read and understand and plan everything before you do anything that involves your PRD SharePoint deployments)

In the case of moving to a SQL server with the same instance name you can follow these steps. (We are only moving the data tier in this scenario)

  • Record which Web applications are associated with the SSPs. To do this you can use the STSADM command stsadm –o enumssp –title [nameofssp]  This information can be used to re-associate Web applications with the restored SSPs and do your testing and troubleshooting
  • Prepare to backup SSPs
  • To back up SSP settings type
  • stsadm -o backup -directory <UNC path> -backupmethod full -item <SSP name>

    BackUPSSPFull

  • Stop the source 32bit farm, stopping the farm ensures that no data is written to the databases before you can move all the databases then back up databases using SQL server management studio or chose to move them via detaching them as mentioned earlier
  • The following services should be stopped prior to making any backups of the databases. The reason for this is that unless you stop the associated SharePoint services the SharePoint Configuration db will be out of sync.

    Make sure you go to the services snap in on the application server and stop all of the following services on the 32bit source farm MOSSAPP1 (32bit)
  • Microsoft Single Sign-On service
    Office Document Conversions Launcher service
    Office Document Conversions Load Balancer service
    Office SharePoint Server Search service
    Windows SharePoint Services Administration service
    Windows SharePoint Services Search service
    Windows SharePoint Services Timer service
    Windows SharePoint Services Tracing service
    Windows SharePoint Services VSS Writer service

  • Once the above services are stopped go to command prompt on the source 32bit application server and type : iisreset /stop and proceed to backup the databases
  • Databases to backup : Content databases, Central Administration content database, Configuration database, Windows SharePoint Services Help Search database. The other databases in the farm are backed up and restored at the same time as the SSPs
  • Copy or move the database backup files to the destination 64bit database server
  • On the destination database server, restore the databases that you backed up or attach (which ever the option you are going for)
  • Copy to the destination database server all the SQL Server logins, fixed server roles, fixed database roles, and permissions for these databases. Refer to http://support.microsoft.com/kb/918992/ for information on copying user logins from instances of SQL server
  • Shut down the 32bit SQL server instance
  • Redirect DNS alias to the farm to reference the new 64bit database server
  • Restart the 32bit server that is running Central Administration to apply the changes and ensure that the services, Web sites, and application pools associated with the deployment are started
  • Restore the SSPs from the backup created previously
  • Start all the services on MOSSAPP1 (32 bit)
  • Test and troubleshoot

By the end of this process your deployment should look like this!

image

In the next post we’ll look at the next two tiers Tier B and Tier C.

Posted by Chandima Kulathilake | 1 Comments | Bookmark with:        
Tags: Deployment, Administration, SharePoint 2007, SharePoint 2010

Comments and Feedback
Thursday, 13 May 2010 08:04 by Jack
such a great farm example is mentioned by you in this article - thanks a lot for the information. http://www.sqlservermanagementstudio.net/2010/05/sharepoint-2010-features.html
Your Name: (Required)
Website URL:
Your Email:
(Will not be displayed)
Feedback and Comments: (Required)
Are you a person? Please enter the charachters in the box below.


 
View the privacy policy.

 
Tags
 
Affiliations
Microsoft MVP (Microsoft Office SharePoint Server)

MCTS - WSS/MOSS Configuration

CKS - Team Member Add to Technorati Favorites

View Chandima Kulathilake's profile on LinkedIn



Kindly hosted by:
Kindly hosted by Intergen





Chandima Kulathilake's Facebook profile