CN101751231A - Method and device for writing in and reading out data and virtual tape library device - Google Patents

Method and device for writing in and reading out data and virtual tape library device Download PDF

Info

Publication number
CN101751231A
CN101751231A CN200910261061A CN200910261061A CN101751231A CN 101751231 A CN101751231 A CN 101751231A CN 200910261061 A CN200910261061 A CN 200910261061A CN 200910261061 A CN200910261061 A CN 200910261061A CN 101751231 A CN101751231 A CN 101751231A
Authority
CN
China
Prior art keywords
disk
data
configuration information
tape
read
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
CN200910261061A
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.)
Huawei Digital Technologies Chengdu Co Ltd
Original Assignee
Huawei Symantec Technologies Co Ltd
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 Huawei Symantec Technologies Co Ltd filed Critical Huawei Symantec Technologies Co Ltd
Priority to CN200910261061A priority Critical patent/CN101751231A/en
Publication of CN101751231A publication Critical patent/CN101751231A/en
Pending legal-status Critical Current

Links

Images

Abstract

An embodiment of the invention relates to a method and a device for writing in and reading out data and a virtual tape library device. The method for writing in data comprises the following steps of: when writing data in a disc, writing tape configuration information corresponding to the data in the disc, wherein the tape configuration information is generated in the process of the virtual tape on the disc; and recording a disc identifier of the disc. In the embodiment of the invention, the disc in the VTL can preserve the backup data under an off-line state by writing the data and tape configuration information for backup in the disc and by recording the disc ID. The embodiment of the invention requires no physical tape library as the filing medium, thereby ensuring simple networking and reducing the backup cost.

Description

Data write, reading method and device, virtual tape library equipment
Technical field
The present invention relates to field of data storage, relate in particular to that a kind of data write, reading method and device, virtual tape library equipment.
Background technology
Popularize and the explosive growth of data along with informationalized, increasing user comes to realise the importance of data protection.The backup mode of data is mainly two kinds in the prior art: a kind of be data from Disk Backup to the physical tape storehouse (Disk to Tape library, be called for short: backup mode D2T), another kind is data (Virtual Tape Library from the Disk Backup to the VTL, be called for short: VTL), and then data are filed the physical tape storehouse from VTL, and (Disk to VTL to Tape library is called for short: backup mode D2V2T).
In the backup mode of D2T,, can not satisfy the demand of enterprise customer's mass data backup because the backup window in physical tape storehouse is comparatively of short duration.
The backup mode of D2V2T uses VTL as backup medium, can realize the high-performance and the high reliability of data backup, uses the physical tape storehouse as the filing medium, can realize that the long-term off-line of data is preserved.But this backup mode adopts two kinds of alternate devices (VTL and physical tape storehouse), and backup cost is higher, and need set up the physical connection in VTL and physical tape storehouse, extra increase networking cost.
Summary of the invention
The embodiment of the invention provides that a kind of data write, reading method and device, virtual tape library equipment, and it is simple to reach networking, reduces the technique effect of backup cost.
The method for writing data that the embodiment of the invention provides comprises:
When disk writes data, tape configuration information that will be corresponding with described data writes disk, generates in the process that described tape configuration information is a virtual tape on described disk;
Write down the disk sign of described disk.
The data read method that the embodiment of the invention provides comprises:
When receiving data recovery instruction, from disk, read the disk sign;
When the disk the read sign and the disk of record identify when consistent, from described disk, read the tape configuration information, described tape configuration information is reported software module;
When the tape configuration information that goes out to report when described software module verification and the tape accordant configuration information of generation, from described disk, read and the described corresponding data of tape configuration information that report.
The data transfer apparatus that the embodiment of the invention provides comprises:
The information writing module is used for when when disk writes data, and tape configuration information that will be corresponding with described data writes disk, generates in the process that described tape configuration information is a virtual tape on described disk;
Logging modle is used to write down the disk sign of described disk.
The data readout setup that the embodiment of the invention provides comprises:
Information is read module, is used for reading the disk sign from disk when receiving data recovery instruction;
The configuration information reporting module is used for identifying when consistent when the disk the read sign and the disk of record, reads the tape configuration information from described disk, and described tape configuration information is reported software module;
Data are read module, when being used for the tape accordant configuration information of the tape configuration information that goes out to report when described software module verification and generation, read from described disk and the described corresponding data of tape configuration information that report.
The virtual tape library equipment that the embodiment of the invention provides comprises:
Data transfer apparatus is used for when when disk writes data, and tape configuration information that will be corresponding with described data writes disk; And the disk that writes down described disk identifies;
Data readout setup is used for reading the disk sign from disk when receiving data recovery instruction; When the disk the read sign and the disk of record identify when consistent, from described disk, read the tape configuration information, described tape configuration information is reported; And, when the tape configuration information that goes out to report when verification and the tape accordant configuration information of generation, from described disk, read and the described corresponding data of tape configuration information that report;
Software module, the process that is used for virtual tape on described disk generates described tape configuration information, and whether the tape configuration information that the described data readout setup of verification reports is consistent with the tape configuration information of generation;
Data and instruction interface module, the data backup command that is used for receiving passes to described data transfer apparatus, the described data that receive are recovered instruction pass to described data readout setup, and, receive the backed up data that backup server sends, send data recovered to described backup server.
In the embodiment of the invention, write disk by needing backed up data and tape configuration information, and write down magnetic disc ID, but make the disk among the VTL realize the function that off-line is preserved Backup Data; The embodiment of the invention adopts disk as the filing medium, has both realized that the long-term off-line of data was preserved, and has effectively reduced cost again.
Description of drawings
In order to be illustrated more clearly in the technical scheme of the embodiment of the invention, to do to introduce simply to the accompanying drawing of required use among the embodiment below, apparently, accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the data backup group-network construction synoptic diagram that the embodiment of the invention was suitable for;
Fig. 2 is the process flow diagram of the embodiment of the invention one method for writing data;
Fig. 3 is the process flow diagram of the embodiment of the invention two method for writing data;
Fig. 4 is the process flow diagram of the embodiment of the invention three data read methods;
Fig. 5 is the process flow diagram of the embodiment of the invention four data read methods;
Fig. 6 is the structural representation of the embodiment of the invention five data transfer apparatus;
Fig. 7 is the structural representation of the embodiment of the invention six data transfer apparatus;
Fig. 8 is the structural representation of the embodiment of the invention seven data readout setups;
Fig. 9 is the structural representation of the embodiment of the invention nine virtual tape library equipments.
Embodiment
For the purpose, technical scheme and the advantage that make the embodiment of the invention is clearer,, the present invention is further elaborated below in conjunction with drawings and Examples.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
Fig. 1 is the data backup group-network construction synoptic diagram that the embodiment of the invention was suitable for, and wherein dotted line is represented the flow direction of data in the data backup process.Particularly, as shown in Figure 1, several application servers 1 will need backed up data to pass to backup server 2; (Fiber Channel/Internet Protocol Storage Area Network is called for short: FC/IP SAN) give VTL3 with data transfer backup server 2 by optical-fibre channel/Internet Protocol storage area network; In the data backup process, disk 4 is inserted into disk groove position corresponding among the VTL3, and VTL3 writes data in the disk 4; Data backup can be extracted disk 4 after finishing from VTL3, realized that the off-line of data is preserved.When the needs restore data, disk 4 to be inserted among the VTL3 again, the flow direction of data is opposite with data flow shown in dotted lines in Figure 1.。
For ease of explanation, introduce embodiment of the invention data below in detail and write the flow process of reading with data, as follows:
Fig. 2 is the process flow diagram of the embodiment of the invention one method for writing data.As shown in Figure 2, present embodiment specifically comprises the steps:
Step 101, when the disk interface module among the VTL when disk writes data, the tape configuration information corresponding with data write disk, wherein the tape configuration information is to generate in the process of virtual tape on disk;
When disk was inserted among the VTL, the software module among the VTL invented tape with disk, so-called disk is invented tape be meant the storage space in the disk is divided that each storage space can be understood as the tape of certain-length; Software module generates the tape configuration information for each storage space, and this tape configuration information is used to describe the relevant information of this storage space, and this tape configuration information is corresponding with the data that need store this storage space into.
The data backup command that the backup server that receives when disk interface module basis sends also writes disk with the tape configuration information corresponding with data when disk writes data.
The disk sign (ID) of step 102, disk interface module records disk.
Each disk is all preserved the magnetic disc ID of unique identification oneself, and the disk interface module records is inserted the magnetic disc ID of disk.
In the present embodiment, VTL invents tape with the disk that inserts, and generates the tape configuration information, and will need backed up data and tape configuration information to write disk, has also write down magnetic disc ID, but makes the disk among the VTL realize the function that off-line is preserved Backup Data; Present embodiment does not need to adopt the physical tape storehouse as the filing medium, does not need to set up the physical connection between VTL and the physical tape storehouse, has reduced backup cost.
In the embodiment of the invention; the number that is inserted into the disk among the VTL simultaneously is not limited only to one; can also be for more than two; when the disk number of inserting during at least two; the embodiment of the invention adopts Redundant Array of Independent Disks (RAID) (Redundant Array of Independent Disk; be called for short: RAID) technology is protected, and particular content is referring to embodiment two.
Fig. 3 is the process flow diagram of the embodiment of the invention two method for writing data.The disk number of inserting among the VTL in the present embodiment is at least two, and these disks can be formed at least one RAID group, and as shown in Figure 3, present embodiment specifically comprises the steps:
Data among step 201, the VTL and instruction interface module receive the data backup command that backup server sends.
Software module among step 202, the VTL invents tape with disk, and generates the tape configuration information.
Software module is divided the storage space in the disk, and each storage space can be understood as the tape of certain-length; Software module generates the tape configuration information for each storage space, this tape configuration information is used to describe the relevant information of this storage space, specifically can comprise: the size of storage space, the data volume that this storage space write, the sign of storage space, and the form of this storage space institute analog magnetic tape or the like, wherein the sign of storage space is used to show the difference in this storage space and other spaces, the sign of this storage space can be used as the bar code of the tape of simulation.This tape configuration information is corresponding with the data that need store this storage space into.
Disk interface module among step 203, the VTL is divided into the RAID group with at least two disks, and is each disk generation RAID information.
For instance, establishing the disk number is 4, and the disk interface module can be divided into 4 disks two RAID groups, and each RAID group comprises 2 disks; The disk interface module generates RAID information for each disk, this RAID information is used to describe this disk and which disk belongs to the information that same RAID organizes, this RAID information can be the RAID configuration information particularly, and this RAID configuration information can also comprise information such as RAID rank and RAID stripe depth.
Step 204, disk interface module records RAID information and magnetic disc ID.
The disk interface module is read magnetic disc ID from disk, and notes, and has also write down RAID information simultaneously.The status information of all right recording disc of disk interface module, the status information of this disk is online or off-line.
Step 205, disk interface module will write disk from data and corresponding with it tape configuration information and the RAID information that backup server receives.
Further, above-mentioned steps 201 is an optional step.When execution in step 201 not, step 202-204 carries out under the triggering of inserting disk in VTL, and step 205 is specially: the disk interface module will write disk from data and corresponding with it tape configuration information and the RAID information that backup server receives with cycle regular hour.
In the present embodiment, VTL invents tape with the disk that inserts, and generates the tape configuration information, and will need backed up data and tape configuration information to write disk, has also write down magnetic disc ID, but makes the disk among the VTL realize the function that off-line is preserved Backup Data; Present embodiment does not need to adopt the physical tape storehouse as the filing medium, does not need to set up the physical connection between VTL and the physical tape storehouse, has reduced backup cost.
In the prior art,, expand the VTL capacity if desired, then must expand the quantity of disk and the quantity of loading the disk array frame of disk because disk can not off-line among the VTL.And in the present embodiment, but the disk among the VTL is an off-line, can reach the purpose that expands the VTL capacity by expanding disk size or disk number, greatly reduces the cost of VTL capacity extensions like this.
Further; the disk number that present embodiment inserts among the VTL is at least two; and adopt the RAID technology to protect; can make the data in the disk that belongs to same RAID group have fault tolerant mechanism like this; just when two above disks that belong to same RAID group are simultaneously online; can be in two above disks that belong to same RAID group store backup data; if one of them disk failures; can also utilize RAID verification scheme restore data by remaining disk; be that present embodiment provides fault tolerant mechanism; improved the reliability of off-line data, avoided losing the problem that causes Backup Data to recover because of single-deck data recording on tape in the physical tape storehouse in the prior art.
VTL is the backup based on disk in the present embodiment, backup performance is higher, data recovery performance is also higher, can carry out data recovery and backup to operation system at short notice, improved target release time (Recovery Time Object, be called for short: RTO) and recovery point objectives (Recovery Point Object, abbreviation: RPO).
Fig. 4 is the process flow diagram of the embodiment of the invention three data read methods.As shown in Figure 4, present embodiment specifically comprises the steps:
Step 301, when receiving data when recovering instruction, the disk interface module among the VTL is read magnetic disc ID from disk.
When the needs restore data, disk is inserted among the VTL again.Write down the magnetic disc ID that once write the disk of data in the disk interface module, the disk interface module is read magnetic disc ID from disk, the magnetic disc ID read and the magnetic disc ID of record can be compared.
Step 302, when the disk the read sign and the disk of record identify when consistent, the disk interface module is read the tape configuration information from this disk, this tape configuration information is reported software module among the VTL.
If the comparative result of step 301 be a unanimity, show that the disk interface module once write data to this disk, so in this disk also with the tape configuration information.
The disk interface module is read the tape configuration information from disk, and reports software module, preserves once the tape configuration information that generates in the software module, and whether the tape configuration information that software module can verification reports is consistent with the tape configuration information of generation.
During the tape accordant configuration information of step 303, the tape configuration information that goes out to report when the software module verification and generation, the disk interface module is read from this disk and the corresponding data of tape configuration information that report.
If step 302 check results is consistent, show that software module once generated the tape configuration information for this disk, the disk interface module is read from this disk and the corresponding data of tape configuration information that report so, and then gives backup server by data and instruction interface module with the data transfer of reading.
In the present embodiment, when the needs restore data, disk is inserted among the VTL again, write down during by VTL write data relatively with disk in magnetic disc ID and the tape configuration information read, can be from disk sense data, but make the disk among the VTL realize the function that off-line is preserved Backup Data; Present embodiment does not need to adopt the physical tape storehouse as the filing medium, does not need to set up the physical connection between VTL and the physical tape storehouse, has reduced backup cost.
In the embodiment of the invention, the number that is inserted into the disk among the VTL simultaneously is not limited only to one, can also be for more than two, and when the disk number of inserting during at least two, embodiment of the invention employing RAID technology is protected, and particular content is referring to embodiment four.
Fig. 5 is the process flow diagram of the embodiment of the invention four data read methods.The disk number of inserting among the VTL in the present embodiment is at least two, and these disks can be formed at least one RAID group, and as shown in Figure 5, present embodiment specifically comprises the steps:
Data among step 401, the VTL and instruction interface module receive the data recovery instruction that backup server sends.
Disk interface module among step 402, the VTL is read magnetic disc ID and RAID information from disk.
Write down the magnetic disc ID that once write the disk of data in the disk interface module, the disk interface module can compare the magnetic disc ID read and the magnetic disc ID of record; The disk interface module has also write down the RAID information of the disk that once write data, and the disk interface module can compare the RAID information of reading and the RAID information of record.
During the RAID information unanimity of step 403, and the RAID information of reading and record consistent when the disk sign of the disk read sign and record, the disk interface module is read the tape configuration information from disk, disk configuration information is reported software module.
If the comparative result of step 402 be a unanimity, show that the disk interface module once write data to this disk, so in this disk also with the tape configuration information.If the comparative result of step 402 is inconsistent, then read data failure finishes.
Whether the tape configuration information that step 404, software module verification report is consistent with the tape configuration information of generation.
Preserve the tape configuration information that once generated in the software module, whether the tape configuration information that the software module verification reports is consistent with the tape configuration information of generation, and when inconsistent, the read data failure finishes.
During the tape accordant configuration information of step 405, the tape configuration information that goes out to report when the software module verification and generation, the disk interface module is read from disk and the corresponding data of tape configuration information that report.
If step 404 check results is consistent, show that software module once generated the tape configuration information for this disk, the disk interface module is read from this disk and the corresponding data of tape configuration information that report so, and then gives backup server by data and instruction interface module with the data transfer of reading.
In the present embodiment, when the needs restore data, be inserted into disk among the VTL again, write down during by VTL write data relatively with disk in magnetic disc ID, RAID information and the tape configuration information read, can be from disk sense data, but make the disk among the VTL realize the function that off-line is preserved Backup Data; Present embodiment does not need to adopt the physical tape storehouse as the filing medium, does not need to set up the physical connection between VTL and the physical tape storehouse, has reduced backup cost.
Adopt physical tape storehouse off-line to preserve data with prior art and compare, the data recovery performance of disk is higher.
In the prior art,, expand the VTL capacity if desired, then must expand the quantity of disk and the quantity of disk array frame because disk can not off-line among the VTL.And in the present embodiment, but the disk among the VTL is an off-line, can reach the purpose that expands the VTL capacity by expanding disk size or disk number, greatly reduces the cost of VTL capacity extensions like this.
Further; the disk number that present embodiment inserts among the VTL is at least two; and adopt the RAID technology to protect; can make the data in the disk that belongs to same RAID group have fault tolerant mechanism like this; just when two above disks that belong to same RAID group are simultaneously online; can be in two above disks that belong to same RAID group store backup data; if one of them disk failures; can also utilize RAID verification scheme restore data by remaining disk; be that present embodiment provides fault tolerant mechanism; improved the reliability of off-line data, avoided losing the problem that causes Backup Data to recover because of single-deck data recording on tape in the physical tape storehouse in the prior art.
VTL is the backup based on disk in the present embodiment, and backup performance is higher, and data recovery performance is also higher, can carry out data recovery and backup to operation system at short notice, has improved RTO and RPO.
Fig. 6 is the structural representation of the embodiment of the invention five data transfer apparatus.As shown in Figure 6, present embodiment specifically comprises: information writing module 11 and logging modle 12.Wherein:
Information writing module 11 is used for the tape configuration information corresponding with data write disk, and the tape configuration information is to generate in the process of virtual tape on disk;
Logging modle 12 is used for the magnetic disc ID of recording disc.
Annexation among Fig. 6 between two modules exists because of all being connected with disk.
The concrete function of each module of present embodiment can be referring to the description of method embodiment one, and information writing module 11 and logging modle 12 all belong to the internal module of disk interface module.
Specifically, when according to the data backup command that receives when disk writes data, information writing module 11 writes disk with the tape configuration information corresponding with data, and wherein the tape configuration information is to be generated by software module in the process of virtual tape on disk; The magnetic disc ID of logging modle 12 recording discs.
The included above-mentioned functions module of present embodiment can software or hardware mode realization.
In the present embodiment, the information writing module writes disk with the tape configuration information, and logging modle has also write down magnetic disc ID, but makes the disk among the VTL realize the function that off-line is preserved Backup Data; Present embodiment does not need to adopt the physical tape storehouse as the filing medium, does not need to set up the physical connection between VTL and the physical tape storehouse, has reduced backup cost.
Fig. 7 is the structural representation of the embodiment of the invention six data transfer apparatus.Present embodiment is applicable to that the disk number of inserting among the VTL is at least two a situation, and as shown in Figure 7, present embodiment further comprises on the basis of the foregoing description five: RAID control module 13.
This RAID control module 13 is used for RAID information is write disk.
Logging modle 12 can also be used to write down RAID information.
Present embodiment can also comprise: data writing module 14 is used for writing data to disk.
Wherein RAID control module 13 also belongs to the internal module of disk interface module, and it exists because of all being connected with disk with annexation between data writing module 14 and the information writing module 11.The concrete function of each module of present embodiment can be referring to the description of method embodiment two.
Particularly, receive the data backup command that backup server sends in data and instruction interface module, software module invents tape with disk, and generates after the tape configuration information, RAID control module 13 is divided into the RAID group with at least two disks, and is each disk generation RAID information; Logging modle 12 record RAID information and magnetic disc IDs; Data writing module 14 will write disk from the data that backup server receives, and information writing module 11 writes disk with the tape configuration information corresponding with data, and RAID control module 13 writes disk with RAID information.
The included above-mentioned functions module of present embodiment can software or hardware mode realization.
In the present embodiment, data writing module and information writing module will need backed up data and tape configuration information to write disk, and logging modle has also write down magnetic disc ID, but make the disk among the VTL realize the function that off-line is preserved Backup Data; Present embodiment does not need to adopt the physical tape storehouse as the filing medium, does not need to set up the annexation between VTL and the physical tape storehouse, and networking is comparatively simple, has reduced backup cost.
Further; the disk number that present embodiment inserts among the VTL is at least two; and adopt the RAID technology to protect; can make the data in the disk that belongs to same RAID group have fault tolerant mechanism like this; just when two above disks that belong to same RAID group are simultaneously online; can be in two above disks that belong to same RAID group store backup data; if one of them disk failures; can also utilize RAID verification scheme restore data by remaining disk; be that present embodiment provides fault tolerant mechanism; improved the reliability of off-line data, avoided losing the problem that causes Backup Data to recover because of single-deck data recording on tape in the physical tape storehouse in the prior art.
Fig. 8 is the structural representation of the embodiment of the invention seven data readout setups.As shown in Figure 8, present embodiment specifically comprises: information is read module 21, configuration information reporting module 22 and data and is read module 23.Wherein:
Information is read module 21 and is used for reading the disk sign from disk when receiving data recovery instruction;
Configuration information reporting module 22 is used for identifying when consistent when the disk the read sign and the disk of record, reads the tape configuration information from disk, and the tape configuration information is reported software module;
When data are read the tape accordant configuration information that module 23 is used for the tape configuration information that goes out to report when the software module verification and generation, from disk, read and the corresponding data of tape configuration information that report.
Information is read module 21 and data and is read annexation, configuration information reporting module 22 and data between the module 23 to read module 23 be to exist because of all being connected with disk.
The concrete function of each module of present embodiment can be referring to the description of method embodiment three, and information is read module 21, configuration information reporting module 22 and data and read the internal module that module 23 all belongs to the disk interface module.
Specifically, when receiving data recovery instruction, information is read module 21 and read magnetic disc ID from disk; When the disk the read sign and the disk of record identify when consistent, configuration information reporting module 22 is read the tape configuration information from this disk, and this tape configuration information is reported software module among the VTL; When the tape configuration information that goes out to report when the software module verification and the tape accordant configuration information of generation, data are read module 23 and are read from this disk and the corresponding data of tape configuration information that report.
The included above-mentioned functions module of present embodiment can software or hardware mode realization.
In the present embodiment, when the needs restore data, disk is inserted among the VTL again, write down during by VTL write data relatively with disk in magnetic disc ID and the tape configuration information read, can be from disk sense data, but make the disk among the VTL realize the function that off-line is preserved Backup Data; Present embodiment does not need to adopt the physical tape storehouse as the filing medium, does not need to set up the physical connection between VTL and the physical tape storehouse, has reduced backup cost.
The embodiment of the invention eight is applicable to that the disk number of inserting among the VTL is at least two a situation, and present embodiment is on the basis of the foregoing description seven, further:
Information is read module 21 and also is used for reading Redundant Array of Independent Disks (RAID) RAID information from disk when receiving data recovery instruction; And during the RAID information unanimity of and the RAID information of reading and record consistent when the disk sign of the disk read sign and record, configuration information reporting module 22 is used for reading the tape configuration information from disk, and the tape configuration information is reported software module.
Particularly, after the data of data and the transmission of instruction interface module reception backup server are recovered instruction, information is read module 21 and read magnetic disc ID and RAID information from disk, the magnetic disc ID read and the magnetic disc ID of record are compared, the RAID information of reading and the RAID information of record are compared; When the comparative result of the comparative result of magnetic disc ID and RAID information is when consistent, configuration information reporting module 22 is read the tape configuration information from disk, disk configuration information is reported software module; When the tape configuration information that goes out to report in the software module verification and the tape accordant configuration information of generation, data are read module 23 and are read from disk and the corresponding data of tape configuration information that report.
In the present embodiment, when the needs restore data, disk is inserted among the VTL again, write down during by VTL write data relatively with disk in magnetic disc ID and the tape configuration information read, can be from disk sense data, but make the disk among the VTL realize the function that off-line is preserved Backup Data; Present embodiment does not need to adopt the physical tape storehouse as the filing medium, does not need to set up the physical connection between VTL and the physical tape storehouse, has reduced backup cost.
Further; the disk number that present embodiment inserts among the VTL is at least two; and adopt the RAID technology to protect; can make the data in the disk that belongs to same RAID group have fault tolerant mechanism like this; just when two above disks that belong to same RAID group are simultaneously online; can be in two above disks that belong to same RAID group store backup data; if one of them disk failures; can also utilize RAID verification scheme restore data by remaining disk; be that present embodiment provides fault tolerant mechanism; improved the reliability of off-line data, avoided losing the problem that causes Backup Data to recover because of single-deck data recording on tape in the physical tape storehouse in the prior art.
Fig. 9 is the structural representation of the embodiment of the invention nine virtual tape library equipments.Present embodiment comprises data transfer apparatus and data readout setup.Wherein:
Data transfer apparatus is used for when when disk writes data, and the tape configuration information corresponding with data write disk; And, the disk sign of recording disc;
Data readout setup is used for reading the disk sign from disk when receiving data recovery instruction; When the disk the read sign and the disk of record identify when consistent, from disk, read the tape configuration information, the tape configuration information is reported; And, when the tape configuration information that goes out to report when verification and the tape accordant configuration information of generation, from disk, read and the corresponding data of tape configuration information that report.
Further, data transfer apparatus comprises: data writing module 31, information writing module 32, logging modle 33 and RAID control module 34.The concrete function of these modules can be referring to embodiment five and six.
Data readout setup comprises: information is read module 35, configuration information reporting module 36 and data and is read module 37.The concrete function of these modules can be referring to embodiment seven and eight.
Present embodiment is divided the functional module that data writing station and data readout setup comprise according to practical application, as shown in Figure 9, the included functional module of above-mentioned data transfer apparatus and data readout setup all belongs to the internal module of disk interface module 41, further, data writing module 31 and data are read the internal module that module 37 belongs to data interface module 42, and information writing module 32, information are read the internal module that module 35, logging modle 33 and configuration information reporting module 36 belong to off-line disk management module 43.
Further, present embodiment also comprises software module 51 and data and instruction interface module 52, wherein:
The process that software module 51 is used for virtual tape on disk generates the tape configuration information, and whether the tape configuration information that the checking data readout device reports is consistent with the tape configuration information of generation;
The data backup command that data and instruction interface module 52 are used for receiving passes to data transfer apparatus, the data that receive are recovered instruction pass to data readout setup, and, receive the backed up data that backup server sends, send data recovered to backup server.
Above-mentioned software module 51 can specifically be embedded in (see figure 9) in the operating system 53, and operating system 53 is management data and instruction interface module 52 and disk interface module 41 respectively, is used to transmit mutual instruction and data between the two.
In addition, present embodiment can also comprise management interface module 54, and this management interface module 54 is used for VTL is managed, and it can all exist with other functional modules among the VTL and be connected, and is used for the situation of the execution function of other functional modules is managed.
But present embodiment has been expanded the function of the disk interface module among the VTL and has been supported the disk off-line, particularly, has increased off-line disk management module 43 in the disk interface module, thereby but realized the function that off-line is preserved Backup Data; Present embodiment does not need to adopt the physical tape storehouse as the filing medium, does not need to set up the physical connection between VTL and the physical tape storehouse, has reduced backup cost.In addition, present embodiment can reach the purpose that expands the VTL capacity by expanding disk size or disk number, greatly reduces the cost of VTL capacity extensions like this; Present embodiment provides fault tolerant mechanism, has improved the reliability of off-line data, has avoided losing the problem that causes Backup Data to recover because of single-deck data recording on tape in the physical tape storehouse in the prior art.
One of ordinary skill in the art will appreciate that: all or part of step that realizes said method embodiment can be finished by the relevant hardware of programmed instruction, aforesaid program can be stored in the computer read/write memory medium, this program is when carrying out, execution comprises the step of said method embodiment, and aforesaid storage medium comprises: various media that can be program code stored such as ROM, RAM, magnetic disc or CD.
It should be noted that at last: above embodiment only in order to the technical scheme of the explanation embodiment of the invention, is not intended to limit; Although the embodiment of the invention is had been described in detail with reference to previous embodiment, those of ordinary skill in the art is to be understood that: it still can be made amendment to the technical scheme that aforementioned each embodiment put down in writing, and perhaps part technical characterictic wherein is equal to replacement; And these modifications or replacement do not make the essence of appropriate technical solution break away from the spirit and scope of each embodiment technical scheme of the embodiment of the invention.

Claims (10)

1. a method for writing data is characterized in that, comprising:
When disk writes data, tape configuration information that will be corresponding with described data writes disk, generates in the process that described tape configuration information is a virtual tape on described disk;
Write down the disk sign of described disk.
2. method for writing data according to claim 1 is characterized in that, when described disk belonged to disk in the Redundant Array of Independent Disks (RAID) RAID group, described method also comprised:
RAID information is write described disk;
Write down described RAID information.
3. a data read method is characterized in that, comprising:
When receiving data recovery instruction, from disk, read the disk sign;
When the disk the read sign and the disk of record identify when consistent, from described disk, read the tape configuration information, described tape configuration information is reported software module;
When the tape configuration information that goes out to report when described software module verification and the tape accordant configuration information of generation, from described disk, read and the described corresponding data of tape configuration information that report.
4. data read method according to claim 3 is characterized in that, when described disk belonged to disk in the Redundant Array of Independent Disks (RAID) RAID group, described method also comprised:
From disk, read RAID information;
Describedly identify when consistent when the disk the read sign and the disk of record, reading the tape configuration information from described disk comprises: during the RAID information unanimity of and the RAID information of reading and record consistent when the disk sign of the disk read sign and record, read the tape configuration information from described disk.
5. a data transfer apparatus is characterized in that, comprising:
The information writing module is used for when when disk writes data, and tape configuration information that will be corresponding with described data writes disk, generates in the process that described tape configuration information is a virtual tape on described disk;
Logging modle is used to write down the disk sign of described disk.
6. data transfer apparatus according to claim 5 is characterized in that, also comprises:
Redundant Array of Independent Disks (RAID) RAID control module is used for RAID information is write described disk;
Described logging modle also is used to write down described RAID information.
7. a data readout setup is characterized in that, comprising:
Information is read module, is used for reading the disk sign from disk when receiving data recovery instruction;
The configuration information reporting module is used for identifying when consistent when the disk the read sign and the disk of record, reads the tape configuration information from described disk, and described tape configuration information is reported software module;
Data are read module, when being used for the tape accordant configuration information of the tape configuration information that goes out to report when described software module verification and generation, read from described disk and the described corresponding data of tape configuration information that report.
8. data readout setup according to claim 7 is characterized in that:
Described information is read module and also is used for reading Redundant Array of Independent Disks (RAID) RAID information from disk when receiving data recovery instruction;
When described configuration information reporting module is used for the RAID information unanimity of disk sign when the disk read sign and record consistent and the RAID information of reading and record, from described disk, read the tape configuration information, described tape configuration information is reported software module.
9. a virtual tape library equipment is characterized in that, comprising:
Data transfer apparatus is used for when when disk writes data, and tape configuration information that will be corresponding with described data writes disk; And the disk that writes down described disk identifies;
Data readout setup is used for reading the disk sign from disk when receiving data recovery instruction; When the disk the read sign and the disk of record identify when consistent, from described disk, read the tape configuration information, described tape configuration information is reported; And, when the tape configuration information that goes out to report when verification and the tape accordant configuration information of generation, from described disk, read and the described corresponding data of tape configuration information that report;
Software module, the process that is used for virtual tape on described disk generates described tape configuration information, and whether the tape configuration information that the described data readout setup of verification reports is consistent with the tape configuration information of generation;
Data and instruction interface module, the data backup command that is used for receiving passes to described data transfer apparatus, the described data that receive are recovered instruction pass to described data readout setup, and, receive the backed up data that backup server sends, send data recovered to described backup server.
10. virtual tape library equipment according to claim 9 is characterized in that, also comprises:
Operating system, described software module is embedded in the described operating system.
CN200910261061A 2009-12-17 2009-12-17 Method and device for writing in and reading out data and virtual tape library device Pending CN101751231A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200910261061A CN101751231A (en) 2009-12-17 2009-12-17 Method and device for writing in and reading out data and virtual tape library device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200910261061A CN101751231A (en) 2009-12-17 2009-12-17 Method and device for writing in and reading out data and virtual tape library device

Publications (1)

Publication Number Publication Date
CN101751231A true CN101751231A (en) 2010-06-23

Family

ID=42478255

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200910261061A Pending CN101751231A (en) 2009-12-17 2009-12-17 Method and device for writing in and reading out data and virtual tape library device

Country Status (1)

Country Link
CN (1) CN101751231A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101968722A (en) * 2010-09-28 2011-02-09 天津火星科技有限公司 Flash memory based magnetic tape simulation method
CN102063276A (en) * 2010-12-23 2011-05-18 创新科存储技术有限公司 Storage equipment with both RAID (Redundant Array Of Inexpensive Disk) and VTL (Virtual Tape Library) functions and method
CN102521072A (en) * 2011-11-25 2012-06-27 成都市华为赛门铁克科技有限公司 Virtual tape library equipment and data recovery method
CN103049224A (en) * 2012-12-28 2013-04-17 华为技术有限公司 Method, device and system for importing data into physical tape
WO2013075516A1 (en) * 2011-11-25 2013-05-30 华为技术有限公司 Virtual tape library device and data restoration method
CN106843764A (en) * 2017-01-22 2017-06-13 联想(北京)有限公司 Soft raid-array creation method and system
CN109597828A (en) * 2018-09-29 2019-04-09 阿里巴巴集团控股有限公司 A kind of off-line data checking method, device and server

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101968722A (en) * 2010-09-28 2011-02-09 天津火星科技有限公司 Flash memory based magnetic tape simulation method
CN102063276A (en) * 2010-12-23 2011-05-18 创新科存储技术有限公司 Storage equipment with both RAID (Redundant Array Of Inexpensive Disk) and VTL (Virtual Tape Library) functions and method
CN102521072A (en) * 2011-11-25 2012-06-27 成都市华为赛门铁克科技有限公司 Virtual tape library equipment and data recovery method
WO2013075516A1 (en) * 2011-11-25 2013-05-30 华为技术有限公司 Virtual tape library device and data restoration method
CN102521072B (en) * 2011-11-25 2013-09-11 华为数字技术(成都)有限公司 Virtual tape library equipment and data recovery method
US9384099B2 (en) 2011-11-25 2016-07-05 Huawei Technologies Co., Ltd. Virtual tape library device and data recovery method
CN103049224A (en) * 2012-12-28 2013-04-17 华为技术有限公司 Method, device and system for importing data into physical tape
CN103049224B (en) * 2012-12-28 2015-12-23 华为技术有限公司 By the methods, devices and systems of data importing physical tape
CN106843764A (en) * 2017-01-22 2017-06-13 联想(北京)有限公司 Soft raid-array creation method and system
CN106843764B (en) * 2017-01-22 2020-02-21 联想(北京)有限公司 Method and system for creating soft independent redundant disk array
CN109597828A (en) * 2018-09-29 2019-04-09 阿里巴巴集团控股有限公司 A kind of off-line data checking method, device and server

Similar Documents

Publication Publication Date Title
CN102024044B (en) Distributed file system
CN101751231A (en) Method and device for writing in and reading out data and virtual tape library device
CN100530125C (en) Safety storage method for data
CN100390745C (en) Apparatus and method to check data integrity when handling data
CN103136074B (en) Data storage method and data storage system of multiple disk array systems
US7613946B2 (en) Apparatus, system, and method for recovering a multivolume data set
CN102521072B (en) Virtual tape library equipment and data recovery method
CN102314383B (en) Failure recovery method and device for data index
US20070294565A1 (en) Simplified parity disk generation in a redundant array of inexpensive disks
CN101916173B (en) RAID (Redundant Array of Independent Disks) based data reading and writing method and system thereof
CN102207895B (en) Data reconstruction method and device of redundant array of independent disk (RAID)
WO2017190578A1 (en) Hard disk data wiping method, server and system
CN102708019A (en) Method, device and system for hard disk data recovery
CN102508733B (en) A kind of data processing method based on disk array and disk array manager
KR101050475B1 (en) Data backup management device
CN102177496A (en) System and method for transferring data between different RAID data storage types for current data and replay data
CN103034564A (en) Data disaster tolerance demonstration and practicing method and data disaster tolerance demonstration and practicing device and system
CN102226892B (en) Disk fault tolerance processing method and device thereof
CN103019623A (en) Memory disc processing method and device
CN105589733B (en) A kind of data processing method and device
CN106528338A (en) Remote data replication method, storage equipment and storage system
CN105630417B (en) A kind of RAID5 systems and in the subsequent method for continuing data of RAID5 thrashings
CN102314322A (en) Data processing method and device based on RAID (redundant array of independent disks)
CN108170375B (en) Overrun protection method and device in distributed storage system
CN101794246B (en) Backup storage system, backup system, data backup method and recovery method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20100623