设为首页 收藏本站
查看: 902|回复: 0

[经验分享] Windows 2012 下如何强制同步 AD SYSVOL

[复制链接]

尚未签到

发表于 2018-6-8 19:26:18 | 显示全部楼层 |阅读模式
  豆子昨天晚上临下班前遇见一个问题,一个分公司的员工无法更新组策略,查看域控发现了以下报错:

  Event ID 2213
  

  The DFS Replication service stopped replication on volume E:. This occurs when a DFSR JET database is not shut down cleanly and Auto Recovery is disabled. To resolve this issue, back up the files in the affected replicated folders, and then use the ResumeReplication WMI method to resume replication.
  

  Additional Information:
  Volume: E:
  GUID: C2B76452-2993-11E3-93F5-00155D801816
  

  Recovery Steps
  1. Back up the files in all replicated folders on the volume. Failure to do so may result in data loss due to unexpected conflict resolution during the recovery of the replicated folders.
  2. To resume the replication for this volume, use the WMI method ResumeReplication of the DfsrVolumeConfig class. For example, from an elevated command prompt, type the following command:
  wmic /namespace:\\root\microsoftdfs path dfsrVolumeConfig where volumeGuid="C2B76452-2993-11E3-93F5-00155D801816" call ResumeReplication
  

  这个问题我曾经遇见过,无非就是dirty shutdown造成的不同步罢了(http://blogs.technet.com/b/filecab/archive/2012/07/23/understanding-dfsr-dirty-unexpected-shutdown-recovery.aspx),按照指示2直接运行这个wmic命令就能修复。不过这次,运气没那么好了,老革命遇见了新问题,运行完指令之后,同步仍然不工作,而且出现了一个新的报错。
  

  Event ID 4012
  

  The DFS Replication service stopped replication on the folder with the following local path: E:\Windows\SYSVOL\domain. This server has been disconnected from other partners for 62 days, which is longer than the time allowed by the MaxOfflineTimeInDays parameter (60). DFS Replication considers the data in this folder to be stale, and this server will not replicate the folder until this error is corrected.
  

  To resume replication of this folder, use the DFS Management snap-in to remove this server from the replication group, and then add it back to the group. This causes the server to perform an initial synchronization task, which replaces the stale data with fresh data from other members of the replication group.
  

  Additional Information:
  Error: 9061 (The replicated folder has been offline for too long.)
  Replicated Folder Name: SYSVOL Share
  Replicated Folder ID: F913D21E-E002-4CB2-B259-449DE3A755F2
  Replication Group Name: Domain System Volume
  Replication Group ID: DFF93A1B-EA01-4DCB-8424-A93523BF5950
  

  经过网上研究搜索,可以用以下方式解决:
  

  1.首先在DFS managment里面查看replication 的设置
  

DSC0000.png

  

  可以通过右击 domain system volume进行健康诊断报告
DSC0001.png

  

  如果是正常的DC,最后的报告状态最后会显示 Normal,如果有问题的话,会显示 Failed
  

DSC0002.png

  

  2. 对于报错的DC,怎么处理呢?首先那个Event Viewer里面的解决方案是行不通的,因为 DFS management根本就不会允许你从同步组里面删除DC或者添加DC。我们需要通过更改DC的属性来Disable 和 Enable 对应的DC。具体方法可以参考
  http://support.microsoft.com/kb/2218556
  

  简单的说,在出问题的DC上,打开ADSIEDIT.MSC, 找到对应的域控,然后msDFSR-Enable 的属性改成False,然后AD site and services上手动同步一下

  

DSC0003.png

  

  

DSC0004.png

  

  然后点开之前打开的DFS Mangement -> Replication, 注意观察membership status的变化,同步之后该状态会变成 Disable
DSC0005.png

  

  3. 然后在第二步里面的msDFSR-Enable 的属性重新改为True,然后AD site and service重新replicate一遍,观察DFS managment里面的状态变化。(之前disable的状态会变成enable)
  

  4.最后去看看DC的日志。该DC会重新自动同步。
  

DSC0006.png

  

  通过这种Enable状态的更改,可以在windows 2012 下强制AD DC同步。
  

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-520836-1-1.html 上篇帖子: Windows Server 2012 之配置DNS 下篇帖子: Windows Server 2012中DC与证书的配置
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表