从已安装 DTC 的模板中克隆的 IaaS 服务器包含 DTC 的重复标识符,该标识符可阻止节点之间的通信。

问题

IaaS Manager Service 失败,并在 Manager Service 日志中显示以下错误。

Communication with the underlying transaction manager has failed. ---> System.Runtime.InteropServices.COMException: The MSDTC transaction manager was unable to pull the transaction from the source transaction manager due to communication problems. Possible causes are: a firewall is present and it doesn't have an exception for the MSDTC process, the two machines cannot find each other by their NetBIOS names, or the support for network transactions is not enabled for one of the two transaction managers.

原因

克隆已安装 DTC 的 IaaS 服务器时,该克隆包含与父级相同的 DTC 唯一标识符。两台计算机之间的通信失败。

解决方案

  1. 克隆时,以管理员身份打开命令提示符。
  2. 运行以下命令

    msdtc -uninstall

  3. 重新启动克隆。
  4. 打开另一个命令提示符并运行以下命令。

    msdtc -install manager-service-host-FQDN