Avatar of Laszlo Denes
Laszlo Denes
Flag for Canada asked on

Can I use MS storage migration service in conjunction with DFS namespace to migrate file servers from 2012 to 2019 MS Server STD?

Hi Everyone and thanks in advance for all insights and suggestions.
Getting ready to migrate existing physical 2012 file servers to a virtual 2019 file server.
Each file server hosts its own DFS namespace, which could be moved to DC as host and several hundred GB worth of folders/files.
The last time I did this I moved the DFS namespace, made both old and new server DFS namespace host, used Robocopy to copy everything over and then removed old server from DFS namespace. Done. Had to use Robocopy since I had issues getting it to replicate overall items to the new server.
This time I was going to use the storage migration service from MS and was wondering if it can also take care of the DFS namespace step and/or if not can I just move the namespace and then use the storage migration service to copy the folders etc. as I know it maintains permissions and shares when doing it.

* server 2019* server 2012 r* DFS NamespaceStorage

Avatar of undefined
Last Comment

8/22/2022 - Mon

Have a look at DFS management, in particular replication groups.

DFS replication will not (by default) replicate any .tmp .bak files or files marked as temporary. This means files that have a temporary attribute 0x100 you can use a powershell script to run through the file to identify if files are marked temporary and if strip/remove this attribute.


Deals with going through the directory structure of every file to see if it has the 0x100 attribute set, if it is set, it strips it out.
Make sure to exclude the DfsrPrivate ...

DFS name space migration? When you add a DC, the DFS namespeace is within the AD. The switch in targets .......is all that you have to address, but adding the new one, and prioritizing, or better deprioritizing the one you wish to retire from the referral portion.
Then as users/clients start connecting  to the new DFS name space server, you can remove the old server as a target (disable)
Philip Elder

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question

When adding target, make sure to select the existing server as the reference as well as make sure to specify the replication folder/directory as the default path when added a new target to a replication as well as set the security permissions on the folder.......

My preference is to use something that produces a log of the output, so using built in tools, robocopy. If the servers have significant latency between them, I have been known to use rsync instead.

Method is to do initial copy, then do incrementals to keep the copy fresh, and when ready to cut over, remove access to the shares, run a final copy, change the DFS path and then allow on the new.

I have used DFS replication to do get the shares in sync, but this can take longer than robocopy...
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck

To pre-stage you can use restore from backup.

Robocopy does a raw copy, the DFS-R might use compression....
Philip Elder

Another option as far as raw copying of files is BeyondCompare by www.scootersoftware.com.

We use it for all of our non-SMS based data migrations.

Right click and Run As Admin then tick the "Copy NTFS Permissions" along with "Keep original file dates".

It's multi-threaded and caches the file/folder catalog to make things really simple and fast.
Laszlo Denes

Oh and big thanks Arnold for the script to remove temp attrib.. totally forgot about that as a problem.
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.

robocopy can copy NTFS permissions and original file time, and run multi thread, doesn't have a GUI though (-:

Philip Elder

The catch: With BeyondCompare if something causes a halt it keeps going.

One can set the view between source and destination to "Differences" to see what was missed.

Not sure how RoboCopy would allow for such a simple way to know where it choked and why.



given the existence of DFS-replication that wil maintain the data in sync, the only reason commonly to use robocopy was to prestage, but unlike DFS-replication that can be configured with a limit on the consumption of bandwidth, robocopy would not me limited and will need to be run multiple times to capture ......
And requires that one use the correct options for robocopy.

IMHO, if you want to prestage, use a backup/restore
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.