This article describes the behavior of the
LooksAlive and
IsAlive entry-point functions for the resources that are included in the Windows Server Clustering component of Microsoft Windows Server 2003.
Note When the Physical Disk resource is created, the Cluster service creates a temporary file to verify that the disk is not corrupted and that it has appropriate permissions to the root. This verification process creates and then deletes a small file on the disk. The following is an excerpt from the Cluster.log file that shows this process:
Physical Disk Disk X: DisksWriteTestFile: Creating test file (X:\zClusterOnlineChk.tmp)
IP Address resource (ClusRes.DLL)
- LooksAlive
IP Address resource failure detection is based primarily on Microsoft Cluster service (MSCS) network interface failure detection. The IP Address resource listens for network interface failure notifications by using the Cluster service (ClusAPI). When the Cluster service declares that a network interface has failed, the IP Address resource sets a failure flag on each IP Address resource that is hosted on the failed interface. For example, this behavior may occur when a loss of heartbeats causes nodes to vote on which interface has failed. The next time that the LooksAlive function is called, the resource fails.
The LooksAlive function also does the following:
- Queries the TCP/IP driver to make sure that the network table entry for the virtual IP address is still present in the stack. The network table entry corresponds to an IP address.
- Queries the NetBT driver to make sure that the NetBT device is still present if NetBIOS is enabled for the resource.
For more information about network interface failure detection in server clusters, click the following article number to view the article in the Microsoft Knowledge Base:
892422
(http://support.microsoft.com/kb/892422/
)
Overview of event ID 1123 and event ID 1122 logging in Windows 2000-based and Windows Server 2003-based server clusters
- IsAlive
The IsAlive test is the same as the LooksAlive test in this context.
Network Name resource (ClusRes.DLL)
- LooksAlive
Network Name resource failure detection has a "still present" test that is similar to the IP Address resource test. If NetBIOS is enabled for a Network Name resource, the Network Name resource queries the NetBT device to verify that the virtual name is still loaded on the network stack.
The Network Name resource also has a worker thread that registers Host (A) resource records every 24 hours. Optionally, reverse lookup (PTR) resource records can be registered. The Network Name resource uses the DNS server or servers that are associated with the Network Name resource’s dependent node IP address or addresses. The DNS servers must be configured to accept dynamic updates.
The status for each registration attempt is verified during the LooksAlive test. If all the registrations fail and if the virtual name is no longer registered by using NetBIOS, the virtual name is considered to be no longer reachable. Therefore, the resource has failed. Additionally, the Network Name resource fails if the "DNS is Required" property is set to one and if one or more DNS registrations have failed.
Note In both of these scenarios, a communications time-out with the DNS server is not considered to be a failure.
- IsAlive
The IsAlive test is the same as the LooksAlive test in this context.
File Share resource (ClusRes.DLL)
- LooksAlive
The LooksAlive test for a File Share resource retrieves the properties of the share from the Server service as a basic test that the share exists.
- IsAlive
The IsAlive test for a File Share resource does the same thing as a LooksAlive test. If the MaxUsers property is set to -1 (unlimited), the IsAlive function opens the first file on the share by using the share name. Otherwise, the IsAlive function tests that the directory path that is associated with the share is still valid.
Article ID: 914458 - Last Review: May 2, 2007 - Revision: 2.1
APPLIES TO
- Microsoft Windows Server 2003, Datacenter Edition (32-bit x86)
- Microsoft Windows Server 2003, Enterprise Edition (32-bit x86)
| kbhowto kbexpertiseinter KB914458 |