A method for recovery in a two-node data processing system is provided
wherein each node is a primary server for a first nonvolatile storage
device and for which there is provided shared access to a second
nonvolatile storage device for which the other node is a primary server
and wherein each node also includes a direct connection to the shared
nonvolatile storage device for which the other node is the primary
server. Upon notification of failure, the method operates by first
confirming continued access by each node to the nonvolatile storage
device for which it is the primary server and then by attempting to
access the shared nonvolatile storage device via the direct connection
and by waiting for a time sufficient for the same process to be carried
out by the other node. If access to the shared nonvolatile storage device
is successful, the node takes control of both nonvolatile storage
devices. If the access is not successful a comparison of node numbers is
carried out to decide the issue of control. Whenever a node determines
that it does not have access to the storage device for which it is the
primary server, it shuts down recovery at the node.