Migrating a Cluster Resource

As mentioned in Section 4.5, “Specifying Resource Failover Nodes”, the cluster will fail over (migrate) resources automatically in case of software or hardware failures—according to certain parameters you can define (for example, migration threshold or resource stickiness). Apart from that, you can also manually migrate a resource to another node in the cluster resources manually.

Procedure 4.12. Manually Migrating Resources

  1. Start the Linux HA Management Client and log in to the cluster as described in Section 4.1, “Linux HA Management Client”.

  2. Switch to the Management view in the left pane, then right-click the respective resource in the right pane and select Migrate Resource.

  3. In the new window, select the node to which to move the resource to in To Node. This creates a location constraint with an INFINITY score for the destination node.

  4. If you want to migrate the resource only temporarily, activate Duration and enter the time frame for which the resource should migrate to the new node. After the expiration of the duration, the resource can move back to its original location or it may stay where it is (depending on resource stickiness).

  5. In cases where the resource cannot be migrated (if the resource's stickiness and constraint scores total more than INFINITY on the current node), activate the Force option. This forces the resource to move by creating a rule for the current location and a score of -INFINITY.

    [Note]

    This will prevent the resource from running on this node until the constraint is removed with Clear Migrate Constraints or the duration expires.

  6. Click OK to confirm the migration.

To allow the resource to move back again, switch to the Management, right-click the resource view and select Clear Migrate Constraints. This uses the crm_resource -U command. The resource can move back to its original location or it may stay where it is (depending on resource stickiness). For more information, refer to crm_resource(8) or Configuration 1.0 Explained , section Resource Migration , available from http://clusterlabs.org/wiki/Documentation.