Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/sql-server/27.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Sql server 使用PowerShell创建Windows故障转移群集时报告错误_Sql Server_Windows_Powershell - Fatal编程技术网

Sql server 使用PowerShell创建Windows故障转移群集时报告错误

Sql server 使用PowerShell创建Windows故障转移群集时报告错误,sql-server,windows,powershell,Sql Server,Windows,Powershell,我使用以下PowerShell命令在Windows server 2016上创建了Windows故障转移群集 New-Cluster –Name MyCluster –Node 5011-a1ca9b8d.kc.com,8766-a1ca9b8d.kc.com –StaticAddress 10.177.12.14,10.111.36.100 -NoStorage 然后我得到这个错误: 我在事件查看器中找到了以下内容: New-Cluster System.AccessViolationEx

我使用以下PowerShell命令在Windows server 2016上创建了Windows故障转移群集

New-Cluster –Name MyCluster –Node 5011-a1ca9b8d.kc.com,8766-a1ca9b8d.kc.com –StaticAddress 10.177.12.14,10.111.36.100 -NoStorage
然后我得到这个错误:

我在事件查看器中找到了以下内容:

New-Cluster System.AccessViolationException
应用程序: powershell.exe
Framework 版本: v4.0.30319
说明: 由于未经处理的异常,进程终止。
异常信息: System.AccessViolationException
   在 <Module>.CreateCluster(_CREATE_CLUSTER_CONFIG*, Int32 (Void*, _CLUSTER_SETUP_PHASE, _CLUSTER_SETUP_PHASE_TYPE, _CLUSTER_SETUP_PHASE_SEVERITY, UInt32, UInt16*, UInt32), Void*)
   在 MS.Internal.ServerClusters.Cluster.Create(System.String, System.Collections.Specialized.StringCollection, System.Collections.Generic.ICollection`1<MS.Internal.ServerClusters.IPAddressInfo>, MS.Internal.ServerClusters.ClusterActionCallback, MS.Internal.ServerClusters.AdminAccessPoint)
   在 MS.Internal.ServerClusters.Configuration.CreateClusterConfigurationNoCno.PerformCreateCluster(MS.Internal.ServerClusters.Configuration.ActionArgs, MS.Internal.ServerClusters.Configuration.ActionUpdateHelper)
   在 MS.Internal.ServerClusters.Configuration.CreateClusterConfigurationNoCno.PerformAction(MS.Internal.ServerClusters.Configuration.ActionArgs)
   在 MS.Internal.ServerClusters.Configuration.CreateClusterConfigurationNoCno.InternalPerformAction(MS.Internal.ServerClusters.Configuration.ActionArgs)
   在 MS.Internal.ServerClusters.Configuration.ConfigurationBase.PerformActionWrapper(MS.Internal.ServerClusters.BackgroundOperationStatus, BackgroundOperationArgs)
   在 MS.Internal.ServerClusters.BackgroundOperation`2[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].BackgroundOperationProc(System.Object)
   在 MS.Internal.ServerClusters.Background+<>c__DisplayClass12_0.<EnqueueWorker>b__0(System.Object)
   在 System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
   在 System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
   在 System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
   在 System.Threading.ThreadPoolWorkQueue.Dispatch()


错误应用程序名称: powershell.exe,版本: 10.0.14393.206,时间戳: 0x57daccf5
错误模块名称: CLUSAPI.dll,版本: 10.0.14393.2879,时间戳: 0x5c89ed25
异常代码: 0xc0000005
错误偏移量: 0x0000000000001e2b
错误进程 ID: 0xfe8
错误应用程序启动时间: 0x01d7424b59d92212
错误应用程序路径: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
错误模块路径: C:\Windows\SYSTEM32\CLUSAPI.dll
报告 ID: 3216f5c4-9690-4f79-8d40-65ee6ebcbf77
错误程序包全名:
错误程序包相对应用程序 ID:
New Cluster System.AccessViolationException
应用程序: 父进程
框架版本: v4.0.30319
说明: 由于未经处理的异常,进程终止。
异常信息: System.AccessViolationException异常
在 .CreateCluster(_CREATE_CLUSTER_CONFIG*,Int32(无效*,_CLUSTER_SETUP_PHASE,_CLUSTER_SETUP_PHASE_TYPE,_CLUSTER_SETUP_PHASE_SEVERITY,UInt32,UInt16*,UInt32),无效*)
在 MS.Internal.ServerClusters.Cluster.Create(System.String、System.Collections.Specialized.StringCollection、System.Collections.Generic.ICollection`1、MS.Internal.ServerClusters.ClusterActionCallback、MS.Internal.ServerClusters.AdminAccessPoint)
在 MS.Internal.ServerClusters.Configuration.CreateClusterConfigurationNoCno.PerformCreateCluster(MS.Internal.ServerClusters.Configuration.ActionArgs,MS.Internal.ServerClusters.Configuration.ActionUpdateHelper)
在 MS.Internal.ServerClusters.Configuration.CreateClusterConfigurationNoCno.PerformAction(MS.Internal.ServerClusters.Configuration.ActionArgs)
在 MS.Internal.ServerClusters.Configuration.CreateClusterConfigurationNoNo.InternalPerformAction(MS.Internal.ServerClusters.Configuration.ActionArgs)
在 MS.Internal.ServerClusters.Configuration.ConfigurationBase.PerformActionWrapper(MS.Internal.ServerClusters.BackgroundOperationStatus,BackgroundOperationArgs)
在 MS.Internal.ServerClusters.BackgroundOperation`2[[System.\u Canon,mscorlib,Version=4.0.0.0,Culture=neutral,PublicKeyToken=b77a5c561934e089],[System.\u Canon,mscorlib,Version=4.0.0.0,Culture=neutral,PublicKeyToken=b77a5c561934e089]。BackgroundOperationProc(System.Object)
在 MS.Internal.ServerClusters.Background+c__显示类12_0.b_0(System.Object)
在 System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext,System.Threading.ContextCallback,System.Object,布尔值)
在 System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext,System.Threading.ContextCallback,System.Object,布尔值)
在 System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
在 System.Threading.ThreadPoolWorkQueue.Dispatch()
错误应用程序名称: powershell.exe版本: 10.0.14393.206,时间戳: 0x57daccf5
错误模块名称: CLUSAPI.dll版本: 10.0.14393.2879,时间戳: 0x5c89ed25
异常代码: 0xc0000005
错误偏移量: 0x0000000000001e2b
错误进程 ID:0xfe8
错误应用程序启动时间: 0x01d7424b59d92212
错误应用程序路径: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
错误模块路径: C:\Windows\SYSTEM32\CLUSAPI.dll
报告 ID:3216f5c4-9690-4f79-8d40-65ee6ebcbf77
错误程序包全名:
错误程序包相对应用程序 身份证件:
我试图安装.NETFramework 4.7和4.8,但上述错误仍然存在


但是我使用WSFC管理器来创建可以成功的。我该怎么办?

各位,通过添加一个参数,我解决了这个问题

New-Cluster –Name MyCluster –Node 8766-a1ca9b8d.kc.com –StaticAddress 10.111.36.100 -NoStorage -AdministrativeAccessPoint Dns
我为SQLServer Always On创建了故障转移群集,并选择了无域模式。
谢谢大家!

这与编程无关。我甚至看不出这与SQL Server有什么关系。似乎是一个问题。对不起,Larnu,我为SQL Server创建了Windows故障转移群集。您是否总是事先运行验证测试?@Always学习是的,我在
新建群集之前运行了
测试群集
。测试报告了一些警告级别的失败,我认为这对于集群创建来说不是致命的。因为我在使用Cluster Manager创建时也会看到这些警告,但是可以成功创建集群。