Moving a DFS Share

Discussion in 'File Systems' started by Joe U., Apr 7, 2009.

  1. Joe U.

    Joe U. Guest

    Hello All,

    I am new to DFS so I am trying to get my arms around how to do this. I am
    working in a new environment where the person before me had set-up 3 DFS
    shares to 3 separate volumes. The space available is filling up fast so I
    need to move the 3 shares to larger volumes, but these shares are available
    to the entire company. Here is how I understand the move so far.

    1. Copy contents to new directory. I am using robocopy to do this.
    2. Break the shares.
    3. Recreate the shares in the new directory.
    4. Double-check permissions?

    Is this how I would do it? Is there a better way?

    Thanks for the help.

    Joe U., Apr 7, 2009
    1. Advertisements

  2. How isdfs setup? Standalone or Domain based? If you are using domain based,
    create similar shares with same permissions on new directory, and setup
    replication to replicate folders/files to new directory.
    Isaac Oben [MCITP,MCSE], Apr 7, 2009
    1. Advertisements

  3. Joe U.

    DaveMills Guest

    It will depend upon how this has been set up. The two main configurations are

    a) DFSRoot has folders that link to ordinary UNC shares on the same or other
    server. You access as \\ad\dfsroot\folder which redirects to \\server\share
    b) DFSRoot has folder and the data is copied into the folder.

    In case a) do exactly as you state, copy the data then change the link to point
    to the new unc share. In case b) you will need to remove the DRF replica and
    then when replication has finished recreate the DFS replica on a differ ant
    location. I have never tried case b)
    DaveMills, Apr 7, 2009
  4. Joe U.

    Joe U. Guest

    Thanks for the reply. I am guessing from your response that we are actually
    doing option A. There are three folders that are being shared through-out
    our domain (no replication) and the path that users see is just mapped as a
    folder share on all of their machines.

    A couple more questions that I have.

    A. I used robocopy to copy the files to the new directory. I would now like
    to perform a differential move of just the updated files. Does anyone know
    how the command for robocopy works for this?

    B. I want to make sure that I am going through the proper steps to set this
    up. To break the shares, do I just go into Admin Tools --> DFS. Then I
    would list the root shares and on the right it would show the target. Do I
    just remove the old target location and then add the new target location?

    Thanks for your help.

    Joe U., Apr 8, 2009
  5. Hello Joe,

    See inline for response:

    Isaac Oben [MCTIP:EA, MCSE]

    Use /A option for Differential backup and
    /M option for Incremental Backup
    You need to add new targets first then remove old targets
    Isaac Oben [MCITP,MCSE], Apr 8, 2009
  6. Joe U.

    Joe U. Guest

    Is there a way for me to tell where the original target is pointing it?
    Right now it just shows how the share is listed. "\\\storage1" and
    if I click on that, it opens the share, but I want to trace it back to the
    physical drive and folder shared.

    Joe U., Apr 8, 2009
  7. Joe U,

    You can export your entire dfs structure into an xml file and use notepad to
    open it and you will see all path for each share etc

    dfsutil /root:\\<domain name>\<dfs root name> /export:<domain name>.XML.DFS
    Isaac Oben [MCITP,MCSE], Apr 8, 2009
  8. Joe U.

    Joe U. Guest

    Ok, getting closer to answering this now. So I ran the command that Isaac
    posted and here is some of what I got back.

    <?xml version="1.0"?>

    <Root Name="\\\sharedfs" State="1" Timeout="300" >
    <Target Server="" Folder="sharedfs" State="2" />

    <Link Name="journlsm-271" State="1" Timeout="300" >
    <Target Server="" Folder="journlsm-271" State="2" />

    <Link Name="geogrpy-450" State="1" Timeout="1800" >
    <Target Server="" Folder="geogrpy-450" State="2" />

    <Link Name="psych-498" State="1" Timeout="300" >
    <Target Server="" Folder="psych-498" State="2" />

    This is just the top 4 lines from one of my root shares. It appears that
    the contents of these shares span a few different drives which I am copying
    the contents of via robocopy. I won't have to move the link for every single
    share individually, will I?


    Joe U., Apr 8, 2009
  9. If you change location of a share/link/target etc, then you will have re
    link it to new location, if not, then clients will still be refering to old
    location. Example, if you move share: "journlsm-271" from
    to say, then you will have to change link location to
    server2 etc..The easiest way you can do this is, after all copy is done and
    new locations are set, you can edit the export file with new locations and
    then import to dfs using the import command: Please BACKUP dfs structure if
    you choose to use import command below.
    dfsutil /root:\\<domain name>\<dfs root name> /import:<domain name>.XML.DFS

    Isaac Oben [MCTIP:EA, MCSE]
    Isaac Oben [MCITP,MCSE], Apr 8, 2009
  10. Joe U.

    Joe U. Guest


    So if I am not changing from and instead I am changing
    the location from E:\ to G:\ then I would not have to go through this process?

    Joe U., Apr 8, 2009
  11. Joe,

    That is correct, as long as you are share name is the same and in the same
    server. Link will remain same..I presume you are just going to delete or
    rename old shares? You can test the first one if you want..
    Isaac Oben [MCITP,MCSE], Apr 8, 2009
  12. Joe U.

    Joe U. Guest


    Thank you so much for all of your help! So I can leave the root alone since
    I am staying on the same server, I got that part. So then I assume I just
    stop the underlying shares that are set-up on say Drive A and once copied to
    drive B, set-up the new share with the proper permissions and away I go?
    This will re-add all of the proper links to it as well?

    Joe U., Apr 9, 2009
  13. Joe,
    Yes, that should be good to go. So long as the share names are the same,
    then no need to change link
    Isaac Oben [MCITP,MCSE], Apr 9, 2009
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.