CN102063347B - Magnetic tape data recovery method and system - Google Patents

Magnetic tape data recovery method and system Download PDF

Info

Publication number
CN102063347B
CN102063347B CN 201010611713 CN201010611713A CN102063347B CN 102063347 B CN102063347 B CN 102063347B CN 201010611713 CN201010611713 CN 201010611713 CN 201010611713 A CN201010611713 A CN 201010611713A CN 102063347 B CN102063347 B CN 102063347B
Authority
CN
China
Prior art keywords
recovery
data
tape
type
target environment
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.)
Active
Application number
CN 201010611713
Other languages
Chinese (zh)
Other versions
CN102063347A (en
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 CN 201010611713 priority Critical patent/CN102063347B/en
Publication of CN102063347A publication Critical patent/CN102063347A/en
Application granted granted Critical
Publication of CN102063347B publication Critical patent/CN102063347B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)

Abstract

The invention provides a magnetic tape data recovery method and a magnetic tape data recovery system. The system comprises a recovery instruction receiving unit used for receiving magnetic tape mark information and target environment information input by a user, a magnetic tape type generating unit for generating magnetic tape type data, an environment type generating unit for generating target environment type data, a recovery strategy storage unit for storing recovery strategy data containing a magnetic tape data recovery strategy, an information set generating unit for generating data recovery information sets, a recovery script generating unit used for decoding the data recovery information sets and translating into data recovery scripts, a recovery script running unit used for running a data recovery script in a corresponding recovery target environment, and a recovery script monitoring unit used for monitoring running states of the data recovery scripts. Therefore, the problem of preprocessing the magnetic tape type and recovery target environment information in magnetic tape data recovery and a problem, and a problem of timely processing fault interruption in the recovery process are solved.

Description

Tape data recovery method and system
Technical Field
The invention relates to a computer data backup and recovery technology, in particular to a computer tape data backup and recovery technology, and specifically relates to a tape data recovery method and a tape data recovery system.
Background
At present, tape data recovery in a computer system is generally a recovery process with simple operations, such as finding a tape containing recovered data by checking, and then recovering the tape to a corresponding target environment. However, the simple operation recovery processing method has the following disadvantages:
firstly, the recovery target environment is usually complex, the recovery data types are different, and the tape type cannot be analyzed in advance during recovery, so that the recovery target environment cannot be judged and checked in advance, and the recovery processing efficiency is influenced.
And secondly, the monitoring of the recovery process cannot be realized, and the data recovery time is usually extremely long because the recovery process often has interruption caused by faults and cannot be recovered in time.
Disclosure of Invention
The embodiment of the invention provides a method and a system for restoring tape data, which aim to solve the problems of preprocessing of tape types and restoring target environment information in tape data restoration and timely processing of fault interruption in the restoring process.
One of the objects of the present invention is to provide a tape data recovery method, comprising: receiving tape information and recovery target environment information containing machine IP input by a user; reading the tape content according to the tape information to generate tape type data including tape, media type and data type; inquiring the recovery target cluster according to the recovery target environment information to generate target environment type data including machine IP, machine name, machine type and database type detection; storing recovery policy data comprising a tape data recovery policy; according to the tape type data and the target environment type data, inquiring in the recovery strategy data to generate a data recovery information set which is required by the tape data recovery and contains tape type data records, target environment type data records and recovery strategy data records; decoding the data recovery information set and translating the data recovery information set into a data recovery script; running a data recovery script in the corresponding recovery target environment; and monitoring the running state of the data recovery script.
It is an object of the present invention to provide a tape data recovery system, comprising: a restoration instruction receiving unit for receiving tape information input by a user and restoration target environment information including a machine IP; a tape type generating unit for reading the tape content according to the tape label information and generating tape type data including a tape label, a media type and a data type; the environment type generating unit is used for inquiring the recovery target cluster according to the recovery target environment information and generating target environment type data including machine IP, machine name, machine type and database type detection; a restoration policy storage unit that stores restoration policy data including a tape data restoration policy; the information set generating unit is used for inquiring the recovery strategy data according to the tape type data and the target environment type data and generating a data recovery information set which is required by the tape data recovery and contains tape type data records, target environment type data records and recovery strategy data records; the recovery script generating unit is used for decoding the data recovery information set and translating the data recovery information set into a data recovery script; a recovery script running unit for running the data recovery script in the corresponding recovery target environment; and the recovery script monitoring unit is used for monitoring the running state of the data recovery script.
The method has the advantages that the method adopts an analysis method based on the tape type, realizes the intellectualization of data recovery, avoids frequent human-computer interaction process, and reduces the risk of human misoperation. The recovery process can be monitored in real time, the enterprise management and maintenance cost is reduced, each link of data recovery can be carried out continuously, the delay of the recovery progress is avoided, and the efficiency of data recovery is greatly improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the 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 for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
FIG. 1 is a flow chart of a tape data recovery method according to an embodiment of the present invention;
FIG. 2 is a block diagram of a tape data recovery system in accordance with an embodiment of the present invention;
FIG. 3 is a schematic diagram of a tape data recovery system according to an embodiment of the present invention;
FIG. 4 is a block diagram of the components of a tape data recovery system in accordance with an embodiment of the present invention;
FIG. 5 is a flowchart illustrating the operation of a tape data recovery system according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of a target environment set for a tape data recovery system according to an embodiment of the present invention;
fig. 7 is a signaling flow diagram of a tape data recovery system according to an embodiment of the present invention.
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 given herein without making any creative effort, shall fall within the protection scope of the present invention.
As shown in fig. 1, the tape data recovery method of the present embodiment includes: receiving tape label information input by a user and restoration target environment information including a machine IP (step S101); reading the tape content based on the tape information to generate tape type data including tape, media type, and data type (step S102); inquiring the recovery target cluster according to the recovery target environment information to generate target environment type data including machine IP, machine name, machine type and database type detection (step S103); storing recovery policy data including a tape data recovery policy (step S104); according to the tape type data and the target environment type data, inquiring in the recovery strategy data to generate a data recovery information set which is required by the tape data recovery and contains tape type data records, target environment type data records and recovery strategy data records (step S105); decoding the data recovery information set and translating into a data recovery script (step S106); running a data recovery script in the corresponding recovery target environment (step S107); the running state of the data recovery script is monitored (step S108).
As shown in fig. 2, the tape data recovery system of the present embodiment includes: a restoration instruction receiving unit 101 for receiving tape label information and restoration target environment information including a machine IP input by a user; a tape type generating unit 102 for reading the tape content according to the tape label information and generating tape type data including a tape label, a media type, and a data type; the environment type generating unit 103 is configured to query the recovery target cluster according to the recovery target environment information, and generate target environment type data including a machine IP, a machine name, a machine type, and a database type detection; a restoration policy storage unit 104 that stores restoration policy data including a tape data restoration policy; an information set generating unit 105, which queries the recovery strategy data according to the tape type data and the target environment type data, and generates a data recovery information set including a tape type data record, a target environment type data record and a recovery strategy data record, which are required for one-time tape data recovery; a recovery script generating unit 106, configured to decode the data recovery information set and translate the data recovery information set into a data recovery script; a recovery script execution unit 107 for executing the data recovery script in the corresponding recovery target environment; and a recovery script monitoring unit 108, configured to monitor an operation state of the data recovery script.
In the embodiment, the tape is imported, the tape content is read in advance, the tape type is analyzed, the recovery target environment type is automatically identified by using a method of querying in the recovery target environment, a recovery strategy table is retrieved to generate a corresponding information set, the information set is translated into a proper data recovery script, the data recovery script is executed through a scheduling program, the recovery of the tape data is realized, and the operation of the data recovery script is monitored through the scheduling program.
As shown in fig. 3, the tape data recovery system of the present embodiment includes: a client terminal 100, a restore server 200, a restore target environment server 300, and a tape drive 400 connected to each other through a banking network. The restoration target environment server 300 may be a cluster of application servers, which may include, for example: restore target environment server 1, restore target environment server 2.
As shown in fig. 4, the recovery server 200 includes: a restoration instruction receiving unit 201 for receiving tape label information and restoration target environment information including a machine IP transmitted from the user terminal 100; the tape preprocessing unit 206 first prestores tape type data including tape flags, media types, and data types in a tape type storage table. Inquiring a tape type storage table according to tape identification information, judging whether the current tape needs to be preprocessed, if so, reading the tape content of the tape unit 400 according to the tape identification information, and storing tape type data comprising tape identification, a medium type, a data type, a supplementary data type, a source machine name, a source machine type, a database instance name, a database DBID and data time into the tape type storage table; if not, the tape content is read according to the tape label information, and the target environment type data comprising the machine IP, the machine name, the machine type, the database type detection, the data recovery period, the expected directory space, the backup software information, the data recovery mode and the hardware information is stored in the target environment type storage table. A tape type storage unit 202 for storing a tape type storage table; an environment type storage unit 203 for storing a target environment type storage table; a recovery policy storage unit 204 for storing recovery policy data including a tape data recovery policy; the information set generating unit 205 performs a query in the recovery policy data according to the tape type data and the target environment type data, and generates a data recovery information set including a tape type data record, a target environment type data record, and a recovery policy data record, which are required for one-time tape data recovery.
Each restoration target environment server 300 includes: a recovery script generating unit 301, configured to decode the data recovery information set and translate the data recovery information set into a data recovery script; a recovery script execution unit 302, configured to execute a data recovery script in a corresponding recovery target environment; and a recovery script monitoring unit 303, configured to monitor an operating state of the data recovery script.
As shown in fig. 7, the recovery server is responsible for receiving user input data of the user terminal and analyzing two types of information requested by the user from the user input data, namely: and recovering the required tape label information and the IP information of the target environment, judging whether tape preprocessing is performed according to the tape label information, and storing the IP information of the target environment.
The tape preprocessing unit of the recovery server is responsible for establishing a tape information index table by taking a single-disk tape as a recording unit. And inquiring whether the tape information index table has the preprocessing record of the tape or not according to the received tape information, and preprocessing the tape if the tape has no preprocessing record.
The information index table is usually recorded in a built-in database of various backup management software, and includes information such as tape label, start address of each image structure inside the tape, and the like. In an environment where the backup management software is not used, the tape preprocessing unit maintains an information index table containing tape flags and start addresses of each image structure inside the tape.
The tape preprocessing unit is responsible for reading the tape content in advance according to tape marking information of the tape, analyzing the tape type, and sending the tape marking, the media type, the data type, the supplementary data type, the source machine name, the source machine type, the database instance name, the database DBID, the data time point and other information to the tape type storage table.
And the target environment type storage unit of the recovery server is responsible for reading the IP information of the target environment, inquiring on the target environment server cluster, generating corresponding machine IP, machine name, machine type, database type detection, data recovery expectation, expected directory space, backup software information, data recovery mode, hardware information and other information, and sending the information to the target environment type storage table. And the recovery strategy storage unit of the recovery server is responsible for storing the recovery strategy information.
A tape type storage table (see table 1) that receives and stores tape type information for policy retrieval.
TABLE 1
And a target environment type storage table (see table 2) for receiving and storing the target environment type information for strategy retrieval.
TABLE 2
And the recovery strategy table (see table 3) receives the specific recovery strategy information which is recorded or deleted by the administrator through the recovery server and is used for strategy retrieval.
TABLE 3
Figure BDA0000041235740000072
And the information set generating unit of the recovery server is responsible for reading the related contents in the storage tape type storage table (table 1) and the target environment type storage table (table 2), searching in the recovery strategy table (table 3), and returning the information set containing the recovered record in the tape type storage table, the target environment type storage table and the recovery strategy table.
And the recovery target environment server is responsible for generating and scheduling the recovery script, monitoring the subsequent operation and repeatedly submitting if an error is reported. Wherein,
and the recovery script generation unit is responsible for decoding the information set returned by the recovery server and translating the information set into the data recovery script.
And the recovery script running unit is responsible for submitting the data recovery script and running the data recovery script.
And recovering the script monitoring unit, monitoring the running state of the script, and repeatedly submitting if an error is reported.
As shown in fig. 5, the specific steps of the process of the data intelligent recovery method based on tape type in this embodiment are as follows:
step 501: the recovery server 200 receives the information data such as tape flags and target environments sent by the user terminal 100, and concurrently executes the processing flows of step 502 and step 506, which may be implemented by creating two threads or control flows in the implementation of tool code.
Step 502: the tape preprocessing unit 206 of the restore server 200 refers to the tape type storage table (table 1) based on the tape flag information input, and determines whether the tape needs to be preprocessed.
Step 503: the tape preprocessing unit 206 preprocesses the tape to complete the tape import and other processes.
Step 504: the tape type storage unit 202 analyzes the tape data and extracts information necessary for the tape type storage table (table 1).
Step 505: the tape type storage unit 202 stores the information extracted in step 504 in the tape type storage table (table 1).
Step 506: the target environment storage unit 203 extracts information necessary for the target environment type storage table (table 2) from the input target environment information.
Step 507: the target environment storage unit 203 stores the information extracted in step 506 into the target environment type storage table (table 2).
Step 508: the recovery policy storage unit 204 stores the recovery policy data including the tape data recovery policy in the recovery policy table (see table 3) in advance, and the information set generation unit 205 reads information in the tape type storage table and the target environment type storage table.
Step 509: the information set generating unit 205 searches the recovery policy table and returns an information set including the record of the recovery in the tape type storage table, the target environment type storage table, and the recovery policy table.
Step 510: the recovery script generating unit 301 of the recovery target environment server 300 decodes the information set returned in step 509, and translates it into a data recovery script.
Step 511: the recovery script execution unit 302 schedules the data recovery script returned in step 510, and the recovery script monitoring unit 303 monitors the running state of the script, and if an error occurs, the script is repeatedly submitted.
Step 512: the recovery script monitoring unit 303 ends the process after detecting that the script is normally completed.
The application of the method of the present invention is illustrated by an example shown in fig. 6. A ring recovery instruction receiving unit, a tape preprocessing unit, a tape type storage unit, a recovery policy storage unit and an information set generating unit are deployed on a recovery server. And deploying a recovery script generating unit, a recovery script executing unit and a recovery script monitoring unit on each recovery target environment server. And the recovery server and the recovery target environment server complete data interaction through TCP/IP network communication. The recovery server completes data interaction with the tape drive through the optical fiber network.
After the administrator configures the recovery policy table in the data storage device on the recovery server, the user can input the tape information and the recovery target environment information in the recovery server. And after the recovery server automatically analyzes the information, the tape type information and the target environment type are stored in a data storage device of the recovery server. And after being processed by the data storage device, sending the generated information set to a recovery target environment server for scheduling and managing recovery jobs. And the recovery target environment server decodes according to the received information, generates a recovery script, then performs data recovery from the tape drive by scheduling corresponding recovery jobs, monitors subsequent operation of the jobs, and repeatedly submits the jobs when errors occur.
Compared with the prior art, the invention has the following advantages: by adopting the analysis method based on the tape type, the intellectualization of data recovery is realized, the frequent human-computer interaction process is avoided, and the risk of human misoperation is reduced. The recovery process can be monitored in real time, the enterprise management and maintenance cost is reduced, each link of data recovery can be carried out continuously, the delay of the recovery progress is avoided, and the efficiency of data recovery is greatly improved.
The principle and the implementation mode of the invention are explained by applying specific embodiments in the invention, and the description of the embodiments is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (6)

1. A method for tape data recovery, said method comprising:
receiving tape information and recovery target environment information containing machine IP input by a user;
reading the tape content according to the tape label information to generate tape type data including a tape label, a media type and a data type;
inquiring the recovery target cluster according to the recovery target environment information to generate target environment type data including machine IP, machine name, machine type and database type detection;
storing recovery policy data comprising a tape data recovery policy;
according to the tape type data and the target environment type data, inquiring in the recovery strategy data to generate a data recovery information set which is required by the tape data recovery and contains tape type data records, target environment type data records and recovery strategy data records;
decoding the data recovery information set and translating the data recovery information set into a data recovery script;
running the data recovery script in the corresponding recovery target environment;
and monitoring the running state of the data recovery script.
2. The method of claim 1, wherein the method comprises: the tape type data including tape flags, media types, and data types are pre-stored in a tape type storage table.
3. The method of claim 1, wherein monitoring the operational status of the data recovery script comprises: and after the running error of the data recovery script is determined and monitored, repeatedly submitting the operation.
4. A tape data recovery system, said system comprising:
a restoration instruction receiving unit for receiving tape information input by a user and restoration target environment information including a machine IP;
a tape type generating unit for reading the tape content according to the tape label information of the tape and generating tape type data including a tape label, a media type and a data type;
the environment type generating unit is used for inquiring the recovery target cluster according to the recovery target environment information and generating target environment type data including machine IP, machine name, machine type and database type detection;
a restoration policy storage unit that stores restoration policy data including a tape data restoration policy;
an information set generating unit, which inquires in the recovery strategy data according to the tape type data and the target environment type data, and generates a data recovery information set which contains tape type data records, target environment type data records and recovery strategy data records and is required by the tape data recovery for one time;
the recovery script generating unit is used for decoding the data recovery information set and translating the data recovery information set into a data recovery script;
a recovery script running unit, configured to run the data recovery script in a corresponding recovery target environment;
and the recovery script monitoring unit is used for monitoring the running state of the data recovery script.
5. The system of claim 4, wherein the system comprises:
and a tape type storage unit for pre-storing tape type data including tape flags, media types, and data types into a tape type storage table.
6. The system according to claim 4, wherein said recovery script monitoring unit repeats the submission of the job after determining that the execution error of the recovery script is monitored.
CN 201010611713 2010-12-28 2010-12-28 Magnetic tape data recovery method and system Active CN102063347B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201010611713 CN102063347B (en) 2010-12-28 2010-12-28 Magnetic tape data recovery method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201010611713 CN102063347B (en) 2010-12-28 2010-12-28 Magnetic tape data recovery method and system

Publications (2)

Publication Number Publication Date
CN102063347A CN102063347A (en) 2011-05-18
CN102063347B true CN102063347B (en) 2013-01-09

Family

ID=43998632

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201010611713 Active CN102063347B (en) 2010-12-28 2010-12-28 Magnetic tape data recovery method and system

Country Status (1)

Country Link
CN (1) CN102063347B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104407899A (en) * 2014-12-03 2015-03-11 浪潮电子信息产业股份有限公司 Method for restoring and starting network card after MAC address is changed under REDHAT operating system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101495970A (en) * 2005-06-24 2009-07-29 信科索尔特公司 System and method for high performance enterprise data protection
CN101739307A (en) * 2008-11-04 2010-06-16 北京众志和达信息技术有限公司 Embedded integrated virtual tape library-based data archiving protection system and method

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4927408B2 (en) * 2006-01-25 2012-05-09 株式会社日立製作所 Storage system and data restoration method thereof
CN101325610B (en) * 2008-07-30 2011-12-28 杭州华三通信技术有限公司 Virtual tape library backup system and magnetic disk power supply control method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101495970A (en) * 2005-06-24 2009-07-29 信科索尔特公司 System and method for high performance enterprise data protection
CN101739307A (en) * 2008-11-04 2010-06-16 北京众志和达信息技术有限公司 Embedded integrated virtual tape library-based data archiving protection system and method

Also Published As

Publication number Publication date
CN102063347A (en) 2011-05-18

Similar Documents

Publication Publication Date Title
US10621211B2 (en) Language tag management on international data storage
CN106572173B (en) Configuration information updating method, device and system
KR102268355B1 (en) Cloud deployment infrastructure validation engine
CN102799468B (en) The method and apparatus opening unknown file
US7624309B2 (en) Automated client recovery and service ticketing
US7913233B2 (en) Performance analyzer
US9354964B2 (en) Tag based selection of test scripts for failure analysis
US20080092127A1 (en) Grid-Enabled ANT Compatible with Both Stand-Alone and Grid-Based Computing Systems
WO2022007418A1 (en) Cloud platform block device abnormity auditing method, apparatus and device and storage medium
CN111522703A (en) Method, apparatus and computer program product for monitoring access requests
CN110851324B (en) Log-based routing inspection processing method and device, electronic equipment and storage medium
US8914798B2 (en) Production control for service level agreements
US7502967B1 (en) Identifying an object in a data file that causes an error in an application
CN112068981A (en) Knowledge base-based fault scanning recovery method and system in Linux operating system
CN110134538B (en) Method, device, medium and electronic equipment for quickly positioning problem log
CN110245059B (en) Data processing method, device and storage medium
US20240235944A9 (en) Cloud migration data analysis method using system process information, and system thereof
CN110716804A (en) Method and device for automatically deleting useless resources, storage medium and electronic equipment
CN116088846A (en) Processing method, related device and equipment for continuous integrated code format
CN102063347B (en) Magnetic tape data recovery method and system
CN112162954B (en) User operation log generation and path positioning method, device, equipment and medium
CN112527497B (en) Serialized multithreaded data processing system
CN114020565A (en) Intelligent log collection processing method and device, electronic equipment and storage medium
CN201947287U (en) Tape data restorer
CN111241191A (en) Database synchronization method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant