Hi
I have 3 test 2012R2 servers with Exchange 2013, one CAS and two MDB with DAG configuration.
I try to automate install windows update on DAG servers using Cluster Aware Updating.
CAU configuration pass all tests.
I wrote simple PS script to move active database copy to another DAG member to run preupdate
add-pssnapin Microsoft.Exchange.Management.PowerShell.E2010
$computer = gc env:computername
Move-ActiveMailboxDatabase -Server $computer
CAU failed updating while runing preupdate script on node
In event viewer I have this error
CAU run failed on node VM-MDB-02. Details: Microsoft.ClusterAwareUpdating.ClusterUpdateException: Error records were returned from this script: "c:\scripts\PreUpdateScript.ps1"
at MS.Internal.ClusterAwareUpdating.ScriptManager._ThrowIfError(PowerShell shell, String scriptName)
at MS.Internal.ClusterAwareUpdating.ScriptManager.ExecuteFile(String scriptPath)
at Microsoft.ClusterAwareUpdating.Commands.InvokeCauRunCommand.<>c__DisplayClass56.<_ProcessNode>b__48()
at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.ClusterAwareUpdating.Commands.InvokeCauRunCommand.Retrier.<>c__DisplayClass91.<<RetryAsync>b__90>d__93.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at Microsoft.ClusterAwareUpdating.Commands.InvokeCauRunCommand.Retrier.<RetryAsync>d__96`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.ClusterAwareUpdating.Commands.InvokeCauRunCommand.<_ProcessNode>d__5c.MoveNext()
What am I doing wrong ? Thanks for all answers.
Regards
Piotr Walkowiak