APC AP9606 Specifications Page 77

  • Download
  • Add to my manuals
  • Print
  • Page
    / 96
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 76
Chapter 4. The command file UPS.CMD 69
094 CLUSTER.EXE %TheOtherNodeName% NODE %TheOtherNodeName% | FIND "Up"
The result of this check is required for the decision whether the Cluster Groups
will be moved to the remote node or brought offline. Note that the code looks for
English output from CLUSTER.EXE. In a non-English version of Microsoft
Windows NT 4.0, this may fail! Thus, if you use another language, you have to
verify the code.
In line 95, the error level of the previous line is analyzed:
095 IF %errorlevel% == 1 GOTO GroupOffline
If the Up string was not found in the output of CLUSTER.EXE, then we make the
assumption that the remote node is either in a status of Node Down or Node
Paused. In every case, the resources must not be moved. The resources have to
be set offline, which is done in line 141 (GroupOffline label).
Otherwise, if the result is that the other node is up, then the node with the name
specified in the variable NodeBName will delay execution for three further
seconds:
097 IF %COMPUTERNAME == %NodeBName% C:\UPS_CMD\DELAY3 3
This is necessary if both nodes reach line 94 at the same time. If both power lines
fail at exactly the same moment, then there is some uncertainty about which node
status is seen. It may be that one node changes to a status of Node Paused some
fractions of seconds later. To avoid a wrong decision by the other node, we
enforce a difference in timing here. There is no command available to do so from
the default Windows NT shell. We developed the small tool DELAY3.EXE, which
can be downloaded as described in Appendix A, Downloading the additional
materialon page 73. The status of the other node is probed again (lines 100 and
101), and the final decision about moving the resources is made:
100 CLUSTER.EXE %TheOtherNodeName% NODE %TheOtherNodeName% | FIND "Up"
101 IF %errorlevel% == 1 GOTO GroupOffline
If the remote node is detected as Node Up during the second check, the move of
the groups will be initiated (in line 103: jump to line 116). This is described in the
next section. If any other node status was returned, then the resource groups
must be brought offline (4.2.2, GroupOffline on page 70).
4.2.1 MoveClusterGroups
126 cluster . GROUP "VFS_a" /MOVETO:%TheOtherNodeName% > NUL
127 cluster . GROUP "VFS_b" /MOVETO:%TheOtherNodeName% > NUL
One line is required for each resource group. The dot after the command cluster
denotes the cluster to which the local node belongs. The name of the group has
to be specified in quotation marks after the parameter GROUP. The parameter
It is mandatory that the administrator enters one line for each resource group
which should be moved to the surviving node when one node shuts down
(below line 125).
Note
Page view 76
1 2 ... 72 73 74 75 76 77 78 79 80 81 82 ... 95 96

Comments to this Manuals

No comments