Patent ID: 8812800
Filing Date: 2014-08-19
Classification: G06F

Abstract:
1. A storage apparatus connected via a network to a host system for requesting writing of data and connected to a tape management apparatus for managing tape storage media for storing the data, the storage apparatus comprising: a plurality of storage devices configuring a plurality of device groups; a plurality of virtual volumes including a first virtual volume provided to the host system and a second virtual volume configuring a copy pair with the first virtual volume; and a storage controller including a storage unit, an allocation unit, and a mirroring unit, the storage unit for storing data in the plurality of storage devices, the host system issuing a write request to the first virtual volume to write the data to the storage unit, the allocation unit for allocating a predetermined area in the plurality of storage devices to a data storage area in the first virtual volume in which the data is stored by the storage unit, and the mirroring unit for copying data from the first virtual volume to the second virtual volume according to the copy pair, wherein when the mirroring unit is configured to copy data from the first virtual volume to the second virtual volume according to the copy pair, the storage controller determines whether the second virtual volume is a backup object to be backed up to the tape storage media, wherein when a determination is made that the second virtual volume is not a backup object to be backed up to the tape storage media, the storage controller selects a device group, of the plurality of device groups, having the largest number of remaining predetermined areas, excluding a device group from which a predetermined area was last allocated, and then allocates, to the second virtual volume, a predetermined area from the selected device group, of the plurality of device groups, so that data of the second virtual volume is stored in the plurality of device groups, wherein when a determination is made that the second virtual volume is a backup object to be backed up to the tape storage media, a determination is made as to whether a device group, of the plurality of device groups, has been specified for the second virtual volume, wherein when the determination as to whether the device group has been specified for the second virtual volume indicates there is no specified device group, a device group, of the plurality of device groups, having a smallest disk-to-tape (D2T) transfer quantity and a largest number of remaining predetermined areas, is selected as the specified device group, and the storage controller allocates a predetermined area in the specified device group to the second virtual volume, so that data of the second virtual volume is stored to the specified device group, and the data storage area in the first virtual volume is stored in the plurality of device groups, and restores data from the tape storage media to the second virtual volume by storing data of the tape storage media in the specified device group, and wherein when the determination as to whether the device group has been specified for the second virtual volume indicates there is a specified device group, the storage controller allocates a predetermined area in the specified device group to the second virtual volume, so that data of the second virtual volume is stored to the specified device group, and the data storage area in the first virtual volume is stored in the plurality of device groups, and restores data from the tape storage media to the second virtual volume by storing data of the tape storage media in the specified device group.