Results 1 to 13 of 13
  1. #1
    4 Star Lounger
    Join Date
    Aug 2005
    Location
    London/Kingston, Surrey, United Kingdom
    Posts
    515
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Moving shares to a different partition: Windows 2003 Server SP2

    Hi all,

    On my file server I have three shared folders but I am running on out of space, I have another empty partition on the same server and was thinking to move some files across to the other partition:
    The shares are:
    1. \\SVR1\Shared
    2. \\SVR1\Finance
    3. \\SVR1\Scans

    If I move the files what should I consider before moving them apart from: Doing a back up, making sure no-one is connected to the shares and checking the permissions.

    Also the shared folder that I want to move is around 30GB.

    Your advise is much appreciated
    Many thanks

  2. #2
    Super Moderator BATcher's Avatar
    Join Date
    Feb 2008
    Location
    A cultural area in SW England
    Posts
    2,854
    Thanks
    19
    Thanked 110 Times in 104 Posts
    I would (at a weekend, since 30 GB is a fair amount of data to move):
    a) RoboCopy the three shares (one at a time) to the new partition, and carefully check the logs for any errors. Run TreeSize Free on both partitions (set the 'resolution' to KB) and check that the corresponding directory trees occupy the same space. Drill down if there are any discrepancies, and resolve.
    b) remove the three shares from the current partition
    c) set up the three shares on the new partition
    d) keep the old directories for a week or so "just in case"

    If you can make a backup to another medium prior to starting, that would give you more confidence!
    I would also determine how people connect to the shares. If it's via a common Logon Script, you have only one place to make the change.
    BATcher

    Dear Diary, today the Hundred Years War started ...

  3. #3
    Platinum Lounger
    Join Date
    Dec 2009
    Location
    Earth
    Posts
    3,836
    Thanks
    7
    Thanked 252 Times in 237 Posts
    Robocopy will copy the permissions if you use the "/COPYALL" switch.
    Logs are written using the "/log+:filename" switch.
    I suggest setting the retry to zero or one otherwise an open file will prevent Robocopy finishing - the default is retry 1 million times. Switch "/R:0"

    cheers, Paul

  4. #4
    4 Star Lounger
    Join Date
    Aug 2005
    Location
    London/Kingston, Surrey, United Kingdom
    Posts
    515
    Thanks
    0
    Thanked 0 Times in 0 Posts
    How about just moving the folder to the new partition during the weekend when no-one is using the files?

  5. #5
    Platinum Lounger
    Join Date
    Dec 2009
    Location
    Earth
    Posts
    3,836
    Thanks
    7
    Thanked 252 Times in 237 Posts
    Won't copy the NTFS permissions etc if you move it with Windows explorer.

    cheers, Paul

  6. #6
    4 Star Lounger
    Join Date
    Aug 2005
    Location
    London/Kingston, Surrey, United Kingdom
    Posts
    515
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Ok, I will probably use robocopy but I am new to it. Can you please advise the full command that I have to use to copy let's say the shared folder first ( it's smaller, only 22gb), I am not that confident with writing commands and want to make sure I am doing it the right way.Thanks again

  7. #7
    Super Moderator BATcher's Avatar
    Join Date
    Feb 2008
    Location
    A cultural area in SW England
    Posts
    2,854
    Thanks
    19
    Thanked 110 Times in 104 Posts
    Make a BATch file and put the following in it, amending appropriately to match your actual directory paths.
    Run it in test mode by leaving in the /L parameter, which means "execute but don't actually do the copy operation".
    Check the log (using Notepad, perhaps) to see that it seems OK.
    When you want to really, really, run it, remove the /L parameter and really, really, run it!
    Check the actual log for errors.
    Run TreeSize Free and do all the other things which I suggested above.
    Repeat for the other two shares (obviously you could try the three test runs, including the /L parameter, one after the other!).

    set source=path-to-shared-folder (as in D:\Data\OriginalSharedFolder, or \\SVR1\Shared if you like)
    set target=path-to-new-directory-root (as in E:\Newdata\NewSharedFolder)
    set log=path-to-log\SharedFolderRobocopy.log (change name for each share to be copied)
    set parms=/copyall /mir /np /r:0 /w:0 /L
    robocopy %source% %target% %parms% > %log%

    There will be a huge amount of log output, with a line for each file copied and each directory copied. This can be restricted but probably not a good idea for an important copy such as this.
    Last edited by BATcher; 2012-01-20 at 03:44.
    BATcher

    Dear Diary, today the Hundred Years War started ...

  8. #8
    4 Star Lounger
    Join Date
    Aug 2005
    Location
    London/Kingston, Surrey, United Kingdom
    Posts
    515
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hi many thanks for the the info, I still do not feel that confident to do it through the batch file, I just came across Robocopy GUI, is this a good app to use?

    Many thanks again

  9. #9
    Super Moderator BATcher's Avatar
    Join Date
    Feb 2008
    Location
    A cultural area in SW England
    Posts
    2,854
    Thanks
    19
    Thanked 110 Times in 104 Posts
    I'm sure the Robocopy GUI is a very good GUI. I looked at it once, but I don't do GUIs, if I can help it!
    I do all my non-BackupAssist backups using Robocopy BATch files. Ne plus ultra, as we Latin scholars always say!

    Why not just try the TEST backup with /L, to see if it gives you any confidence?
    BATcher

    Dear Diary, today the Hundred Years War started ...

  10. #10
    Platinum Lounger
    Join Date
    Dec 2009
    Location
    Earth
    Posts
    3,836
    Thanks
    7
    Thanked 252 Times in 237 Posts
    I never use the GUI, once you run it a couple of times it's really simple.

    Tip 1: put "/quit" on the end of the command for your first run. This will output the action to be taken and nothing else.
    Tip 2: limit the output to only errors with these switches: /NDL /NFL /NP
    Tip 3: use the robocopy log options instead of piping in a batch file: /LOG+:%log%
    The pipe in the batch file is the greater than symbol

    Note: Robocopy only copies files if they are newer than the files at the destination, or don't exist.

    cheers, Paul

  11. #11
    5 Star Lounger
    Join Date
    Dec 2009
    Location
    Milwaukee, WI
    Posts
    737
    Thanks
    23
    Thanked 63 Times in 51 Posts
    Not to mention you can't run a GUI from a batch file and scheduled task. In this case, what you really want is to use the power of automation. Set up the robocopy command in a batch file after you've tested it and run it nightly to keep the new share sysnced until you are ready to "flip the switch". Users will never know that anything has changed.

    I would recommend for your comfort level and knowledge building to do some preliminary testing. Copy a small subset of the data to a test directory and create a test destination. Put some bogus permissions on the folder then try out Robocopy. You can even do this on your own (or a test) workstation. Once you're comfortable with how it works, follow BATcher and Paul's advice on running a test against the production data. Then you'll be ready to put it in a batch file and run it from a scheduled task.
    Chuck

  12. #12
    New Lounger
    Join Date
    Sep 2010
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    To migrate the partition to another, I think AOMEI Partition Assistant does a job.

    http://www.disk-partition.com/partition-manager-server-edition.html

  13. #13
    Platinum Lounger
    Join Date
    Dec 2009
    Location
    Earth
    Posts
    3,836
    Thanks
    7
    Thanked 252 Times in 237 Posts
    It may do a job but it also costs. Please don't advertise here.

    cheers, Paul

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •