You are protecting a node on an Exchange DAG spread over multiple servers that contains both active and passive exchange databases or a node containing passive database copies. You notice that the logs are not truncated on the passive databases. You are looking a simple method to force a log truncation on the node containing both active and passive databases or a node containing passive databases only. You try to disable the Exchange Replica Writer from the Agent Transfer Settings in the Core GUI but both the Exchange Writer and the Exchange Replica Writers get disabled at the same time.
Windows Registry Disclaimer:
Quest does not provide support for problems that arise from improper modification of the registry. The Windows registry contains information critical to your computer and applications. Make sure you back up the registry before modifying it. For more information on the Windows Registry Editor and how to back up and restore it, refer to Microsoft Article ID 256986 “Description of the Microsoft Windows registry” at Microsoft Support.
PowerShell Scripting Disclaimer:
This script is provided "as is" for the purpose of illustrating how product tasks may be performed in conjunction with PowerShell. Support shall not be liable for any direct, indirect, incidental, consequential, or other damage alleged in connection with the furnishing or use of this script or of the principles it demonstrates. See PowerShell Scripting Support for more information.
Solution:
This issue is resolved in Rapid Recovery 6.0.2. Support recommends upgrading to the most recent build of Rapid Recovery.
The solution is to disable the Exchange Replica Writer directly on the DAG node for the duration of the snapshot with log truncation. This cannot be done from the Transfer settings of the Agent on the AppAssure Core as the VSS writers are identified by ID and both the Exchange Writer and the Exchange Replica Writer share the same ID.
To solve the issue without patching the Core, please do the following:
To simplify the operation a PowerShell script has been created.
The script checks the value of HKEY_LOCAL_MACHINE\Software\Microsoft\ExchangeServer\v14\Replay\Parameters\EnableVSSWriter. If the value does not exist it creates it. The value is toggled from 0 to 1 and back at every run of the script.
The script can be renamed to pretransferscript.ps1 and another copy of it to posttransferscript.ps1 and copied to C:\ProgramData\AppRecovery\Scripts on the agent (folder may need to be created) to automatize the Exchange Replica Writer suspension for every snapsot taken via AppAssure.
The code of the script is shown below between horizontal lines and attached to the KB.
© ALL RIGHTS RESERVED. Feedback Terms of Use Privacy Cookie Preference Center