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

本文解决HA测试床搭建中遇到的问题,包括集群验证失败、SQL安装验证失败及配置问题。通过调整网络设置、修复共享磁盘连接及配置资源依赖等方法解决问题。

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.

 

<think>好的,我现在需要解决用户提到的VSCode中的Node.js平台兼容性问题,特别是使用NODE_SKIP_PLATFORM_CHECK环境变量的解决方法。首先,我得回忆一下这个环境变量的作用和常见的使用场景。 用户可能遇到了在特定平台(比如Windows ARM架构或某些Linux发行版)上运行Node.js时出现的平台不兼容错误。这时候,Node.js可能会检测到平台不被官方支持,从而阻止程序运行。NODE_SKIP_PLATFORM_CHECK的作用就是跳过这个平台检查,让用户即使在不被官方支持的平台上也能运行Node.js应用。不过,这样做可能会有风险,比如稳定性问题或者功能异常,所以通常建议仅在确定环境安全的情况下使用。 接下来,我需要考虑如何在VSCode中设置这个环境变量。常见的方法有两种:通过终端临时设置,或者修改launch.json配置文件。临时设置在终端会话中有效,适合快速测试;而修改launch.json则是为了在调试时自动应用这个变量,适合长期使用。 用户可能需要具体的步骤指导。比如,在终端中输入命令: export NODE_SKIP_PLATFORM_CHECK=1(Linux/macOS) 或者 $env:NODE_SKIP_PLATFORM_CHECK=1(PowerShell) 以及如何修改launch.json文件,添加环境变量配置。这部分需要确保语法正确,避免用户因为格式错误而设置失败。 同时,用户可能关心安全性和稳定性问题,所以必须提醒他们注意潜在的风险,比如官方不支持可能导致崩溃或数据丢失,建议仅在必要时使用,并优先考虑升级Node.js版本或使用兼容的二进制文件。 另外,用户可能不知道如何验证设置是否生效,可能需要指导他们如何检查环境变量是否被正确加载,比如在代码中打印process.env.NODE_SKIP_PLATFORM_CHECK的值,或者在启动时观察是否有平台检查的错误消失。 最后,生成相关问题需要考虑用户可能的后续疑问,比如如何永久设置环境变量、其他相关环境变量的用途,或者替代解决方案。这些问题有助于用户进一步解决问题,减少后续困惑。</think>针对VSCode中Node.js平台兼容性问题,通过设置$NODE\_SKIP\_PLATFORM\_CHECK$环境变量的解决方案如下: ### 分步解决方案 1. **临时环境变量设置(终端会话)** - **Windows PowerShell**: ```powershell $env:NODE_SKIP_PLATFORM_CHECK=1; node your_script.js ``` - **Linux/macOS终端**: ```bash export NODE_SKIP_PLATFORM_CHECK=1 && node your_script.js ``` 2. **永久配置(VSCode调试模式)** - 打开项目根目录下的`.vscode/launch.json` - 在配置项中添加环境变量: ```json "configurations": [{ "name": "Launch Program", "type": "node", "request": "launch", "program": "${file}", "env": { "NODE_SKIP_PLATFORM_CHECK": "1" } }] ``` 3. **系统级设置(不推荐)** - Windows通过控制面板添加用户环境变量 - Linux/macOS在`~/.bashrc`或`~/.zshrc`添加: ```bash export NODE_SKIP_PLATFORM_CHECK=1 ``` ### 关键注意事项 - 该方案会禁用Node.js的**架构检查机制**,可能导致在ARM设备运行x86二进制时出现内存错误[^1] - 优先考虑升级Node.js到与当前平台匹配的官方支持版本 - 使用前建议备份重要数据,避免因兼容性问题导致程序异常终止 ### 验证方法 在代码中添加验证语句: ```javascript console.log("Platform check skipped:", process.env.NODE_SKIP_PLATFORM_CHECK === '1'); ```
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值