Source: https://patents.google.com/patent/JP5729479B2/en
Timestamp: 2020-08-10 03:05:28
Document Index: 355495871

Matched Legal Cases: ['art 111', 'art 121', 'art 122', 'art 123', 'art 124', 'art 125', 'art 126']

JP5729479B2 - Virtual tape device and control method of virtual tape device - Google Patents
Virtual tape device and control method of virtual tape device Download PDF
JP5729479B2
JP5729479B2 JP2013535696A JP2013535696A JP5729479B2 JP 5729479 B2 JP5729479 B2 JP 5729479B2 JP 2013535696 A JP2013535696 A JP 2013535696A JP 2013535696 A JP2013535696 A JP 2013535696A JP 5729479 B2 JP5729479 B2 JP 5729479B2
JP2013535696A
JPWO2013046342A1 (en
勝男 榎原
文男 松尾
2011-09-27 Priority to PCT/JP2011/072105 priority Critical patent/WO2013046342A1/en
2015-03-26 Publication of JPWO2013046342A1 publication Critical patent/JPWO2013046342A1/en
2015-06-03 Publication of JP5729479B2 publication Critical patent/JP5729479B2/en
The present invention relates to a virtual tape device and a control method for a virtual tape device.
The magnetic tape storage device sets the magnetic tape in the tape drive, writes the data received from the server to the magnetic tape, and transmits the data read from the magnetic tape to the server.
In the magnetic tape storage device, when reading and writing data, the magnetic tape is run to a target position, so it takes time to read and write data to a random position. For this reason, there is a virtual tape system in which a disk device is provided between the server and the magnetic tape storage device, and this disk device is used as a cache.
The virtual tape system will be described with reference to FIG. FIG. 14 is a diagram showing the configuration of the virtual tape system. As shown in the figure, the virtual tape system 900 includes a library device 910 and a virtual tape device 920. Further, the virtual tape system 900 is connected to the server 901 so as to communicate with each other.
The library device 910 includes magnetic tapes 911 to 914 that store data, and tape drives 915 and 916 that set the magnetic tapes. The virtual tape device 920 has a TVC (Tape Volume Cache) 921 that stores a plurality of logical volume data.
In such a virtual tape system 900, when the virtual tape device 920 accepts writing of the logical volume data “A” from the server 901, the virtual tape device 920 stores the logical volume data “A” on the TVC 921. When the virtual tape device 920 receives an unmount instruction for the logical volume data “A” from the server 901, the virtual tape device 920 stores the logical volume data “A” on any magnetic tape of the library device 910. Further, the virtual tape device 920 deletes old logical volume data from the TVC 921 before the total logical volume data amount exceeds the capacity of the TVC 921.
When the virtual tape device 920 receives the read of the logical volume data “B” from the server 901, the virtual tape device 920 determines whether the logical volume data “B” exists on the TVC 921. If the virtual tape device 920 determines that the logical volume data “B” exists on the TVC 921, the virtual tape device 920 transfers the logical volume data “B” from the TVC 921 to the server 901.
On the other hand, when the logical volume data “B” does not exist on the TVC 921, the virtual tape device 920 reads the corresponding logical volume data “B” from the magnetic tape of the library device 910 and stores it on the TVC 921. Then, the virtual tape device 920 transfers the logical volume data “B” from the TVC 921 to the server 901. The process of reading the logical volume data deleted from the TVC 921 from the magnetic tape and storing it on the TVC 921 is called “recall”.
As described above, in the virtual tape system 900, the library device 910 is virtually executed on the virtual tape device 920, thereby speeding up reading and writing of data received from the server 901.
JP-A-11-31376
However, the above-described conventional technique has a problem that the logical volume data may not be read in a short time during the recall process.
Specifically, in the recall process of the conventional virtual tape device, the magnetic volume data is read by running the magnetic tape to the position where the logical volume data is stored in response to the mount instruction. However, when the stored logical volume data is written behind the physical tape, it takes a long time to run the magnetic tape, so it takes time to read at the time of recall.
An object of one aspect of the present invention is to provide a virtual tape device and a virtual tape device control method that can read logical volume data in a short time during a recall process.
In the first plan, the virtual tape device executes the following process when deleting any one of the plurality of logical volume data stored in the first physical tape. That is, whether or not the virtual tape device performs copy processing for storing a copy of the logical volume data on the second physical tape based on the storage position of the logical volume data to be deleted on the first physical tape. Determine. When the virtual device tape device determines that the copy process is to be performed, the virtual device tape device is more than the interval between the storage position of the logical volume data on the first physical tape and the head position on the first physical tape. A copy of the logical volume data on the second physical tape is stored so that the interval between the storage position of the logical volume data on the second physical tape and the head position on the second physical tape is shortened.
Logical volume data can be read in a short time during the recall process.
FIG. 1 is a block diagram showing the configuration of the virtual tape system. FIG. 2 is a diagram showing logical volume data copy creation by the virtual tape device. FIG. 3 is a block diagram showing the configuration of the VLP. FIG. 4 is a diagram illustrating an example of information stored as a logical volume management table. FIG. 5 is a diagram illustrating an example of information stored as a physical tape management table. FIG. 6 is a diagram illustrating an operation of determining whether or not to create a copy of logical volume data by the copy determination unit. FIG. 7 is a diagram illustrating physical tapes selected by the physical tape selection unit. FIG. 8 is a diagram illustrating an example in which “location of copy source physical tape” and “location of copy destination physical tape” are “in a cell”. FIG. 9 is a diagram illustrating an example in which “location of copy source physical tape” and “location of copy destination physical tape” are “in the tape drive”. FIG. 10 is a diagram illustrating an example in which a copy destination physical tape is set in the tape drive and a copy source physical tape is not set in the tape drive. FIG. 11 is a diagram illustrating an example in which a copy source physical tape is set in the tape drive and a copy destination physical tape is not set in the tape drive. FIG. 12 is a flowchart for explaining the processing procedure of copy processing by VLP. FIG. 13 is a flowchart for explaining the processing procedure of the recall processing by the VLP. FIG. 14 is a diagram showing the configuration of the virtual tape system.
Embodiments of a virtual tape device and a control method for a virtual tape device disclosed in the present application will be described below in detail with reference to the drawings. Note that the present invention is not limited to the embodiments. Each embodiment can be appropriately combined within a range in which processing contents are not contradictory.
[Virtual Tape System Configuration]
FIG. 1 is a block diagram showing the configuration of the virtual tape system. As shown in FIG. 1, the virtual tape system 1 includes a library device 10 and a virtual tape device 20. The virtual tape system 1 is connected to the server 2 so as to communicate with each other.
The server 2 requests the virtual tape device 20 to mount the physical drive. The physical drive mounting process here refers to setting a magnetic tape of the library apparatus 10 in a tape drive so that data stored in the magnetic tape can be read and written. Then, the server 2 designates the logical drive and logical volume selected by the VTCP (Virtual Tape Control Program) 2a, and requests the virtual tape device 20 to read or write data.
Further, the server 2 requests the virtual tape device 20 to unmount the physical drive. The physical drive unmounting process here refers to removing the magnetic tape set in the tape drive of the library apparatus 10 from the tape drive.
The library apparatus 10 includes magnetic tapes 11 to 14 and tape drives 15 and 16. The numbers of tapes and tape drives are not limited to those shown in the figure, and can be changed.
The magnetic tapes 11 to 14 are stored in a cell (not shown). When each magnetic tape is mounted, it is taken out from the cell by a robot and a hand (not shown) and set in the drive 15 or 16. In the example shown in FIG. 1, the magnetic tape 11 is set in the tape drive 15, and the magnetic tapes 12 to 14 are stored in the cell. In the following description, the magnetic tape is described as a physical tape as appropriate.
The tape drives 15 and 16 write data to each set magnetic tape and read data stored by running each set magnetic tape. The tape drive is also called a physical drive.
The virtual tape device 20 includes a TVC (Tape Volume Cache) 21 and an FC (Fibre Channel) switch 22. The virtual tape device 20 includes ICPs (Integrated Channel Processors) 23 and 26, IDPs (Integrated Device Processors) 24 and 27, and VLPs (Virtual Library Processors) 25 and 28.
The TVC 21 has a RAID (Redundant Array of Inexpensive Disks) storage and a file system, and stores a plurality of logical volume data. The FC switch 22 is a switch that mutually connects various devices of the fiber channel interface, and connects the ICPs 23 and 26, the IDPs 24 and 27, and the VLPs 25 and 28 to the TVC 21, respectively.
The ICP 23 is a server having a CPU (Central Processing Unit) and a main storage device. The ICP 23 is mounted with a channel interface card and is connected to the server 2 using a storage connection interface such as FCLINK (registered trademark) or OCLINK (registered trademark).
When the ICP 23 receives the physical drive mounting process from the server 2, the ICP 23 requests the VLP 25 to perform the logical drive mounting process. When the VLP 25 notifies the ICP 23 that the logical drive mounting process has been completed, the ICP 23 notifies the server 2 that the physical drive mounting process has been completed.
The ICP 23 writes the received data to the TVC 21 in accordance with the data write request received from the server 2 after the logical drive mounting process is completed. The ICP 23 reads the received data from the TVC 21 according to the data read request received from the server 2 after the logical drive mounting process is completed.
Further, when the ICP 23 receives a physical drive unmount process from the server 2, the ICP 23 requests the VLP 25 to perform a logical drive unmount process. Then, when the VLP 25 notifies the ICP 23 that the logical drive unmount processing has ended, the ICP 23 notifies the server 2 that the physical drive unmount processing has ended.
The IDP 24 is a server having a CPU and a main storage device. The IDP 24 has a data path to the tape drive 15 of the library apparatus 10. When the IDP 24 receives a logical drive mounting process from the VLP 25 described later, the IDP 24 controls the tape drive 15 to read data stored in each magnetic tape, and writes the read data to the TVC 21. In other words, the IDP 24 mounts a logical volume on the logical drive that the TVC 21 has.
Further, when the IDP 24 receives a logical drive unmount process from the VLP 25, the IDP 24 controls the tape drive 15 to write the data stored in the TVC 21 to each magnetic tape. The IDP 24 requests the library apparatus 10 to remove the magnetic tape set in the tape drive 15 from the tape drive 15. When the IDP 24 is notified from the library device 10 that the magnetic tape has been removed from the tape drive 15, the IDP 24 notifies the VLP 25 that the logical drive unmount processing has been completed.
The VLP 25 is a server having a CPU and a main storage device. When the VLP 25 receives the logical drive mounting process from the ICP 23, the VLP 25 determines whether or not the designated logical volume exists in the TVC 21. If the VLP 25 determines that the specified logical volume exists in the TVC 21, the VLP 25 notifies the ICP 23 that the logical drive mounting process has been completed.
On the other hand, if the VLP 25 determines that the specified logical volume does not exist in the TVC 21, the VLP 25 requests the IDP 24 to perform a logical drive mounting process. When the logical volume is mounted on the logical drive of the TVC 21 by the IDP 24, the VLP 25 completes the logical drive mounting process by opening the file of the mounted logical volume. The VLP 25 notifies the ICP 23 that the logical drive mounting process has been completed.
Further, the VLP 25 receives the unmount process of the logical drive from the ICP 23 and requests the IDP 24 to perform the unmount process of the logical drive. When the VLP 25 is notified by the IDP 24 that the unmount process of the logical drive has been completed, the VLP 25 notifies the ICP 23 that the unmount process of the logical drive has been completed.
The configuration of ICP 26 is the same as the configuration of ICP 23, the configuration of IDP 27 is the same as the configuration of IDP 24, and the configuration of VLP 28 is the same as the configuration of VLP 25. Therefore, here, ICP 26, IDP 27, VLP 28 Description of the configuration of is omitted.
In the virtual tape system 1 configured as described above, the virtual tape device 20 executes the following processing when deleting arbitrary logical volume data from the TVC 21 storing a plurality of logical volume data. That is, the virtual tape device 20 determines whether or not to create a copy for the logical volume data based on the position on the physical tape where the logical volume data to be deleted is stored. If the virtual tape device 20 determines that a copy is to be created, the virtual volume device 20 stores the logical volume data before a predetermined position on a physical tape different from the physical tape in which the logical volume data is stored. Make a copy.
FIG. 2 is a diagram showing logical volume data copy creation by the virtual tape device. Here, a case where the virtual tape device 20 deletes the logical volume data “LV0000” from the TVC 21 is taken as an example. As shown in FIG. 2, the logical volume data “LVxxx” is stored near the beginning of the magnetic tape 50, and the logical volume data “LV0000” is stored near the end of the magnetic tape 50. In the following description, the logical volume data “LV0000” is appropriately described as “LV0000”.
The virtual tape device 20 determines that “LV0000” is to be created because “LV0000” is near the end of the magnetic tape 50 and “LV0000” cannot be read in a short time during the recall process. Then, the virtual tape device 20 stores “LV0000” near the head of the magnetic tape 51 and creates a copy for “LV0000”. That is, the interval between the storage position of “LV0000” on the magnetic tape 51 and the leading position on the magnetic tape 51 is between the storage position of “LV0000” on the magnetic tape 50 and the leading position on the magnetic tape 50. Shorter than the interval.
As described above, when deleting the logical volume data from the TVC 21, the virtual tape device 20 is different from the physical tape storing the logical volume data based on the position on the physical tape where the logical volume data is stored. Copy logical volume data to Here, the virtual tape device 20 shortens the interval between the storage position of the logical volume data and the head position of the physical tape by copying the logical volume data near the head of the different physical tape. As a result, the virtual tape device 20 can read the logical volume data in a short time during the recall process.
[VLP configuration]
Next, the configuration of the VLP 25 will be described with reference to FIG. FIG. 3 is a block diagram showing the configuration of the VLP. In the figure, only the configuration related to the function of reading the logical volume data in a short time during the recall process is shown. As illustrated in FIG. 3, the VLP 25 includes a storage unit 110 and a control unit 120.
The storage unit 110 is, for example, a semiconductor memory element, and includes a logical volume management table 111 and a physical tape management table 112.
The logical volume management table 111 stores information in which a physical tape name in which data of a logical volume is stored is associated with a recording position on the physical tape and the number of times the logical volume is recalled. An example of information stored as the logical volume management table 111 will be described with reference to FIG. FIG. 4 is a diagram illustrating an example of information stored as a logical volume management table.
As shown in FIG. 4, the logical volume management table 111 stores “logical volume name”, “physical tape name”, “valid flag”, “recording position”, and “recall count” in association with each other.
Here, the “logical volume name” stored in the logical volume management table 111 indicates a volume name in which one piece of logical volume data is recorded. For example, “logical volume name” stores values such as “LV0000” and “LV0001”.
“Physical tape name” indicates the name of the tape on which the logical volume data is recorded. For example, values such as “PV000A” and “PV000B” are stored in “physical tape name”.
The “valid flag” indicates whether the logical volume data recorded on the physical tape is valid or invalid. In other words, the “valid flag” indicates whether or not a physical tape in which the logical volume data is stored is to be read when the logical volume data is recalled. For example, “1” indicating that the logical volume data is valid and to be read is stored in the “valid flag”, and “0” indicating that the logical volume data is invalid and is not to be read. The
“Recording position” indicates a position on the physical tape where the logical volume data is stored, and is represented by “sector value” and “block ID”.
The “sector value” indicates a value for identifying each sector obtained by dividing the physical tape from the beginning to the end. For example, the sector value is any natural number from 1 to 60. For example, “50”, “03”, and the like are stored in the “sector value”.
“Block ID” indicates an identifier of a block written from the top of the physical tape, and is a natural number obtained by adding one by one, starting from 000000. For example, “block ID” stores values such as “033500” and “000100”.
“Number of recalls” indicates the number of times the recall process has been performed. For example, values such as “1”, “0”, “3” are stored in the “recall count”.
In the example shown in FIG. 4, in the logical volume management table 111, logical volume data whose logical volume name is “LV0000” is stored in two physical tapes “PV000A” and “PV000B”, and the number of recalls is Indicates 10 times. In addition, the recording position of “LV0000” in “PV000A” is the sector value “50” and the block ID “033500”, and the recording position of “LV0000” in “PV000B” is the sector value “03” and the block ID “000100”. Indicates that there is. Both “PV000A” and “PV000B” are effective.
Similarly, in the logical volume management table 111, logical volume data whose logical volume name is “LV0002” is stored in two physical tapes “PV000B” and “PV000C”, and the number of recalls is three. It shows that. The recording position of “LV0002” in “PV000B” is the sector value “40” and the block ID “033000”, and the recording position of “LV0002” in “PV000C” is the sector value “05” and the block ID “000050”. Indicates that there is. Also, “PV000B” is invalid and “PV000C” is valid.
Returning to FIG. 3, the physical tape management table 112 stores information associating the location of the physical tape with the final recording position. An example of information stored as the physical tape management table 112 will be described with reference to FIG. FIG. 5 is a diagram illustrating an example of information stored as a physical tape management table.
As shown in FIG. 5, the physical tape management table 112 stores “physical tape name”, “final recording position”, and “location of physical tape” in association with each other.
Here, the “physical tape name” stored in the physical tape management table 112 is the same as the “physical tape name” stored in the logical volume management table 111. The “final recording position” indicates a position where writing can be started on the physical tape, and is represented by a “sector value” and a “block ID”. The “sector value” and “block ID” at the “final recording position” are the same as the “sector value” and “block ID” described in the logical volume management table 111.
“Location of physical tape” indicates the location of the physical tape in the library apparatus 10. For example, “location of physical tape” includes “tape drive 15” indicating that the physical tape is set in the tape drive 15 and information identifying the position in the cell stored in the cell “ “Cell 60” indicating “60” is stored.
In the example shown in FIG. 5, the physical tape management table 112 shows that a physical tape with the physical tape name “PV000A” exists in the tape drive 15, and a new logical value starts from the position of the sector value “50” and the block ID “040010”. Indicates that volume data is stored. The physical tape management table 112 stores a new logical volume data from the position of the sector value “04” and the block ID “000110” when the physical tape whose physical tape name is “PV000B” exists in “cell 60”. Indicates to do.
Returning to FIG. 3, the control unit 120 includes a TVC capacity determination unit 121, a copy determination unit 122, a copy creation unit 123, a mount processing unit 124, a physical tape determination unit 125, and a physical tape selection unit 126.
The TVC capacity determination unit 121 determines whether or not the capacity of data stored in the TVC 21 exceeds a predetermined threshold at a predetermined cycle. When the TVC capacity determination unit 121 determines that the capacity of data stored in the TVC 21 has exceeded a predetermined threshold, the TVC capacity determination unit 121 causes the copy determination unit 122 to determine whether to create a copy.
The copy determination unit 122 executes the following processing when deleting arbitrary logical volume data from the TVC 21 storing a plurality of logical volume data. That is, the copy determination unit 122 refers to the logical volume management table 111 and determines whether to create a copy for the logical volume data based on the position on the physical tape where the logical volume data to be deleted is stored. .
The operation for determining whether or not to create a copy of logical volume data by the copy determination unit 122 will be described with reference to FIG. FIG. 6 is a diagram illustrating an operation of determining whether or not to create a copy of logical volume data by the copy determination unit. Each item shown in FIG. 6 is an example in which “logical volume name”, “recall count”, and “sector value” are extracted from information stored as the logical volume management table 111.
Further, in the following description, when the number of recalls is 0 to 2, the recall frequency is “low”, and when the number of recalls is 3 to 9, the recall frequency is “slightly high”. When the number of recalls is 10 or more, the recall frequency is assumed to be “high”. When the sector value is 1 to 20, the position on the physical tape is “front”, and when the sector value is 21 to 40, the position on the physical tape is “intermediate”. Is 41 to 60, the position on the physical tape is assumed to be “rear”.
For example, when the position on the physical tape where the logical volume data to be deleted is stored is “intermediate” or “backward” and the recall frequency of the logical volume data to be deleted is “high”, the copy determination unit 122 It is determined that a copy is made for.
As shown in FIG. 6, since the sector value of the logical volume name “LV0018” is 36 and the number of recalls is 10, the copy determination unit 122 is recalled because the position on the physical tape is “intermediate”. It is determined that the frequency is “high”. Similarly, since the sector value of the logical volume name “LV0019” is 55 and the number of recalls is 10 times, the copy determination unit 122 has the position on the physical tape “rear” and the recall frequency is “high”. Is determined.
The copy determination unit 122 also copies the logical volume data when the position on the physical tape where the logical volume data to be deleted is stored is “rear” and the number of recalls of the logical volume data to be deleted is “slightly high”. Determine to create.
As shown in FIG. 6, since the sector value of the logical volume name “LV0016” is 41 and the number of recalls is 3, the copy determination unit 122 is recalled because the position on the physical tape is “rear”. It is determined that the frequency is “slightly high”.
Note that the criterion for determining whether or not to create a copy for logical volume data is not limited to that used here. For example, the copy determination unit 122 may determine to create a copy for the logical volume data when the position on the physical tape where the logical volume data to be deleted is stored is “rear” and the recall frequency is “high”. Good.
Alternatively, when the position on the physical tape where the logical volume data to be deleted is stored is “intermediate” or “backward” and the recall frequency is “slightly high” or “high”, the copy determination unit 122 It may be determined that a copy is made for.
In addition, when the position on the physical tape where the logical volume data to be deleted is stored is “rear”, the copy determination unit 122 may determine to create a copy for the logical volume data without depending on the number of recalls. .
Returning to FIG. 3, when the copy determination unit 122 determines that a copy is to be generated, the copy generation unit 123 executes the following processing. That is, the copy creation unit 123 creates a copy of the logical volume data by storing the logical volume data before a predetermined position on a physical tape different from the physical tape in which the logical volume data is stored.
For example, the copy creation unit 123 extracts “physical tape name” associated with “logical volume name” determined to create a copy from the logical volume management table 111. Then, the copy creating unit 123 extracts a “physical tape name” different from the extracted “physical tape name” from the physical tape management table 112, and selects a physical tape whose final recording position is the front.
The copy creation unit 123 creates a copy for the logical volume data in front of the selected physical tape. Then, the copy creation unit 123 updates the logical volume management table 111 and the physical tape management table 112 after the copy creation is completed.
Further, when creating a copy of a plurality of logical volume data, the copy creation unit 123 creates a copy in order from the logical volume data with the highest number of recalls.
The mount processing unit 124 receives mount processing and unmount processing from the ICP 23, and executes mount processing and unmount processing for the logical drive.
For example, when the mount processing unit 124 receives the mount processing, the mount processing unit 124 determines whether or not the logical volume that has received the mount processing exists on the TVC 21. When the mount processing unit 124 determines that the logical volume that has received the mount process exists on the TVC 21, the mount process unit 124 performs the mount process on the logical drive and notifies the ICP 23 that the mount process is completed. As a result, the ICP 23 notifies the server 2 that the mounting process has been completed.
When the mount processing unit 124 determines that the logical volume that has received the mount process does not exist on the TVC 21, the mount processing unit 124 determines the number of physical tapes that store the logical volume data that has received the mount process to the physical tape determination unit 125. Let After the logical volume that has received the mount process is stored in the TVC 21, the mount processing unit 124 executes the mount process to the logical drive and notifies the ICP 23 that the mount process has been completed.
When the mount processing unit 124 accepts the unmount process, the mount processing unit 124 requests the IDP 24 to save the data stored in the TVC 21 on the physical tape.
When the mount processing unit 124 determines that the logical volume that has received the mount process does not exist on the TVC 21, the physical tape determination unit 125 executes the following process. That is, the physical tape determination unit 125 determines whether or not there is a copy-source physical tape in which the logical volume data that has been mounted is stored and a copy-destination physical tape in which the logical volume data that has been read is copied. judge.
For example, the physical tape determination unit 125 extracts the number of “physical tape names” associated with the “logical volume name” corresponding to the logical volume that has been read from the logical volume management table 111, and sets the “physical tape name” It is determined whether or not the number is two.
Here, when the number of “physical tape names” is two, the physical tape determination unit 125 determines that the copy source physical tape and the copy destination physical tape exist. Then, the physical tape determination unit 125 causes the physical tape selection unit 126 to select any physical tape from which the logical volume data can be read out in the shortest time.
On the other hand, when the number of “physical tape names” is one, the physical tape determination unit 125 determines that only one of the copy source physical tape and the copy destination physical tape exists. Then, the physical tape determination unit 125 notifies the IDP 24 that only one of the copy source physical tape and the copy destination physical tape exists. As a result, the IDP 24 reads the logical volume data from the selected physical tape, and stores the read logical volume data in the TVC 21.
When the physical tape determination unit 125 determines that the copy source physical tape and the copy destination physical tape exist, the physical tape selection unit 126 converts the logical volume data in the shortest time based on the location of each physical tape. Select one of the physical tapes that can be read.
The operation of selecting a physical tape by the physical tape selection unit 126 will be described with reference to FIGS. FIG. 7 is a diagram illustrating physical tapes selected by the physical tape selection unit. In FIG. 7, the presence / absence of “physical tape used during recall processing” and “invalidation of copy source” selected based on “location of copy source physical tape” and “location of copy destination physical tape” are determined. Show.
As illustrated in FIG. 7, the physical tape selection unit 126 selects a copy destination physical tape when the location of the copy source physical tape and the copy destination physical tape are the same. For example, when “location of copy source physical tape” and “location of copy destination physical tape” are “in a cell”, the physical tape selection unit 126 selects a copy destination physical tape.
FIG. 8 is a diagram illustrating an example in which “location of copy source physical tape” and “location of copy destination physical tape” are “in a cell”. As shown in FIG. 8, a copy source physical tape 81 and a copy destination physical tape 82 are stored in a cell 83, and no tape is set in the tape drives 84 and 85. In this case, all the tapes are taken out from the cell by the robot 86 and the hand 87. In such a case, the physical tape selection unit 126 determines that the logical volume data can be read from the copy destination physical tape 82 in which the logical volume data is recorded in front of the tape in the shortest time. Select.
The physical tape selection unit 126 selects the physical tape of the copy destination when “location of the physical tape of the copy source” and “location of the physical tape of the copy destination” are “in the tape drive”.
FIG. 9 is a diagram illustrating an example in which “location of copy source physical tape” and “location of copy destination physical tape” are “in the tape drive”. As shown in FIG. 9, the copy source physical tape 81 is set in the tape drive 85, and the copy destination physical tape 82 is set in the tape drive 84. In this case, none of the tapes need be taken out from the cell 83. In such a case, the physical tape selection unit 126 determines that the logical volume data can be read out from the copy destination physical tape 82 stored in front of the tape in the shortest time, and the copy destination physical tape 82. Select.
Further, as shown in FIG. 7, the physical tape selection unit 126 has the copy destination physical tape set in the tape drive and the copy source physical tape stored in the cell, that is, set in the tape drive. If not, the copy destination physical tape is selected.
FIG. 10 is a diagram illustrating an example in which a copy destination physical tape is set in the tape drive and a copy source physical tape is not set in the tape drive. As shown in FIG. 10, the copy source physical tape 81 is stored in the cell 83, and the copy destination physical tape 82 is set in the tape drive 84. In this case, in order to read the logical volume data stored in the copy source physical tape 81, the robot 86 and the hand 87 take out the logical volume data from the cell 83, and further, the magnetic tape is moved to the position where the logical volume data is stored. It will run. On the other hand, in order to read the logical volume data stored in the copy destination physical tape 82, it is not necessary to take it out from the cell 83, and it is only necessary to run the magnetic tape to the front where the logical volume data is stored. In such a case, the physical tape selection unit 126 determines that the logical volume data can be read from the copy destination physical tape 82 in the shortest time, and selects the copy destination physical tape 82.
When the physical tape selection unit 126 selects the copy destination physical tape as the physical tape from which the logical volume data can be read out in the shortest time, the physical tape selection unit 126 removes the copy source physical tape from the logical volume data read target. For example, the physical tape selection unit 126 stores “0” in the “valid flag” associated with the “physical tape name” indicating the copy source physical tape in the logical volume management table 111.
Further, as shown in FIG. 7, the physical tape selection unit 126 has the copy source physical tape set in the tape drive and the copy destination physical tape stored in the cell, that is, set in the tape drive. If not, the copy source physical tape is selected.
FIG. 11 is a diagram illustrating an example in which a copy source physical tape is set in the tape drive and a copy destination physical tape is not set in the tape drive. As shown in FIG. 11, a copy source physical tape 81 is set in a tape drive 85, and a copy destination physical tape 82 is stored in a cell 83. In this case, to read the logical volume data stored in the copy source physical tape 81, the magnetic tape is run to the position where the logical volume data is stored. Good. On the other hand, in order to read the logical volume data stored in the copy destination physical tape 82, it is taken out from the cell 83 by the robot 86 and the hand 87. In such a case, it is shorter to run the copy source physical tape 81 set in the tape drive 85 to the position where the logical volume data is stored than to take out the copy destination physical tape 82 from the cell. Logical volume data can be read in time. Therefore, the physical tape selection unit 126 determines that the logical volume data can be read from the copy source physical tape 81 in the shortest time, and selects the copy source physical tape 81.
In this case, the physical tape selection unit 126 does not remove the copy source physical tape from the target of reading the logical volume data. That is, in the logical volume management table 111, “1” is continuously stored in the “valid flag” associated with the “physical tape name” indicating the copy source physical tape.
The physical tape selection unit 126 requests the IDP 24 to set the selected physical tape in the tape drive. As a result, the IDP 24 reads the logical volume data from the selected physical tape, and stores the read logical volume data in the TVC 21.
[Processing procedure of VLP]
Next, a processing procedure of processing by the VLP will be described with reference to FIGS. Here, the copy process will be described with reference to FIG. 12, and the recall process will be described with reference to FIG.
(Copy process)
FIG. 12 is a flowchart for explaining the processing procedure of copy processing by VLP. As shown in FIG. 12, the TVC capacity determination unit 121 determines whether or not the capacity of data stored in the TVC 21 has exceeded a predetermined threshold at a predetermined cycle (step S101). When the TVC capacity determination unit 121 determines that the data capacity stored in the TVC 21 exceeds a predetermined threshold (Yes in step S101), the copy determination unit 122 obtains the number of recalls and the sector value from the logical volume management table 111. Read (step S102).
Subsequently, the copy determination unit 122 determines whether to create a copy (step S103). Here, if the copy determination unit 122 determines not to create a copy (No in step S103), the process ends. On the other hand, when the copy determination unit 122 determines that a copy is to be generated (Yes in step S103), the copy creation unit 123 selects a copy destination physical tape from the physical tape management table 112 (step S104).
Then, the copy creating unit 123 creates a copy on the selected physical tape (step S105). Subsequently, the copy creation unit 123 updates the logical volume management table 111 (step S106) and updates the physical tape management table 112 (step S107) after the copy creation is completed.
(Recall processing)
FIG. 13 is a flowchart for explaining the processing procedure of the recall processing by the VLP. Note that the processing from step S203 to step S210 in FIG. 13 corresponds to the recall processing.
As illustrated in FIG. 13, the mount processing unit 124 determines whether or not a mount process has been received from the ICP 23 (step S <b> 201). If the mount processing unit 124 determines that the mount process has been accepted (Yes in step S201), the mount processing unit 124 determines whether the logical volume that has received the mount process exists on the TVC 21 (step S202).
If the mount processing unit 124 determines that the logical volume that has received the mount process exists on the TVC 21 (step S202, Yes), the mount processing unit 124 proceeds to step S211. On the other hand, when it is determined by the mount processing unit 124 that the logical volume that has received the mount process does not exist on the TVC 21 (No in step S202), the physical tape determination unit 125 executes the following process. That is, the physical tape determination unit 125 extracts the physical tape name from the logical volume management table 111 (step S203). Then, the physical tape determination unit 125 determines whether there are two physical tapes in which the logical volume is stored (step S204).
Here, when the physical tape determination unit 125 determines that there are not two physical tapes in which the logical volume is stored, that is, one (No in step S204), the process proceeds to step S210. On the other hand, if the physical tape selection unit 126 determines that there are two physical tapes in which the logical volume is stored by the physical tape determination unit 125 (step S204, Yes), the physical tape selection unit 126 determines the location of the physical tape, and the physical tape Is selected (step S205).
Then, the physical tape selection unit 126 determines whether a copy destination physical tape has been selected (step S206). If the physical tape selection unit 126 determines that the copy destination physical tape has not been selected (No in step S206), the physical tape selection unit 126 sets the copy source physical tape in the tape drive (step S209), and the process advances to step S210. Transition.
On the other hand, if the physical tape selection unit 126 determines that the copy destination physical tape has been selected (step S206, Yes), the physical tape selection unit 126 sets the copy destination physical tape (step S207). Then, the physical tape selection unit 126 invalidates the copy source physical tape (step S208), and proceeds to step S210.
In step S210, the IDP 24 reads data from the set physical tape and stores it in the TVC 21 (step S210). Subsequently, the mount processing unit 124 executes a mount process on the logical drive (step S211), and notifies the ICP 23 that the mount process is completed (step S212). The VLP 25 ends the recall process after the end of step S212.
When deleting the logical volume data, the virtual tape device 20 determines the logical volume near the beginning of a physical tape different from the physical tape where the logical volume data is stored, based on the position on the physical tape where the logical volume data is stored. Copy the data. As a result, the virtual tape device 20 can read the logical volume data in a short time during the recall process.
In addition to the position on the physical tape where the logical volume data is stored, the virtual tape device 20 copies the logical volume data whose number of recalls exceeds a predetermined threshold. As a result, tape consumption can be reduced as compared with a case where all the data on the physical tape where the logical volume data is stored are copied.
Further, if the position on the physical tape where the logical volume data is stored is backward, the virtual tape device 20 will copy the one whose recall count is likely to exceed a predetermined threshold. As a result, the virtual tape device 20 may be used frequently and can read data that takes time to read in a short time during the recall process.
In addition, when the logical volume data is copied to another physical tape, the virtual tape device 20 temporarily manages the copy source and the copy destination redundantly without invalidating the copy source. As a result, the virtual tape device 20 can select the tape with the shortest recall time depending on the location of the copy source and copy destination physical tapes. For example, when the copy source physical tape is set in the tape drive and the copy destination physical tape is stored in the cell, the virtual tape device 20 selects the copy source physical tape to perform the recall process. Can be completed in a short time.
Further, when the virtual tape device 20 manages the copy source and the copy destination in an overlapping manner, the memory resource of the virtual tape device 20 is compressed. For this reason, when the copy destination is selected during the recall operation, the virtual tape device 20 invalidates the copy source physical tape so that it is not selected during the recall. As a result, the virtual tape device 20 can effectively use memory resources.
In addition, when a plurality of logical volume data is deleted from the TVC and the plurality of logical volume data must be copied to another physical tape, the virtual tape device 20 copies the data from the one having the highest number of recall processes. As a result, the virtual tape device 20 can complete the recall processing of a logical volume with a high recall frequency in a short time.
By the way, this invention may be implemented with a various different form other than the Example mentioned above. Accordingly, in the second embodiment, another embodiment included in the present invention will be described.
Of the processes described in the present embodiment, all or part of the processes described as being automatically performed may be performed manually. Alternatively, all or part of the processing described as being performed manually can be automatically performed by a known method. In addition, the processing procedures, control procedures, and specific names shown in the text and drawings can be arbitrarily changed unless otherwise specified.
Further, the information stored in the illustrated storage unit is only an example, and it is not always necessary to store the information as illustrated.
Further, the order of processing in each step of each processing described in each embodiment may be changed according to various loads and usage conditions. For example, the order of step S207 and step S208 shown in FIG.
Further, each illustrated component does not necessarily have to be physically configured as illustrated. For example, in the virtual tape device 20, the ICP 23, IDP 24, and VLP 25 may be integrated. In the VLP 25, the copy determination unit 122 and the copy creation unit 123 may be integrated. Furthermore, all or a part of each processing function performed in each device may be realized by a CPU and a program that is analyzed and executed by the CPU, or may be realized as hardware by wired logic.
1 Virtual Tape System 2 Server 10 Library Device 11, 12, 13, 14 Tape 15, 16 Tape Drive 20 Virtual Tape Device 21 TVC
22 FC switch 23, 26 ICP
24, 27 IDP
25, 28 VLP
DESCRIPTION OF SYMBOLS 110 Storage part 111 Logical volume management table 112 Physical tape management table 120 Control part 121 TVC capacity determination part 122 Copy determination part 123 Copy creation part 124 Mount processing part 125 Physical tape determination part 126 Physical tape selection part
Any of the plurality of logical volume data stored on the first physical tape, any one of the logical volumes stored in the temporary storage unit that temporarily stores the logical volume data that the computer reads / writes to / from the first physical tape Whether to perform copy processing for storing a copy of the logical volume data on the second physical tape based on the storage position of the logical volume data to be deleted on the first physical tape when deleting data A determination unit for determining whether or not,
When the determination unit determines that the copy process is to be performed, the interval between the storage position of the logical volume data on the first physical tape and the start position on the first physical tape is greater than Copying of the logical volume data on the second physical tape is performed so that the interval between the storage position of the logical volume data on the second physical tape and the start position on the second physical tape is shortened. A copy creation section to be stored;
A virtual tape device comprising:
The determination unit is configured such that an interval between a storage position of the logical volume data to be deleted on the first physical tape and a head position on the first physical tape is longer than a first interval, and The virtual tape device according to claim 1, wherein the copy process is determined to be performed when the number of recalls of the logical volume data exceeds a first number.
When the logical volume data received from the information processing apparatus is deleted from the storage unit that stores the logical volume data read / written between the physical tape of the tape apparatus and the information processing apparatus, the first With reference to the logical volume data stored on the physical tape and the information indicating the logical volume data stored on the second physical tape, the first physical tape and the second physical tape on which the logical volume data is stored are referred to. A tape determination unit for determining whether the tape device has a physical tape; and
When the tape determination unit determines that the tape device has the first physical tape and the second physical tape, referring to location information indicating the location of each physical tape in the tape device, The virtual tape device according to claim 1, further comprising: a selection unit that selects a physical tape from which logical volume data is read from the first physical tape or the second physical tape.
In the physical drive in which the location of the first physical tape and the second physical tape in the tape device is the same condition, or the second physical tape is provided in the tape device. 4. The virtual tape device according to claim 3, wherein when the first physical tape is not set in the physical drive, the second physical tape is selected.
The selection unit selects the first physical tape when the first physical tape is set in the physical drive and the second physical tape is not set in the physical drive. The virtual tape device according to claim 4 .
5. The selection unit according to claim 4, wherein when the second physical tape is selected as a physical tape from which the logical volume data is read, the selection unit removes the first physical tape from a target for reading the logical volume data. Virtual tape device.
3. The virtual tape device according to claim 1, wherein when creating a copy of a plurality of logical volume data, the copy creation unit creates a copy in order from logical volume data having a large number of recalls.
The virtual tape device is
Any of the plurality of logical volume data stored on the first physical tape, any one of the logical volumes stored in the temporary storage unit that temporarily stores the logical volume data that the computer reads / writes to / from the first physical tape Whether to perform copy processing for storing a copy of the logical volume data on the second physical tape based on the storage position of the logical volume data to be deleted on the first physical tape when deleting data Processing to determine whether or not,
When it is determined that the copy process is to be performed, the second physical is larger than the interval between the storage position of the logical volume data on the first physical tape and the start position on the first physical tape. Processing for storing a copy of the logical volume data on the second physical tape such that the interval between the storage position of the logical volume data on the tape and the start position on the second physical tape is shortened. A control method for a virtual tape device, comprising:
JP2013535696A 2011-09-27 2011-09-27 Virtual tape device and control method of virtual tape device Active JP5729479B2 (en)
PCT/JP2011/072105 WO2013046342A1 (en) 2011-09-27 2011-09-27 Virtual tape device and control method for virtual tape device
JPWO2013046342A1 JPWO2013046342A1 (en) 2015-03-26
JP5729479B2 true JP5729479B2 (en) 2015-06-03
ID=47994455
JP2013535696A Active JP5729479B2 (en) 2011-09-27 2011-09-27 Virtual tape device and control method of virtual tape device
US (1) US9513804B2 (en)
JP (1) JP5729479B2 (en)
WO (1) WO2013046342A1 (en)
US10235098B1 (en) * 2017-01-10 2019-03-19 Pavilion Data Systems, Inc. Writable clones with minimal overhead
US10423336B2 (en) * 2017-11-28 2019-09-24 International Business Machines Corporation Fast locate using imitation reads on tape drives
JP4128206B2 (en) 1993-06-21 2008-07-30 株式会社日立製作所 Computer system and secondary storage device
JP4252102B2 (en) * 1993-06-21 2009-04-08 株式会社日立製作所 Computer system and secondary storage device
JP3747937B2 (en) 1993-06-21 2006-02-22 株式会社日立製作所 Computer system and secondary storage device
JP3832485B2 (en) 1993-06-21 2006-10-11 株式会社日立製作所 Computer system and secondary storage device
JP3747788B2 (en) 1993-06-21 2006-02-22 株式会社日立製作所 Computer system and secondary storage device
JPH1131376A (en) * 1997-07-09 1999-02-02 Sony Corp Information recording and reproducing device and its method
JP2009169475A (en) * 2008-01-10 2009-07-30 Nec Corp Storage device, data storage method, data readout method, and data storage location-data readout location determining program
JP5167888B2 (en) * 2008-03-19 2013-03-21 富士通株式会社 Virtual tape device and control method of virtual tape device
JP5296664B2 (en) * 2009-12-14 2013-09-25 インターナショナル・ビジネス・マシーンズ・コーポレーションＩｎｔｅｒｎａｔｉｏｎａｌ Ｂｕｓｉｎｅｓｓ Ｍａｃｈｉｎｅｓ Ｃｏｒｐｏｒａｔｉｏｎ Virtual tape recording apparatus and tape mount control method thereof
2011-09-27 JP JP2013535696A patent/JP5729479B2/en active Active
2011-09-27 WO PCT/JP2011/072105 patent/WO2013046342A1/en active Application Filing
2014-03-10 US US14/202,292 patent/US9513804B2/en active Active
US9513804B2 (en) 2016-12-06
US20140189232A1 (en) 2014-07-03
WO2013046342A1 (en) 2013-04-04
JPWO2013046342A1 (en) 2015-03-26
US9158673B2 (en) 2015-10-13 Use of differing granularity heat maps for caching and migration
US9753659B2 (en) 2017-09-05 Generating enumerated information in which a plurality of files are enumerated in a sequential medium
JP5023018B2 (en) 2012-09-12 Storage system and data management method
Ref document number: 5729479