Msexchangerepl error 4113

One of the lesser discussed updates included in Exchange 2010 SP1 is the addition of database redundancy monitoring by the Microsoft Exchange Replication service. This occurs for databases that are…

One of the lesser discussed updates included in Exchange 2010 SP1 is the addition of database redundancy monitoring by the Microsoft Exchange Replication service. This occurs for databases that are in a Database Availability Group (DAG) and is intended to ensure that each replicated database has sufficient healthy copies to make it redundant. In this context, sufficient means at least two copies and a healthy copy is one that is online and has no problems copying or replaying transaction logs.

Exchange 2010 SP1 contains a script called CheckDatabaseRedundancy.ps1 in the default Scripts folder. You can run the script interactively to check a database and it is also possible to incorporate the script into Microsoft SCOM monitoring. See the Exchange 2010 SP1 CHM for details.

What’s interesting to me is that the same script is run hourly by the Microsoft Exchange Replication service to perform a redundancy health check for replicated databases . If Exchange finds that a replicated database doesn’t have sufficient healthy copies, the Microsoft Exchange Replication Service (MSExchangeRepl) logs event 4113 as shown below.

Event 4113 logged for a non-redundant database

In this instance I had a database (DB2) that had just been added to the DAG and no database copies apart from the active had yet been generated. The information captured in the event reports that only one copy exists, which is what I expected. The Replication Service will continue to check and log event 4113 for the database every twenty minutes until it goes into a state where sufficient redundancy exists to accommodate an outage and allow the failed copy of the database to failover to a healthy copy.

Event 4114 logged for a database deemed to be redundant

Event 4114 is logged for replicated databases that pass the redundancy health check. As you can see from the screen shot above, database DB2 has passed the health check because two healthy copies are available. If you scroll on down through the event details, you can see other information such as the replay and copy queue lengths for the copies.

Of course, you can debate the threshold that Microsoft has selected for database redundancy. In production environments, two copies is probably not sufficient to ensure the kind of redundancy that many companies demand, but it is enough to ensure that the DAG can cope with an outage that affects the disk that holds the database (or its transaction logs) or the server on which the database is mounted. As such, two copies is redundant enough for the purpose of illustration and initial deployment if not for long-term protection.

One interesting point is that Exchange 2010 uses the Windows 2008 Task Scheduler to run CheckDatabaseRedundancy.ps1 to check database copies. Exchange 2010 SP1 introduced a dependency on the Task Scheduler in that if this service is disabled on a server, you won’t be able to install the mailbox role. Not many people disable the Task Scheduler, so it’s not a problem that is encountered often but there are instances where overly-zealous Windows build engineers disable anything and everything before handing a server over to the Exchange deployment team who then see the problem illustrated below. The issue is obvious “The Task Scheduler Service is not running” but you might just wonder why this is a problem for Exchange. Now you know… To be fair to the Microsoft engineers, they know about this issue and are working out how to make it go away, probably by implementing the dependency check as part of adding a mailbox server to a DAG, which seems like the right place to test for a service that has to be running to validate database redundancy.

Whoops — Mailbox Role won’t install because the Task Scheduler is disabled

In any case, the point is that enabling a redundancy check for database copies is a nice example of proactive monitoring that has found its way into Exchange 2010 SP1, something that may just make the life of administrators a little easier, especially as they tease out the complexities of DAGs under the stresses and strains of real-life production environments.

– Tony

Find out more interesting details about Exchange 2010 SP1 with a copy of my Microsoft Exchange Server 2010 Inside Out book and continue to learn more about the mysteries of the Exchange 2010 Information Store!

About Tony Redmond

Lead author for the Office 365 for IT Pros eBook and writer about all aspects of the Office 365 ecosystem.

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

Процесс powershell.exe (PID=8880). Компонент: Microsoft.Exchange.Data.Directory.ConfigurationSettingsADNotificationException: Ошибка при запуске операции AD. —> Microsoft.Exchange.Data.Directory.ADTopologyUnexpectedException: Непредвиденная ошибка при вызове службы топологии Active Directory Microsoft Exchange на сервере «TopologyClientTcpEndpoint (localhost)». Сведения об ошибке: Отказано в доступе.. —> System.ServiceModel.Security.SecurityAccessDeniedException: Отказано в доступе.

Server stack trace:

в System.ServiceModel.Channels.ServiceChannel.ThrowIfFaultUnderstood(Message reply, MessageFault fault, String action, MessageVersion version, FaultConverter faultConverter)

в System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)

в System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)

в System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)

в System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

Exception rethrown at [0]:

в System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)

в System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)

в Microsoft.Exchange.Data.Directory.TopologyDiscovery.ITopologyClient.GetServersForRole(String partitionFqdn, List`1 currentlyUsedServers, ADServerRole role, Int32 serversRequested, Boolean forestWideAffinityRequested)

в Microsoft.Exchange.Data.Directory.ServiceTopologyProvider.<>c__DisplayClass10.<InternalServiceProviderGetServersForRole>b__f(IPooledServiceProxy`1 proxy)

в Microsoft.Exchange.Net.ServiceProxyPool`1.TryCallServiceWithRetry(Action`1 action, String debugMessage, WCFConnectionStateTuple proxyToUse, Int32 numberOfRetries, Boolean doNotReturnProxyOnSuccess, Exception& exception)

— Конец трассировки внутреннего стека исключений —

в Microsoft.Exchange.Data.Directory.ServiceTopologyProvider.GetConfigDCInfo(String partitionFqdn, Boolean throwOnFailure)

в Microsoft.Exchange.Data.Directory.TopologyProvider.PopulateConfigNamingContexts(String partitionFqdn)

в Microsoft.Exchange.Data.Directory.TopologyProvider.GetConfigurationNamingContext(String partitionFqdn)

в Microsoft.Exchange.Data.Directory.SystemConfiguration.ADSystemConfigurationSession.GetRootOrgContainer(String partitionFqdn, String domainController, NetworkCredential credential)

в Microsoft.Exchange.Data.Directory.SystemConfiguration.ConfigurationSettings.ADConfigDriver.<>c__DisplayClass2.<LoadSettings>b__0()

в Microsoft.Exchange.Data.Directory.ADNotificationAdapter.RunADOperation(ADOperation adOperation, Int32 retryCount)

в Microsoft.Exchange.Data.Directory.ADNotificationAdapter.TryRunADOperation(ADOperation adOperation, Int32 retryCount)

— Конец трассировки внутреннего стека исключений —. Не удается загрузить параметры приложения. Исключение: «%4»

Hi All,

Looking further into our Exchange 2010 setup (due to potential virtualisation), I’ve noticed that the replication of the mailbox database between the 2 DAG members has been failing intermittently, but often. Upon conversing with a colleague on this, it seems they have been having to manually check and re-sync the db to regain healthy operation.

Our setup:

2 x Exchange 2010 servers, both running MBX/CAS/HUB roles, with CAS Array in place.

What I’m seeing in the event logs, are a lot of MSExchangeRepl 2059, 2153 and 4113 errors, with the 4113 error stating:

Database redundancy health check failed.
Database copy: RMDAG MBX Store 1
Redundancy count: 1

Error: Passive copy ‘RMDAG MBX Store 1EXCH02’ is not in a good state. Status: FailedAndSuspended.

Name Status RealCopyQueu InspectorQue ReplayQueue CIState
                                       e ue
—- —— ———— ———— ———— ——-
RMDAG MBX Sto FailedAndSusp 111 0 0 Failed
re 1EXCH02 ended
RMDAG MBX Sto Mounted 0 0 0 Healthy
re 1EXCH01


===============
Full Status
===============

Identity : RMDAG MBX Store 1EXCH02
Name : RMDAG MBX Store 1EXCH02
DatabaseName : RMDAG MBX Store 1
Status : FailedAndSuspended
MailboxServer : EXCH02
ActiveDatabaseCopy : exch01
ActivationSuspended : True
ActionInitiator : Service
ErrorMessage : The required log file 1 for RMDAG MBX Store
1EXCH02 is missing on the active copy. If y
ou removed the log file, please replace it.
If the log file is lost, the database copy w
ill need to be reseeded using Update-Mailbox
DatabaseCopy.

ErrorEventId : 2059
ExtendedErrorInfo :
SuspendComment : The database copy was automatically suspende
d due to failure item processing. At ’14/01/
2012 16:30:19′ the copy of ‘RMDAG MBX Store
1′ on this server experienced an error that
requires it be reseeded. For more detail abo
ut this failure, consult the Event log on th
e server for other storage and «ExchangeStor
eDb» events. The passive database copy has b
een suspended.

SinglePageRestore : 0
ContentIndexState : Failed
ContentIndexErrorMessage : Catalog is dismounted externally for databas
e {93a611c1-3471-440c-8ff5-01da6135b21d}.
CopyQueueLength : 111
ReplayQueueLength : 0
LatestAvailableLogTime : 14/01/2012 16:29:44
LastCopyNotificationedLogTime : 14/01/2012 16:29:44
LastCopiedLogTime : 14/01/2012 16:29:27
LastInspectedLogTime : 14/01/2012 16:29:27
LastReplayedLogTime : 14/01/2012 16:29:27
LastLogGenerated : 237545
LastLogCopyNotified : 237535
LastLogCopied : 237434
LastLogInspected : 237434
LastLogReplayed : 237434
LogsReplayedSinceInstanceStart : 0
LogsCopiedSinceInstanceStart : 0
LatestFullBackupTime : 11/01/2012 23:45:40
LatestIncrementalBackupTime :
LatestDifferentialBackupTime :
LatestCopyBackupTime :
SnapshotBackup : True
SnapshotLatestFullBackup : True
SnapshotLatestIncrementalBackup :
SnapshotLatestDifferentialBackup :
SnapshotLatestCopyBackup :
LogReplayQueueIncreasing : False
LogCopyQueueIncreasing : False
OutstandingDumpsterRequests : {}
OutgoingConnections :
IncomingLogCopyingNetwork :
SeedingNetwork :
ActiveCopy : False

Identity : RMDAG MBX Store 1EXCH01
Name : RMDAG MBX Store 1EXCH01
DatabaseName : RMDAG MBX Store 1
Status : Mounted
MailboxServer : EXCH01
ActiveDatabaseCopy : exch01
ActivationSuspended : False
ActionInitiator : Service
ErrorMessage :
ErrorEventId :
ExtendedErrorInfo :
SuspendComment :
SinglePageRestore : 0
ContentIndexState : Healthy
ContentIndexErrorMessage :
CopyQueueLength : 0
ReplayQueueLength : 0
LatestAvailableLogTime :
LastCopyNotificationedLogTime :
LastCopiedLogTime :
LastInspectedLogTime :
LastReplayedLogTime :
LastLogGenerated : 0
LastLogCopyNotified : 0
LastLogCopied : 0
LastLogInspected : 0
LastLogReplayed : 0
LogsReplayedSinceInstanceStart : 0
LogsCopiedSinceInstanceStart : 0
LatestFullBackupTime : 29/12/2011 23:45:36
LatestIncrementalBackupTime :
LatestDifferentialBackupTime :
LatestCopyBackupTime :
SnapshotBackup : True
SnapshotLatestFullBackup : True
SnapshotLatestIncrementalBackup :
SnapshotLatestDifferentialBackup :
SnapshotLatestCopyBackup :
LogReplayQueueIncreasing : False
LogCopyQueueIncreasing : False
OutstandingDumpsterRequests : {}
OutgoingConnections :
IncomingLogCopyingNetwork :
SeedingNetwork :
ActiveCopy : True

And on the PASSIVE DAG member, I see:

ExchangeStoreDB event ID 117:

At ’14/01/2012 16:30:19′ the copy of ‘RMDAG MBX Store 1’ on this server experienced an error that requires it be reseeded. For more detail about this failure, consult the Event log on the server for other storage and «ExchangeStoreDb» events. The passive database copy has been suspended.

Doesn’t really give me much to go on… Anyone have any ideas?

Thanks

Dave

Понравилась статья? Поделить с друзьями:
  • Msedge exe bad image как исправить
  • Multiple primary key defined ошибка
  • Multiple irp complete requests windows 10 как исправить
  • Multiple definition of main ошибка code blocks
  • Mse это ошибка