Method, system, device and readable storage medium for tape dumping based on transfer machine
By creating virtual tape drives and virtual tapes on the AS400 host, and using the transit Linux host to automatically back up data to the NBU, the compatibility and maintenance issues of data storage and recovery in the AS400 system are solved, and long-term data storage and low-cost recovery are achieved.
Patent Information
- Application Number
- CN202111484169.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-07
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2041-12-07
AI Technical Summary
Existing mainstream backup software and equipment are not compatible with the AS400 operating system and tape drives, resulting in problems such as data retention risks, high maintenance costs, loss of personnel skills, and obsolete equipment. It is difficult to retain and restore AS400 system data for a long time.
By creating virtual tape drives and virtual tapes on the AS400 host, using the transit Linux host for automated data replication and backup, and dumping physical tape data to NBU, data can be restored and read on the Linux or Windows operating system, avoiding the need for Dependence on AS400 host and tape drive.
It realizes automatic dumping of AS400 tape data, avoids data loss due to age, reduces operation and maintenance expenses and costs, and ensures long-term data storage and recovery capabilities.
Smart Images

Figure CN114253474B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a method, system, device and readable storage medium for performing tape dumping based on a transfer machine. Background Art
[0002] The AS400 system is a commonly used operating system in the financial industry. The data generated on this system is generally permanently retained through tape backup. During the decades of use of the AS400 operating system, a large number of backup tapes have been generated. In order to preserve the data for a long time, the data on the tapes needs to be transferred to the existing mainstream backup system (NBU). Generally, the data is retained on the hard disk to avoid data loss. However, the existing mainstream backup software and equipment (such as NBU) only support mainstream operating systems, such as Linux and Windows, and are not compatible with the AS400 operating system and tape drives. There is no solution on the market that NBU equipment is compatible with these tapes. These tapes can only be read on the AS400 system. In order to read these tapes, the AS400 system and the supporting tape drives must be retained, which will consume a lot of manpower, material resources and financial resources.
[0003] In order to read these tapes, the current common practice is to retain an AS400 host and tape drive for data recovery, but this method has the following problems:
[0004] First, the data in the tape is stored for a limited time. After a certain period, the tape is at risk of demagnetization and the data may be lost. Many years in the future, the tape demagnetization will lead to data loss, and even with the AS400 host and tape drive, it will not be able to meet the needs of data recovery and reading.
[0005] Secondly, fewer and fewer companies are using mainframes and tape drives, and fewer and fewer manufacturers can provide maintenance services. There is a risk that there will be no manufacturer maintenance or no new hardware to replace in the future.
[0006] Third, the maintenance of the AS400 host and tape drives will cost a lot of maintenance fees every year, and as the equipment becomes older and older, the maintenance costs increase year by year. It is becoming increasingly uneconomical for enterprises to retain these devices in order to recover data.
[0007] Fourthly, with the turnover of personnel, the number of people who master the relevant operations of the AS400 host is getting smaller and smaller. If the data cannot be dumped to the mainstream backup equipment and software in time, the AS400 data recovery skills will also face the dilemma of no one mastering them.
[0008] In order to solve the above problems in a centralized manner, the present invention utilizes existing equipment and hardware to automatically dump AS400 tapes in batches to NBU. After the dump is completed, data recovery and reading will no longer depend on the AS400 host and specific tape drive, but can be directly restored and read on the widely used Linux or Windows operating system, which provides convenience for data query. The original AS400 host and tape drive do not need to be retained and can be offline after the dump is completed, which greatly saves operation and maintenance expenses and costs. Summary of the invention
[0009] In order to solve the deficiencies of the prior art, the present invention proposes a method, system, device and readable storage medium for performing tape dump based on a transfer machine.
[0010] To achieve the above objectives, the technical solutions adopted by the present invention include:
[0011] According to a first aspect of the present invention, a method for performing tape dumping based on a transfer machine is disclosed, characterized in that it comprises the following steps:
[0012] Step S1, creating a virtual tape drive and at least one virtual tape on the AS400 host;
[0013] Step S2, the AS400 host copies the file data of the physical tape to the virtual tape through the polling module, and transmits the file data of the virtual tape to the transit Linux host;
[0014] Step S3: The transit Linux host backs up the file data of the virtual tape to the NBU through the automatic backup module.
[0015] Furthermore, the step S2 includes the following sub-steps:
[0016] Step S21, the AS400 host obtains the serial number information of the physical tape and records the serial number information into the local database;
[0017] Step S22, copying the file data of the physical tape to the virtual tape through a copy tape command;
[0018] Step S23, obtaining the serial number information of the virtual tape, establishing a corresponding relationship between the serial number information of the physical tape and the serial number information of the virtual tape, and recording the corresponding relationship in a local database;
[0019] Step S24: transfer the file data of the virtual tape to the transit Linux host.
[0020] Furthermore, the step S22 also includes copying the file data of the physical tape to the virtual tape at a ratio of 1:1 through the copy tape command provided by the AS400 host operating system.
[0021] Furthermore, the step S24 includes transmitting the file data of the virtual tape to the transit Linux host in the format of an FTP file.
[0022] Furthermore, the step S24 also includes backing up the FTP file to generate a timestamp file, and transmitting it to the transit Linux host.
[0023] Furthermore, the AS400 host records the numbering information of the physical tape, the numbering information of the virtual tape, the start time and the completion time of the FTP file and the timestamp file transmission into a local database.
[0024] Furthermore, the local database information is synchronized to the automated process control machine.
[0025] Furthermore, in the step S3, the transit Linux host backs up the FTP file and timestamp file data corresponding to the virtual tape to the NBU through the automatic backup module, and the transit Linux host records the backup file information to the local database.
[0026] According to a second aspect of the present invention, a system for performing tape dumping based on a transfer machine is disclosed, comprising:
[0027] A creation module, used for creating a virtual tape drive and at least one virtual tape on the AS400 host;
[0028] Transfer module: The AS400 host copies the file data of the physical tape to the virtual tape through the polling module, and transfers the file data of the virtual tape to the transit Linux host;
[0029] The backup module is used to transfer the Linux host to back up the file data of the virtual tape to the NBU through the automatic backup module.
[0030] According to a third aspect of the present invention, an electronic device is disclosed, comprising:
[0031] one or more processors;
[0032] Memory;
[0033] one or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs being configured to:
[0034] Execute the method for tape dumping based on a transit machine as described in any one of claims 1 to 7.
[0035] According to a fourth aspect of the present invention, a computer-readable storage medium is disclosed, wherein the computer-readable storage medium is used to store computer instructions, and when the computer-readable storage medium is run on a computer, the computer can execute the method for tape dumping based on a transit machine as described in any one of claims 1 to 7.
[0036] The beneficial effects of the present invention are:
[0037] The method, system, device and readable storage medium for tape dumping based on a transfer machine of the present invention are adopted. The method creates a virtual tape drive and at least one virtual tape on an AS400 host; the AS400 host copies the file data of the physical tape to the virtual tape through a polling module, and transmits the file data of the virtual tape to a transfer Linux host; the transfer Linux host backs up the file data of the virtual tape to an NBU through an automatic backup module, thereby achieving the purpose of dumping the AS400 tape, and the entire process is automatically controlled by an automated process control machine without manual intervention, effectively avoiding the problem of data loss caused by the age of the tape. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:
[0039] Figure 1 A flowchart of a method for performing tape dump based on a transfer machine provided in an embodiment of the present application.
[0040] Figure 2 A schematic diagram of the structure of a system for performing tape dump based on a transfer machine provided in an embodiment of the present application.
[0041] Figure 3 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0042] In order to more clearly understand the content of the present invention, it will be described in detail with reference to the drawings and embodiments.
[0043] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application, and cannot be interpreted as limiting the present application.
[0044] It will be understood by those skilled in the art that, unless otherwise stated, the singular forms "a", "an" and "the" used herein may also include plural forms. It should be further understood that the term "comprising" used in the specification of the present application refers to the presence of features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof. The term "and / or" used herein includes all or any unit and all combinations of one or more associated listed items.
[0045] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.
[0046] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0047] Methods for tape dumping based on a transfer machine, such as Figure 1 As shown, the method may include the following steps:
[0048] Step S1, creating a virtual tape drive and at least one virtual tape on the AS400 host;
[0049] Step S2, the AS400 host copies the file data of the physical tape to the virtual tape through the polling module, and transmits the file data of the virtual tape to the transit Linux host;
[0050] Step S3: The transit Linux host backs up the file data of the virtual tape to the NBU through the automatic backup module.
[0051] The virtual tape preferably uses the hard disk of the AS400 host.
[0052] The method for creating a virtual tape drive is preferably to execute the CRTDEVTAP DEVD (TAPVRT01) TYPE (63B0) ASSIGN (*NO) program on the AS400 host.
[0053] The preferred method for creating a virtual tape is: enter the virtual image management interface after executing WRKIMGCLG; create a virtual tape and specify its associated directory as / NBU; create a corresponding number of tapes in this directory, such as 100, starting with GEN; after the creation is complete, enter the / NBU directory of the AS400 host and you can see a file in the directory corresponding to each tape, named GEN01-GEN100.
[0054] Specifically, step S2 includes the following sub-steps:
[0055] Step S21, the AS400 host obtains the serial number information of the physical tape and records the serial number information into the local database;
[0056] Step S22, copying the file data of the physical tape to the virtual tape through a copy tape command;
[0057] The file data of the physical tape is copied to the virtual tape at a ratio of 1:1 through the copy tape command provided by the AS400 host operating system;
[0058] Step S23, obtaining the serial number information of the virtual tape, establishing a corresponding relationship between the serial number information of the physical tape and the serial number information of the virtual tape, and recording the corresponding relationship in a local database;
[0059] Step S24: transfer the file data of the virtual tape to the transit Linux host.
[0060] Wherein, the step S24 includes transmitting the file data of the virtual tape to the transit Linux host preferably in the format of an FTP file.
[0061] The local directory of the AS400 host is / NBU, and one virtual tape corresponds to a file under the / NUB directory. The directory for the transfer Linux host to receive file data is / zhuanchu. Initiate FTP on the AS400 host to transfer the files under the local directory / NBU of the AS400 host to the specified directory / zhuanchu of the transfer Linux host. During the transmission process, the transmission program automatically names the target file name, and the file name of the transfer Linux host is consistent with the name of the corresponding physical tape, so as to facilitate future search and recovery. After the FTP is completed, a timestamp file with the same FTP file name but the suffix ok is generated. For example, if the FTP file name is A00129, the timestamp file is A00129.ok. The content of the timestamp file is preferably the timestamp of the generated file, which is used to mark that the file has been transferred. The timestamp file is also sent to the transfer Linux host via FTP. After the timestamp file is sent, the AS400 host records the following information of this operation in the local database: the number information of the physical tape, the number information of the virtual tape, the start time and the completion time of the FTP file and timestamp file transmission. After the recording is completed, the local database information is synchronized to the automated process control machine, including the addition of new database records, and then the existing tape is exited and a notification message is issued to inform the administrator to replace the next tape.
[0062] And return to the above steps to continue copying and transferring the next tape.
[0063] In the step S3, the transit Linux host backs up the FTP file and timestamp file data corresponding to the virtual tape to the NBU through the automatic backup module, and the transit Linux host records the backup file information to the local database.
[0064] Specifically, the automatic backup module executes the following steps: checking whether there are any new files in the current / zhuanchu / directory. If there are and the corresponding timestamp files exist, NBU backup is initiated, and the new files and the corresponding timestamp files are backed up at the same time. After the backup is completed, the transit Linux host records the following information of this operation into the local database: backup file name, backup start time, and backup end time. At the same time, the new database records are synchronized to the automated process control machine, otherwise this round of inspection ends.
[0065] Wait half an hour, then return to the above steps to continue the next round of checks and backups.
[0066] Through the continuous operation of the polling module and the automatic backup module, the physical tapes can be continuously copied, transferred and backed up until all physical tapes are dumped. During the execution process, each module supports retry and skip functions, and supports manual intervention to handle errors in a timely manner.
[0067] In the above process, the automated process controller is used to control the start and stop of the polling module and the automatic backup module. When a module fails and exits abnormally, the corresponding module can be restarted to ensure the normal progress of the process; and the local database information of the AS400 host and the transit Linux host is synchronized to the automated process controller, and the automated process controller summarizes the data for subsequent unified search and indexing; the automated process controller provides a control menu and a timed check mechanism. The control menu is used to start and stop the entire process. The timed check mechanism is implemented by the timed check module, and the implementation method is: remotely log in to the corresponding host at a fixed time (every hour) to check whether the process exists. If not, the corresponding process is started.
[0068] After confirming that all physical tape data has been dumped to NBU, the entire process is completed and the AS400 host can be offline. If data needs to be restored later, it can be restored to a host with a Linux or Windows operating system through NBU. There is no need to retain the AS400 host.
[0069] The embodiment of the present application provides a method for tape dumping based on a transit machine, by creating a virtual tape drive and at least one virtual tape on an AS400 host; the AS400 host copies the file data of the physical tape to the virtual tape through a polling module, and transmits the file data of the virtual tape to a transit Linux host; the transit Linux host backs up the file data of the virtual tape to an NBU through an automatic backup module, thereby achieving the purpose of dumping the AS400 tape, and the entire process is automatically implemented through the control of an automated process control machine without manual intervention, effectively avoiding the problem of data loss caused by the age of the tape.
[0070] Figure 2 The schematic diagram of the structure of the system for tape dumping based on the transfer machine provided in the embodiment of the present application is as follows. The system 20 includes: a creation module 201, a transfer module 202, and a backup module 203, wherein:
[0071] A creation module 201, used to create a virtual tape drive and at least one virtual tape on the AS400 host;
[0072] Transfer module 202, the AS400 host copies the file data of the physical tape to the virtual tape through the polling module, and transmits the file data of the virtual tape to the transit Linux host;
[0073] The backup module 203 is used to transfer the Linux host to back up the file data of the virtual tape to the NBU through the automatic backup module.
[0074] The system for performing tape dump based on a transfer machine in this embodiment can execute the method for performing tape dump based on a transfer machine provided in the above embodiments of this application. The implementation principles are similar, and the beneficial effects achieved are similar, which will not be repeated here.
[0075] The present application embodiment provides an electronic device, such as Figure 3 As shown, Figure 3 The electronic device 30 shown includes: a processor 3001 and a memory 3003. The processor 3001 and the memory 3003 are connected, such as through a bus 3002. Further, the electronic device 30 may also include a transceiver 3004. It should be noted that in actual applications, the transceiver 3004 is not limited to one, and the structure of the electronic device 30 does not constitute a limitation on the embodiments of the present application. The processor 3001 is used in the embodiments of the present application to implement Figure 2The functions of the modules shown. The transceiver 3004 includes a receiver and a transmitter. The processor 3001 can be a CPU, a general-purpose processor, a DSP, an ASIC, an FPGA or other programmable logic device, a transistor logic device, a hardware component or any combination thereof. It can implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of this application. The processor 3001 can also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.
[0076] The bus 3002 may include a path to transmit information between the above components. The bus 3002 may be a PCI bus or an EISA bus, etc. The bus 3002 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 3 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0077] The memory 3003 may be a ROM or other type of static storage device that can store static information and instructions, a RAM or other type of dynamic storage device that can store information and instructions, or an EEPROM, a CD-ROM or other optical disk storage, an optical disk storage (including a compressed optical disk, a laser disk, an optical disk, a digital versatile disk, a Blu-ray disk, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited to these.
[0078] The memory 3003 is used to store the application code for executing the solution of the present application, and the execution is controlled by the processor 3001. The processor 3001 is used to execute the application code stored in the memory 3003 to implement Figure 2 The illustrated embodiment provides the functionality of a system for performing tape dump based on a transit machine.
[0079] The embodiment of the present application provides an electronic device, which creates a virtual tape drive and at least one virtual tape on an AS400 host; the AS400 host copies the file data of the physical tape to the virtual tape through a polling module, and transmits the file data of the virtual tape to a transit Linux host; the transit Linux host backs up the file data of the virtual tape to an NBU through an automatic backup module, thereby achieving the purpose of dumping the AS400 tape, and the entire process is automatically controlled by an automated process control machine without manual intervention, effectively avoiding the problem of data loss caused by the age of the tape.
[0080] The present application embodiment provides an electronic device applicable to the above method embodiment, which will not be described in detail here.
[0081] An embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the program is executed by a processor, the method shown in the above embodiment is implemented.
[0082] The embodiment of the present application provides a computer-readable storage medium, which creates a virtual tape drive and at least one virtual tape on an AS400 host; the AS400 host copies the file data of the physical tape to the virtual tape through a polling module, and transmits the file data of the virtual tape to a transit Linux host; the transit Linux host backs up the file data of the virtual tape to an NBU through an automatic backup module, thereby achieving the purpose of dumping the AS400 tape, and the entire process is automatically implemented through the control of an automated process control machine without manual intervention, effectively avoiding the problem of data loss caused by the age of the tape.
[0083] The present application embodiment provides a computer-readable storage medium applicable to the above method embodiment, which will not be described in detail here.
[0084] The technical solution provided by the present invention has been put into practical application in a bank data center. Hundreds of AS400 tapes stored in history have been dumped by using this technical solution. The relevant data have been dumped to NBU. The required data can be restored to the Linux host through NBU for reading later.
[0085] The implementation of this work provides a beneficial attempt for the processing of historical data tapes and provides a guarantee for the subsequent access of data to the historical data platform. There is no need to worry about data loss due to tape demagnetization, or data irrecoverable due to the inability to maintain system hardware and operating system, thus ensuring data security.
[0086] It should be understood that, although the steps in the flowchart of the accompanying drawings are displayed in sequence as indicated by the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least a part of the steps in the flowchart of the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.
[0087] The above is only a preferred specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed by the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
Claims
1. A method for tape dumping based on a transfer machine, characterized in that: The following steps are involved: Step S1, creating a virtual tape drive and at least one virtual tape on the AS400 host; Step S2, the AS400 host copies the file data of the physical tape to the virtual tape through the polling module, and transmits the file data of the virtual tape to the transit Linux host; Step S3: The transit Linux host backs up the file data of the virtual tape to the NBU through the automatic backup module; Wherein, the step S2 includes the following sub-steps: Step S21, the AS400 host obtains the serial number information of the physical tape and records the serial number information into the local database; Step S22, copying the file data of the physical tape to the virtual tape through a copy tape command; Step S23, obtaining the serial number information of the virtual tape, establishing a corresponding relationship between the serial number information of the physical tape and the serial number information of the virtual tape, and recording the corresponding relationship in a local database; Step S24, transferring the file data of the virtual tape to the transit Linux host in the format of an FTP file, backing up the FTP file to generate a timestamp file, and transferring it to the transit Linux host; The AS400 host records the numbering information of the physical tape, the numbering information of the virtual tape, the start time and the completion time of the FTP file and the timestamp file transmission into a local database; The local database information is synchronized to the automated process controller, which is used to control the start and stop of the polling module and the automatic backup module. When a module fails and exits abnormally, the corresponding module can be restarted.
2. The method according to claim 1, characterized in that In the step S3, the transit Linux host backs up the FTP file and timestamp file data corresponding to the virtual tape to the NBU through the automatic backup module, and the transit Linux host records the backup file information to the local database.
3. A system for tape dumping based on a transfer machine, characterized in that: include: A creation module, used to create a virtual tape drive and at least one virtual tape on the AS400 host, and the AS400 host records the numbering information of the physical tape, the numbering information of the virtual tape, the start time and the completion time of the FTP file and the timestamp file transmission into a local database; Transfer module: The AS400 host copies the file data of the physical tape to the virtual tape through the polling module, and transfers the file data of the virtual tape to the transit Linux host; The backup module is used to transfer the Linux host to back up the file data of the virtual tape to the NBU through the automatic backup module; The transfer module is specifically used to obtain the serial number information of the physical tape through the AS400 host and record the serial number information into the local database; Use the copy tape command to copy the file data of the physical tape to the virtual tape; Acquire the serial number information of the virtual tape, establish a corresponding relationship between the serial number information of the physical tape and the serial number information of the virtual tape, and record the corresponding relationship in a local database; The file data of the virtual tape is transferred to the transit Linux host in the format of an FTP file, the FTP file is backed up to generate a timestamp file, and the timestamp file is transferred to the transit Linux host; The local database information is synchronized to the automated process controller, which is used to control the start and stop of the polling module and the automatic backup module. When a module fails and exits abnormally, the corresponding module can be restarted.
4. An electronic device, characterized in that: include: one or more processors; Memory; one or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs being configured to: Execute the method for tape dumping based on a transfer machine as described in any one of claims 1 to 2.
5. A computer-readable storage medium, characterized in that: The computer-readable storage medium is used to store computer instructions, and when the computer-readable storage medium is executed on a computer, the computer can execute the method for performing tape dumping based on a transfer machine as described in any one of claims 1 to 2.
