Issues might be encountered during HA test bed building based on win2k8 server R2

Issues might be encountered during HA test bed building

 

Issue: Failover cluster validation failed:

Resolution:

1. cause: There are durty network adapter left from fomer deleted failover cluster.

Reinstall Failover cluster from system mgmt.

2. cause: The shared disk is unavailable.

Enalbe Iscsi, and bring the shared disk on line.

3. cause: Network validation failed for the heardbeat adapter and the domain adapter are in the same network subnet.

Put them in the different network subnet. Like:

Domain IP: 10.10.10.41, correct subnet mask and DNS IP needed.

Heardbeat IP: 10.10.20.41, others default.

 

Issue: Validation before SQL installation failed for below issue:

Rule "Network binding order" generated a warning.

The domain network is not the first bound network.  This will cause domain operations to run slowly and can cause timeouts that result in failures.  Use the Windows network advanced configuration to change the binding order.

Resolution:

1. Use below command to get all the network adapter GUID:

wmic nicconfig get description, SettingID > C:/nicconfig.txt

2. Find the GUID for the domain network adapter according to the adapter name from the .txt file created above.

3. Open regedit, and find the key: HKLM/SYSTEM/CurrentControlSet/Services/Tcpip/Linkage :Bind

4. Put the GUID we found for the domain network adapter as the top adapter in the Bind key.

 

Issue: Installing SQL cluster failed for below reason:

The following error has occurred:

The cluster resource 'SQL Server' could not be brought online.  Error: The resource failed to come online due to the failure of one or more provider resources. (Exception from HRESULT: 0x80071736)

Resolution:

Automated created group for SQL cluster must have a correct IP, in a private domain, which should be a static IP. This must be noticed during configuring SETUP UI.

 

Issue: EDI/AS2 cannot be configured for below issue:

Failed to retrieve data for this request. (Microsoft.SqlServer.Management.Sdk.Sfc)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&LinkId=20476

------------------------------

ADDITIONAL INFORMATION:

The SQL Server instance specified in SSIS service configuration is not present or is not available. This might occur when there is no default instance of SQL Server on the computer. For more information, see the topic "Configuring the Integration Services Service" in SQL Server 2008 R2 Books Online.

Login timeout expired

A network-related or instance-specific error has occurred while establishing a connection to SQL Server. Server is not found or not accessible. Check if instance name is correct and if SQL Server is configured to allow remote connections. For more information see SQL Server Books Online.

Named Pipes Provider: Could not open a connection to SQL Server [2].  (MsDtsSrvr)

------------------------------

Login timeout expired

A network-related or instance-specific error has occurred while establishing a connection to SQL Server. Server is not found or not accessible. Check if instance name is correct and if SQL Server is configured to allow remote connections. For more information see SQL Server Books Online.

Named Pipes Provider: Could not open a connection to SQL Server [2].  (Microsoft SQL Server Native Client 10.0)

The following error has occurred:

The cluster resource 'SQL Server' could not be brought online.  Error: The resource failed to come online due to the failure of one or more provider resources. (Exception from HRESULT: 0x80071736)

Resolution:

To configure Integration Services as a cluster resource

  1. Open the Cluster Administrator.
  2. In the console tree, select the Groups folder.
  3. In the results pane, select the group to which you plan to add Integration Services:
    • To add Integrations Services as a cluster resource to the same resource group as SQL Server, select the group to which SQL Server belongs.
    • To add Integrations Services as a cluster resource to a different group than SQL Server, select a group other than the group to which SQL Server belongs.
  4. On the File menu, point to New, and then click Resource.
  5. On the New Resource page of the Resource Wizard, type a name and select “Generic Service” as the Service Type. Do not change the value of Group. Click Next.
  6. On the Possible Owners page, add or remove the nodes of the cluster as the possible owners of the resource. Click Next.
  7. To add dependencies, on the Dependencies page, select a resource under Available resources, and then click Add. In case of a failover, both SQL Server and the shared disk that stores Integration Services packages should come back online before Integration Services is brought online. After you have selected the dependencies, click Next.
  8. On the Generic Service Parameters page, enter MsDtsServer100 as the name of the service. Click Next.
  9. On the Registry Replication page, click Add to add the registry key that identifies the location of the configuration file for the Integration Services service. This file must be located on a shared disk that is in the same resource group as the Integration Services service.
  10. In the Registry Key dialog box, type SOFTWARE/Microsoft/Microsoft SQL Server/100/SSIS/ServiceConfigFile. Click OK, and then click Finish.
  11. The Integration Services service has now been added as a cluster resource.

Configuring the Integration Services Service and Package Store

Having configured Integration Services as a cluster resource, you must modify the location and the content of the configuration file for the Integration Services service on each node in the cluster. These modifications make both the configuration file and the package store available to all nodes if there is a failover. After you modify the location and content of the configuration file, you have to bring the service online.

To configure the Integration Services Service and Package Store

  1. Locate the configuration file at %ProgramFiles%/Microsoft SQL Server/100/DTS/Binn/MsDtsSrvr.ini.xml. Copy it to the shared disk for the group to which you added the Integration Services service.
  2. On the shared disk, create a new folder named Packages to serve as the package store. Grant List Folders and Write permissions on the new folder to appropriate users and groups.
  3. On the shared disk, open the configuration file in a text or XML editor. Change the value of the ServerName element to the name of the virtual SQL Server that is in the same resource group.
  4. Change the value of the StorePath element to the fully-qualified path of the Packages folder created on the shared disk in a previous step.
  5. Update the value of HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Microsoft SQL Server/100/SSIS/ServiceConfigFile in the Registry to the fully-qualified path and file name of the service configuration file on the shared disk.

To bring the Integration Services service online

  • In the Cluster Administrator, select the Integration Services service, right-click, and select Bring Online from the popup menu. The Integration Services service is now online as a cluster resource.

 

### 可能的原因分析 致命错误(Fatal Error)通常表示程序运行过程中遇到了无法继续处理的情况。根据描述中的信息,“Fatal error encountered during command execution.” 表明在命令执行阶段发生了严重问题[^1]。 #### 原因一:SQL 数据库操作异常 如果该错误发生在数据库查询或更新语句中,则可能是由于 SQL 查询语法不正确、连接字符串配置有误或者权限不足等原因引起的。例如,在 MySQL 或其他关系型数据库中,尝试执行一条非法的 `INSERT` 或 `UPDATE` 语句可能会触发此类错误。 #### 解决方案: - **验证 SQL 语句**:仔细检查所有的 SQL 脚本是否存在拼写错误或其他逻辑缺陷。 - **测试环境隔离**:在一个独立环境中单独运行有问题的脚本来确认其行为是否正常。 - **日志记录增强**:增加详细的调试日志来捕获更多上下文信息以便于定位具体失败位置。 另外提到的另一个引用涉及到了 MIDL 工具链上的预处理器返回码为2 的情况(midl : command line error MIDL1003)[^2] ,这可能暗示着编译器设置不当或者是某些头文件丢失等问题也间接影响到最终构建成果的质量从而引发上述提及类型的 runtime 错误状况. ### 技术实现建议 对于开发人员来说,可以采取如下措施预防并修复这类问题: ```python try: cursor.execute(sql_query) # 执行SQL语句 except Exception as e: print(f"An exception occurred: {e}") finally: connection.close() # 关闭数据库链接资源释放内存空间 ``` 通过 try-except 结构包裹易出现问题的操作部分,并利用 finally 子句确保无论成功与否都能妥善关闭外部依赖项如网络套接字或是文件指针等对象实例化后的实体形态;这样即使发生意外也能维持系统的稳定性不至于崩溃退出造成更大损失范围扩大蔓延开来难以控制局面恶化下去形成恶性循环加剧损害程度加深恢复难度加大延长停机时间成本上升效益下降客户满意度降低品牌形象受损等一系列连锁反应后果不堪设想务必引起高度重视加以防范未然之策才是上乘之道!
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值