重新初始化丢失的消息Reinit missing message

在多站点层次结构中,Configuration Manager 使用 SQL 复制在站点之间传输数据。In a multi-site hierarchy, Configuration Manager uses SQL replication to transfer data between sites. 有关详细信息,请参阅数据库复制For more information, see Database replication.

使用以下图示开始对 SQL 复制重新初始化 (reinit) 的丢失消息进行故障排除:Use the following diagram to start troubleshooting a missing message with SQL replication reinitialization (reinit):

对重新初始化的丢失消息进行故障排除的图示

查询Queries

此图示使用以下查询:This diagram uses the following queries:

检查站点复制是否尚未完成重新初始化Check if site replication hasn't finished reinit

SELECT * FROM RCM_DrsInitializationTracking dt
INNER JOIN ReplicationData rg
ON dt.ReplicationGroup = rg.ReplicationGroup
WHERE dt.InitializationStatus NOT IN (6,7)

从订阅服务器站点获取 TrackingGuid 和状态Get the TrackingGuid & Status from subscriber site

SELECT RequestTrackingGUID, InitializationStatus
FROM RCM_DrsInitializationTracking dt
INNER JOIN ReplicationData rg
ON dt.ReplicationGroup = rg.ReplicationGroup
WHERE dt.InitializationStatus NOT IN (6,7)

从发布站点获取 TrackingGuid 和状态Get the TrackingGuid & Status from the publishing site

SELECT RequestTrackingGUID, InitializationStatus
FROM RCM_DrsInitializationTracking dt
WHERE RequestTrackingGUID=@trackingGuid

修正操作Remediation actions

1902 版和更高版本Version 1902 and later

若要检测问题和重新初始化,请运行复制链接分析器To detect the issue and reinit, run the Replication Link Analyzer.

1810 版和更高版本Version 1810 and earlier

运行以下 SQL 查询以获取 ReplicationGroupIDRun the following SQL query to get the ReplicationGroupID:

SELECT rd.ID AS ReplicationGroupID from ReplicationData rd
INNER JOIN RCM_DrsInitializationTracking it ON rd.ReplicationGroup = it.ReplicationGroup
WHERE it.RequestTrackingGUID=@trackingGuid

然后,通过以下值对 SMS_ReplicationGroup WMI 类使用 InitializeData 方法:Then use the InitializeData method on the SMS_ReplicationGroup WMI class with the following values:

  • ReplicationGroupID: 来自上面的 SQL 查询ReplicationGroupID: from the SQL query above
  • SiteCode1: 父站点SiteCode1: parent site
  • SiteCode2: 子站点SiteCode2: child site

有关详细信息,请参阅 class SMS_ReplicationGroup 中的 InitializeData 方法For more information, see InitializeData method in class SMS_ReplicationGroup.

示例Example

Invoke-WmiMethod –Namespace "root\sms\site_CAS" -Class SMS_ReplicationGroup –Name InitializeData -ArgumentList "20", "CAS", "PR1"

后续步骤Next steps