The following article will document the process used to perform an application level migration of the IIS 7.X running configuration, MSSQL and all associated data to another server. Please note that some elements like custom .DLLs and third party modules may need to be migrated manually. Let's take a look at how to perform this:
Contents:
Both source and destination servers should be running Windows 2008. The revision level is not as important. The destination server size is not important so long as it has enough free space to hold all the custom data.
Install the Microsoft Web Platform installer on both the source and destination servers. Here is the link to the Web Platform Installer 3.0: http://www.microsoft.com/web/downloads/v3/platform.aspx
Install the Microsoft Web Farm Framework v2.2 available here: http://www.iis.net/download/webfarmframework
The Windows Firewall on both the source and destination servers will need to be properly configured in order to allow communication between both instances of IIS. This can be done by either setting up an admin IP on both servers, or by opening up specific ports.
Run the following command from the command line:
netsh advfirewall firewall add rule name="Web Farm" dir=in action=allow remoteip ="IPADDRESS" enable=yes
You will need to run this rule once on each server replacing the word IPADDRESS with the correct IP address of the REMOTE server. Optionally, you could open up the SMB, Remote Administration (RPC), and Web Farm Agentservice (8172 and 8173) ports on both servers instead of creating the Admin IPs.
You will need to create an administrative account on both servers that will be used by the Web Farm Framework to synchronize the configuration settings and data between servers.
Net user webfarmuser PASSWORD /add
Net localgroup administrators webfarmuser /add
The server farm framework will now begin copying over all of the IIS configuration settings, data, and SSL certificates over to the destination server. You can view the progress by doing the following:
Note: The name will vary depending on what you named it during the creation process.
There are numerous methods of migrating MSSQL databases over to the destination server and what method you select should be decided upon by you and your developers based on your unique needs. In addition to the traditional methods of migrating databases, you can also use MSDEPLOY which was installed during the installation, and is a key component, of the Web Farm Framework. Here are the steps you can follow if you want to use MSDEPLOY to migrate your databases:
Bring up the MSDEPLOY command console on the SOURCE server by performing the following:
msdeploy.exe -verb:sync -source:dbFullSql="Data Source=SOURCEIPADDRESS;User Id=USERNAME;password=PASSWORD;Initial Catalog=DBTOBEMOVED" -dest:dbFullSql="Data Source=DESTIPADDRESS;User Id=USERNAME;password=PASSWORD;initial catalog=DBTOBEMOVED;"
It is not necessary to remove the Web Farm Framework once the migration has been completed, but the individual servers can be removed by doing the following:
Note: The name will vary depending on what you named it during the creation process.
© 2011-2013 Rackspace US, Inc.
Except where otherwise noted, content on this site is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License

0 Comments
Add new comment