Home » DFSR » How to Migrate DFSR Shares from One drive to Other drive

How to Migrate DFSR Shares from One drive to Other drive

Start here


Hi All,

Just wanted to share one of my recent experience with Migrating the Shares from One drive to Other Drive which is configured in DFSR.

Drives are Fastly Filling up in Servers due to users dumping  more and more data in the Shares. In Physical infrastructure, it is possible that you can Extend the drives by adding more space on RAID disks. But there is a limit.

In Virtual Infrastructure, the maximum drive size you can have in ESXi5.0 is 2TB-512 Bytes. You can’t extend beyond this.

Only way to overcome this is to start migrating the shares from one drive to a new drive which has more space or newly configured.

Let’s Jump In…

Disable your AV software on server where you are trying to move the shares

Disable the backups programs if any ( if you use any 3rd party backup tools, inform your backup team to disable the backup policies)

Robocopy your data using a script with the syntax. It will also ensure foldernames with spaces are also move properly since it is included with quotes.

robocopy “\\servername\driveletter$\Folder\shared folder name\”  “\\servername\new driveletter$\Folder\shared folder name\” /sec /e /b /copyall /r:6 /xd dfsrprivate /log:c:\results.txt /tee
Once robocopy completed, verify the file hash. Check this for minimum 5 to 10 different folders and files in structure

On the file server at command prompt

dfsrdiag FileHash /Path:”driveletter:\Folder\Shared Folder name”

It will display results as below.


Operation Succeeded

Again run the same command but for new drive to verify the file hash.

dfsrdiag FileHash /Path:”newdriveletter:\Folder\Shared Folder name”

It will display results as below.


Operation Succeeded

Once all file hashes are matching properly, proceed further. Else, STOP here. Apart from AV and your backup program which you disabled initially,something else is also trying to alter the data which you are trying to move. Find out that. Sometime it could be users too.  Inform your users well in advance that namespace path will not be available when you perform this activity. I always do at weekends usually via a proper change control.

Stop sharing your old folder which is on drive which has less space.

Share your folder which is on drive where data is moved recently.

Confirm all permissions are intact. It would normally because the above robocopy script which was used included the security permissions as well.

Now locate the replicated folder which you would like to change its path from one drive to another drive under replication group

Right click on Folder and click on disable. Wait for complete.

Now right click again and click enable, while enabling it would ask you for the path. Here, change it to the new drive and shared folder ( which you shared on new drive few mins back)

Once done, you will see the path has been changed to new drive.

Confirm namespace is accessible without any issues.

You will see an event under DFS replication as Configuration has been updated.

Now replication for this folder will be picked up when DC has informed DFS server that changes are recieved and replicated to other DFS member.

If you can afford reboot of this file server, you can give it a shot. ( but this is not necessary)

This folder will be placed into initial replication stage for a while (sometimes it takes days as well)

Once DFS detects everything properly this folder will start replicating the contents as before.

In my experience,it took a week for me to replicate the new data between the servers.

Hope this helps everyone!  TEST TEST TEST before you target this on large share. Please let me know if anyone has any queries.. Happy to help.. 🙂

This article helped me in greater extent on completing this activity. Thanks to author Ned Pyle for his detailed explanations on how it works..






Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: