You should examine the SQL Server setup logs for the original installation (Single node setup) to determine the corrective action that needs to be taken for the failed or corrupt installation.
For example, if the setup logs indicate that you need to repair or uninstall the problematic instance, you can refer to the following topics in Books Online:
For further information on how to troubleshoot SQL Server setup issues refer to the following article in Microsoft Knowledge Base:
955396 How to troubleshoot SQL Server 2008 Setup issues
Workaround:
To work around this problem, you can manually create the SQL Server agent resource using the procedure below:
For Windows Server 2003 environment use the following procedure:
In Control Panel, double-click Administrative Tools , and then double-click Cluster Administrator .
In the Cluster Administrator snap-in, expand Groups , and then click the SQL Server cluster resource group that was installed for the SQL Server 2008 failover cluster.
Right-click the SQL Server Agent resource, and then click Delete.
Create the correct SQL Agent Resource type. To do so, Open a command prompt and type the following command to add the SQL Server Agent resource type to the cluster
cluster restype "SQL Server Agent" /create /DLL:sqagtres.dll
- Recreate the SQL Server Agent resource using the steps below:
Right click on the SQL Server group, point to New and then click Resource.
In the Name box, type SQL Server Agent. In the Resource type box, click SQL Agent Resource, and then click Next.
Note: The name is case sensitive unless you are on CU3 or above for SQL Server 2008 RTM.
Include the original node on the cluster as possible resource owner.
Right click the newly created SQL Server Agent resource and fill in the following two parameters:
Specify the virtual server name of the SQL Instance.
Specify the Instance name.
Add the SQL Server Resource as a dependency for the newly created SQL Server Agent resource.
Open Registry Editor and navigate to one of the following locations and ensure that all the values are set to 1. If not, manually edit the respective values and set them to 1.
This will ensure that the configuration state for all the SQL features is set to 1, indicating that the feature is installed and configured. A value greater than 1 indicates a failure either during the installation or configuration phase of the original setup.
For default instance:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL10.MSSQLSERVER\ConfigurationState
For a named Instance
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft Microsoft SQL Server\MSSQL10.INSTNAME\ConfigurationStateBring the newly created SQL Agent Resource online.
Once the newly created resources comes online successfully, you can reattempt the AddNode operation that was failing.
Note:In Windows Server 2008 and Windows Server 2008 R2 environments, you can use Failover Cluster Management application to go through the above procedure. The application can be found under Administrative Tools in Control Panel applet.