简体   繁体   English

如何从作为群集节点的计算机上获取虚拟群集FQDN

[英]How to get virtual cluster FQDN from a computer which is a node in a cluster

I have installed a cluster which contains several nodes(computers). 我已经安装了一个包含几个节点(计算机)的群集。 the OS is windows 2008 SP1. 操作系统是Windows 2008 SP1。 This cluster is a SQL cluster. 该群集是一个SQL群集。

The original requirement is that customer input a FQDN which will be used to install SQL server. 最初的要求是客户输入一个FQDN,该FQDN将用于安装SQL Server。 but the FQDN may be a real computer's FQDN, or a FQDN of a virtual cluster server. 但是FQDN可以是真实计算机的FQDN,也可以是虚拟群集服务器的FQDN。 Before install SQL server, I need to verify the FQDN is a valid. 在安装SQL Server之前,我需要验证FQDN是否有效。 My current solution is I will create a service on the target machine (according to the FQDN), and run windows API GetComputerNameEx with parameter "ComputerNameDnsFullyQualified". 我当前的解决方案是我将在目标计算机上创建服务(根据FQDN),并使用参数“ ComputerNameDnsFullyQualified”运行Windows API GetComputerNameEx。 According to the MSDN, it should return the FQDN of the virtual cluster name, but if still return FQDN of local computer. 根据MSDN,它应返回虚拟群集名称的FQDN,但如果仍返回本地计算机的FQDN。

So, my problem are 1. resolve the problem of win API GetComputerNameEx, why it can't retrieve FQDN of virtual server name. 因此,我的问题是1.解决win API GetComputerNameEx的问题,为什么它无法检索虚拟服务器名称的FQDN。 OR 2. think about another way to verify the customer input FQDN is valid. 或2.考虑另一种验证客户输入FQDN有效的方法。

any comment will be very appreciated. 任何评论将不胜感激。

ps: I asked the question on MSDN forum, but still can't get good solution. ps:我在MSDN论坛上问了这个问题,但仍然找不到好的解决方案。 http://social.msdn.microsoft.com/Forums/en-US/sqlsetupandupgrade/thread/ee238e8a-a200-41f4-ae69-272b74864c5b http://msdn.microsoft.com/en-us/library/ms724301(VS.85).aspx http://social.msdn.microsoft.com/Forums/zh-CN/sqlsetupandupgrade/thread/ee238e8a-a200-41f4-ae69-272b74864c5b http://msdn.microsoft.com/zh-cn/library/ms724301(VS .85).aspx

您能否仅使用给定的FQDN连接到群集的活动节点,然后使用TSQL ISCLUSTERED和MACHINENAME(群集实例的名称)来获取所需的信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM