I've currently got two servers in an AG running successfully. I'm now trying to add a third server to the AG for DR. The third server is on a different subnet.
I've got the new server added to the WSFC and added an appropriate IP address for it. When I tick the "Enable AlwaysOn Availability Groups" box in Configuration Manager, or use the Enable-SqlAlwaysOn Cmdlet, I get an error. Through Configuration Manager the error is:
Unable to save the AlwaysOn High Availability settings [return code: 0x80041033].
In Powershell the error is:
ChangeHADRService failed for Service 'MSSQL$MYINSTANCE'
Microsoft.SqlServer.Management.Smo.FailedOperationException,Microsoft.SqlServer.Management.PowerShell.Hadr.EnableSqlHADRServiceCommand
The Application event log at the same time has a log entry:
Windows Management Instrumentation has stopped WMIPRVSE.EXE because a quota reached a warning value. Quota: HandleCount Value: 9623 Maximum value: 8192 WMIPRVSE PID: 10984 Providers hosted in this process: C:\Program Files\Microsoft SQL Server\120\Shared\sqlmgmprovider.dll
This looks like the problem with WMI running out of handles, and all the resolutions I can find online are to increase the limit using wbemtest.exe. However, I've already increased the limit from the default 4096 to 8192 and it's still failing. I've even tried increasing it to 81920 and it just takes longer to fail.
Has anyone got any other suggestions of what I can try?