DFS - jude-lindale/Wiki GitHub Wiki

Prerequistes

  • Properly network the two new Server Core 2019 Vms
  • SFCONFIG
  • Add DFS1 and DFS2 (the servers to our mgmt all servers)
    • Right Click on all servers and select add server

File Server Role

  • Install file server role on both DFS1 and DFS2
  • Create 2 shared folders:
    • Enable it:

On computer management on DFS1 --> Go to shares --> and create a new shared drive with a folder path C:\dfs1 and only allow admins full access and others read-only access.

Do the same for DFS2

Testing to make sure it works

  • In powershell run:
    • dir \dfs1-jude\dfs1\
    • echo "TestFile" > \dfs1-jude\dfs1\dfs1.txt
    • dir \dfs2-jude\dfs2\
    • echo "testfile2" > \dfs2-jude\dfs2\dfs2.txt
    • cat these

Installing DFS

  • On MGMT01 Add two server roles DFS Namespace and DFS replication and install DFS management tools feature as a remote server admin tool for file services.
  • Then Install DFS replication server role to both DFS1 and DFS2
  • After installing these proceed:
    • Open DFS management console under file & storage services on MGMT01
    • Create a new DFS Namespace on MGMT02.
      • Name the namespace dfsshare, edit the permissions to allow all users read & write to a local path of C:\DFSRoots\dfshare
      • Select a domain-based namespace to create.

Creating a folder in the DFS Namespace

  • Name the new folder SYS265
  • Make sure to add the targets,
  • \dfs1-jude\dfs1
  • \dfs2-jude\dfs2
  • Hit Okay and then it is prompted for a replication group can be used to synchronize the folder targets of the folder you just created.
    • Yes you want to create a replication group to sync the folder targets.
    • Replication group name: jude.local\dfsshare\sys265
    • Replicated folder name: SYS265
    • Make sure both our machines are there
    • And the Primary member is DFS1-jude
    • Select Full Mesh Lets test again!
  • On wks01 ls \jude.local\dfsshare\SYS265
  • ls \dfs1-jude\dfs1
  • ls \dfs2-jude\df2
  • Let's create a share file.
    • echo "Testing file3" >> \jude.local\dfsshare\SYS265\dfs-share1.txt
    • ls \jude.local\dfsshare\SYS265
    • ls \dfs1-jude\dfs1
    • ls \dfs2-jude\df2 Breaking things:
  • Turn off your DFS1 and run the same tests again