Quantcast
Channel: SQL Server Setup & Upgrade forum
Viewing all articles
Browse latest Browse all 7696

DSC, SQL Server 2012 Enterprise sp2 x64, SQL Server Failover Cluster Install not succeeding

$
0
0

Summary: DSC fails to fully install the SQL Server 2012 Failover Cluster, but the identical code snippet below run in powershell ise with administrator credentials works perfectly as does running the SQL server install interface.

In order to develop DSC configurations, I have set up a Windows Server 2012 R2 failover cluster in VMware Workstation v10 consisting of 3 nodes.  All have the same Windows Server 2012 version and have been fully patched via Microsoft Updates.  The cluster properly fails over on command and the cluster validates.  Powershell 4.0 is being used as installed in windows.

PDC
Node1
Node2

The DSC script builds up the parameters to setup.exe for SQL Server.  Here is the cmd that gets built...

$cmd2 = "C:\SOFTWARE\SQL\Setup.exe   /Q   /ACTION=InstallFailoverCluster   /INSTANCENAME=MSSQLSERVER   /INSTANCEID=MSSQLSERVER   /IACCEPTSQLSERVERLICENSETERMS /UpdateEnabled=false /IndicateProgress=false   /FEATURES=SQLEngine,FullText,SSMS,ADV_SSMS,BIDS,IS,BC,CONN,BOL   /SECURITYMODE=SQL   /SAPWD=password#1   /SQLSVCACCOUNT=SAASLAB1\sql_services   /SQLSVCPASSWORD=password#1    /SQLSYSADMINACCOUNTS=`"SAASLAB1\sql_admin`" `"SAASLAB1\sql_services`" `"SAASLAB1\cubara01`"   /AGTSVCACCOUNT=SAASLAB1\sql_services   /AGTSVCPASSWORD=password#1   /ISSVCACCOUNT=SAASLAB1\sql_services   /ISSVCPASSWORD=password#1   /ISSVCSTARTUPTYPE=Automatic   /FAILOVERCLUSTERDISKS=MountRoot   /FAILOVERCLUSTERGROUP='SQL Server (MSSQLSERVER)'  /FAILOVERCLUSTERNETWORKNAME=SQLClusterLab1  /FAILOVERCLUSTERIPADDRESSES=`"IPv4;192.168.100.15;LAN;255.255.255.0`"   /INSTALLSQLDATADIR=M:\SAN\SQLData\MSSQLSERVER   /SQLUSERDBDIR=M:\SAN\SQLData\MSSQLSERVER   /SQLUSERDBLOGDIR=M:\SAN\SQLLogs\MSSQLSERVER   /SQLTEMPDBDIR=M:\SAN\SQLTempDB\MSSQLSERVER   /SQLTEMPDBLOGDIR=M:\SAN\SQLTempDB\MSSQLSERVER   /SQLBACKUPDIR=M:\SAN\Backups\MSSQLSERVER   > C:\Logs\sqlInstall-log.txt "
Invoke-Expression $cmd2

When I run this specific command in Powershell ISE running as administrator, logged in as domain account that is in the Node1's administrators group and has domain administrative authority, it works perfectly fine and sets up the initial node properly.

When I use the EXACT SAME code above pasted into my custom DSC resource, as a test with a known successful install, run with the same user as above, it does NOT completely install the cluster properly.  It still installs 17 applications related to SQL Server and seems to properly configure everything except the cluster.  The Failover Cluster Manager shows that the SQL Server Role will not come on line and the SQL Server Agent Role is not created. 

The code is run on Node1 so the setup folder is local to Node1.

The ConfigurationFile.ini files for the two types of installs are identical.

Summary.txt does have issues..

Feature:                       Database Engine Services
  Status:                        Failed: see logs for details
  Reason for failure:            An error occurred during the setup process of the feature.
  Next Step:                     Use the following information to resolve the error, uninstall this feature, and then run the setup process again.
  Component name:                SQL Server Database Engine Services Instance Features
  Component error code:          0x86D8003A
  Error description:             The cluster resource 'SQL Server' could not be brought online.  Error: There was a failure to call cluster code from a provider. Exception message: Generic failure . Status code: 5023. Description: The group or resource is not in the correct state to perform the requested operation.  .

It feels like this is a security issue with DSC or an issue with the setup in SQL Server, but please note I have granted administrators group and domain administrators authority.  The nodes were built with the same login.  Windows firewall is completely disabled.

Please let me know if any more detail is required.

 



Viewing all articles
Browse latest Browse all 7696

Trending Articles