question

LouisRuth-3980 avatar image
0 Votes"
LouisRuth-3980 asked ·

exchange database have automatic switch over

the event log as below

A request to mount Active or Passive database was processed in 0.0214939 seconds.

Flags: 0x00000008
Error code: NoError (0x00000000)

Information Store - (47140,R,0,15.01.1779.002) The database engine has begun replaying logfile E:\Program Files\Microsoft\Exchange Server\V15\Mailbox\database\E04.log.


Previous Log Processing Stats:
[1] 395.168726 -2.929166 (1584) CM +J(CM:1584, PgRf:329433, Rd:3696/31, Dy:3782/520119, Lg:139787869/556120) +M(C:1341976K, Fs:237443, WS:363016K # 348824K, PF:1381028K # 1367372K, P:1381028K).


Then run a log to copy to E drive
“Information Store - MBX - Senior01 (47140,R,0,15.01.1779.002) MBX - Senior01: The database engine has begun replaying logfile E:\Program Files\Microsoft\Exchange Server\V15. “

how to avoid this status , because when failover to other database , around 1 hr the database will auto switch to original database and mounted back

is it the right not good or other possible reason

it is too trouble because the status happen the user outlook will no response and hang

[1]: /answers/storage/attachments/65207-image.png

office-exchange-server-administration
image.png (48.4 KiB)
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

ZhengqiLou-MSFT avatar image
0 Votes"
ZhengqiLou-MSFT answered ·

Hi @LouisRuth-3980 ,

Good day!
What’s the version of your Exchange server?

If it’s Exchange 2016 CU2 and later version(include Exchange 2019), that could make sense.
Since after Exchange 2016 CU2, the new property PreferenceMoveFrequency was added:
65594-1.png
You could disable this feature with this cmdlet:
Set-DatabaseAvailabilityGroup -Identity DAG01 -PreferenceMoveFrequency ([System.Threading.Timeout]::InfiniteTimeSpan)

Regards,
Lou


If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


1.png (32.3 KiB)
· 2 · Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi I checked Exchange server 16 version Mailbox

Version 15.1 ‎(Build 1779.2)‎

Enterprise
Exchange Server 2016 CU13 June 18, 2019 15.1.1779.2 15.01.1779.002


0 Votes 0 ·

Hi @LouisRuth-3980 ,

In this case you can try to disable the PreferenceMoveFrequency feature and restart the MS Exchange Replication service to test.

If the issue still exists, you can try to find if there are any logs related in C:\ExchangeSetupLogs\DagTasks

Regards,
Lou


If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

0 Votes 0 ·
LouisRuth-3980 avatar image
0 Votes"
LouisRuth-3980 answered ·

how to disable PreferenceMoveFrequency feature


and i check C:\ExchangeSetupLogs\DagTasks no location here.

· 2 · Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @LouisRuth-3980 ,

Run this command in EMS:

 Set-DatabaseAvailabilityGroup -Identity DAG01 -PreferenceMoveFrequency ([System.Threading.Timeout]::InfiniteTimeSpan)

The DagTasks folder should be in your 'ExchangeInstalledDriver'\ExchangeSetupLogs.


If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


0 Votes 0 ·

ZhengqiLou-MSFT check log already 2019 log without any recently task logging 66348-image.png


0 Votes 0 ·
image.png (19.7 KiB)
LouisRuth-3980 avatar image
0 Votes"
LouisRuth-3980 answered ·

66108-image.png



default is 1:00:00

i check have event log

1.
Event code: 3005
Event message: An unhandled exception has occurred.
Event time:
Event time
Event ID: 42711299724e498d904aae658dfd1ff6

2.
Re-delivery of messages from the transport dumpster will be attempted for database . Messages originally delivered between 2/10/2021 and 2/10/2021 3:45:25 AM (UTC) will be re-delivered.

3.
Cannot access file, the file is locked or in use [HResult: 0x80131500]. The copier will automatically retry after a short delay.


then auto switch database to server B

how to avoid this status happen





image.png (16.6 KiB)
· 3 · Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @LouisRuth-3980 ,

Have you tried to run the command above? That could change the PreferenceMoveFrequency from 1 hr to infinite, so it will not automatically restart.


If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

0 Votes 0 ·

is it will when DR moment , the Exchange B cannot recover when i set PreferenceMoveFrequency from 1 hr to infinite

0 Votes 0 ·

No, it controls how frequently the Microsoft Exchange Replication service inspects and automatically rebalances the database copies.
Setting this value to infinite means to disable auto checking for this DAG, it won't affect others.
For example by default the value is 1 hr:
66873-image.png
Copy 2 is the most preferred database copy for now, and it's Active.
Then change it's Activation Preference Number to 2 and automaticallly Copy 1 changed to the most preferred copy. After refresh:
66810-image.png
Copy 1 is not activated.
In this case, after 1 hour, the Copy 1 will automatically activate by MS Exchange Repl service.

If you set it to infinite, this will not happen, you should modify it manually.

Regards,
Lou

0 Votes 0 ·
image.png (43.8 KiB)
image.png (45.0 KiB)
LouisRuth-3980 avatar image
0 Votes"
LouisRuth-3980 answered ·

the copy of database 'XX' on this server appears to be experiencing performance issues, possibly as a result of storage failure. Consult the event log on the server for other storage and "ExchangeStoreDb" events for more specific information about the failure. Recovery was not attempted.

also happen database auto switch

· 1 · Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi,

Do you mean after running the command the database still switch automatically in 1 hr? Try restarting the MS Exchange Replication service and check.

If this still happens, can you check the ExchangeStoreDB events as the error message said and share them?

Also run this command to check if there are any failed database copies in your server:

 Get-MailboxDatabaseCopyStatus * 

Regards,
Lou


If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

0 Votes 0 ·
LouisRuth-3980 avatar image
0 Votes"
LouisRuth-3980 answered ·

Get-MailboxDatabaseCopyStatus *
66374-image.png
have no failed

but always show other Exchange B mounted default on Exchange A database

after 1 hr , Database willauto change back Exchange A mounted , it's too confused

during switch database , user outlook will hang and email will show disconnect with exchange
66289-image.png


image.png (74 B)
image.png (26.4 KiB)
· 1 · Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thanks for sharing these information!

Please check the Database copies in EAC and check the Activation preference number of the default Copy(It should be 1).

66401-image.png
66402-image.png
Have you moved these log files to E drive? Can you find the ExchangeSetupLog folder in E ?

I will do a research about it and also test in my lab. And if there are any settings configuration of Exchange server before this issue happened?

Thanks a lot and have a nice day.

0 Votes 0 ·
image.png (24.3 KiB)
image.png (19.9 KiB)
LouisRuth-3980 avatar image
0 Votes"
LouisRuth-3980 answered ·

66733-image.png



have active preference ,
setup log is which folder

i only found Program Files\Microsoft\Exchange Server\V15\Mailbox , only database folder


image.png (16.7 KiB)
· 6 · Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

It should be in <ExchangeInstallDrive>:\ExchangeSetupLogs\DagTask, by default it's C.
It's not like the database logs, it only record the operation on DAG.

but always show other Exchange B mounted default on Exchange A database

I'm not pretty understand this, do you mean the Exchange A database has a most preferred copy with Exchange B database?
In this case, i think you should check about the Number of these copies as i replied above.
And i will go on researching and follow this issue.

Regards,
Lou

If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

0 Votes 0 ·

Hi

i face other issue on exchange , the exchange B auto start at 4 days ago
the event log is
Cluster node 'EXG01A' was removed from the active failover cluster membership. The Cluster service on this node may have stopped. This could also be due to the node having lost communication with other active nodes in the failover cluster. Run the Validate a Configuration wizard to check your network configuration. If the condition persists, check for hardware or software errors related to the network adapters on this node. Also check for failures in any other network components to which the node is connected such as hubs, switches, or bridges

then EXG01B have restart , have any advise on this

0 Votes 0 ·

Hi @LouisRuth-3980 ,

Thanks for providing these information.
I found an article about this event, it could be helpful:
Troubleshooting cluster issue with Event ID 1135
Seems like it may because of several reasons like cluster or network settings.

Also, if you could, please try to remove the DAG and recreate one to test if the DAG has issues.

Bests,
Lou


If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

0 Votes 0 ·
Show more comments
LouisRuth-3980 avatar image
0 Votes"
LouisRuth-3980 answered ·

show other Exchange B mounted default on Exchange A database
Exchange A database has a most preferred copy

but event log show you before trigger database mounted to exchange B

Number of these copies show you
is 1 copy

· Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

ZhengqiLou-MSFT avatar image
0 Votes"
ZhengqiLou-MSFT answered ·

Hi @LouisRuth-3980 ,

The DAG is a cluster, a node of a cluster is like a member server of a DAG.

I think, if you could, you can remove the member servers then remove the DAG and recreate one.

Best regards,
Lou


If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

· 1 · Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

The performance counter '\\MSExchange Assistants - Per Database(msexchangemailboxassistants XX-XX )\Event Dispatchers Catching Up' sustained a value of '35,659.00', for the '30' minute(s) interval starting at '2/22/2021 1:26:00 AM'. Threshold breached since '2/17/2021 11:26 AM'. None Trigger Name:EventDispatchersCatchupQueueTrigger. Instance:msexchangemailboxassistants XX-XX

every half hour have pop up this error

how to solve

0 Votes 0 ·
LouisRuth-3980 avatar image
0 Votes"
LouisRuth-3980 answered ·

The DAG is a cluster, a node of a cluster is like a member server of a DAG.

I think, if you could, you can remove the member servers then remove the DAG and recreate one.

re-create have how long down time

· Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

LouisRuth-3980 avatar image
0 Votes"
LouisRuth-3980 answered ·

The performance counter '\\MSExchange Assistants - Per Database(msexchangemailboxassistants XX-XX )\Event Dispatchers Catching Up' sustained a value of '35,659.00', for the '30' minute(s) interval starting at '2/22/2021 1:26:00 AM'. Threshold breached since '2/17/2021 11:26 AM'. None Trigger Name:EventDispatchersCatchupQueueTrigger. Instance:msexchangemailboxassistants XX-XX

every half hour have pop up this error

how to solve

· 5 · Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @LouisRuth-3980 ,

Sorry for the delay, I had a leave for the previous days.

According to my research, this error "The performance counter" seems like a cosmetic error and all the resolutions are to stop it by
1. Open this file in notepad: C:\Program Files\Microsoft\Exchange Server\V15\Bin\Microsoft.Exchange.Diagnostics.Service.exe.config
2. Change "ExchangeJobs.Triggers.EventDispatchersCatchupQueueTrigger" from "True" to "False".

re-create have how long down time

Won't be long if you don't have so many member servers, but you will have to remove the database copies first.
70810-image.png
Exchange server won't stop when removing the DAG, so you don't have to worry that.

0 Votes 0 ·
image.png (33.4 KiB)
LouisRuth-3980 avatar image LouisRuth-3980 ZhengqiLou-MSFT ·

is it need to same setup to my existing 3 exchange servers ?

0 Votes 0 ·
ZhengqiLou-MSFT avatar image ZhengqiLou-MSFT LouisRuth-3980 ·

Hi,
Do you mean clean the cosmetic error messages? You can modify it where the error log occurs.

Regards,
Lou

0 Votes 0 ·
Show more comments