I am attempting to set a failover database for the SharePoint Config and Admin Content databases in a SharePoint 2010 farm.
Environment: Stretched SharePoint 2010 farm utilizing a fiber link utilizing two datacenters. WFE/APP/SQL in each, SQL's are in a mirror with a witness located in datacenter 1.
In setting up failover for the SharePoint Config and SharePoint Admin database, I run the following script;
$db = Get-SPDatabase | Where-Object { $_.Name -match "SharePoint_Config" }
$db.AddFailoverServiceInstance("SQLContent2")
$db.update
$db = Get-SPDatabase | Where-Object { $_.Name -match "SharePoint_AdminContent" }
$db.AddFailoverServiceInstance("SQLContent2")
$db.update
..Output
MemberType : Method
OverloadDefinitions : {System.Void Update(), System.Void Update(bool ensure)}
TypeNameOfValue : System.Management.Automation.PSMethod
Value : System.Void Update(), System.Void Update(bool ensure)
Name : Update
IsInstance : True
Viola....
get-spdatabase | select name, server, failoverserver, Type, ID | Format-list
Name : SharePoint_Config
Server : SPServer Name=SQLContent
FailoverServer : SPServer Name=SQLContent2
Type : Configuration Database
Id : 51c3d871-0a9b-4ce9-a971-166180046e24
Name : SharePoint_AdminContent
Server : SQLContent
FailoverServer : SPServer Name=SQLContent2
Type : Content Database
Id : 04fab97b-5f46-4429-a99a-6e45ef2c2355
Close the sharepoint management shell and re-open, I get nothing for “FailoverServer”
get-spdatabase | select name, server, failoverserver, Type, ID | Format-list
Name : SharePoint_Config
Server : SPServer Name=SQLContent
FailoverServer :
Type : Configuration Database
Id : 51c3d871-0a9b-4ce9-a971-166180046e24
Name : SharePoint_AdminContent
Server : SQLContent
FailoverServer :
Type : Content Database
Id : 04fab97b-5f46-4429-a99a-6e45ef2c2355
Also loose the following DB’s
SP10_SA_State
SP10_SA_WordAutomation
SP10_SA_AnalyticsWarehouse
I have a staging environment that’s setup similar except it’s all vmware, the problem doesn’t exist out there.
When I failover the central admin/config as it’s giving me a “The farm is unavailable” .NET error.
[InvalidOperationException: The farm is unavailable.]
Microsoft.SharePoint.Administration.Claims.SPSecurityTokenServiceManager.get_Local() +24674380
Microsoft.SharePoint.IdentityModel.SPTokenCache..ctor() +34
Any ideas?