Prepare the New Hardware

This topic, the first part of the Restore a Single-Server tutorial, teaches you how to install and configure the prerequisites, how to restore the databases and the SharePoint farm, and how to install but not configure Team Foundation Server (TFS) so that you can restore the databases on the new hardware.

The examples in this tutorial topic follow Jill, an IT Administrator at the fictitious company, Fabrikam, Inc., as she recovers from a hardware failure of the original deployment described in Get Up and Running With a Single-Server Installation [Tutorial]. The examples here will be easier to follow if you're familiar with that tutorial, especially the software installation procedures and the architecture described in Install Prerequisites and Team Foundation Server.

In this topic

  1. Choosing hardware and naming the server

  2. Installing SQL Server 2008 R2 on the new server

  3. Installing SharePoint Foundation 2010 on the new server

  4. Install Team Foundation Server

Required permissions

To perform the procedures in this topic, you must be a member of the Administrators security group on the server where you want to install the software.

Choosing hardware and naming the server

Restoring a deployment that has unexpectedly gone offline due to a hardware failure is always stressful, and usually involves acquiring hardware as quickly as possible. You might be tempted to grab an unused machine and try to use it as the new server. However, for the long-term health of your deployment and to help ensure a successful restoration of your deployment, you should not use any server that has less RAM than the previous machine, and you should make sure that the new server is running the same operating system as the old server. You also must match the service pack level of the previous server as closely as possible.

In addition, this can be an opportune time to expand the hard drive space or processing power for your deployment, particularly if your previous server was not performing as quickly as you wanted, or if you were running low on hard drive space. Upgrading the numbers or speed of the processors, adding more RAM, or adding more hard drive space should not adversely affect your restoration, and you and your users can benefit from a faster, more powerful server.

Naming the server

Your users will experience the least amount of confusion and inconvenience if you give the new server the exact same name as the old one. You will also find it much easier to restore the deployment if the new server has the same name as the old server. Unless you have compelling reasons not to reuse the name, such as underscores in the old server name that interfered with navigation in Team Web Access, use the same name for the new server as the old server.

The new server for the example deployment

This example continues the tutorial that follows Jill, an IT Administrator at the fictitious company, Fabrikam, Inc., as she recovers from a hardware failure of the original deployment. Jill's previous server ran the 64-bit edition of the Windows Server 2008 R2 operating system with Service Pack 1 installed, had a dual-core processor and10 GB of RAM, and had 300 GB of free disk space. When faced with the unexpected need for a new server, she briefly considers using another machine that exactly matches those specifications. However, she knows that the adoption of TFS is growing, and that several other departments are considering using her deployment. With that in mind, she negotiates funds to purchase a new server with a faster dual-core processor system, 16 GB of RAM, and two 500 GB hard drives. Just like the old server, this new server runs the 64-bit edition of Windows Server 2008 R2 with Service Pack 1 installed. She gives the new server the same name as the old server, FabrikamPrime.

Installing SQL Server 2008 R2 on the new server

After you acquire a server that meets the requirements mentioned above and give it the same name, you must install the same version and edition of SQL Server on that new hardware. You must also make sure to choose the same collation settings as your previous deployment, or you will not be able to restore the databases you backed up for the old deployment.

Tip

Most installations of SQL Server use the default collation settings. The default collation settings are determined by the Windows system locale on the server where you install SQL Server. The example deployment in the tutorial Get Up and Running With a Single-Server Installation [Tutorial] used the default settings, and the new server has the same system locale as the old server, so the collation settings will remain the same by default.

In the example deployment, Jill installs SQL Server R2 using the exact same settings and choices she used when installing the software on the original server, and then applies Service Pack 1. Those choices are used in the procedure below, and are the same as those listed in Install Prerequisites and Team Foundation Server.

To install SQL Server 2008 R2 to support Team Foundation Server

  1. Launch the SQL Server Installation Center.

  2. On the SQL Server Installation Center page, choose Installation, and then choose New installation or add features to an existing installation.

  3. On the Setup Support Rules page, verify that all rules have passed, and then choose OK.

  4. On the Product Key page, provide your product key, and then choose Next.

  5. On the License Terms page, review the license agreement. If you accept the terms, select I accept the license terms. Optionally, you can select the check box to send usage data to Microsoft, and then choose Next.

  6. On the Setup Support Files page, choose Install.

  7. On the Setup Support Rules page, review the setup information. Correct any failure conditions, and then choose Next.

  8. On the Setup Role page, choose SQL Server Feature Installation, and then choose Next.

  9. On the Feature Selection page, select the following check boxes, and then choose Next:

    • Database Engine Services

    • Full-Text Search

    • Analysis Services

    • Reporting Services

    • Client Tools Connectivity

    • Management Tools - Basic

    • Management Tools - Complete

    Install SQL Server 2008 R2 - Features

  10. On the Installation Rules page, review any warnings and correct any failures, and then choose Next.

  11. On the Instance Configuration page, choose Default instance, and then choose Next.

  12. On the Disk Space Requirements page, review the information to make sure you have sufficient disk space, and then choose Next.

  13. On the Server Configuration page, choose Use the same account for all SQL Server services. In the Use the same account for all SQL Server 2008 R2 services window, choose or specify NT AUTHORITY\NETWORK SERVICE, and then choose OK.

    In the Startup Type column, specify Automatic for all services that you can edit, and then choose Next.

    Accounts set to Network Service/Automatic

  14. On the Database Engine Services page, on the Account Provisioning tab, choose Windows authentication mode and then choose Add Current User to add your account as an administrator for this instance of SQL Server. Optionally add any other user accounts for users you want to act as database administrators, and then choose Next.

  15. On the Analysis Services Configuration page, on the Account Provisioning tab, choose Add Current User to add your account as an administrator for the analysis services database. Optionally add any other user accounts for users you want to act as administrators, and then choose Next.

  16. On the Reporting Services Configuration page, choose Install the native mode default configuration, and then choose Next.

  17. On the Error Reporting page, choose whether to send information about errors to Microsoft, and then choose Next.

  18. On the Installation Rules page, review any failures or warnings, and then choose Next.

  19. On the Ready to Install page, review the list of components to be installed, and if they match the list of features shown in the illustration below, then choose Install. If you need to make any changes, choose Back.

    Install SQL Server 2008 R2 - Ready

    On the Installation Progress page, optionally monitor the installation progress of each component. When all components have finished installing, the Complete page appears. Review any messages, and then close the page.

  20. After you finish the installation, visit Microsoft Update to apply the same service packs or updates that you applied to the installation on the old server. TFS requires SQL Server 2008 R2 to have Service Pack 1 applied, so make sure that you install that service pack. Do not apply any service packs or updates that were not applied to that server.

Installing SharePoint Foundation 2010 on the new server

Unlike a new installation of Team Foundation Server, you cannot use the installation wizard for TFS to install SharePoint Foundation 2010 for you. If you want to be able to restore the team project portals and other information used in the SharePoint Foundation 2010 portion of your deployment, you must first install SharePoint Foundation 2010 manually, and then restore the farm.

Using SharePoint Tools to install SharePoint Foundation 2010

You can use the tools and features provided with SharePoint Foundation 2010 to install it on the new server. You should choose the same deployment configuration as your previous deployment. For example, if you installed SharePoint Foundation 2010 automatically during the installation process for Team Foundation Server in your original deployment, you should choose to install SharePoint Foundation 2010 on a single server, but using the installation of SQL Server you have already installed on the new server. You should also run the Microsoft SharePoint Products Preparation Tool prior to installing SharePoint Foundation 2010.

To install SharePoint Foundation 2010 in a single-server farm configuration

  1. Launch the installation media for SharePoint Foundation 2010. On the SharePoint Foundation 2010 Start page, choose Install SharePoint Foundation.

  2. On the Read the Microsoft Software License Terms page, review the terms, select the I accept the terms of this agreement check box, and then choose Continue.

  3. On the Choose the installation you want page, choose Server farm.

  4. On the Server Type tab, choose Complete.

    If you want to install SharePoint Foundation 2010 in a custom location, choose the Data Location tab, and then either type the location or choose Browse to specify the location.

  5. Choose Install Now.

  6. When setup completes, choose Close. Do not configure the initial farm.

Using Windows PowerShell to install SharePoint Foundation 2010

While there are a number of ways to install SharePoint Foundation 2010, including the tools provided with SharePoint Foundation 2010, restoring the farm requires Windows PowerShell. You can also use Windows PowerShell to install SharePoint Foundation 2010. For convenience, consider using Windows PowerShell for both installing and restoring SharePoint Foundation 2010 on the new server. For more information about Windows PowerShell, see Getting Started: Windows Server 2008 R2 Administration with Windows PowerShell.

To install SharePoint Foundation 2010 using Windows PowerShell

  1. Open a Windows PowerShell command prompt.

  2. Input the following command, where Drive is the location of the installation media for SharePoint Foundation 2010:

    Install-SharePoint -SetupExePath "Drive:\SharePoint 2010\Setup\setup.exe"
    

    This installs SharePoint Foundation 2010 using a PID key in a farm deployment, but does not configure it or create any databases. Instead, you will restore the farm and its databases to this installation.

    Tip

    As an alternative, you can choose to use a configuration XML file with the Install-SharePoint command to install SharePoint Foundation 2010.

    For more information, see Install SharePoint Foundation 2010 by using Windows PowerShell.

Install Team Foundation Server

To restore the databases using the Scheduled Backups features, you must install, but not configure, the Team Foundation Server software.

To install Team Foundation Server binaries and tools

  1. Launch the installation media for Team Foundation Server. On the Team Foundation Server Setup page, choose Install.

  2. When the installation completes, the Team Foundation Server Configuration Center opens. Choose Cancel.

    Close the configuration center when it appears

    The administration console opens automatically in an unconfigured state. This is expected.

  3. If you haven't installed Cumulative Update 2 or later, install it now.

Home | Prepare the New Hardware | Restore the Databases | Install and Configure Team Foundation Server | Reconnect Services and Users