The present disclosure relates to an information processing apparatus, an information processing method, and an information processing program.
A technique of dividing a data partition of a magnetic tape including an index partition and a data partition into a plurality of partitions and reclaiming data recorded in the magnetic tape is disclosed (refer to JP2015-103033A).
In addition, in a case of migrating data from a migration-source magnetic tape to a migration-destination magnetic tape, a technique of recording data recorded in a migration-source magnetic tape in a migration-destination magnetic tape in descending order of access frequency of the data recorded in the migration-source magnetic tape is disclosed (refer to JP2010-152603A).
On the other hand, as described in JP2015-103033A, a recent magnetic tape may be divided into partitions, for example, a first partition in which data is to be recorded and a second partition in which metadata related to the data is to be recorded. Further, in such a magnetic tape, a data group is recorded in the first partition, and a metadata group is recorded in the second partition.
In general, a size of the data varies depending on the data. On the other hand, a size of the metadata does not depend on the data, and has a small variation compared to the size of the data. For this reason, in a case of recording, in a new magnetic tape, a set of the data group and the metadata group recorded in the magnetic tape as described above, the following problems may occur.
For example, in a case where relatively large amounts of data of which the size is relatively large and metadata related to the data are recorded in a recording-destination magnetic tape, even though a free capacity exists in the second partition and the metadata can be recorded in the second partition, in some cases, a free capacity does not exist in the first partition, and as a result, the data cannot be recorded in the first partition.
On the other hand, in a case where relatively large amounts of data of which the size is relatively small and metadata related to the data are recorded in a recording-destination magnetic tape, even though a free capacity exists in the first partition and the data can be recorded in the first partition, in some cases, a free capacity does not exist in the second partition, and as a result, the metadata cannot be recorded in the second partition.
In these cases, even though a free capacity exists in any one of the partitions, a free capacity does not exist in the other of the partitions. As a result, a set of the metadata and the data cannot be recorded in the magnetic tape. Thus, the magnetic tape cannot be efficiently used.
The present disclosure has been made in view of the above circumstances, and an object of the present disclosure is to provide an information processing apparatus, an information processing method, and an information processing program capable of efficiently using a magnetic tape.
According to an aspect of the present disclosure, there is provided an information processing apparatus including: at least one processor, in which the processor is configured to perform, in a case where an object including at least one of data or metadata related to the data is recorded in a magnetic tape, control of reading one or more object groups and one or more metadata groups recorded in the magnetic tape including a first partition in which one or more objects are to be recorded and a second partition in which pieces of the metadata are to be recorded, and determine, in a case of recording the object groups in the first partition of a certain magnetic tape of a plurality of magnetic tapes different from the magnetic tape and recording the metadata groups in the second partition of the certain magnetic tape, for a set of the one or more object groups and the one or more metadata groups, a magnetic tape as a recording destination of the object groups and the metadata groups, from the plurality of magnetic tapes, according to a ratio between a size of the object groups and a size of the metadata groups.
In the information processing apparatus according to the aspect of the present disclosure, the processor may be configured to determine the magnetic tape as a recording destination of the object groups and the metadata groups such that, for at least one magnetic tape of the plurality of magnetic tapes, among all of the object groups and all of the metadata groups recorded in a migration-source magnetic tape, a ratio between a total size of the object groups to be recorded in the at least one magnetic tape and a total size of the metadata groups to be recorded in the at least one magnetic tape is a ratio between a size of the first partition of the at least one magnetic tape and a size of the second partition of the at least one magnetic tape.
Further, according to another aspect of the present disclosure, there is provided an information processing method executed by a processor of an information processing apparatus, the method including: performing, in a case where an object including at least one of data or metadata related to the data is recorded in a magnetic tape, control of reading one or more object groups and one or more metadata groups recorded in the magnetic tape including a first partition in which one or more objects are to be recorded and a second partition in which pieces of the metadata are to be recorded; and determining, in a case of recording the object groups in the first partition of a certain magnetic tape of a plurality of magnetic tapes different from the magnetic tape and recording the metadata groups in the second partition of the certain magnetic tape, for a set of the one or more object groups and the one or more metadata groups, a magnetic tape as a recording destination of the object groups and the metadata groups, from the plurality of magnetic tapes, according to a ratio between a size of the object groups and a size of the metadata groups.
Further, according to still another aspect of the present disclosure, there is provided an information processing program for causing a processor of an information processing apparatus to execute a process including: performing, in a case where an object including at least one of data or metadata related to the data is recorded in a magnetic tape, control of reading one or more object groups and one or more metadata groups recorded in the magnetic tape including a first partition in which one or more objects are to be recorded and a second partition in which pieces of the metadata are to be recorded; and determining, in a case of recording the object groups in the first partition of a certain magnetic tape of a plurality of magnetic tapes different from the magnetic tape and recording the metadata groups in the second partition of the certain magnetic tape, for a set of the one or more object groups and the one or more metadata groups, a magnetic tape as a recording destination of the object groups and the metadata groups, from the plurality of magnetic tapes, according to a ratio between a size of the object groups and a size of the metadata groups.
According to the present disclosure, the magnetic tape can be efficiently used.
Hereinafter, an example of an embodiment for performing a technique according to the present disclosure will be described in detail with reference to the drawings.
First, a configuration of a recording and reproducing system 10 according to the present embodiment will be described with reference to
The tape library 14 includes a plurality of slots (not illustrated) and a plurality of tape drives 18, and each slot includes a magnetic tape T as an example of a recording medium. Each tape drive 18 is connected to the information processing apparatus 12. Examples of the magnetic tape T include a linear tape-open (LTO) tape.
In a case where the information processing apparatus 12 writes or reads data to or from the magnetic tape T, the magnetic tape T as a write target or a read target is loaded from the slot into a predetermined tape drive 18. In a case where data is written or read to and from the magnetic tape T loaded into the tape drive 18, the magnetic tape T is unloaded from the tape drive 18 into the slot in which the magnetic tape T is originally included.
In the present embodiment, as an example, as illustrated in
Next, a configuration of the magnetic tape T according to the present embodiment will be described with reference to
In the present embodiment, as illustrated in
Further, in the present embodiment, as illustrated in
In general, a size of the data varies depending on the data. On the other hand, a size of the metadata does not depend on the data, and has a small variation compared to the size of the data. For this reason, as an example, as illustrated in
In the magnetic tape T in which a plurality of object groups are recorded as described above, in a case where the objects are migrated without considering the ratio H1 and a ratio H2 between the size of the data partition DP and the size of the reference partition RP, the following problems may occur.
For example, in a case where only a group of objects each of which the size of the data is relatively large is recorded in a specific magnetic tape T2, in the magnetic tape T2, the reference partition RP has a free capacity, but the data partition DP may not have free capacity. In this case, an object cannot be recorded in the magnetic tape T2.
On the other hand, in a case where only a group of objects each of which the size of the data is relatively small is recorded in a specific magnetic tape T2, in the magnetic tape T2, the data partition DP has a free capacity, but the reference partition RP may not have free capacity. In this case, an object cannot be recorded in the magnetic tape T2.
In these cases, the magnetic tape T cannot be efficiently used. For this reason, in the present embodiment, which of the plurality of magnetic tapes T2 is used as a recording destination of the object group and the metadata group is determined according to the ratio H1 between the size of the object group and the size of the corresponding metadata group, the object group and the metadata group being recorded in each magnetic tape T1. This problem may also occur even in a case where a variation in the size of the data is smaller than a variation in the size of the metadata.
The metadata group may be recorded in the reference partition RP every time an object group having a certain size is recorded in the data partition DP. The tape drive 18 has a data compression function. Thus, even in a case where an instruction to record a metadata group is input from the information processing apparatus 12 to the tape drive 18 every time an object group having a certain size is recorded, the ratio H1 in the magnetic tape T differs depending on a compression rate. Therefore, even in this case, the above problem may occur.
Further, every time a certain time is elapsed, the metadata group included in the object group recorded in the data partition DP may be recorded in the reference partition RP. The objects recorded in the magnetic tape T may differ depending on a time zone. Even in this case, the above problem may occur.
Next, a hardware configuration of the information processing apparatus 12 according to the present embodiment will be described with reference to
The storage unit 22 is realized by a hard disk drive (HDD), a solid state drive (SSD), a flash memory, or the like. An information processing program 30 is stored in the storage unit 22 as a storage medium. The CPU 20 reads the information processing program 30 from the storage unit 22, develops the read information processing program 30 in the memory 21, and executes the developed information processing program 30. Examples of the information processing apparatus 12 include a server computer and the like.
Next, a functional configuration of the information processing apparatus 12 according to the present embodiment will be described with reference to
The first controller 40 performs control of reading the metadata groups recorded in the reference partitions RPs of all the migration-source magnetic tapes T1. By the control, the first controller 40 acquires the metadata groups recorded in the reference partitions RPs of all the magnetic tapes T1 by reading the metadata groups by the tape drive 18. The first controller 40 specifies, by using the acquired metadata groups, a size of the object groups recorded in the data partitions DPs of all the migration-source magnetic tapes T1 and a size of the metadata groups that correspond to the object groups and are recorded in the reference partitions RPs of all the migration-source magnetic tapes T1. The size of the object groups can be obtained from pieces of data size information included in the metadata groups.
The determination unit 42 determines, for a set of each object group and each metadata group, a magnetic tape T2 as a recording destination of the object group and the metadata group, from the plurality of magnetic tapes T2, according to the ratio H1 between the size of the object groups and the size of the metadata groups. A specific example of this processing will be described with reference to
The determination unit 42 determines some magnetic tapes T2 in which the object groups and the metadata groups are to be recorded as a whole, from a total size of the object groups and the metadata groups recorded in each magnetic tape T1 and a size of each magnetic tape T2. Here, the total size of the object groups and the metadata groups recorded in each magnetic tape T1 means a total value of the sizes of all the object groups and the metadata groups. Further, a size of the magnetic tape T2 means a total value of the size of the data partition DP and the size of the reference partition RP.
For example, in a case where the total size of the object groups and the metadata groups is 500 TB, the number of the magnetic tapes T2 is 3, and the size of each of the three magnetic tapes T2 is 200 TB, the determination unit 42 determines two magnetic tapes T2, as the magnetic tapes T2 in which the object groups and the metadata groups are to be recorded as a whole. In this case, the object groups and the metadata groups are recorded in approximately half of the entire area of the remaining one magnetic tape T2. In the following, the magnetic tape T2 in which the object groups and the metadata groups are to be recorded as a whole is referred to as “first magnetic tape T2”, and the remaining magnetic tape T2 is referred to as “second magnetic tape T2”. In the example of
Next, the determination unit 42 determines, from all the object groups and all the metadata groups recorded in magnetic tapes T1, the magnetic tape T2 as a recording destination of the object groups and the metadata groups such that a ratio H1 in the first magnetic tape T2 between the total size of the object groups to be recorded and the total size of the metadata groups to be recorded is a ratio H2 in the first magnetic tape T2 between the size of the data partition DP and the size of the reference partition RP.
Specifically, the determination unit 42 determines a combination of the plurality of the object groups and the metadata groups in which the ratio H1 is the ratio H2 in each of the first magnetic tapes T2, from all the object groups and all the metadata groups recorded in the magnetic tapes T1, the plurality of the object groups and the metadata groups satisfying the following conditions. In this case, the determination unit 42 further determines a combination of the plurality of the object groups and the metadata groups in which a total value of the total size of the object groups and the total size of the metadata groups is equal to or larger than a predetermined ratio (for example, 98%) of the size of the first magnetic tape T2 and equal to or smaller than the size of the first magnetic tape T2. In the example of
The determination unit 42 determines the corresponding first magnetic tape T2 as a recording-destination magnetic tape T2 for each object group and each metadata group included in the determined combination of the plurality of the object groups and the metadata groups. In this case, the ratio H1 in the combination of the plurality of the object groups and the metadata groups may not exactly match the ratio H2 in the first magnetic tape T2. The ratio H1 in the combination of the plurality of object groups and the metadata groups may be included in a range obtained by adding a predetermined margin to the ratio H2 in the first magnetic tape T2. More specifically, in the example of the magnetic tape “tape 1” in
Further, the determination unit 42 determines a second magnetic tape T2 as a recording-destination magnetic tape T2 for the remaining object groups and the remaining metadata groups other than the object groups and the metadata groups for which the recording-destination magnetic tape T2 is determined as described above. For this reason, in the second magnetic tape T2, a difference between the ratio H1 in the object groups and the metadata groups to be recorded and the ratio H2 in the second magnetic tape T2 may be relatively large. On the other hand, since the second magnetic tape T2 has a free capacity, after the migration is performed, the ratio H1 in the object groups and the metadata groups to be added to the second magnetic tape T2 may be taken into consideration. Thereby, the ratio H1 in the object groups and the metadata groups recorded in the second magnetic tape T2 after the migration can be brought close to the ratio H2. Therefore, the magnetic tape T2 can be efficiently used.
The second controller 44 performs control of reading all the object groups and all the metadata groups recorded in each magnetic tape T1. The second controller 44 performs control of recording each set of all the object groups and all the metadata groups in the magnetic tape T2 determined by the determination unit 42.
Next, an operation of the information processing apparatus 12 according to the present embodiment will be described with reference to
In step S10 of
In step 514, the second controller 44 performs control of reading all the object groups and all the metadata groups recorded in each magnetic tape T1. The second controller 44 performs control of recording each set of all the object groups and all the metadata groups in the magnetic tape T2 determined in step S12.
As described above, according to the present embodiment, for each set of the object groups and the metadata groups recorded in each magnetic tape T1, a magnetic tape T2 as a recording destination of the object groups and the metadata groups is determined, from the plurality of magnetic tapes T2, according to the ratio H1 between the size of the object groups and the size of the metadata groups. Therefore, the magnetic tape T2 can be efficiently used.
In the embodiments, in a case where the information processing apparatus 12 records the object in the data partition DP of the magnetic tape T, a case where the object is recorded in order of the metadata and the data has been described (refer to
Further, in the embodiment, for example, as a hardware structure of a processing unit that executes various processing such as the first controller 40, the determination unit 42, and the second controller 44, the following various processors may be used. The various processors include, as described above, a CPU which is a general-purpose processor that functions as various processing units by executing software (program), and a dedicated electric circuit which is a processor having a circuit configuration specifically designed to execute specific processing, such as a programmable logic device (PLD) or an application specific integrated circuit (ASIC) that is a processor of which the circuit configuration may be changed after manufacturing such as a field programmable gate array (FPGA).
One processing unit may be configured by one of these various processors, or may be configured by a combination of two or more processors of the same type or different types (for example, a combination of a plurality of FPGAs or a combination of a CPU and an FPGA). Further, the plurality of processing units may be configured by one processor.
As an example in which the plurality of processing units are configured by one processor, firstly, as represented by a computer such as a client and a server, a form in which one processor is configured by a combination of one or more CPUs and software and the processor functions as the plurality of processing units may be adopted. Secondly, as represented by a system on chip (SoC) or the like, a form in which a processor that realizes the function of the entire system including the plurality of processing units by one integrated circuit (IC) chip is used may be adopted. As described above, the various processing units are configured by using one or more various processors as a hardware structure.
Further, as the hardware structure of the various processors, more specifically, an electric circuit (circuitry) in which circuit elements such as semiconductor elements are combined may be used.
Further, in the embodiment, an example in which the information processing program 30 is stored (installed) in the storage unit 22 in advance has been described. On the other hand, the present disclosure is not limited thereto. The information processing program 30 may be provided by being recorded in a recording medium such as a compact disc read only memory (CD-ROM), a digital versatile disc read only memory (DVD-ROM), or a Universal Serial Bus (USB) memory. Further, the information processing program 30 may be downloaded from an external apparatus via a network.
In the disclosure of Japanese Patent Application No. 2020-034304, filed Feb. 28, 2020, the entire contents of which are incorporated herein by reference. Further, all documents, patent applications, and technical standards mentioned in this specification are incorporated herein by reference to the same extent as in a case where each document, each patent application, and each technical standard are specifically and individually described by being incorporated by reference.
Number | Date | Country | Kind |
---|---|---|---|
2020-034304 | Feb 2020 | JP | national |
This application is a continuation application of International Application No. PCT/JP2021/000907, filed on Jan. 13, 2021, the disclosure of which is incorporated herein by reference in its entirety. Further, this application claims priority from Japanese Patent Application No. 2020-034304, filed on Feb. 28, 2020, the disclosure of which is incorporated herein by reference in its entirety.
Number | Date | Country | |
---|---|---|---|
Parent | PCT/JP2021/000907 | Jan 2021 | US |
Child | 17819319 | US |