Table of Contents
In Windows Server 2019, Microsoft introduced a brand new feature called Storage Migration Service (SMS). With SMS, you can migrate unstructured data from any Windows Server version (even Windows Server 2003 if you still have them around) into physical, virtual machines, Azure IaaS, and Azure Files. It’s super-fast, consistent, and scalable, it takes care of all the complexity such as permissions, share properties, encrypted, attributes, in-use files, network settings, names, and Active Directory membership. The following diagram from Microsoft shows all the supported scenarios for Storage Migration Service in Windows Server 2019. SMS leverages the SMB protocol to migrate your data.
Storage Migration Service in Windows Server 2019 [image credit: Microsoft]
Storage Migration Service ships in Windows Server 2019 (Standard and Datacenter edition), and Windows Admin Center (WAC) is the primary management tool for Storage Migration Service, Windows Admin Center (WAC) leverages PowerShell under the covers.
In this article, I will show you step by step how to migrate a file server from Windows Server 2016 build 14393 to Windows Server 2019 build 17763. This also can apply to different versions of Windows Server.
The requirements are very simple, to use Storage Migration Service, you need the following:
1) A source server (Windows Server 2003, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, Windows Server 2016, Windows Server 2019, or Windows Server 2022).
2) A destination server (Windows Server 2012 R2, Windows Server 2016, Windows Server 2019, or Windows Server 2022). Destination servers running Windows Server 2022 or Windows Server 2019 have double the transfer performance of earlier versions of Windows Server. This performance boost is due to the inclusion of a built-in Storage Migration Service (SMS) Proxy service.
3) An orchestrator server (Windows Server 2019/2022 Standard or Datacenter). You need at least one Windows Server 2019/2022 to act as an orchestrator, but you don’t have to make your destination server 2019 or 2022, however, if your destination server is Windows Server 2019 or Windows Server 2022, then the transfer speed will be double compared to Windows Server 2012 R2, and Windows Server 2016. This performance boost is due to the built-in Storage Migration Service proxy service that was introduced in Windows Server 2019 and later release.
4) The source and the destination server must reside in the same domain and same forest as of today.
5) A PC or Server running Windows Admin Center (WAC) with minimum version 2103. Check my previous article on how to install Windows Admin Center.
6) Last but not least, make sure you have installed the extension Windows Server Storage Migration Service (msft.sme.storage-migration) in Windows Admin Center. At the time of this writing, we are running Version 2.6.1 of the Storage Migration Service extension.
As a side note, if you are installing the Storage Migration Service (SMS) Proxy service in a DMZ, you must open and allow the following 4 inbound firewall rules (File and Printer Sharing (SMB-In), Netlogon Service (NP-In), Windows Management Instrumentation (DCOM-In), and Windows Management Instrumentation (WMI-In).
Please note that installing the Storage Migration Service Proxy service on a Windows Server 2019 or Windows Server 2022 computer automatically opens the necessary firewall ports on that computer. To do so, connect to the destination server in Windows Admin Center and then go to Server Manager (in Windows Admin Center) > Roles and features, select Storage Migration Service Proxy, and then click Install as shown in the figure below.
How to do it…
Launch Windows Admin Center portal and take the following steps, assuming you have already added the source and destination server:
1) Choose the orchestrator server (Windows Server 2019 or Windows Server 2022), then select the Storage Migration Service from the left-hand side, and then click Install to install the Storage Migration Service feature.
2) A new window will pop up describing the three easy steps that you will go through to migrate your file shares and configuration to new servers without affecting existing apps and users. Click Close.
3) This is Phase 1, click +New job to create a new job, give it a name without any space (only alphanumeric), and then click OK.
4) Enter the credentials for the source server that you want to migrate from, select if you want to include all admin shares, and then click Next.
5) Click +Add a device, enter the source server, and then click OK. Please note that you can add more than one source server at a time. This is useful in the scenario where you want to migrate more than one file server to new Windows Servers, but not consolidate (more on this in the Summary section).
6) Click Start scan to start the inventory, in this step, the Storage Migration Service will start looking at all the configuration, network settings, and the data on the source server. This step may take some time depending on the amount of data you have on the source server.
7) Once the scan is complete, you will see all the shares, their path, size, files, including the configuration, network adapters, and volumes on the source server. Click on Next to continue.
8) Now we move to Phase 2, enter the credentials for the destination server that you want to migrate to, and then click Next.
9) Add your destination server to map it against your source server, and then click Scan device. After a moment, you will see all the volumes on the destination server including their free space, you can change the destination volume if you wish to, and you can select which source share you want to include in the transfer. Make your selection and then click Next.
10) On the Adjust transfer settings page, you can set the Validation method (checksum), Max duration, and Retries, as well as whether to migrate local users and groups on the source servers. This is useful in case you have several local accounts on the Source server that you need to migrate. This lets you recreate any local users and groups on the destination servers so that file or share permissions set to local users and groups aren’t lost. Click on Next to continue.
> Please note that migrated user accounts are disabled on the destination server and assigned a 127-character password that’s both complex and random, so you’ll have to enable them and assign a new password when you’re finished to keep using them. This helps ensure any old accounts with forgotten and weak passwords on the source don’t continue to be a security problem on the destination.
11) Then you need to validate to check if the transfer is going to work, so you can make sure that everything will work before you start the migration. This is the best feature! Click Validate. In my example, the validation passed.
12) If you click on the Pass link, you will see all the migration test results. Click Close and then click on Next to continue.
13) On the Start transfer page, click Start transfer. The transfer will kick in and take some time depending on the amount of data you are transferring. Get a cup of coffee and then come back :)
14) If you switch back to the Storage Migration Service dashboard in Windows Admin Center, you will see the migration job in real-time including the network throughput in a beautiful chart view. This is awesome!
15) Once the transfer is completed, you will see the status is Succeeded. Click on the job name at the bottom.
16) In the Start the transfer page, you will see transfer and error log details where you can download the logs as a CSV file and open it in Excel. This is so interesting because it will help you to cross-check that all files are migrated in case any user complains that he/she cannot see their files! Click on Next to continue.
17) Now we reach the final step, Phase 3, Cutover to the new servers. In this step, you can use the stored credentials or enter new ones in case they are changed on the destination server. Click on Next to continue.
18) In the Configure cutover page, you will see the network adapter for the source server, you can map the network adapter on the destination server, you can set a new static IP address for the source server, or you can use DHCP. Last but not least, you can rename the source server by giving it a new name or using a random name. Click on Next to continue.
19) In the Adjust cutover settings page, you can specify the cutover timeout in minutes, the default is 2880 minutes (48 hours).
20) In the Validate source and destination devices page, click Validate. This step will validate that everything will work before you cut over and remove the old server. If you click on the Pass link, you will see all the migration test results. Click Close and then click on Next to continue.
21) Finally, click Start cutover. Please note that this step requires downtime because it will reboot twice the source and the destination server, then map the network on the destination server, and renaming the source server, and change its IP address, so make sure to schedule a maintenance window before you proceed.
22) After the cutover process is succeeded. I was able to verify that the old server was renamed and the new server has the identity of the old server. Now if your destination server is Windows Server 2019, and is acting as an orchestrator as well as you are migrating to the same server as described in this example, then you need to connect to the old server name in Windows Admin Center because the name of the destination orchestrator server is changed to the source server name.
How it works…
The Storage Migration Service is three phases, inventory, transfer, and cutover.
The inventory phase is passive, there is no agent to install on the source or the destination server. You create a job, you add a server(s), then you start scanning, the discovery phase will scan the configuration, network settings, volumes, and OS info on the source server(s). This also includes SMB information, file count, file sizes, and their share properties. Once the scan is complete, you are ready to transfer.
In the transfer phase, you will map the destination volumes based on the list of sources you have from the inventory phase, you can skip shares not to be included in the transfer phase, you can also set retry flags, reservations, and checksum. Then you validate the transfer settings to see if it’s going to work, you proceed with the transfer (you can repeat the transfer as many times as you want and only the delta will be copied), by the end of the transfer you will get a CSV report, and finally, you are ready to cutover.
In the cutover phase, you will map the network adapter on the destination server, you can give your old file server a new set of IP addresses, and change its name if you want, you can specify the maximum duration of the cutover before it expires, then you validate the cutover settings to see if it’s going to work, and finally, you do the cutover and wait for the job to be complete.
Storage Migration Service (SMS) makes it easier to migrate your older Windows Server File Servers (2003 & later) to Windows Server 2016 and Windows Server 2019. SMS provides an elegant graphical UI (via Windows Admin Center) that inventories data on servers and then transfer the data and configuration to newer servers—all without apps or users having to change anything. This is a great feature!
SMS is designed to help by doing the following:
1) Inventory multiple servers and their data.
2) Rapidly transfer files, file shares, and security configuration from the source servers.
3) Optionally take over the identity of the source servers (also known as cutting over) so that users and apps don’t have to change anything to access existing data.
4) Manage one or multiple migrations from the Windows Admin Center user interface.
At the time of this writing, Storage Migration Service is in the second release, Microsoft is working to add additional features shortly such as:
> Full discovery option instead of typing source computer names.
Add cluster support. The Storage Migration Service supports migrating from and to clusters after installation of cumulative update KB4513534 or subsequent updates on Windows Server 2019 and with Windows Server 2022 out of the box.
> Add support for NFS (Linux/Unix), Block, and NDMP protocol.
> Add support for Samba, NAS, and SAN devices.
Azure File Sync integration. If you have Azure File Sync set up, you can sync this storage directly to Azure as well. The Storage Migration Services does support migration to a Windows Server or cluster running Azure File Sync with cloud tiering when using the latest version of Windows Admin Center and Windows Server 2022, or Windows Server 2019 after installation of cumulative update KB5006746.
> Add Azure Files support as a target (SMB/NFS).
> Consolidation. This is great for scenarios when you have many file servers and you want to consolidate them into one file server.
> Data analysis, reporting, and governance. This is interesting, but it will require having an agent installed on the source server.
Thank you for reading my blog.
If you have any questions or feedback, please leave a comment.