Method and apparatus for returning magnetic tape to a library

CN116483625BActive Publication Date: 2026-09-25INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310449717.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-04-24
Publication Date
2026-09-25
Estimated Expiration
2043-04-24

AI Technical Summary

Technical Problem

但是随着备份体量的增加,磁带库槽位已不满足磁带存放需求,所以需要运维人员将部分已经写满的磁带腾挪至磁带仓库

Benefits of technology

[0017]本发明实施例还提供一种计算机程序产品,所述计算机程序产品包括计算机程序,所述计算机程序被处理器执行时实现上述磁带退库方法。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116483625B_ABST
    Figure CN116483625B_ABST
Patent Text Reader

Abstract

The application discloses a magnetic tape withdrawal method and device, which can be used in the field of information security technology, and the method comprises the following steps: obtaining historical data recovery information and tape library state information; determining the recovery probability of each service and the recovery probability of each time period of each service according to the historical data recovery information; determining a magnetic tape set in which the written full time exceeds a preset time length; determining the backup information of each magnetic tape in the magnetic tape set; determining the probability of calling each magnetic tape according to the backup information of each magnetic tape, the recovery probability of each service and the recovery probability of each time period of each service; determining the magnetic tape withdrawal quantity according to the water level line of the tape library, the magnetic tape slot and the quantity of magnetic tapes to be stored; and determining the magnetic tapes to be withdrawn according to the probability of calling each magnetic tape and the magnetic tape withdrawal quantity. According to the application, the probability of calling each magnetic tape is predicted according to the historical data recovery information, and the data leakage risk in the magnetic tape carrying process is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of computer technology, and in particular to a method and apparatus for removing magnetic tapes from a memory bank. Background Technology

[0002] As business expands, the need for data backup continues to rise. Tape, as the data backup medium, was initially stored in tape libraries for tape drives to retrieve and back up production data. However, as the backup volume increased, the tape library slots were no longer sufficient to meet the storage requirements, necessitating maintenance personnel to move some full tapes to the tape repository. If a business line has a recovery need, and the backup data is stored on tapes located in the tape repository, maintenance personnel must retrieve tapes from the tape repository and add them to the tape library—a cumbersome process that can easily lead to data leaks.

[0003] Therefore, a method for returning magnetic tapes to the database is urgently needed to solve the above problems. Summary of the Invention

[0004] This invention provides a method for returning magnetic tapes to a storage facility, thereby reducing the number of magnetic tape in / out operations and lowering the risk of data leakage. The method includes:

[0005] Acquire historical data recovery information and tape library status information; the historical data recovery information includes the service to which the data belongs and the data recovery time period; the data recovery time period is used to indicate the time period between the data backup time and the data recovery time; the tape library status information includes the tape library water level, tape slots, and the number of tapes to be added to the library.

[0006] The recovery probability of each service and the recovery probability of each service in each time period are determined based on historical data recovery information.

[0007] Identify the set of tapes in the tape library that have been written for a duration exceeding a preset duration;

[0008] Determine the backup information for each tape in the tape set;

[0009] The probability of each tape being accessed is determined based on the backup information of each tape, the recovery probability of each service, and the recovery probability of each service at different time periods.

[0010] The number of tapes to be returned to the tape library is determined based on the tape library water level, tape slots, and the number of tapes to be added to the library.

[0011] The tapes to be returned are determined based on the probability of each tape being called and the number of tapes returned.

[0012] This invention also provides a magnetic tape return device to reduce the number of magnetic tape in / out operations and lower the risk of data leakage. The device includes:

[0013] The statistics module is used to acquire historical data recovery information and tape library status information. The historical data recovery information includes the business to which the data belongs and the data recovery time period. The data recovery time period is used to indicate the time period between the data backup time and the data recovery time. The tape library status information includes the tape library water level, tape slots, and the number of tapes to be added to the library. The recovery probability of each business and the recovery probability of each business in each time period are determined based on the historical data recovery information.

[0014] The tape return determination module is used to determine the set of tapes in the tape library that have been written for a longer than preset time; determine the backup information of each tape in the tape set; determine the probability of each tape being called up based on the backup information of each tape, the recovery probability of each service, and the recovery probability of each service in each time period; determine the number of tapes to be returned based on the tape library water level, tape slots, and the number of tapes to be added; and determine the tapes to be returned based on the probability of each tape being called up and the number of tapes to be returned.

[0015] This invention also provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the above-described tape ejection method.

[0016] This invention also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the above-described tape ejection method.

[0017] This invention also provides a computer program product, which includes a computer program that, when executed by a processor, implements the above-described tape ejection method.

[0018] In this embodiment of the invention, historical data recovery information and tape library status information are obtained; the recovery probability of each service and the recovery probability of each service in each time period are determined based on the historical data recovery information; a set of tapes in the tape library that have been filled for more than a preset time is identified; backup information of each tape in the tape set is determined; the probability of each tape being called is determined based on the backup information of each tape, the recovery probability of each service, and the recovery probability of each service in each time period; the number of tapes to be returned is determined based on the tape library water level, tape slots, and the number of tapes to be returned; and the tapes to be returned are determined based on the probability of each tape being called and the number of tapes to be returned. Compared with the prior art, the probability of each tape being called is predicted based on historical data recovery information, reducing the number of times filled tapes are returned to and from the library, and reducing the risk of data leakage during tape handling. Attached Figure Description

[0019] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort. In the drawings:

[0020] Figure 1 A schematic flowchart illustrating the magnetic tape return method provided by the present invention;

[0021] Figure 2 A schematic flowchart illustrating the magnetic tape return method provided by the present invention;

[0022] Figure 3 A schematic flowchart illustrating the magnetic tape return method provided by the present invention;

[0023] Figure 4 A schematic flowchart illustrating the magnetic tape return method provided by the present invention;

[0024] Figure 5 This is a schematic diagram of the magnetic tape ejection device provided by the present invention. Detailed Implementation

[0025] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the embodiments of the present invention will be further described in detail below with reference to the accompanying drawings. Here, the illustrative embodiments of the present invention and their descriptions are used to explain the present invention, but are not intended to limit the present invention.

[0026] Figure 1 This is a flowchart illustrating a tape return method provided in an embodiment of the present invention, as shown below. Figure 1 As shown, the method includes:

[0027] Step 101: Obtain historical data recovery information and tape library status information.

[0028] It should be noted that historical data recovery information includes the business to which the data belongs and the data recovery period; the data recovery period indicates the time between the data backup time and the data recovery time; tape library status information includes tape library water level, tape slots, and the number of tapes to be added to the library.

[0029] Step 102: Determine the recovery probability of each service and the recovery probability of each service in each time period based on historical data recovery information.

[0030] In this embodiment of the invention, the recovery probability P(Y) of each service Y and the recovery probability P(T|Y) of each service in each time period are calculated based on historical data recovery information.

[0031] Step 103: Determine the set of tapes in the tape library that have been written for a duration exceeding a preset duration.

[0032] Step 104: Determine the backup information for each tape in the tape set.

[0033] In one possible implementation, backup information for each tape in the tape set is accessed via the Veritas_NBU backup environment interface.

[0034] For example, it can be used to collect the identifiers of all full tapes that have been in the tape library for more than a year, as well as the backup information for each tape.

[0035] Step 105: Determine the probability of each tape being called based on the backup information of each tape, the recovery probability of each service, and the recovery probability of each service in each time period.

[0036] Step 106: Determine the number of tapes to be returned to the tape library based on the tape library water level line, tape slots, and the number of tapes to be returned.

[0037] Step 107: Determine the tapes to be returned based on the probability of each tape being called and the number of tapes returned.

[0038] The above solution predicts the probability of each tape being called based on historical data recovery information, reducing the number of times full tapes are moved in and out of the warehouse, and lowering the risk of data leakage during tape handling.

[0039] In this embodiment of the invention, the backup information of each tape includes multiple image information, which are obtained from different data backups. In step 105, the probability of each tape being called is determined based on the backup information of each tape, the recovery probability of each service, and the recovery probability of each service in each time period. The steps are as follows: Figure 2 As shown, the details are as follows:

[0040] Step 201: Determine the probability that each image information will not be recovered based on the recovery probability of each service and the recovery probability of each service in each time period.

[0041] Step 202: Determine the probability that each tape will not be recovered based on the backup information of each tape and the probability that each image information will not be recovered.

[0042] Step 203: Determine the probability of each tape being retrieved based on the probability that each tape will not be recovered.

[0043] In this embodiment of the invention, the probability of each tape not being recovered is determined by the Bayesian probability statistics method based on the probability that the backup information of each tape and each image information will not be recovered.

[0044] The probability that each image information cannot be recovered is calculated using the following formula:

[0045]

[0046] P(Y N P(T) represents the recovery probability of the service to which the mirror information N belongs; N |Y N P(N) represents the probability of recovery of mirror information N within the time period of its respective service; P(N) represents the probability that mirror information N will not be recovered.

[0047] If a magnetic tape M has k mirror images (1,2,...,k), corresponding to services Y1,Y2,...,Y... k The time periods T1, T2, ..., T belong to. k The probability that the entire tape M will not be recovered is...

[0048] The probability that the entire magnetic tape M can be recovered is:

[0049]

[0050] In step 107 of this embodiment of the invention, the tapes to be returned are determined based on the probability of each tape being called and the number of tapes returned. The process is as follows: Figure 3 As shown, the details are as follows:

[0051] Step 301: Sort the multiple tapes in the tape set according to the probability of each tape being called, and obtain the sorting result.

[0052] Step 302: Determine the tapes to be returned to the warehouse based on the sorting results.

[0053] In one possible implementation, the tapes are arranged in ascending order of their probability of being called and then pushed to the maintenance personnel.

[0054] Figure 4 This is a flowchart illustrating a tape return method provided in an embodiment of the present invention, as shown below. Figure 4 As shown, the method includes:

[0055] Step 401: Use the Veritas_NBU backup environment interface to call the backup information of tapes that have been filled with data for more than a year in the tape library.

[0056] Step 402: Determine the probability of each tape being called based on the backup information of each tape, the recovery probability of each service, and the recovery probability of each service in each time period.

[0057] Step 403: Determine the tapes to be returned to the database based on the probability of each tape being called and push them to the maintenance personnel.

[0058] The above solution reduces the number of times fully written tapes are moved in and out of the warehouse, thus lowering the risk of data leakage during tape handling.

[0059] This invention also provides a magnetic tape ejection device, as described in the following embodiments. This device is as follows... Figure 5 As shown, the device includes:

[0060] The statistics module 501 is used to acquire historical data recovery information and tape library status information. The historical data recovery information includes the business to which the data belongs and the data recovery time period. The data recovery time period is used to indicate the time period between the data backup time and the data recovery time. The tape library status information includes the tape library water level, tape slots, and the number of tapes to be added to the library. The recovery probability of each business and the recovery probability of each business in each time period are determined based on the historical data recovery information.

[0061] The tape library deduction module 502 is used to determine the set of tapes in the tape library that have been written for a duration exceeding a preset time; determine the backup information of each tape in the tape set; and, based on the backup information of each tape and the recovery of each service...

[0062] The probability of each tape being called is determined by the recovery probability and the recovery probability of each service at each time period; the number of tapes to be returned is determined by the tape library water level, tape slots, and the number of tapes to be returned; and the number of tapes to be returned is determined by the probability of each tape being called and the number of tapes to be returned.

[0063] In this embodiment of the invention, the backup information of each tape includes multiple mirror information, which are obtained from different data backups. The tape to be returned determination module 502 is specifically used for:

[0064] The probability of each image information not being recovered is determined based on the recovery probability of each service and the recovery probability of each service in different time periods.

[0065] The probability of each tape not being recoverable is determined based on the backup information of each tape and the probability that each image information is not recoverable.

[0066] The probability of each tape being retrieved is determined based on the probability that each tape will not be recovered.

[0067] In this embodiment of the invention, the tape recycle bin determination module 502 is specifically used for:

[0068] The probability of each tape not being recoverable is determined by using a Bayesian probability statistical method based on the probability that the backup information and each image information of each tape will not be recovered.

[0069] In this embodiment of the invention, the tape recycle bin determination module 502 is specifically used for:

[0070] The probability that each image information cannot be recovered is calculated using the following formula:

[0071]

[0072] P(Y N T represents the recovery probability of the service to which the mirror information N belongs; N The probability of recovery for the time period to which the mirror information N belongs; Let N be the probability that the mirrored information N will not be recovered.

[0073] In this embodiment of the invention, the tape recycle bin determination module 502 is specifically used for:

[0074] The tapes in the tape set are sorted according to the probability of each tape being called, and the sorting result is obtained.

[0075] The tapes to be returned are determined based on the sorting results.

[0076] In this embodiment of the invention, the tape recycle bin determination module 502 is specifically used for:

[0077] The backup information for each tape in the tape set is accessed through the Veritas_NBU backup environment interface.

[0078] Since the principle behind this device is similar to that of the tape ejection method, the implementation of this device can be found in the implementation of the tape ejection method, and the repetitive parts will not be repeated.

[0079] This invention also provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the above-described tape ejection method.

[0080] This invention also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the above-described tape ejection method.

[0081] This invention also provides a computer program product, which includes a computer program that, when executed by a processor, implements the above-described tape ejection method.

[0082] In this embodiment of the invention, historical data recovery information and tape library status information are obtained; the recovery probability of each service and the recovery probability of each service in each time period are determined based on the historical data recovery information; a set of tapes in the tape library that have been filled for more than a preset time is identified; backup information of each tape in the tape set is determined; the probability of each tape being called is determined based on the backup information of each tape, the recovery probability of each service, and the recovery probability of each service in each time period; the number of tapes to be returned is determined based on the tape library water level, tape slots, and the number of tapes to be returned; and the tapes to be returned are determined based on the probability of each tape being called and the number of tapes to be returned. Compared with the prior art, the probability of each tape being called is predicted based on historical data recovery information, reducing the number of times filled tapes are returned to and from the library, and reducing the risk of data leakage during tape handling.

[0083] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, systems, or computer program products. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0084] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0085] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0086] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0087] The specific embodiments described above further illustrate the purpose, technical solution, and beneficial effects of the present invention. It should be understood that the above descriptions are merely specific embodiments of the present invention and are not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.

Claims

1. A method for returning magnetic tapes, characterized in that, include: Acquire historical data recovery information and tape library status information; the historical data recovery information includes the service to which the data belongs and the data recovery time period; the data recovery time period is used to indicate the time period between the data backup time and the data recovery time; the tape library status information includes the tape library water level, tape slots, and the number of tapes to be added to the library. The recovery probability of each service and the recovery probability of each service in each time period are determined based on historical data recovery information. Identify the set of tapes in the tape library that have been written for a duration exceeding a preset duration; Determine the backup information for each tape in the tape set; The probability of each tape being accessed is determined based on the backup information of each tape, the recovery probability of each service, and the recovery probability of each service at different time periods. The number of tapes to be returned to the tape library is determined based on the tape library water level, tape slots, and the number of tapes to be added to the library. The tapes to be returned are determined based on the probability of each tape being called and the number of tapes returned.

2. The magnetic tape return method as described in claim 1, characterized in that, The backup information for each tape includes multiple image information, which are obtained from different data backups. The determination of the probability of each tape being accessed based on the backup information of each tape, the recovery probability of each service, and the recovery probability of each service at different time periods includes: The probability of each image information not being recovered is determined based on the recovery probability of each service and the recovery probability of each service in different time periods. The probability of each tape not being recoverable is determined based on the backup information of each tape and the probability that each image information is not recoverable. The probability of each tape being retrieved is determined based on the probability that each tape will not be recovered.

3. The magnetic tape return method as described in claim 2, characterized in that, The determination of the probability that each tape cannot be recovered based on the backup information of each tape and the probability that each image information cannot be recovered includes: The probability of each tape not being recoverable is determined by using a Bayesian probability statistical method based on the probability that the backup information and each image information of each tape will not be recovered.

4. The magnetic tape return method as described in claim 2, characterized in that, The probability that each image information cannot be recovered is calculated using the following formula: P(Y N T represents the recovery probability of the service to which the mirror information N belongs; N The probability of recovery for the time period to which the mirror information N belongs; Let N be the probability that the mirrored information N will not be recovered.

5. The magnetic tape return method as described in claim 1, characterized in that, The process of determining the tapes to be returned based on the probability of each tape being called and the number of tapes returned includes: The tapes in the tape set are sorted according to the probability of each tape being called, and the sorting result is obtained. The tapes to be returned are determined based on the sorting results.

6. The magnetic tape return method as described in claim 1, characterized in that, The process of determining the backup information for each tape in the tape set includes: The backup information for each tape in the tape set is accessed through the Veritas_NBU backup environment interface.

7. A magnetic tape ejection device, characterized in that, include: The statistics module is used to acquire historical data recovery information and tape library status information. The historical data recovery information includes the business to which the data belongs and the data recovery time period. The data recovery time period is used to indicate the time period between the data backup time and the data recovery time. The tape library status information includes the tape library water level, tape slots, and the number of tapes to be added to the library. The recovery probability of each business and the recovery probability of each business in each time period are determined based on the historical data recovery information. The tape library rejection module is used to identify the set of tapes in the tape library that have been written for a duration exceeding a preset duration. Determine the backup information for each tape in the tape set; determine the probability of each tape being called up based on the backup information of each tape, the recovery probability of each service, and the recovery probability of each service in each time period; determine the number of tapes to be returned to the library based on the tape library water level, tape slots, and the number of tapes to be returned to the library; determine the tapes to be returned to the library based on the probability of each tape being called up and the number of tapes to be returned to the library.

8. A computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the method of any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the method of any one of claims 1 to 6.

10. A computer program product, characterized in that, The computer program product includes a computer program that, when executed by a processor, implements the method of any one of claims 1 to 6.

Citation Information

Patent Citations

  • Method for archiving and backing up tape-based data and system thereof

    CN103064768A

  • Database access method, device and system

    CN111930719A