Managing HP Serviceguard A.12.00.00 for Linux, June 2014
package:pkg3|weight:test_capacity|value=7
package:pkg4|weight:test_capacity|name=test_capacity
package:pkg4|weight:test_capacity|value=10
package:pkg5|weight:test_capacity|name=test_capacity
package:pkg5|weight:test_capacity|value=6
4. Run the cmrunpkg -a command:
cmrunpkg -a pkg1 pkg2 pkg3 pkg4 pkg5
Figure 31 (page 134) shows the load distribution across the nodes with CAPACITY_VALUE
parameter set to finite.
Figure 31 Load Distributed across the Nodes with CAPACITY_VALUE set to Finite
pkg3 (wt=7)
pkg2 (wt=3)
Cap=11
Remaining Cap=1
Node 1
pkg4 (wt=10)
Cap=14
Remaining Cap=4
Node 2
pkg5 (wt=6)
Cap=8
Remaining Cap=2
Node 3
pkg1 (wt=4)
Cap=7
Remaining Cap=3
Node 4
First, the pkg4 is placed on Node 2, as this is the first node with highest remaining capacity.
Then, pkg3 is placed on Node 1, pkg5 is placed on Node 3, pkg1 is placed on Node 4,
and pkg2 is placed on Node 1.
5. Now, forcefully halt Node 4 using cmhaltnode –f command to test failover of pkg1, which
is currently running on Node 4. Figure 32 (page 135) shows the failover of pkg1 on Node 2.
134 Planning and Documenting an HA Cluster