A method of performing a resource action on a resource among a plurality of resources in a clustered computer system of the type including a plurality of cluster entities, the plurality of cluster entities including a plurality of nodes and a plurality of cluster objects resident on at least a portion of the plurality of nodes, wherein the plurality of nodes and the plurality of cluster objects are each capable of owning a resource, and wherein each of the plurality of resources is configured to be owned by at most one of the plurality of cluster entities at a time, the method comprising:
- (a) acquiring a lock on each active node among the plurality of nodes;
- (b) modifying a node configuration parameter for each active node among the plurality of nodes, such that any inactive node among the plurality of nodes is thereafter blocked from being accepted into the clustered computer system;
- (c) modifying an object configuration parameter on each active cluster object that could own the resource, such that any inactive cluster object that could own the resource is thereafter blocked from being accepted into the clustered computer system, and such that any inactive node is thereafter blocked from accepting an active cluster object;
- (d) performing the resource action on the resource after the lock is acquired and the node and object configuration parameters are modified, wherein performing the resource action changes the ownership of the resource;
- whereby any inactive node among the plurality nodes that is blocked from being accepted into the clustered computer system after modification of the node configuration parameter is blocked from causing a resource conflict resulting from the change in ownership of the resource;
- and
- (e) releasing the lock on each active node after performing the resource action.