Provided are a method, program, and system for managing data. A mirror policy
is processed indicating volumes in a first storage system to mirror to volumes
in a second storage system and volumes in the second storage system to mirror to
volumes in a third storage system, wherein the third storage system is at a first
geographical location remote with respect to a second geographical location including
the first and second storage systems. A failure is detected of the first and second
storage systems at the first geographical location. Automatic reconfiguration is
made to network resources directing I/O requests to volumes in the first storage
system to direct I/O requests to volumes in the third storage system. A failure
of the first storage system and the availability of the second storage system is
detected and, in response, network resources are reconfigured to direct I/O requests
to volumes in the first storage system to volumes in the second storage system
in response to detecting the failure of the first storage system and the availability
of the second storage system. Updates to the second storage system are copied to
the third storage system after reconfiguring network resources to direct I/O requests
to volumes in the first storage system to volumes in the second storage system.