博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Windows2008R2 AD降级错误解决方案
阅读量:6978 次
发布时间:2019-06-27

本文共 4867 字,大约阅读时间需要 16 分钟。

我们之前的文中有介绍关于ADCS的迁移,迁移后我们为了保证服务 运行正常。将原有的AD关机并保留,如果真出现CS相关的问题,我们准备通过备份暂时还原CS相关服务,经过长时间的观察后确认,CS服务运行正常。所以将原有的DC启动起来进行降级(dcpromo降级),但是在降级的过程中发现了一些问题,所以总结后分享给有需要的同学。

说到降级其实有两种方式,一种是正常降级,另外一种是暴力降级;

所谓的正常降级就是从windows2003、windows2008r2之间的AD服务降级我们可以通过运行dcpromo的方式进行步骤化降级,而windows2012以后版本我们需要通过管理工具卸载AD域服务的方式进行降级,该降级方式是微软推荐的,但是当待降级的AD服务无法正常运行或者所运行AD服务的硬件服务无法正常运行时,我们就无法通过第一种方式进行降级了,那就必须采用第二种方式暴力降级了,所谓的暴力降级就是通过ntdsutil命令来将环境内的无效AD服务器从目录中删除。而我环境中比较倾向第一种方式,这样的降级方式比较安全,而且比较方便。通过该方式可以自动将目录中的相关数据清除,由于我的环境比较特殊,问题比较多,所以在降级的过程中出现了一些小插曲,最终还是解决了,具体见下:

通过运行dcpromo命令,通过步骤进行降级遇到以下错误提示。

通过查找微软的technet资料最终找到解决方案

原因是由于infrastucture master指向了DNS 应用程序分区上已经被删除的NTDSA,如果仍然遇到此故障,我们可以使用ADSIEDIT.MSC将fsMORoleOwner 属性的DN Path指向您林中的主域控制器

Active Directory Domain Services could not transfer the remaining data in directory partition   

DC=DomainDNSZones,DC=<DNS domjain name>to    
Active Directory Domain Controller    
 name of helper DC used to service demotion>    
"The directory service is missing mandatory configuration    
information, and is unable to determine the ownership of floating single-master operation roles."

The relevant part of the DCPROMO.LOG file contains the followign text:

<date> <time> [INFO] Transferring operations master roles owned by this Active Directory Domain Controller in directory partition DC=DomainDnsZones,DC=contoso,DC=com to Active Directory Domain Controller  name of helper DC...    

<date> <time> [INFO] EVENTLOG (Warning): NTDS Replication / Replication : 2091

A review of the infrastructure object and attributes for the DNS application partition referenced in the on-screen DCPROMO error and DCPROMO.LOG

Expanding base 'CN=Infrastructure,DC=DomainDnsZones,DC=contoso,DC=com'...   

Getting 1 entries:    
Dn: CN=Infrastructure,DC=DomainDnsZones,DC=contoso,DC=com    
cn: Infrastructure;    
distinguishedName: CN=Infrastructure,DC=DomainDnsZones,DC=contoso,DC=corp,DC=microsoft,DC=com;    
dSCorePropagationData: 0x0 = (  );    
fSMORoleOwner: CN=NTDS Settings\0ADEL:<NTDS Settings objet GUID>,CN=<hostname of last DC to host the partition infrastructure role>,CN=Servers,CN=<active directory site name>,CN=Sites,CN=Configuration,DC=contoso,DC=com;    
instanceType: 0x4 = ( WRITE );    
isCriticalSystemObject: TRUE;    
name: Infrastructure;    
objectCategory: CN=Infrastructure-Update,CN=Schema,CN=Configuration,DC=contoso,DC=com;    
objectClass (2): top; infrastructureUpdate;    
objectGUID: <object guid>;    
showInAdvancedViewOnly: TRUE;    
systemFlags: 0x8C000000 = ( DISALLOW_DELETE | DOMAIN_DISALLOW_RENAME | DOMAIN_DISALLOW_MOVE );    
uSNChanged: <some USN #>;    
uSNCreated: <some USN #>;    
whenChanged: <date> <time>;    
whenCreated: <date> <time>;

Where distinguishing elements in the LDAP output taken from the sample domain "CONTOSO.COM include::

The fSMORoleOwner attribute contains the string "0ADEL" indicating that the role owning DC's NTDS Settings object has been deleted

The fSMORoleOwner attribute contains a 32-character alpha-numeric GUID of the owning DCs NTDS Settings object in the format of "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",

The name of the default DNS application partition for which the fSMORoleOwner attribute is assigned to a DC with a deleted NTDS Settings object. In this case the error referenced the DomainDNSZones. This same error may also occur for the ForestDNSZones application partition.

解决方案:

The error above occurs when the domain cointroller being demoted cannot outbound replicate changes to the Dc that owns the infrastructure FSMO or operational role for the partition referenced in the DCPROMO [log] error.   

Specifically, the demotion attempt is aborted to safeguard against data loss. In the case of DNS application partitions, the demotion is blocked to ensure that live and deleted DNS records, their ACLS and metadata such as registration and deletion dates are replicated

DN paths for partitions where the error in the symptoms section may occur include:

CN=Infrastructures,DC=DomainDNSZones....

CN=Infrastructures,DC=ForestDNSZones....

根据解决方案,我们就可以顺利解决问题了

首先我们运行netdom query fsmo 查看AD角色的当前所有者

然后登陆到infrastructure主机上,运行adsitedit.msc打开编辑器,然后右击单机链接

然后我们首先关联ForestDnsZones,进行链接

CN=Infrastructure, DC=ForestDnsZones,DC=iternalsoft,DC=COM

链接进去我们其实已经发现了错误

错误格式有乱码,而且CN的名称也不是当前的基础架构主机

Bj-dcd的主机已不存在了,而正确的应该是BJ-DC02

CN=NTDSSettings\0ADEL:061b26ae-f637-4c58-8414-301f0261fe98,CN=BJ-DCD\0ADEL:64b8c2ea-1a70-4017-bdaa-4c17f04a6bab,CN=Servers,CN=BeiJing-iternalsoft,CN=Sites,CN=Configuration,DC=iternalsoft,DC=com

所以我们修改正确内容格式保存即可

CN-NTDS Settings,CN=BJ-DC02,CN=Servers,CN=Beijing-iternalsoft,CN=Sites,

CN=Configuration,DC=iternalsoft,DC=COM

接着我们按照上面的方式再打开DomainDnszones的配置方式

CN=Infrastructure, DC=DomainDnsZones,DC=domain name

将修改同样的内容fsMORoleOwner的值

所以我们修改正确内容格式保存即可

CN-NTDS Settings,CN=BJ-DC02,CN=Servers,CN=Beijing-iternalsoft,CN=Sites,

CN=Configuration,DC=iternalsoft,DC=COM

修改后,我们再次尝试使用dcpromo进行降级,降级通过及完成

本文转自 高文龙 51CTO博客,原文链接:http://blog.51cto.com/gaowenlong/1706526,如需转载请自行联系原作者

你可能感兴趣的文章
ubuntu安装redis的方法以及PHP安装redis扩展、CI框架sess使用redis的方法
查看>>
功能演示:戴尔PowerConnect 8024交换机VLAN的创建与删除
查看>>
SharePoint运行状况分析器有关磁盘空间不足的警告
查看>>
Oracle的分页查询
查看>>
Objective-C非正式协议与正式协议
查看>>
jquery mobie导致超链接不可用
查看>>
Python OpenCV学习笔记之:图像读取,显示及保存
查看>>
计算机职业目标
查看>>
2月国内搜索市场:360继续上升 百度下降0.62%
查看>>
HTML样式offset[Direction] 和 style.[direction]的区别
查看>>
使用memcache做web缓存
查看>>
我的友情链接
查看>>
我的友情链接
查看>>
华胜天成ivcs云系统初体验2
查看>>
MASQUERADE --random 端口不随机
查看>>
阿里云 Aliplayer高级功能介绍(二):缩略图
查看>>
从1.5K到18K 一个程序员的5年成长之路(二)
查看>>
从HelloWorld看Knative Serving代码实现
查看>>
制作一个简单的linux
查看>>
【ZooKeeper Notes 14】数据模型
查看>>