Provided are a method, system, and program for copying tracks between a
primary controller and secondary controller. A track is received from the
primary controller that is part of a copy job comprising a sequence of
tracks to copy along with a sequence number of the received track and a
context number identifying computational resources in the primary
controller used to transmit the track, sequence number, and context
number. The context number and sequence number transmitted with the track
are used to determine if a track preceding the received track was written
to storage. The secondary-controller writes the received track to storage
if the track preceding the received track was written to storage.