Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Instant Migration from Windows Server 2008 and 2008 R2 to 2012 How-to

You're reading from   Instant Migration from Windows Server 2008 and 2008 R2 to 2012 How-to A step-by-step guide to installing, configuring, and updating to Windows Server 2012

Arrow left icon
Product type Paperback
Published in Jan 2013
Publisher Packt
ISBN-13 9781849687447
Length 84 pages
Edition 1st Edition
Concepts
Arrow right icon
Author (1):
Arrow left icon
Santhosh Sivarajan Santhosh Sivarajan
Author Profile Icon Santhosh Sivarajan
Santhosh Sivarajan
Arrow right icon
View More author details
Toc

Data and file server migration (Must know)

File server or data migration can be achieved by migrating the data from the existing server using tools such as Microsoft Robocopy and Microsoft File Server Migration Tool (FSMT), or directly presenting the storage Logical Unit Number (LUNs) onto a new server. In this scenario, I will be explaining the data migration procedure using Windows Server Migration Tools. Send-SmigServerData and Receive-SmigServerData are the two PowerShell cmdlets that we will use for this migration.

The Send-SmigServerData cmdlet, as it sounds, is responsible for sending (migrating) data from the source server. This tool can migrate folders, files, permission, share, and so on. However, it doesn′t support migrating any Encrypted File Systems (EFS). Unlike other cmdlets in the Windows Server Migration Tools, the Send-SmigServerData cmdlet does not store the data in a staging area or an export file. It will directly copy over to the target server. So the required ports (7000, 7001, and 7002) must be open between the source and target servers. The Receive-SmigServerData cmdlet has to be running on the target server to be able to receive the migrated data. The Send-SmigServerData and Receive-SmigServerData cmdlets have to be running on the source and target servers at the same time. The default time out value is five minutes, but this value can be changed by modifying the registry.

For this migration, we need to run the Send-SmigServerData cmdlet on the source server and Receive-SmigServerData cmdlet on the target server. The following diagram graphically represents the high-level tasks:

Data and file server migration (Must know)

The following recipe explains the data migration procedure.

How to do it...

  1. Log on to the source file server and copy the previously created Windows Server Migration Tools package from the \\HOU-MGR-01\MigTools folder to C:\MigTools folder on the local server.
  2. Open Command Prompt with elevated privilege and navigate to C:\MigTools.
  3. From the C:\MigTools folder, give the SmigDeploy.exe command. This will register the Windows Server Migration Tools on the server and open a PowerShell window as shown in the following screenshot:
    How to do it...
  4. If you close the PowerShell window by mistake, you can re-open it from the Windows Server Migration Tools menu in Administrative Tools.
  5. At this time you need to make sure that the users are not connected to the file server or are not accessing the data from this server. If you have any backup or any other software running on this server, make sure to disable them during the migration process.
  6. Run the following cmdlet from the PowerShell window to initiate the migration process:
    Send-SmigServerData -ComputerName server12-demo1 -SourcePath ″D:\Hou-Fil-Data-01″ -DestinationPath ″C:\Data\″ -Recurse -Include All –Force
    
    How to do it...

    In the preceding command, –ComputerName is the target file server, -SourcePath is the location of the source data, and you also need to specify the destination location on the target server by using the –DestinationPath parameter. You have the following three options that can be used with the –Include parameter:

    • All: This migrates data and share
    • Data: This copies only the files and folders and their associated permission
    • Share: This copies only the share properties and permission

    The –Force parameter overwrites the existing files on the target server if the source files are current.

    It will prompt you for a password. Once it accepts the password you will have five minutes to run the Receive-SmigServerData cmdlet on the target server. As you can see in the following screenshot, the source server is waiting for the destination server request to transfer the data.

    How to do it...
  7. Log on to the target Windows Server 2012 file server. Copy the Windows Server Migration Tools package from \\HOU-MGR-01\Migtools to the C:\MigTools folder.
  8. Open Command Prompt with elevated privilege and navigate to C:\MigTools.
  9. From the C:\MigTools folder, type the SmigDeploy.exe command. This will register the Windows Server Migration Tools on the source server and open a PowerShell window.
  10. From the PowerShell command window, type the Receive-SmigServerData cmdlet. It will prompt you for the same password which you used on the source server.
    How to do it...
  11. Once the password is validated, it will copy the data from the source server.
    How to do it...
  12. A migration summary report will be generated as shown in the following screenshot:
    How to do it...

How it works...

Once you have validated the data between the source and target servers you can decommission the old file server. If drive mapping or shares are enabled through Group Policy Object or Group Policy Preference, the policies will have to be updated with the new server name.

You have been reading a chapter from
Instant Migration from Windows Server 2008 and 2008 R2 to 2012 How-to
Published in: Jan 2013
Publisher: Packt
ISBN-13: 9781849687447
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image