Solved

File Share Migration

Posted on 2014-12-24
16
51 Views
Last Modified: 2015-05-01
Hi All,

I have 2 File Servers which is currently running out of disk space, So we have added additional HDD's to the Servers and have created a new partition with Larger Volume.

Now to balance the Disk Space I need to move some of the Shared folders to the new drive on the same Server.

My file Servers are installed Windows 2008 R2 Enterprise Edition and there is no DFS Configured. Users Access it with the Server name.

Can you please suggest me and Easy way to do achieve it , Where I Can have the Share Permissions and the NTFS Permissions Intact.
0
Comment
Question by:Seshadrim
  • 7
  • 7
  • 2
16 Comments
 
LVL 35

Expert Comment

by:Joseph Daly
Comment Utility
If you are just moving the data from one drive on a server to a larger drive on the same server you can use robocopy which will keep the NTFS permissions in tact. Then once you are complete you would only need to unshare the old locations and then share out the folders on the new larger drive.
0
 
LVL 11

Expert Comment

by:andreas
Comment Utility
You could just move some of the shares to the new volume and adjust the shares in the registry. If you maintain the same folder structure you just need to change the drive letter to the new volume for the shared folder there.

The shares in registry can be found here:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Shares

When moving files ensure the ACLs stay intact. You could use robocopy for it with the /mir switch.

e.g. robocopy /mir d:\share e:\share

be careful with the robocopy /mir switch, if you omit the destination dir and just type e: you will delete EVERYTHING on e: that is not on the source path d:\share
0
 

Author Comment

by:Seshadrim
Comment Utility
Okay So Will I need to document the share permissions or will it also be already there
0
 
LVL 11

Expert Comment

by:andreas
Comment Utility
If you unshare and share you need to note the perms. If you adjust the registry the security remains its stored nearby in the registry. Be careful when editing there, ensure to only really change the drive letters, nothing else!

aftzerwards a REBOOT is necessary. Maybe a restart of the sever service is enough, ive not tried this yet.
0
 

Author Comment

by:Seshadrim
Comment Utility
@ Andreas : So Can I create a batch file with the Source & destination  details which can make it ease that copying one folder at a time.

If yes Can you please help me with the Batch script please
0
 
LVL 35

Expert Comment

by:Joseph Daly
Comment Utility
How many shares do you need to move? If there is only a few main shared folders its probably easier to screenshot and then recreate them after the data copy has competed.

when you type \\servername how many share show up?
0
 
LVL 11

Expert Comment

by:andreas
Comment Utility
At first we need to know more about the structure of the shares.

If its ONE big shre with many subfolders inside my approach is not working as the sharename will move to the nre volume, so all files of that shre need to move to the new volume and no space on the original volume will be used anymore.

My approch is good if you have some shares, then just move some of them to the new volume completely.

If there are not dozenz of shares there is no need for a batch just type the roboycopy command a few times, once per moved share.

If folder names are "random" you need to type them in any case, also in the batch as you need to tell the script shich folders are necessary to copy.
0
 

Author Comment

by:Seshadrim
Comment Utility
When I access the Server with the name (\\servername)  I get nearly 1000 Shares
0
How does your email signature look on mobiles?

Do your employees use mobile devices to reply to emails? With mobile becoming increasingly important to the business world, it is in your best interest to make sure that your email signature looks great across all types of devices.

 

Author Comment

by:Seshadrim
Comment Utility
Its not one Big Share, its Random

Ex:

\\Servername\test\ folder1, folder 2....

\\servername\test2\ folder1, folder 2....
0
 
LVL 11

Expert Comment

by:andreas
Comment Utility
Then its really more easy to MOVE ALL directories of that volume to the new volume and swap the drive letters, so the shares in the registry can keep without modification.

After that you find a few shares that use a bigger amount of data and move them BACK to the old drive, now with the new driveletter and change only the shares in the registry that were moved back to the old volume.
0
 

Author Comment

by:Seshadrim
Comment Utility
I Cant Change the Drive letter as there is Some application Installed in it.
0
 
LVL 11

Expert Comment

by:andreas
Comment Utility
Then i'm afraid you need to go through the hassle of either reinstallingthe app or moving the shares one by one. And typing the folder names.
0
 
LVL 11

Expert Comment

by:andreas
Comment Utility
Or as a dirty solution extend the space of the ole volume with the space of the new one. But of one drive breaks, all data ist lost.
0
 

Author Comment

by:Seshadrim
Comment Utility
@Andreas

is Moving the Shares to the new Drive and Modifying the Registry is Possible in this Scenario?

Ex :-

"F " is the Old Drive and "S" is the New Drive.

I Copy some of the Shared folders from F:\ to S:\Migrated Shares\<Project Name>\Shared folder using RoboCOpy and
Modify the Registry of that share to Point the Share to the new Location.

Once The data integrity is Verified and the Share is Accessible I will Delete the folder from the Old Drive.
0
 
LVL 11

Accepted Solution

by:
andreas earned 500 total points
Comment Utility
Yes it should be possible, but I've never tried with changing path names. Previously ive move the shares 1:1 to the new letter and just modified the drive letter in the registry.

So for a path adjustment i've not tried it yet. So to be sure I suggest you do a little test to verify it works.

1st make a nw shre on the old vol.
2nd move them and change path in registry
3rd reboot and see if everything works as intended on the test-share if aso you can proceed with your prod. shares.
0
 

Author Comment

by:Seshadrim
Comment Utility
Thanks, Will give a Try and update
0

Featured Post

Want to promote your upcoming event?

Is your company attending an event or exhibiting at a trade show soon? Are you speaking at a conference? Spread the word by using a promotional banner in your email signature. This will ensure your organization’s most important contacts are in the know.

Join & Write a Comment

Scenario:  You do full backups to a internal hard drive in either product (SBS or Server 2008).  All goes well for a very long time.  One day, backups begin to fail with a message that the disk is full.  Your disk contains many, many more backups th…
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
This tutorial will show how to push an installation of Backup Exec to an additional server in both 2012 and 2014 versions of the software. Click on the Backup Exec button in the upper left corner. From here, select Installation and Licensing, then I…
This tutorial will show how to configure a new Backup Exec 2012 server and move an existing database to that server with the use of the BEUtility. Install Backup Exec 2012 on the new server and apply all of the latest hotfixes and service packs. The…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now