(WSFC) resource control API returned error code 5057 & Microsoft SQL Server, Error: 41009
2013-11-21 09:20
477 查看
创建侦听器的时候,或许你会遇到下面的异常信息:
TITLE: Microsoft SQL Server Management Studio
------------------------------
Create failed for Availability Group Listener 'listenerASRS'. (Microsoft.SqlServer.Smo)
For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=11.0.3000.0+((SQL11_PCU_Main).121019-1325+)&EvtSrc=Microsoft.SqlServer.Management.Smo.ExceptionTemplates.FailedOperationExceptionText&EvtID=Create+AvailabilityGroupListener&LinkId=20476
------------------------------
ADDITIONAL INFORMATION:
An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo)
------------------------------
The Windows Server Failover Clustering (WSFC) resource control API returned error code 5057. The WSFC service may not be running or may not be accessible in its current state, or the specified arguments are invalid. For
information about this error code, see "System Error Codes" in the Windows Development documentation.
The attempt to create the network name and IP address for the listener failed. The WSFC service may not be running or may be inaccessible in its current state, or the values provided for the network name and IP address may be incorrect. Check the state of the
WSFC cluster and validate the network name and IP address with the network administrator.
The attempt to create the network name and IP address for the listener failed. The WSFC service may not be running or may be inaccessible in its current state, or the values provided for the network name and IP address may be incorrect. Check the state of the
WSFC cluster and validate the network name and IP address with the network administrator. (Microsoft SQL Server, Error: 41009)
For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft%20SQL%20Server&ProdVer=11.00.3000&EvtSrc=MSSQLServer&EvtID=41009&LinkId=20476
------------------------------
BUTTONS:
OK
------------------------------
![](http://img.blog.csdn.net/20131121090836125?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvQnVyZ2Vzc19MaXU=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast)
这是为什么呢?经过测试,我发现原因是你指定的IP在当前的网段已经被占用。例如,我当前建Cluster的3个Node的IP分别是172.20.160.22、 172.20.160.23、 172.20.160.55,群集的IP是172.20.160.12。 那么你创建侦听器的时候是不能指定这些已用的IP,如上面截图所示,当你指定为172.20.160.22时就会遇到题目所说的异常。知道原因后,就好解决了。当我重新建的时候,我指定了IP 172.20.160.13,这个IP未被占用,PING不通。这个时候,就可以成功地创建侦听器。
![](http://img.blog.csdn.net/20131121091657281?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvQnVyZ2Vzc19MaXU=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast)
PS:要想成功创建侦听器,还必须根据cluster的名称,在OU里对其指定Create/Delete Computer Object的权限。
TITLE: Microsoft SQL Server Management Studio
------------------------------
Create failed for Availability Group Listener 'listenerASRS'. (Microsoft.SqlServer.Smo)
For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=11.0.3000.0+((SQL11_PCU_Main).121019-1325+)&EvtSrc=Microsoft.SqlServer.Management.Smo.ExceptionTemplates.FailedOperationExceptionText&EvtID=Create+AvailabilityGroupListener&LinkId=20476
------------------------------
ADDITIONAL INFORMATION:
An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo)
------------------------------
The Windows Server Failover Clustering (WSFC) resource control API returned error code 5057. The WSFC service may not be running or may not be accessible in its current state, or the specified arguments are invalid. For
information about this error code, see "System Error Codes" in the Windows Development documentation.
The attempt to create the network name and IP address for the listener failed. The WSFC service may not be running or may be inaccessible in its current state, or the values provided for the network name and IP address may be incorrect. Check the state of the
WSFC cluster and validate the network name and IP address with the network administrator.
The attempt to create the network name and IP address for the listener failed. The WSFC service may not be running or may be inaccessible in its current state, or the values provided for the network name and IP address may be incorrect. Check the state of the
WSFC cluster and validate the network name and IP address with the network administrator. (Microsoft SQL Server, Error: 41009)
For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft%20SQL%20Server&ProdVer=11.00.3000&EvtSrc=MSSQLServer&EvtID=41009&LinkId=20476
------------------------------
BUTTONS:
OK
------------------------------
这是为什么呢?经过测试,我发现原因是你指定的IP在当前的网段已经被占用。例如,我当前建Cluster的3个Node的IP分别是172.20.160.22、 172.20.160.23、 172.20.160.55,群集的IP是172.20.160.12。 那么你创建侦听器的时候是不能指定这些已用的IP,如上面截图所示,当你指定为172.20.160.22时就会遇到题目所说的异常。知道原因后,就好解决了。当我重新建的时候,我指定了IP 172.20.160.13,这个IP未被占用,PING不通。这个时候,就可以成功地创建侦听器。
PS:要想成功创建侦听器,还必须根据cluster的名称,在OU里对其指定Create/Delete Computer Object的权限。
相关文章推荐
- The Microsoft Visual J# 2.0 Second Edition installer returned error code '4113'
- SQL SERVER 2008报Invalid object name 'master.dbo.spt_values'. (Microsoft SQL Server, Error: 208)错误的解决办法。
- Microsoft.ApplicationServer.Caching.DataCacheException 之 ErrorCode<ERRCA0017>:SubStatus<ES0006>
- Login failed for user 'sa'. (Microsoft SQL Server, Error: 18456)
- org.codehaus.xfire.XFireRuntimeException: Could not invoke service.. Server returned error code = 404 for URI.. Check server logs for details
- Microsoft® SQL Server® 2008 Express以及Microsoft® SQL Server® 2008 R2 SP1下载地址
- Microsoft SQL Server Compact 4.0&&ADO.NET Entity Framework 4.1&&MVC3
- 用户 'sa' 登录失败。 (Microsoft SQL Server,错误: 18456)
- Win7(64位)安装Microsoft SQL Server Management Studio Express[error 29506]
- org.codehaus.xfire.XFireRuntimeException: Could not invoke service.. Server returned error code = 40
- Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500
- 错误:"SQL Server Error:Table unknow tb_temp At line 1,column 30"之解决
- Katmai定名"Microsoft SQL Server 2008"
- Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500 解决办法
- error PRJ0019: A tool returned an error code from "Performing Post-Build Event..."
- com.microsoft.sqlserver.jdbc.SQLServerException: 用户 'sa' 登录失败。
- 用户、组或角色 'zgb' 在当前数据库中已存在。 (Microsoft SQL Server,错误: 15023)
- Cause: com.microsoft.sqlserver.jdbc.SQLServerException: 关键字 'user' 附近有语法错误
- Microsoft SQL Server Community & Samples
- webservice报错 Server returned error code = 401 for URI