CN113505052A - Magnetic tape unit management method, device, equipment and storage medium - Google Patents

Magnetic tape unit management method, device, equipment and storage medium Download PDF

Info

Publication number
CN113505052A
CN113505052A CN202110773833.1A CN202110773833A CN113505052A CN 113505052 A CN113505052 A CN 113505052A CN 202110773833 A CN202110773833 A CN 202110773833A CN 113505052 A CN113505052 A CN 113505052A
Authority
CN
China
Prior art keywords
read
write
magnetic tape
total
preset
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110773833.1A
Other languages
Chinese (zh)
Inventor
王晓勋
崔英男
宋允东
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202110773833.1A priority Critical patent/CN113505052A/en
Publication of CN113505052A publication Critical patent/CN113505052A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3466Performance evaluation by tracing or monitoring
    • G06F11/3476Data logging
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/22Matching criteria, e.g. proximity measures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/061Improving I/O performance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0673Single storage device
    • G06F3/0682Tape device

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Human Computer Interaction (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Evolutionary Computation (AREA)
  • Evolutionary Biology (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Artificial Intelligence (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The text belongs to the technical field of finance, and particularly relates to a method, a device, equipment and a storage medium for managing a tape drive, wherein the method comprises the following steps: acquiring the working data of a tape unit, wherein the working data comprises the total amount of read-write tapes and the total read-write duration; calculating to obtain a consumption value of the magnetic tape unit according to the working data of the magnetic tape unit and by combining a preset calculation function, wherein the preset calculation function is a function established by utilizing the working data of the magnetic tape unit and the consumption value; judging whether the tape unit needs to be replaced or not according to the consumption value of the tape unit and a preset critical value; if the tape unit needs to be replaced, the tape unit is replaced, rules for preventive replacement of the tape unit are established according to the tape unit working data, the tape unit with hidden danger can be effectively replaced, and therefore the accuracy of preventive replacement of the tape unit is improved.

Description

Magnetic tape unit management method, device, equipment and storage medium
Technical Field
The patent refers to the field of 'pictorial communication,'.
Background
In the field of financial science and technology, with the increase of application scenes, a large amount of data is generated all the time, massive data needs to be stored and backed up, and a finally stored medium is the most widely applied tape with the lowest cost at present. The device capable of reading and writing the magnetic tape is called as a magnetic tape unit, along with the gradual increase of backup operation, the self abrasion degree of the magnetic tape unit is increased, the sensitivity of a magnetic head is reduced, and the service life of the magnetic tape unit is gradually reduced. Therefore, how to judge the use condition of the magnetic tape unit timely and accurately and improve the accuracy of preventive replacement of the magnetic tape unit becomes a technical problem which needs to be solved urgently.
Disclosure of Invention
In view of the above-mentioned problems of the prior art, it is an object of the present invention to provide a method, apparatus, device and storage medium for managing a tape drive, which can improve the accuracy of preventive replacement of the tape drive.
In order to solve the technical problems, the specific technical scheme is as follows:
in one aspect, provided herein is a tape drive management method, the method comprising:
acquiring the working data of a tape unit, wherein the working data comprises the total amount of read-write tapes and the total read-write duration;
calculating to obtain a consumption value of the magnetic tape unit according to the working data of the magnetic tape unit and by combining a preset calculation function, wherein the preset calculation function is a function established by utilizing the working data of the magnetic tape unit and the consumption value;
judging whether the tape unit needs to be replaced or not according to the consumption value of the tape unit and a preset critical value;
and if the magnetic tape unit is judged to be required to be replaced, replacing the magnetic tape unit.
Further, the acquiring the tape drive working data includes:
acquiring an inspection log of a tape unit, wherein the inspection log comprises identification of read-write tapes and time length of each reel of tape in the tape unit;
and determining the total tape reading and writing amount and the total reading and writing time length of the tape unit according to the polling log.
Further, the calculating to obtain the consumption value of the tape drive according to the tape drive working data and by combining a preset calculation function includes:
determining a type of the tape drive;
matching the preset calculation function according to the type of the magnetic tape unit;
and bringing the working data into the preset calculation function, and calculating to obtain the consumption value of the tape unit.
Further, the matching the preset calculation function according to the type of the tape drive includes:
determining a first preset weight value of the total amount of the read-write magnetic tape and a second preset weight value of the total read-write time according to the type of the magnetic tape unit, wherein the first preset weight value and the second preset weight value are added to be 1;
and determining the preset calculation function according to the first preset weight value and the second preset weight value.
Further, the preset calculation function is:
Sx=Qx*α+(Tx/t0)*β,
wherein S isxConsumption value, Q, of tape drive xxTotal read and write tape amount, T, of tape drive xxTotal read-write duration, t, of tape drive x0The time length of a single disk read-write of a tape unit x is preset, alpha is a first preset weight value, beta is a second preset weight value, and alpha + beta is 1.
Further, the determining a first preset weight value of the total amount of the read-write magnetic tape and a second preset weight value of the total read-write time includes:
determining a type of the tape drive;
determining a first initial weight value of the total amount of the read-write magnetic tape and a second initial weight value of the total read-write time according to the type of the magnetic tape drive;
acquiring historical routing inspection logs of historical fault tape drives of the same type;
determining the total amount of historical read-write tapes and the total historical read-write duration in the historical fault tape drive according to the historical routing inspection log;
and adjusting the first initial weight value and the second initial weight value according to the total amount of the historical read-write magnetic tape and the total historical read-write time length so as to obtain the first preset weight value and the second preset weight value.
Further, the adjusting the first initial weight value and the second initial weight value according to the total amount of the history read-write magnetic tape and the total time length of the history read-write magnetic tape to obtain the first preset weight value and the second preset weight value includes:
when the total amount of the historical read-write magnetic tapes exceeds a first threshold value and the total time of the historical read-write magnetic tapes does not exceed a second threshold value, adjusting the first initial weight value and the second initial weight value according to a first adjustment rule;
and when the total amount of the historical read-write magnetic tapes does not exceed a first threshold value and the total historical read-write time exceeds a second threshold value, adjusting the first initial weight value and the second initial weight value according to a second adjustment rule.
Alternatively, the preset critical value is obtained by:
acquiring a history routing inspection log of a history fault magnetic tape unit;
determining the total amount of historical read-write tapes and the total historical read-write duration in the historical fault tape drive according to the historical routing inspection log;
and calculating to obtain a preset critical value of the magnetic tape unit according to the total historical read-write magnetic tape amount and the total historical read-write duration by combining a preset evaluation rule.
In another aspect, this document also provides a tape drive management apparatus comprising:
the device comprises a working data acquisition module, a data processing module and a data processing module, wherein the working data acquisition module is used for acquiring the working data of the magnetic tape unit, and the working data comprises the total amount of read-write magnetic tapes and the total read-write duration;
the consumption value calculation module is used for calculating the consumption value of the magnetic tape drive according to the working data of the magnetic tape drive by combining a preset calculation function, wherein the preset calculation function is a function established by utilizing the working data of the magnetic tape drive and the consumption value;
the judging module is used for judging whether the magnetic tape unit needs to be replaced or not according to the consumption value of the magnetic tape unit and a preset critical value;
and the magnetic tape unit replacing module is used for replacing the magnetic tape unit if the magnetic tape unit is judged to need to be replaced.
In another aspect, a computer device is also provided herein, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the method as described above when executing the computer program.
Finally, a computer-readable storage medium is also provided herein, which stores a computer program that, when executed by a processor, implements the method as described above.
By adopting the technical scheme, the method, the device, the equipment and the storage medium for managing the magnetic tape unit are characterized in that the total amount and the total time length of the magnetic tape are read and written in the working process of the magnetic tape unit, the consumption value of the magnetic tape unit is obtained by combining a preset calculation function, then the service life of the magnetic tape unit is evaluated according to the relation between the consumption value obtained by calculation and a preset critical value, and whether the magnetic tape unit needs to be replaced is further judged.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the embodiments or technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a schematic diagram illustrating steps of a tape drive management method provided by an embodiment herein;
FIG. 2 is a schematic diagram illustrating the operational data acquisition steps of a tape drive in an embodiment herein;
FIG. 3 is a diagram illustrating the steps of determining the preset weight values in the embodiment of the present disclosure;
FIG. 4 is a schematic diagram of a tape drive management apparatus provided by an embodiment herein;
fig. 5 shows a schematic structural diagram of a computer device provided in an embodiment herein.
Description of the symbols of the drawings:
100. a working data acquisition module;
200. a consumption value calculation module;
300. a judgment module;
400. a tape drive replacement module;
502. a computer device;
504. a processor;
506. a memory;
508. a drive mechanism;
510. an input/output module;
512. an input device;
514. an output device;
516. a presentation device;
518. a graphical user interface;
520. a network interface;
522. a communication link;
524. a communication bus.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments herein without making any creative effort, shall fall within the scope of protection.
It should be noted that the terms "first," "second," and the like in the description and claims herein and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments herein described are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, apparatus, article, or device that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or device.
In the prior art, a tape unit fault warning mechanism is incomplete, whether the tape unit is available or not cannot be judged timely and accurately, generally, part of abnormal tape units can be solved through restarting or determined after the tape unit loses connection or backup operation fails, and part of abnormal tape units need to be replaced, so that the replacement of the tape units is passive, and preventive active replacement cannot be achieved.
To solve the above problems, embodiments herein provide a tape drive management method capable of improving accuracy of preventive replacement of a tape drive. Fig. 1 is a schematic diagram of steps of a tape drive management method provided in an embodiment herein, and the present specification provides the method operation steps as described in the embodiment or the flowchart, but may include more or less operation steps based on conventional or non-inventive labor. The order of steps recited in the embodiments is merely one manner of performing the steps in a multitude of orders and does not represent the only order of execution. When an actual system or apparatus product executes, it can execute sequentially or in parallel according to the method shown in the embodiment or the figures. Specifically, as shown in fig. 1, the method may include:
s101: acquiring the working data of a tape unit, wherein the working data comprises the total amount of read-write tapes and the total read-write duration;
s102: calculating to obtain a consumption value of the magnetic tape unit according to the working data of the magnetic tape unit and by combining a preset calculation function, wherein the preset calculation function is a function established by utilizing the working data of the magnetic tape unit and the consumption value;
s103: judging whether the tape unit needs to be replaced or not according to the consumption value of the tape unit and a preset critical value;
s104: and if the magnetic tape unit is judged to be required to be replaced, replacing the magnetic tape unit.
It can be understood that, in this document, the operational data of the tape drive is used as the parameters of the consumption calculation of the tape drive, so as to calculate the consumption value representing the life state of the tape drive itself, and thus, the operational state of the tape drive itself can be determined in real time, and then, according to the preset critical value and the calculated consumption value, whether the tape drive has a potential safety hazard or not is judged, and further, when the potential safety hazard exists, the preset active replacement is performed, so that the backup operation failure caused by the tape drive failure is reduced, and the backup efficiency is improved.
The total amount of the read-write magnetic tape is the total amount of all the read-write magnetic tapes in the working process of the magnetic tape unit, and as the total amount of the read-write magnetic tape increases, the hardware wear of the magnetic tape unit becomes more and more serious, the sensitivity of a magnetic head is reduced, and the service life consumption of the magnetic tape unit also increases, so that the total amount of the read-write magnetic tape of the magnetic tape unit can reflect the service life condition of the magnetic tape unit to a certain extent. In addition, because the working efficiency (such as the read-write efficiency) of different (types of) magnetic tape units is different, the total amount of read-write magnetic tapes and the total read-write time in the whole life process of one magnetic tape unit are different to a certain extent, for example, if the read-write efficiency of some magnetic tape units is higher, the total amount of read-write magnetic tapes is more in the whole process or a certain time period, and the total read-write time is less, so that the consumption value of the magnetic tape unit is calculated by establishing a function of the total amount of read-write magnetic tapes and the total read-write time according to the self characteristics of different magnetic tape units, and the self life consumption condition of the magnetic tape unit is further represented, and the magnetic tape unit can be replaced preventively and actively.
In this embodiment, as shown in fig. 2, the acquiring the tape drive operating data includes:
s201: acquiring an inspection log of a tape unit, wherein the inspection log comprises identification of read-write tapes and time length of each reel of tape in the tape unit;
s202: and determining the total tape reading and writing amount and the total reading and writing time length of the tape unit according to the polling log.
The polling log is configured to check the work records of the magnetic tape drive according to a preset period, for example, record an identifier of each time the magnetic tape is read and written by the magnetic tape drive, and a time length of each reel of magnetic tape in the magnetic tape drive, where the total number of the magnetic tapes read and written by the magnetic tape drive, that is, the total number of the read and written magnetic tapes, can be determined by each time the identifier of each time the magnetic tape is read and written, and the total time length of all the read and written times of the magnetic tape drive can be calculated by the time length of each reel of magnetic tape in the magnetic tape drive, and the preset period is set according to an actual situation, for example, the work records of the magnetic tape drive can be obtained by checking once a week in a manual checking manner.
In a further embodiment, the length of time each tape reel is in the tape drive is accessible to and accessible from the tape drive via the tapeIs calculated, e.g. the time of the tape entering and exiting the tape drive is T1And T2If the time length of the magnetic disk in the tape unit is T, T is the time length of the magnetic disk in the tape unit2-T1. Therefore, after the time length of each reel of magnetic tape in the magnetic tape unit is obtained, the total time length of reading and writing of the magnetic tape unit can be obtained by adding all the time lengths.
In an embodiment of this specification, the obtaining, by calculation, a consumption value of the tape drive according to the tape drive operating data in combination with a preset calculation function includes:
determining a type of the tape drive;
matching the preset calculation function according to the type of the magnetic tape unit;
and bringing the working data into the preset calculation function, and calculating to obtain the consumption value of the tape unit.
In a further embodiment, the matching the preset calculation function according to the type of the tape drive includes:
determining a first preset weight value of the total amount of the read-write magnetic tape and a second preset weight value of the total read-write time according to the type of the magnetic tape unit, wherein the first preset weight value and the second preset weight value are added to be 1;
and determining the preset calculation function according to the first preset weight value and the second preset weight value.
It can be understood that, according to different types of tape drives, different weight values are set for the total amount of the read-write tape and the total read-write time, and then a corresponding preset calculation function is established, so as to realize the calculation of the consumption value of the tape drive. The specific weight of the total amount of the read-write magnetic tape and the total time length of the read-write magnetic tape in the preset calculation function can be represented by setting different weight values, that is, different proportions are set according to the read-write efficiency of different magnetic tape units, and the specific consumption condition of the corresponding magnetic tape unit can be accurately determined, wherein the weight values set differently for the total amount of the read-write magnetic tape and the total time length of the read-write magnetic tape are set according to actual conditions, and are not limited in the embodiments of the present specification.
In the embodiment of the present specification, the preset calculation function is:
Sx=Qx*α+(Tx/t0)*β, (1)
wherein S isxConsumption value, Q, of tape drive xxTotal read and write tape amount, T, of tape drive xxTotal read-write duration, t, of tape drive x0The time length of a single disk read-write of a tape unit x is preset, alpha is a first preset weight value, beta is a second preset weight value, and alpha + beta is 1.
Note that t in the formula (1)0The preset time for reading and writing a single disk of the magnetic tape unit x can be a designated value, for example, the designated value can be selected according to the theoretical working efficiency of the magnetic tape unit when the magnetic tape unit x is actually designated, and the higher the theoretical working efficiency is, the smaller the designated value is; the lower the theoretical operating efficiency, the larger the specified value. In some other embodiments, the t0The historical average efficiency of the tape drive may also be the historical average efficiency, that is, the total read-write tape amount and the total read-write time of the full life cycle of the historical failed tape drive are obtained by obtaining the historical failed tape drive corresponding to the tape drive type, and then the t corresponding to the tape drive type is determined0That is, the t is obtained by dividing the total read-write duration of the whole life cycle of the tape drive with the total read-write tape amount0Of course, to increase t0The reliability of the calculation can be selected from a plurality of history fault tape units, and t of each history fault tape unit is calculated0And further through a plurality of t0Average value of (1) to obtain the final t0
In the foregoing step, the determining the first preset weight value of the total amount of the read-write tape and the second preset weight value of the total time length of the read-write tape according to the type of the tape drive as shown in fig. 3 optionally includes:
s301: determining a first initial weight value of the total amount of the read-write magnetic tape and a second initial weight value of the total read-write time according to the type of the magnetic tape drive;
s302: acquiring historical routing inspection logs of historical fault tape drives of the same type;
s303: determining the total amount of historical read-write tapes and the total historical read-write duration in the historical fault tape drive according to the historical routing inspection log;
s304: and adjusting the first initial weight value and the second initial weight value according to the total amount of the historical read-write magnetic tape and the total historical read-write time length so as to obtain the first preset weight value and the second preset weight value.
The accuracy of determining the service life consumption of the different types of tape drives can be improved by determining the first preset weight value and the second preset weight value corresponding to the different types of tape drives, the types can be produced by different manufacturers, different models, different use scenes, production batches and the like, and the specification is not limited. The first initial weight value and the second initial weight value are set according to actual conditions, and in order to facilitate quick adjustment of different types of tape drives, both the first initial weight value and the second initial weight value may be set to 50%, and of course, other setting manners are also possible, which is not limited in the embodiments of the present specification.
In this embodiment of the present specification, the first initial weight value and the second initial weight value are adjusted by historical data, so that the adjusted weight values can be ensured to be closer to actual values, and thus the obtained calculation function is more accurate and reliable, optionally, in the process of adjusting the weight values, the adjusted weight values are adjusted according to a specific gravity relationship between the total amount of the read-write magnetic tapes in the history failure magnetic tape unit and the total read-write time duration, for example, when the total amount of the read-write magnetic tapes in the history failure magnetic tape unit is larger, it indicates that the read-write speed of the magnetic tape unit is fast in actual work, and the total read-write magnetic tapes account for more than the total read-write time duration in the life consumption calculation process; when the total read-write time in the history fault magnetic tape drive is longer, the fact that the read-write speed of the magnetic tape drive is lower in actual work is shown, and the total read-write time accounts for being larger than the total read-write magnetic tape in the service life consumption calculation process.
Therefore, optionally, the adjusting the first initial weight value and the second initial weight value according to the total amount of the historical read-write tapes and the total time length of the historical read-write tapes to obtain the first preset weight value and the second preset weight value includes:
when the total amount of the historical read-write magnetic tapes exceeds a first threshold value and the total time of the historical read-write magnetic tapes does not exceed a second threshold value, adjusting the first initial weight value and the second initial weight value according to a first adjustment rule;
and when the total amount of the historical read-write magnetic tapes does not exceed a first threshold value and the total historical read-write time exceeds a second threshold value, adjusting the first initial weight value and the second initial weight value according to a second adjustment rule.
It can be understood that, in this step, the weight value to be adjusted is determined according to the actual conditions of the total amount of the historical read-write magnetic tape and the total duration of the historical read-write magnetic tape, where the first threshold and the second threshold are set according to the actual conditions, and the first adjustment rule is to increase the first initial weight value and correspondingly decrease the second initial weight value; the second adjustment rule is to reduce the first initial weight value, correspondingly increase the second initial weight value, and obtain different preset weight values by adopting different adjustment rules according to the size relationship between the total amount of the different historical read-write tapes and the total duration of the historical read-write tapes, so that different preset calculation functions can be established according to different types of tape machines.
For example, the first threshold may be 200, the second threshold is 10h, and when the total amount of the history read/write magnetic tape is determined to be 300 by the history inspection log and the total duration of the history read/write magnetic tape is 8h, the first adjustment rule range is satisfied, at this time, the first initial weight (for example, 50%) may be adjusted to 60%, and the second initial weight (for example, 50%) may be adjusted to 40%, that is, the first preset weight is 60%, and the second preset weight is 40%. When the total amount of the history read-write magnetic tape is determined to be 100 through the history routing inspection log, and the total time length of the history read-write magnetic tape is 12h, the second adjustment rule range is met, at this time, the first initial weight value (for example, 50%) may be adjusted to 40%, the second initial weight value (for example, 50%) may be adjusted to 60%, that is, the first preset weight value is 40%, and the second preset weight value is 60%; when the total amount of the historical read-write magnetic tape and the total time length of the historical read-write magnetic tape are not in the above range, designating the first initial weight value as the first preset weight value, and designating the second initial weight value as the second preset weight value. The above is only one way of adjusting the first initial weight value and the second initial weight value in the embodiments of the present specification, and there may be other ways, which are not limited in the embodiments of the present specification.
It should be noted that, in order to improve the accuracy and reliability of the adjustment of the initial weight value of the magnetic tape units, multiple groups of history faulty magnetic tape units in the same type of magnetic tape units may be selected, and abnormal data (such as data with sudden change) in the multiple groups of history read-write magnetic tape units and the total history read-write duration are removed by acquiring the total amount of the history read-write magnetic tape units and the total history read-write duration, and then the final total history read-write magnetic tape units and the total history read-write duration are determined by calculating the average value of the preprocessed data, so as to perform the adjustment; in some other embodiments, the initial weight values of each group of data of the magnetic tape drive with the history failure may also be adjusted in sequence to obtain a plurality of groups of adjusted preset weight values (for example, a plurality of groups of first preset weight values and a plurality of groups of second preset weight values), and then the final first preset weight values and the final second preset weight values may be determined by averaging.
In a further embodiment, in the process of adjusting the initial weight value, the initial weight value may be determined according to a relationship between a first difference between the total historical read-write tape amount and the first threshold value, and a second difference between the total historical read-write tape length and the second threshold value, as optionally:
determining a first change rate of the total historical read-write tape amount and the first threshold value, and a second change rate of the total historical read-write time and the second threshold value;
determining the larger absolute value of the first change rate and the second change rate, and marking the larger absolute value as a target change rate;
determining an initial weight value and an adjusting method corresponding to the target change rate;
and adjusting the initial weight value according to the adjusting method and the target change rate.
For example, the first threshold may be 200, the second threshold is 10h, the total amount of the historical read/write tapes is 300, the total duration of the historical read/write tapes is 8h, then the first change rate (total amount of the historical read/write tapes-first threshold)/first threshold) (300-, for example, if the number of the tapes is increased by 4% in an equal difference manner, the adjusted first preset weight value is 50% + [ (300-.
Therefore, the adjusting method can be an adjusting mode set according to an equal difference, equal ratio or a designated mode, so that the first initial weight value and the second initial weight value can be adjusted in a targeted mode, and the accuracy of calculating the service life consumption of the tape drive is improved.
In the embodiment of the present specification, the critical value may be understood as the critical point of the life of the tape drive, that is, the consumption value obtained by counting the total amount of the read/write tapes and the total duration of the read/write in the life cycle of the tape drive. Alternatively, the preset critical value is obtained by:
acquiring a history routing inspection log of a history fault magnetic tape unit;
determining the total amount of historical read-write tapes and the total historical read-write duration in the historical fault tape drive according to the historical routing inspection log;
and calculating to obtain a preset critical value of the magnetic tape unit according to the total historical read-write magnetic tape amount and the total historical read-write duration by combining a preset calculation function.
It can be understood that, through the analysis of the historical tape drive with failure, the life value of the tape drive of the type can be determined (i.e. the calculated value through the preset calculation function), and the life value is used as the working critical value of the tape drive of the type, so that the active replacement can be effectively carried out preventively, the failure shutdown is avoided, the continuity of backup is improved, the timeliness of operation and maintenance is improved, and the method has great practical value.
Alternatively, the preset critical value is obtained by the following formula (2):
S0=Q0*α+(T0/t0)*β, (2)
wherein S is0For a predetermined threshold value, Q, of the tape drive0Reading and writing the total amount of tape for the history of the tape drive, T0Total time of history read/write, t, for the tape drive0The method is characterized in that the preset duration of reading and writing a single disk of a magnetic tape unit is represented by alpha which is a first preset weight value, beta which is a second preset weight value, and alpha + beta which is 1.
In a further embodiment, since there may be individual differences among the tape drives, and the life of the tape drives may fluctuate around a critical value, in order to improve the use range and reliability of the critical value, a tape drive replacement threshold value is determined as a replacement value, and the tape drive replacement threshold value is lower than the critical value, so that it can be determined that more tape drives can be replaced in time by the replacement threshold value, wherein the replacement threshold value may be 80% -95% of the critical value, and preferably, S is set1=S090% of where S1For changing threshold values of tape drives, S0Is a preset critical value of the tape drive.
Alternatively, since the preset critical value represents the maximum service life value of the tape drive, the difference between the preset critical value and the consumption value can be used as the remaining life of the tape drive, and a life safety value can be further set, wherein the remaining life of the tape drive is lower than the life safety value to ensure that the tape drive is within the normal operating performance range, and the life safety value is set according to actual conditions, such as a certain proportion, preferably 10%, of the total life of the tape drive (the preset critical value).
In practice, there may be a scenario where multiple sets of tape drives are operating simultaneously, and a preferred replacement tape drive may be determined by comparing tape drive consumption values, for example, taking two tape drives a and b as an example, if A, B represents the total amount of tape read/write for tape drive a and tape drive b, respectively, and Δ t represents the time duration in the tape drive per reel, the time t that can be entered in the tape drive per reel can be determined by the time t that each disk is entered in the tape driveIntoAnd a time of departure tGo outTo obtain, TA、TBThe total time for reading and writing is represented as:
a is 1+1+1 … … +1 (a total),
b is 1+1+1 … … +1 (total of B),
Δt=tgo out-tInto
Figure BDA0003153479620000121
Figure BDA0003153479620000122
The comparison results are output by data arrangement of the magnetic tape a and the magnetic tape b as the following table 1:
TABLE 1
Magnetic tape unit (a, b) TA>TB TA=TB TA<TB
A>B Change a Change a Further judgment
A=B Change a Both are equal to each other Change b
A<B Further judgment Change b Change b
Further, although the magnetic tape unit a and the magnetic tape unit b are the same type of magnetic tape unit, there is a certain difference in actual operation, so that the magnetic tape units with large consumption values can be preferably replaced by calculating and comparing the corresponding consumption values, and the specific replacement process is not limited in this specification.
The tape drive management method provided by the embodiment of the specification has the following beneficial effects:
1) the embodiment of the specification establishes a method for preventive replacement of a tape unit, which can effectively replace the tape unit with hidden danger and avoid backup operation failure caused by the tape unit as much as possible.
2) The method provided by the embodiment of the specification can timely acquire the health state of the tape drive, is convenient for operation and maintenance personnel to arrange, change and check, prevents the tape drive from being passively replaced, and improves the operation and maintenance timeliness.
3) The embodiment of the specification can provide the adjustment backup strategy to the user in time according to the workload carried by the tape unit, so as to prevent the backup operation of the individual tape unit from being overloaded excessively.
Based on the same inventive concept, embodiments of the present specification further provide a tape drive management apparatus, as shown in fig. 4, the apparatus includes:
a working data obtaining module 100, configured to obtain working data of a tape unit, where the working data includes a total amount of read/write tapes and a total read/write duration;
a consumption value calculation module 200, configured to calculate, according to the tape drive working data, a consumption value of the tape drive in combination with a preset calculation function, where the preset calculation function is a function established by using the tape drive working data and the consumption value;
a judging module 300, configured to judge whether the tape drive needs to be replaced according to the consumption value of the tape drive and a preset critical value;
a tape drive replacement module 400 configured to replace the tape drive if it is determined that the tape drive needs to be replaced.
The advantages achieved by the above device are consistent with those achieved by the above method, and are not limited in the embodiments of this specification.
It should be noted that the method and apparatus for managing a tape drive provided in the embodiments of the present disclosure may be used in an environment of data backup operation in a financial field, and may also be used in any field other than the financial field.
As shown in fig. 5, for a computer device provided for embodiments herein, the computer device 502 may include one or more processors 504, such as one or more Central Processing Units (CPUs), each of which may implement one or more hardware threads. The computer device 502 may also include any memory 506 for storing any kind of information, such as code, settings, data, etc. For example, and without limitation, memory 506 may include any one or more of the following in combination: any type of RAM, any type of ROM, flash memory devices, hard disks, optical disks, etc. More generally, any memory may use any technology to store information. Further, any memory may provide volatile or non-volatile retention of information. Further, any memory may represent fixed or removable components of computer device 502. In one case, when the processor 504 executes the associated instructions, which are stored in any memory or combination of memories, the computer device 502 can perform any of the operations of the associated instructions. The computer device 502 also includes one or more drive mechanisms 508, such as a hard disk drive mechanism, an optical disk drive mechanism, etc., for interacting with any memory.
Computer device 502 may also include an input/output module 510(I/O) for receiving various inputs (via input device 512) and for providing various outputs (via output device 514)). One particular output mechanism may include a presentation device 516 and an associated Graphical User Interface (GUI) 518. In other embodiments, input/output module 510(I/O), input device 512, and output device 514 may not be included, but merely as a single computer device in a network. Computer device 502 can also include one or more network interfaces 520 for exchanging data with other devices via one or more communication links 522. One or more communication buses 524 couple the above-described components together.
Communication link 522 may be implemented in any manner, such as through a local area network, a wide area network (e.g., the Internet), a point-to-point connection, etc., or any combination thereof. Communication link 522 may include any combination of hardwired links, wireless links, routers, gateway functions, name servers, etc., governed by any protocol or combination of protocols.
Corresponding to the methods in fig. 1-3, the embodiments herein also provide a computer-readable storage medium having stored thereon a computer program, which, when executed by a processor, performs the steps of the above-described method.
Embodiments herein also provide computer readable instructions, wherein when executed by a processor, a program thereof causes the processor to perform the method as shown in fig. 1-3.
It should be understood that, in various embodiments herein, the sequence numbers of the above-mentioned processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments herein.
It should also be understood that, in the embodiments herein, the term "and/or" is only one kind of association relation describing an associated object, meaning that three kinds of relations may exist. For example, a and/or B, may represent: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed herein may be embodied in electronic hardware, computer software, or combinations of both, and that the components and steps of the examples have been described in a functional general in the foregoing description for the purpose of illustrating clearly the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present disclosure.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided herein, it should be understood that the disclosed system, apparatus, and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may also be an electric, mechanical or other form of connection.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purposes of the embodiments herein.
In addition, functional units in the embodiments herein may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the present invention may be implemented in a form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the methods described in the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The principles and embodiments of this document are explained herein using specific examples, which are presented only to aid in understanding the methods and their core concepts; meanwhile, for the general technical personnel in the field, according to the idea of this document, there may be changes in the concrete implementation and the application scope, in summary, this description should not be understood as the limitation of this document.

Claims (11)

1. A method of tape drive management, the method comprising:
acquiring the working data of a tape unit, wherein the working data comprises the total amount of read-write tapes and the total read-write duration;
calculating to obtain a consumption value of the magnetic tape unit according to the working data of the magnetic tape unit and by combining a preset calculation function, wherein the preset calculation function is a function established by utilizing the working data of the magnetic tape unit and the consumption value;
judging whether the tape unit needs to be replaced or not according to the consumption value of the tape unit and a preset critical value;
and if the magnetic tape unit is judged to be required to be replaced, replacing the magnetic tape unit.
2. The method of claim 1, wherein said obtaining tape drive operational data comprises:
acquiring an inspection log of a tape unit, wherein the inspection log comprises identification of read-write tapes and time length of each reel of tape in the tape unit;
and determining the total tape reading and writing amount and the total reading and writing time length of the tape unit according to the polling log.
3. The method of claim 1, wherein the computationally obtaining the consumption value of the tape drive in conjunction with a predetermined computational function from the tape drive operational data comprises:
determining a type of the tape drive;
matching the preset calculation function according to the type of the magnetic tape unit;
and bringing the working data into the preset calculation function, and calculating to obtain the consumption value of the tape unit.
4. The method of claim 3, wherein said matching said pre-set computation function according to said tape drive type comprises:
determining a first preset weight value of the total amount of the read-write magnetic tape and a second preset weight value of the total read-write time according to the type of the magnetic tape unit, wherein the first preset weight value and the second preset weight value are added to be 1;
and determining the preset calculation function according to the first preset weight value and the second preset weight value.
5. The method of claim 3, wherein the predetermined calculation function is:
Sx=Qx*α+(Tx/t0)*β,
wherein S isxConsumption value, Q, of tape drive xxTotal read and write tape amount, T, of tape drive xxTotal read-write duration, t, of tape drive x0The time length of a single disk read-write of a tape unit x is preset, alpha is a first preset weight value, beta is a second preset weight value, and alpha + beta is 1.
6. The method of claim 4, wherein determining a first preset weight value of the total amount of read/write tapes and a second preset weight value of the total duration of read/write tapes according to the type of the tape drive comprises:
determining a first initial weight value of the total amount of the read-write magnetic tape and a second initial weight value of the total read-write time according to the type of the magnetic tape drive;
acquiring historical routing inspection logs of historical fault tape drives of the same type;
determining the total amount of historical read-write tapes and the total historical read-write duration in the historical fault tape drive according to the historical routing inspection log;
and adjusting the first initial weight value and the second initial weight value according to the total amount of the historical read-write magnetic tape and the total historical read-write time length so as to obtain the first preset weight value and the second preset weight value.
7. The method of claim 6, wherein the adjusting the first initial weight value and the second initial weight value according to the total amount of the historical read/write tape and the total time duration of the historical read/write tape to obtain the first preset weight value and the second preset weight value comprises:
when the total amount of the historical read-write magnetic tapes exceeds a first threshold value and the total time of the historical read-write magnetic tapes does not exceed a second threshold value, adjusting the first initial weight value and the second initial weight value according to a first adjustment rule;
and when the total amount of the historical read-write magnetic tapes does not exceed a first threshold value and the total historical read-write time exceeds a second threshold value, adjusting the first initial weight value and the second initial weight value according to a second adjustment rule.
8. The method according to claim 1, wherein the preset threshold value is obtained by:
acquiring a history routing inspection log of a history fault magnetic tape unit;
determining the total amount of historical read-write tapes and the total historical read-write duration in the historical fault tape drive according to the historical routing inspection log;
and calculating to obtain a preset critical value of the magnetic tape unit according to the total historical read-write magnetic tape amount and the total historical read-write duration by combining a preset calculation function.
9. A tape drive management apparatus, characterized in that the apparatus comprises:
the device comprises a working data acquisition module, a data processing module and a data processing module, wherein the working data acquisition module is used for acquiring the working data of the magnetic tape unit, and the working data comprises the total amount of read-write magnetic tapes and the total read-write duration;
the consumption value calculation module is used for calculating the consumption value of the magnetic tape drive according to the working data of the magnetic tape drive by combining a preset calculation function, wherein the preset calculation function is a function established by utilizing the working data of the magnetic tape drive and the consumption value;
the judging module is used for judging whether the magnetic tape unit needs to be replaced or not according to the consumption value of the magnetic tape unit and a preset critical value;
and the magnetic tape unit replacing module is used for replacing the magnetic tape unit if the magnetic tape unit is judged to need to be replaced.
10. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method according to any of claims 1 to 8 when executing the computer program.
11. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program which, when executed by a processor, implements the method of any one of claims 1 to 8.
CN202110773833.1A 2021-07-08 2021-07-08 Magnetic tape unit management method, device, equipment and storage medium Pending CN113505052A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110773833.1A CN113505052A (en) 2021-07-08 2021-07-08 Magnetic tape unit management method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110773833.1A CN113505052A (en) 2021-07-08 2021-07-08 Magnetic tape unit management method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113505052A true CN113505052A (en) 2021-10-15

Family

ID=78012249

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110773833.1A Pending CN113505052A (en) 2021-07-08 2021-07-08 Magnetic tape unit management method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113505052A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101197177A (en) * 2006-12-22 2008-06-11 四川川大智胜软件股份有限公司 Novel intelligent tape unit and data processing method
CN103064768A (en) * 2013-01-25 2013-04-24 北京捷成世纪科技股份有限公司 Method for archiving and backing up tape-based data and system thereof
CN105549918A (en) * 2016-02-18 2016-05-04 珠海全志科技股份有限公司 Data protecting method for memory card of automobile data recorder and device of data protecting method
CN107728954A (en) * 2017-11-06 2018-02-23 郑州云海信息技术有限公司 A kind of control method, device and the equipment of disk running status

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101197177A (en) * 2006-12-22 2008-06-11 四川川大智胜软件股份有限公司 Novel intelligent tape unit and data processing method
CN103064768A (en) * 2013-01-25 2013-04-24 北京捷成世纪科技股份有限公司 Method for archiving and backing up tape-based data and system thereof
CN105549918A (en) * 2016-02-18 2016-05-04 珠海全志科技股份有限公司 Data protecting method for memory card of automobile data recorder and device of data protecting method
CN107728954A (en) * 2017-11-06 2018-02-23 郑州云海信息技术有限公司 A kind of control method, device and the equipment of disk running status

Similar Documents

Publication Publication Date Title
JP4573179B2 (en) Performance load abnormality detection system, performance load abnormality detection method, and program
US9317349B2 (en) SAN vulnerability assessment tool
CN104956373A (en) Determining suspected root causes of anomalous network behavior
JP2010526352A (en) Performance fault management system and method using statistical analysis
US9858106B2 (en) Virtual machine capacity planning
US20130197863A1 (en) Performance and capacity analysis of computing systems
CN102833281B (en) It is a kind of distributed from the implementation method counted up, apparatus and system
CN110633893A (en) Policy efficiency monitoring method and device and computer equipment
CN104850394B (en) The management method and distributed system of distributed application program
US20160139956A1 (en) Monitoring overtime of tasks
JP6641112B2 (en) Guarantee cost estimation based on calculation of expected failure number of product
CN114169767A (en) Risk assessment method and device
US20170199800A1 (en) System and method for comprehensive performance and availability tracking using passive monitoring and intelligent synthetic transaction generation in a transaction processing system
CN115328975A (en) Patrol data uploading system and method based on industrial daily patrol
JP6119767B2 (en) Coping method creation program, coping method creation method, and information processing apparatus
JP2007249373A (en) Monitoring system of distributed program
US11487462B2 (en) Method and device of predicting inter-volume copy time based on inter-pool copy speed
JP6975086B2 (en) Quality evaluation method and quality evaluation equipment
CN109271270A (en) The troubleshooting methodology, system and relevant apparatus of bottom hardware in storage system
CN112416896A (en) Data abnormity warning method and device, storage medium and electronic device
CN113505052A (en) Magnetic tape unit management method, device, equipment and storage medium
US20120066370A1 (en) Business processes tracking
CN113608959B (en) Method, system, terminal and storage medium for positioning fault hard disk
CN106874201A (en) Method of testing and device
US11200097B2 (en) Device and method for optimizing the utilization over time of the resources of an IT infrastructure

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination