Re: Migrate stand alone sql server to a cluster without downtime

From: Geoff N. Hiten (SRDBA_at_Careerbuilder.com)
Date: 01/11/05

  • Next message: Yuhong: "Re: Migrate stand alone sql server to a cluster without downtime"
    Date: Tue, 11 Jan 2005 12:13:34 -0500
    
    

    First, you cannot use the same name and IP address. The cluster
    installation and any data transfer will fail.

    Here is how you do this.

    First, make sure all your SQL connections to the old box use a DNS entry to
    resolve their names. Eliminate any hard-coded IP addresses by using client
    aliases if necessary. You will use an SVC record in the DNS system to
    repoint the old connections to the new server when you do the changeover.
    Test this using a bogus alias before going live.

    Set all your production databases to full recovery and implement a log
    backup plan.

    Use backup and restore to create the databases on the new system. Use the
    'NORECOVERY' or 'STANDBY' option so you can apply later transaction logs.
    Manually copy and apply the transaction log backups from the old system to
    the new cluster.

    I suggest scripting the following tasks well ahead of time.

    Run a log backup WITH STANDBY on each database on the old server. Copy the
    files (or restore from a common network share) and restore the final log for
    each database using the WITH RECOVERY option.

    When you have transferred the final database log, use sp_change_users_login
    to remap your pre-generated logins to the users in the restored databases.
    I typically use a bogus password for SQL logins until this step so that
    users cannot accidentally connect to the new server.

    Stop the old server. Add the SVC record to DNS to alias the old servername
    to the new service. Remember to include the port number if you are using a
    named instance or a non-standard port.

    Get ready to deal with the handful of systems you missed that are still
    connecting via IP.

    Remember to test everything before going live. If you mess up, you can
    always bring the old server back up and take the databases out of standby to
    get back to where you started. The actual changeover should take less than
    one hour IF you plan, test, and practice.

    Good luck.

    -- 
    Geoff N. Hiten
    Microsoft SQL Server MVP
    Senior Database Administrator
    Careerbuilder.com
    I support the Professional Association for SQL Server
    www.sqlpass.org
    "Yuhong" <Yuhong@discussions.microsoft.com> wrote in message
    news:59B178D2-D730-4142-BE76-E0A38FE53F69@microsoft.com...
    > Hi
    > I have read most the articles and posts about move sql server.
    > Here is my situation:
    > I have stand alone standard sql server 2000 and with about 40 databases.
    And
    > I am moving the server to a SQL cluster(Active/passive). I have to use the
    > old name, IP on the new server and with minimum down time. Anybody has
    done
    > this? What is the precedure? Will Virutas BackupExe backup/restore work? I
    > know Deattach/Reattach works but I have to do it one DB at a time, right?
    > That will take a long time. Will permission be carried over using these
    > mothed?
    > Any information will be greatly appreciated.
    > Thanks,
    > -- 
    > Yuhong
    

  • Next message: Yuhong: "Re: Migrate stand alone sql server to a cluster without downtime"

    Relevant Pages

    • Re: DB architecture for WSS sites on SPS server
      ... sharepoint servers or use it for other products such as SQL, ... Commvault will require a different server to be installed on (you dont ... We had purchased the Veritas SharePoint backup agent to plug into our ... recommended to create seperate databases for the content. ...
      (microsoft.public.sharepoint.portalserver)
    • Re: DB architecture for WSS sites on SPS server
      ... sharepoint servers or use it for other products such as SQL, ... Commvault will require a different server to be installed on (you dont ... We had purchased the Veritas SharePoint backup agent to plug into our ... recommended to create seperate databases for the content. ...
      (microsoft.public.sharepoint.portalserver)
    • Re: Backing up SQL Server
      ... incremental backup of each one, with a minimum of setup effort for the user. ... I would even like to be able to figure out if one or more SQL Server ... instances are available and just present a list of databases on them for the ...
      (microsoft.public.sqlserver.programming)
    • Re: Off-Site Duplicate Server Setup
      ... the normal process for databases is backing up the ... backup the backup files to tape/disk/offline/whatever. ... Which is good until restoration when you need to restore the original, ... likely have a live replicated server available. ...
      (microsoft.public.windows.server.general)
    • Re: Off-Site Duplicate Server Setup
      ... the normal process for databases is backing up the ... backup the backup files to tape/disk/offline/whatever. ... Which is good until restoration when you need to restore the original, ... likely have a live replicated server available. ...
      (microsoft.public.windows.server.setup)