A method for controlling a storage apparatus that causes a computer system including a first computer, a second computer, a management computer, a first storage apparatus, and a second storage apparatus to control the first storage apparatus and the second storage apparatus, the method comprising:
- a first step of causing the management computer to set a first remote copy pair of a first logical device of the first storage apparatus and a second logical device of the second storage apparatus, the first remote copy pair configured to facilitate remote copy operations from the first logical device to the second logical device;
- a second step of causing the second storage apparatus to set virtual IDs of the second logical device and a third logical device to be recognized by an issuer of an I/O request, the first computer writes data to the first logical device and operates as a primary site, and the data written to the first logical device is written to the second logical device by the first remote copy pair, the second computer and the third logical device of the second storage apparatus perform a test failover as a secondary site, in which a third logical device copy the second logical device which is the same as the first logical device and the second computer operates the same operation same as the first computer and writes data to the third logical device;
- and
- when the second computer takes over the first computer, a third step of causing the second storage apparatus to receive a predetermined command as a trigger while processing the I/O request from the issuer of the I/O request to the third logical device, to restore differential data from the third logical device to the second logical device and then interchange the virtual IDs of the third logical device and the second logical device, thereby switching an access destination of the issuer of the I/O request from the third logical device to the second logical device,
- wherein the second storage apparatus implements a third remote copy pair by reversing a copy direction of the first remote copy pair, wherein the third remote copy pair facilitates performance of remote copy operations from the second logical device to the first logical device after interchanging the virtual IDs of the third logical device and the second logical device in the third step in order to show via the third remote copy pair a data update accepted by the second logical device according to the I/O request, and
- wherein the second computer writes data to the second logical device, and the data written to the second logical device is written to the first logical device by the third remote copy pair.