Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 621
  • Last Modified:

Windows Server 2012 DFS Replication between 2 DC's

Ok, I have a new client who has purchased 2 Dell Servers with Windows Server 2012 Std R2. Both servers will be Domain Controllers. My client is a small business with a small budget. He wants the 2 DC's to mirror each other file server wise. If the primary server goes down for any reason he still wants to be able to access the file shares on the secondary DC, until the primary comes backup. So I did some research and it seems as though DFS Namespace/Replication is the way to go. So I setup the Namespace, Folders and Replication. I'm doing all this on 2 VM's to test how the functionailty will work before the servers come in. Now Replication of the data between the 2 servers is working well, but when I took the primary DC down and tried to access the domain share I couldn't. My test domain environment is ; contoso.local. the full UNC path is \\contoso.local\Shares\Folders. I have the share mapped as \\contoso.local\Shares\folder on a Win7 VM. When I brought the primary DC back up I was able to access the domain share. The DFS Namespace is on the primary DC only. Why am I not able to access the domain share when the primary DC is down? I can access the files on the secondary DC by typing \\dc02\Shares\Folder but not using \\contoso.local\Shares\Folder.
0
rraymond1130
Asked:
rraymond1130
1 Solution
 
VB ITSCommented:
Did you add your second DC as a Namespace Server in DFS? Steps to do this can be found here: http://msdn.microsoft.com/en-us/library/cc732807.aspx
0
 
DeadmanCommented:
Please view below links steps to follow in deploy of DFS in two servers and compare have missed any thing.

https://mizitechinfo.wordpress.com/2013/08/21/step-by-step-deploy-dfs-in-windows-server-2012-r2/
0
 
Lee W, MVPTechnology and Business Process AdvisorCommented:
Have you reviewed your logs to ensure everything is good?  Is DNS setup properly on the DCs and the clients?
0
Creating Active Directory Users from a Text File

If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.

 
rraymond1130Author Commented:
Lee I have checked both DC's and DNS setup passes. On the client I have both DC's IP's in the DNS setting for the NIC. Remember my 2DC's and Client are running on VMplayer. This is testing. I have a drive mapped on my Win7 Client to \\contoso.local\Shares\Folder Now when I power down the DC01 (primary DC, also where the DFS Namespace lives) I can't access the mapped drive, but if I type in: \\contoso.local\Folder I see the folder but it contains nothing. So if I type in this: \\DC02\Shares\Folder I see the folder and the files it contains. Typically I take it DFS Namespace\Replication is done on 2 Fileservers. We don't have the luxury of affording that many servers. So I'm trying to make it work between the 2 DC's.

VB ITS I did not add the Namespace to the second DC because it would not let me create a 2nd Namespace with the same name.
0
 
rraymond1130Author Commented:
Also both servers will be in the same location, I'm just creating a failover senario. If DC01 goes offline for some reason. The users can keep working on DC02 until DC01 is back up.
0
 
Lee W, MVPTechnology and Business Process AdvisorCommented:
I don't recall DFS working quite that seamlessly.  Try this:

Make sure both DCs are running
Map the DFS share to the client.
Save a test file.
Shutdown (disconnect) one DC.
Do you still have access?
Swap DCs.
Do you still have access?
When you DON'T have access, log out and log in again.  I think, if memory serves, DFS maps to a server at logon and then wants to remain with that server until the next login.
0
 
rraymond1130Author Commented:
Ok Lee,

That worked.. I guess I was being a little impatient or my VM's are being a little slow. The drive lagged opening up but the folders and files was there. I created a new file and brought DC01 backup and the new file was there. I did the same taking down DC02 and everything worked. I made sure the client had both DC's IP's in the DNS of the NIC. So more testing ahead I just have to be patient with my VM's.. Thanks for the help.
0

Featured Post

NEW Veeam Backup for Microsoft Office 365 1.5

With Office 365, it’s your data and your responsibility to protect it. NEW Veeam Backup for Microsoft Office 365 eliminates the risk of losing access to your Office 365 data.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now