[go: up one dir, main page]

CN103049224A - Method, device and system for importing data into physical tape - Google Patents

Method, device and system for importing data into physical tape Download PDF

Info

Publication number
CN103049224A
CN103049224A CN2012105869353A CN201210586935A CN103049224A CN 103049224 A CN103049224 A CN 103049224A CN 2012105869353 A CN2012105869353 A CN 2012105869353A CN 201210586935 A CN201210586935 A CN 201210586935A CN 103049224 A CN103049224 A CN 103049224A
Authority
CN
China
Prior art keywords
data
block
dummy
tape
target data
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.)
Granted
Application number
CN2012105869353A
Other languages
Chinese (zh)
Other versions
CN103049224B (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.)
Hefei Jiaying Juhe Technology Service Co ltd
Original Assignee
Huawei 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 Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201210586935.3A priority Critical patent/CN103049224B/en
Publication of CN103049224A publication Critical patent/CN103049224A/en
Application granted granted Critical
Publication of CN103049224B publication Critical patent/CN103049224B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention relates to a method, a device and a system for importing data into a physical tape. The method includes receiving a data writing request transmitted by a backup server; writing target data into a virtual data block of a virtual tape, and judging whether data are stored in the virtual data block before the target data are written into the virtual data block of the virtual tape or not; generating a virtual block number of the virtual data block written with the target data if the data are not stored in the virtual data block before the target data are written into the virtual data block of the virtual tape; and recording the virtual block number in a preset mapping table. Accordingly, the target data can be imported into the physical tape according to the virtual block number. The data writing request carries the target data. The method, the device and the system have the advantage that the data in the virtual tape can be imported into the physical tape in a differential importing mode or an incremental importing mode according to the mapping table.

Description

Methods, devices and systems with the data importing physical tape
Technical field
The present invention relates to the network application field, relate in particular to a kind of methods, devices and systems with the data importing physical tape.
Background technology
VTL (Virtual Tape Library, VTL) technology is the disk array hardware device in itself, supports data backup and reduction near the disk array limiting velocity.Because the Organization of Data logic of the Organization of Data logical and physical tape of VTL is in full accord, therefore can be the data importing in the virtual tape in physical tape, perhaps with the write buffer memory of virtual tape as the physical tape backup.
Under prior art, can adopt tape duplication and order to transmit the method that combines and realize the write buffer memory of virtual tape as the physical tape backup.Wherein, be specially with implementation procedure: backup server backs up data to virtual tape; After backup was finished, virtual tape equipment triggered based on strategy, and physical tape is arrived in the data importing among the VTL, and after importing is finished, can be according to the Backup Data among strategy deletion or the reservation VTL; After copying data to physical tape, in order to guarantee the consistance of data recording on tape, virtual tape equipment all directly is transmitted to physical tape with backup server to all read-write operations of virtual tape and processes.
The shortcoming of prior art is: when backup server at Backup Data the time, the data in the virtual tape can not import to physical tape, cause the available time of operation of data to greatly reduce; After data in the virtual tape have imported to physical tape, when having added again new data or legacy data in the virtual tape and be modified, data in the whole tape must be imported to physical tape again, can't realize that namely increment imports, perhaps difference imports.After data importing is finished, backup server again by virtual tape in the physical tape during data writing, in order to guarantee to produce the data that will back up in the server and the data's consistency in the physical tape, the mode that can adopt order to transmit, be directly request to be forwarded to physical tape after virtual tape receives the data writing request of backup server, and virtual tape data writing no longer itself, this order is transmitted operation and has been reduced the data backup performance.
Summary of the invention
The embodiment of the invention provides a kind of methods, devices and systems with the data importing physical tape, to realize according to mapping table, data communication device in the virtual tape is crossed the mode that difference imports or increment imports import in the physical tape, improved the efficient with the data importing physical tape.
The embodiment of the invention provides a kind of method with the data importing physical tape, and described method comprises:
Receive the data write request that backup server sends, carry target data in the described data write request;
Described target data is write in the dummy data block of virtual tape, and judge whether described target data stores data in the described dummy data block before writing in the dummy data block of virtual tape;
If no, then generate the dummy block will numbering of the described dummy data block that described target data writes;
The described dummy block will numbering of record in the mapping table that sets in advance is to be used for according to described dummy block will numbering described target data being imported physical tape.
In the possible implementation of the first, the described numbering according to described dummy block will comprises described target data importing physical tape: in the address corresponding with described dummy block will numbering that described target data is imported physical tape.
In conjunction with the possible implementation of the first of first aspect or first aspect, in the possible implementation of the second, describedly also comprise after will described target data importing physical tape according to described dummy block will numbering: the storage space that reclaims virtual tape corresponding to described dummy block will numbering.
In conjunction with first aspect, in the third possible implementation, described mapping table also comprises: import identification information and reclaim identification information; Described importing identification information is used for identifying described target data and whether is imported into physical tape; Whether described recovery identification information is recovered for the dummy data block that identifies the shared virtual tape of described target data.
Second aspect, the embodiment of the invention provide a kind of device of just data importing physical tape, and described device comprises;
Receiving element is used for receiving the data write request that backup server sends, and carries target data in the described data write request, and described target data is transferred to processing unit;
Processing unit, be used for receiving the described target data of described receiving element transmission, described target data is write in the dummy data block of virtual tape, and judge that whether described target data stores data in the described dummy data block before writing in the dummy data block of virtual tape, transfers to generation unit with judged result;
Generation unit is used for receiving the described judged result of described processing unit transmission, if described judged result be yes, the dummy block will that then generates the described dummy data block that described target data writes is numbered, with described dummy block will numbered transmission to importing the unit;
Import the unit, be used for receiving the described dummy block will numbering of described generation unit transmission, the described dummy block will numbering of record in the mapping table that sets in advance is to be used for according to described dummy block will numbering described target data being imported physical tape.
In the possible implementation of the first, described importing unit specifically is used for: according to the address corresponding with described dummy block will numbering that described target data is imported physical tape.
In conjunction with the possible implementation of the first of second aspect or second aspect, in the possible implementation of the second, described device also comprises: recovery unit is used for reclaiming the storage space that described dummy block will is numbered corresponding virtual tape.
In conjunction with second aspect, in the third possible implementation, described mapping table also comprises: import identification information and reclaim identification information; Described importing identification information is used for identifying described target data and whether is imported into physical tape; Whether described recovery identification information is recovered for the dummy data block that identifies the shared virtual tape of described target data.
The third aspect, the embodiment of the invention provide a kind of system with the data importing physical tape, and described system comprises above-mentioned device with the data importing physical tape, and backup server, the residing physical tape library facilities of physical tape.
In the embodiment of the invention, VTL receives the data write request that backup server sends, and carries target data in the described data write request; Described target data is write in the dummy data block of virtual tape, and judge whether described target data stores data in the described dummy data block before writing in the dummy data block of virtual tape; If no, then generate the dummy block will numbering of the described dummy data block that described target data writes; The described dummy block will numbering of record in the mapping table that sets in advance is to be used for according to described dummy block will numbering described target data being imported physical tape.Realized according to mapping table thus, the data communication device in the virtual tape has been crossed the mode that difference imports or increment imports import in the physical tape, improved the efficient with the data importing physical tape.
Description of drawings
A kind of method application scenarios schematic diagram with the data importing physical tape that Fig. 1 provides for the embodiment of the invention;
A kind of method flow diagram with the data importing physical tape that Fig. 2 provides for the embodiment of the invention;
The method flow diagram with the data importing physical tape in the virtual tape that Fig. 3 provides for the embodiment of the invention;
The method flow diagram of the storage space of the virtual tape that the data collection that Fig. 4 provides for the embodiment of the invention is shared;
A kind of device schematic diagram with the data importing physical tape that Fig. 5 provides for the embodiment of the invention;
A kind of virtual tape library equipment schematic diagram that Fig. 6 provides for the embodiment of the invention.
Embodiment
In below describing, in order to illustrate rather than in order limiting, to have proposed the detail such as particular system structure, interface, technology, understand the present invention in order to thoroughly cut.Yet, not it will be clear to one skilled in the art that in having other embodiment of these details and can realize the present invention yet.In other situation, omit the detailed description to well-known device, circuit and method, in order to avoid unnecessary details hinders description of the invention.
A kind of method application scenarios schematic diagram with the data importing physical tape that Fig. 1 provides for the embodiment of the invention.The method with the data importing physical tape that the embodiment of the invention provides can be applicable to the production server is write the scene of the data importing physical tape of backup server.As shown in Figure 1, in the application scenarios that the embodiment of the invention provides, after the production server writes backup server by business network with data, backup server can write data in the virtual tape of virtual tape library equipment, virtual tape library equipment is the buffer memory device of physical tape library facilities, virtual tape library equipment can by the mapping table of Dynamic Establishing, import physical tape with the data that write virtual tape in the mode that increment imports or difference imports.
Need to prove, can comprise a plurality of virtual tapes in the virtual tape library equipment, can comprise a plurality of physical tape in the physical tape library facilities.
A kind of method flow diagram with the data importing physical tape that Fig. 2 provides for the embodiment of the invention.The executive agent of this embodiment is virtual tape library equipment, after wherein describing virtual tape library equipment in detail and receiving the data write request that backup server sends, data is write the method for physical tape.As shown in Figure 2, this embodiment may further comprise the steps:
Step 201 receives the data write request that backup server sends, and carries target data in the described data write request.
Backup server is in the time will writing physical tape with Backup Data, and at first scanning tape storehouse, and the virtual tape library equipment under the tape library that scans sends the data write request, has wherein carried the target data that will write tape library.
Wherein, the tape library that backup server scans is by the Cache tape of virtual tape library equipment according to the attribute establishment of the physical tape in the physical tape library facilities, the type of this virtual tape library equipment is not necessarily identical with the type of the physical tape library facilities that is connected with this virtual tape library equipment, can solve thus the compatibility issue between backup server and the physical tape storehouse.
Step 202 writes described target data in the dummy data block of virtual tape, and judges whether described target data stores data in the described dummy data block before writing in the dummy data block of virtual tape.
After virtual tape library equipment receives the write operation request, can therefrom extract the target data that will write virtual tape, and target data is write in the virtual tape.
Preferably, when target data is write dummy data block, can return to backup server and write successful response message, backup server can continue to the virtual tape data writing thus.Even when virtual tape library equipment is with the data importing physical tape, backup server also can to the virtual tape data writing, so that the pot life of data importing operation increases considerably, improve importing efficient.
Need to prove, if target data is write before the dummy data block, stored data in the dummy data block, then directly cover legacy data in the dummy data block with target data, can number without the regeneration dummy block will.If target data is write before the dummy data block, do not store data in the dummy data block, then execution in step 203.
Step 203 if do not have, then generates the dummy block will numbering of the described dummy data block that described target data writes.
If dummy data block is for being written into first data, then behind data writing, generation is used for identifying the dummy block will numbering of this dummy data block, so that this this dummy data block of dummy block will numeral index with the data importing physical tape in this dummy data block the time, is used in the back.
Need to prove, the dummy block will of the address information of dummy data block and dummy data block numbering is corresponding one by one in the virtual tape that target data is written into, and corresponding one by one with the physical block number of physical data block in the physical tape that data in the dummy data block will write.Alternatively, the address information of each data block in the storing virtual tape not in the mapping table.Step 204, the described dummy block will numbering of record in the mapping table that sets in advance is to be used for according to described dummy block will numbering described target data being imported physical tape.
In order to realize technical scheme of the present invention, a mapping table is provided in the embodiment of the invention, this mapping table be used for to be realized the mapping relations between virtual tape and the physical tape, can be stored in the virtual tape library equipment, also can be stored in other equipment that can be accessed by VTL.A plurality of list items have been stored in this mapping table, the item No. of each list item is consistent with the dummy block will numbering, and consistent with the physical block number of each physical block in the physical tape, this physical block is the data block that being used in the described physical tape deposited the target data that described virtual tape library equipment imports.In order to make things convenient for the index list item, the length of each list item is identical, and the information of list item is as shown in table 1.The information of each list item comprises dummy block will numbering, and this dummy block will numbering can be consistent with the item No. of list item, and the information that is numbered 0 dummy data block and item No. such as dummy block will and is in 0 the list item is corresponding.
A kind of preferred embodiment in, the information of each list item of mapping table can also comprise the importing identification information and reclaim identification information, whether the data that this importing identification information is used for dummy data block corresponding to sign are fed to physical tape, and whether this recovery identification information is used for the shared storage space of sign dummy data block and is recovered.
In a kind of optional embodiment, the information of each list item of mapping table can also comprise physical block number, and this physical block number is used for the sign dummy block will and numbers the physical data block that the data of corresponding dummy data block will write.
In the optional embodiment of another kind, the information of each list item of mapping table can also comprise the type of target data, and being used for the sign target data is data or file mark Filemark.
The information of each list item in table 1 mapping table
Information Program code definition signal Explanation
Physical block number U64Blk The physical block that is used for physical tape corresponding to this mapping block of sign
Import identification information Bool?toPTL Whether be used for data corresponding to sign is exported to physical tape
Reclaim identification information Bool?recycle Whether be used for the shared storage space of sign dummy data block has been recovered
Data type Enum?type The type that is used for identification data is data or Filemark
The dummy block will numbering U64Blk Be used for which dummy data block that identification data has been stored in virtual tape
The leader tape head position of physical tape can only rest on the reference position of each physical data block, physical tape is come each physical data block of index (physical block number is since 0 serial number) by physical block number, the size of data of each physical data block is not necessarily identical, and file mark Filemark does not take the data space size, but will take a physical block number.Wherein, each list item of mapping table has not only been described and has been used for the dummy block will numbering of the dummy data block of storage data in the index virtual tape, and use physical block number described with physical tape in the corresponding relation of physical block, the relation of mapping table, physical tape, virtual tape is as follows:
Figure BDA00002676732500081
As implied above, the physical block number of each physical data block can be identical in the dummy block will of each dummy data block numbering, the physical tape in the item No. of the list item of mapping table, the virtual tape, thus, virtual tape library equipment is according to the corresponding relation between this three, easily with in the data importing physical tape.
Need to prove, the foundation of this mapping table is a dynamic process, backup server is data writing in the new dummy data block in the virtual tape at every turn, all can generate a new dummy block will numbering, and in mapping table, add a list item corresponding with this dummy block will numbering, the position skew of list item equals the size that logical block number multiply by list item).Wherein, the importing identification information of new list item reclaims identification information for not reclaiming for not importing.When the target data that writes dummy data block is imported into physical tape, the importing identification information of corresponding list item will be modified as importing.With the dummy data block of data importing physical tape, its shared storage space can be recovered for, and the recovery identification information of corresponding list item will be modified as reclaiming this moment.
The above has described when data of first increase, needs to increase a list item.But when having write before the dummy data block data writing of data, can upgrade the information of corresponding list item according to the dummy block will numbering of the dummy data block that will write, not reset to such as the importing identification information with list item and import.
According to described dummy block will numbering the operation that described target data imports physical tape is specially: in the address corresponding with described dummy block will numbering that described target data is imported in the physical tape.
In actual applications, when importing the target data in the virtual tape in the physical tape, can be revised as the importing identification information of the corresponding list item of mapping table and import, when import operation by Halfway Stopping, next time is when continuing to carry out import operation, only need to search and import identification information in the mapping table and get final product for target data corresponding to list item that does not import continues to import physical tape, so just realize the increment importing.If covering again, backup server write certain dummy data block in the virtual tape, do not import because the importing identification information of the corresponding list item in the mapping table also is set to this moment, therefore when carrying out the continuation import operation next time, just can search by dummy data block capped in the virtual tape, thereby realize continuing to import from the dummy data block that covers, namely realized the difference importing.Because in importing process, the speed of search mapping table is very fast, the speed that imports data is very slow, so the importing efficient that difference imports and increment imports that the embodiment of the invention realizes is very high.
In the embodiment of the invention, VTL receives the data write request that backup server sends, and carries target data in the described data write request; Described target data is write in the dummy data block of virtual tape, and judge whether described target data stores data in the described dummy data block before writing in the dummy data block of virtual tape; If no, then generate the dummy block will numbering of the described dummy data block that described target data writes; The described dummy block will numbering of record in the mapping table that sets in advance is to be used for according to described dummy block will numbering described target data being imported physical tape.Realized according to mapping table thus, the data communication device in the virtual tape has been crossed the mode that difference imports or increment imports import in the physical tape, improved the efficient with the data importing physical tape.
After backup server write virtual tape with data, virtual tape library equipment can be with in the data importing physical tape that writes, the method flow diagram with the data importing physical tape in the virtual tape that Fig. 3 provides for the embodiment of the invention.The executive agent of this embodiment is virtual tape library equipment.As shown in Figure 3, this embodiment may further comprise the steps:
Step 301 reads the information of first list item in the mapping table.
When physical tape is arrived in the data importing in the virtual tape, can begin to read from first list item of mapping table information wherein at every turn.
Whether step 302 is imported into according to the data in the corresponding dummy data block of this list item of importing identification information judgment of list item.
Because when importing data from virtual tape at every turn, during perhaps to the virtual tape data writing, the importing identification information of corresponding list item is upgraded in the capital, therefore can judge whether the target data in the dummy data block corresponding in virtual tape corresponding to this list item is imported into by the importing identification information of list item.
If import the value of identification information for not importing, then execution in step 304, if the value that imports identification information is for importing, then execution in step 303.
Step 303 if be imported into, then reads the information of next list item.
If the target data of the dummy data block that first list item is corresponding is imported into, then continues to read the information of next list item, and judge whether the target data of the dummy data block that this next one list item is corresponding is imported into, and namely execution in step 302.
Step 304 is not if be imported into, then with the data importing physical tape in the dummy data block of correspondence.
If the target data of the dummy data block that first list item is corresponding is not imported into, then can be to physical tape library facilities transmit operation request, carry the target data that will write physical tape in this operation requests, and the address information that this target data will be write, this address information is corresponding with physical block number in the list item, thereby target data is write physical tape piece corresponding in the physical tape.
Step 305, with the importing update of identification information of list item for importing.
After target data in the dummy data block imported to physical tape, can be with the importing update of identification information of the list item of correspondence for importing.So that continuing in the virtual tape in the back has data to be written into, when physical tape is arrived in the data importing that needs continuation newly to write, can not repeat to import the data that imported, improve importing efficient.
Data importing in the dummy data block after physical tape, can be continued to read the information of next list item, and according to the physical block number in the next list item and dummy block will position, to physical tape, namely execution in step 304 with data importing.
Preferably, if covering again, backup server write certain dummy data block in the virtual tape, do not import because the importing identification information of the corresponding list item in the mapping table also is set to this moment, therefore when carrying out the continuation import operation next time, just can search by dummy data block capped in the virtual tape, thereby realize continuing to import from the dummy data block that covers, namely realized the difference importing.
In the embodiment of the invention, when importing data, by the importing identification information in the query mappings table, can realize that difference imports and increment imports, avoid repeating to import the data that imported, improve importing efficient.
Virtual tape library equipment with data cached write physical tape after, virtual tape library equipment can reclaim data cached shared virtual tape space, the method flow diagram of the data cached shared space on computer tapes of the recovery that Fig. 4 provides for the embodiment of the invention.The executive agent of this embodiment is virtual tape library equipment.As shown in Figure 4, this embodiment may further comprise the steps:
Step 401 reads the information of first list item in the mapping table.
When the space that the data of institute's buffer memory in the virtual tape of virtual tape library equipment take has reached certain storage threshold, as the ratio of the space that takies and virtual tape library equipment memory capacity can be carried out the reclaimer operation of space on computer tapes when reaching 50%.
When reclaiming the virtual tape space, can begin to read from first list item of mapping table information wherein.
Whether step 402 is imported into according to the data in the corresponding dummy data block of this list item of importing identification information judgment in the information of list item.
Because when importing data from virtual tape at every turn, during perhaps to the virtual tape data writing, the importing identification information of corresponding list item is upgraded in the capital, therefore can judge whether the data in dummy data block corresponding to this list item are imported into by the importing identification information of list item.If be imported into, then can carry out and reclaim the space on computer tapes that this dummy data block takies, namely execution in step 403, if be not imported into, then can not carry out the operation of reclaiming the space, and namely execution in step 405.
Step 403 if be imported into, then reclaims the corresponding storage space of dummy data block corresponding to this list item, and reclaims identification information and be set to reclaim.
If the target data of the dummy data block that first list item is corresponding is imported into, then can carry out the operation of reclaiming the space on computer tapes that this dummy data block takies, and the recovery identification information of this list item is set to reclaim.
Step 404 reads the information of next list item in the mapping table.
If the dummy data block that first list item is corresponding is recovered, then continues to read the information of next list item, and judge whether the target data of the dummy data block that this next one list item is corresponding is imported into, and namely execution in step 402.
Step 405, if be not imported into, then flow process finishes.
In the embodiment of the invention, by the mapping table mechanism import the at any time recycling of virtual tape space of data, improved the utilization factor in virtual tape space.
A kind of preferred embodiment in, virtual tape library equipment can form a unified storage resources with the physical tape library facilities and offer backup server, virtual tape library equipment can be used as the secondary storage devices of backup, and the physical tape library facilities can be used as tertiary storage equipment.Utilization utilizes the increment of mentioning in the above embodiment of the present invention to import, difference imports and the scheme of virtual tape space reclamation, can realize that data move to tertiary storage equipment from secondary storage devices.Technical scheme provided by the present invention can also be used for realizing the hierarchical stor of disk unit and tape unit composition thus, and realizes the Autonomic Migration Framework of data between the memory devices at different levels.
For data division be stored in the physical tape, part is stored in the application scenarios in the virtual tape, virtual tape library equipment is when the read operation request that receives backup server, can at first read the information of the corresponding list item of mapping table, if the recovery identification information of list item is for reclaiming, read corresponding data in physical data block corresponding to the physical block number that then virtual tape library equipment can this list item, and data are returned to backup server; If the recovery identification information of list item is not labeled as and reclaims, then virtual tape library equipment can read from the value of the virtual tape position that this list item records corresponding data.Realize thus the read operation request according to backup server, the data in the hierarchical storage apparatus are turned back to backup server.
Correspondingly, the embodiment of the invention also provides a kind of device with the data importing physical tape.A kind of device schematic diagram with the data importing physical tape that Fig. 5 provides for the embodiment of the invention.As shown in Figure 5, the device that provides of this embodiment comprises with lower unit:
Receiving element 501 is used for receiving the data write request that backup server sends, and carries target data in the described data write request, and described target data is transferred to processing unit.
Backup server is in the time will writing physical tape with Backup Data, and at first scanning tape storehouse, and the virtual tape library equipment under the tape library that scans sends the data write request, has wherein carried the target data that will write tape library.
Wherein, the tape library that backup server scans is by the Cache tape of virtual tape library equipment according to the attribute establishment of the physical tape in the physical tape library facilities, the type of this virtual tape library equipment is not necessarily identical with the type of the physical tape library facilities that is connected with this virtual tape library equipment, can solve thus the compatibility issue between backup server and the physical tape storehouse.
Processing unit 502, be used for receiving the described target data of described receiving element transmission, described target data is write in the dummy data block of virtual tape, and judge that whether described target data stores data in the described dummy data block before writing in the dummy data block of virtual tape, transfers to generation unit with judged result.
After virtual tape library equipment receives the write operation request, can therefrom extract the target data that will write virtual tape, and target data is write in the virtual tape.
Preferably, when target data is write dummy data block, can return to backup server and write successful response message, backup server can continue to the virtual tape data writing thus.Even when virtual tape library equipment is with the data importing physical tape, backup server also can to the virtual tape data writing, so that the pot life of data importing operation increases considerably, improve importing efficient.
Need to prove, if target data is write before the dummy data block, stored data in the dummy data block, then directly cover legacy data in the dummy data block with target data, can number without the regeneration dummy block will.
Generation unit 503 is used for receiving the described judged result of described processing unit transmission, if described judged result be yes, the dummy block will that then generates the described dummy data block that described target data writes is numbered, with described dummy block will numbered transmission to importing the unit.
Need to prove, the dummy block will of the address information of dummy data block and dummy data block numbering is corresponding one by one in the virtual tape that target data is written into, and corresponding one by one with the physical block number of physical data block in the physical tape that data in the dummy data block will write.Alternatively, the address information of each data block in the storing virtual tape not in the mapping table.
Import unit 504, be used for receiving the described dummy block will numbering of described generation unit transmission, the described dummy block will numbering of record in the mapping table that sets in advance is to be used for according to described dummy block will numbering described target data being imported physical tape.
In order to realize technical scheme of the present invention, a mapping table is provided in the embodiment of the invention, this mapping table be used for to be realized the mapping relations between virtual tape and the physical tape, can be stored in the virtual tape library equipment, also can be stored in other equipment that can be accessed by VTL.A plurality of list items have been stored in this mapping table, the item No. of each list item is consistent with the dummy block will numbering, and consistent with the physical block number of each physical block in the physical tape, this physical block is the data block that being used in the described physical tape deposited the target data that described virtual tape library equipment imports.In order to make things convenient for the index list item, the length of each list item is identical, and the information of list item is as shown in table 1.The information of each list item comprises dummy block will numbering, and this dummy block will numbering can be consistent with the item No. of list item, and the information that is numbered 0 dummy data block and item No. such as dummy block will and is in 0 the list item is corresponding.
A kind of preferred embodiment in, the information of each list item of mapping table can also comprise the importing identification information and reclaim identification information, whether the data that this importing identification information is used for dummy data block corresponding to sign are fed to physical tape, and whether this recovery identification information is used for the shared storage space of sign dummy data block and is recovered.
In a kind of optional embodiment, the information of each list item of mapping table can also comprise physical block number, and this physical block number is used for the sign dummy block will and numbers the physical data block that the data of corresponding dummy data block will write.
In the optional embodiment of another kind, the information of each list item of mapping table can also comprise the type of target data, and being used for the sign target data is data or file mark Filemark.
Importing unit 504 specifically is used for: according to the address corresponding with described dummy block will numbering that described target data is imported physical tape.
In actual applications, when importing the target data in the virtual tape in the physical tape, can be revised as the importing identification information of the corresponding list item of mapping table and import, when import operation by Halfway Stopping, next time is when continuing to carry out import operation, only need to search and import identification information in the mapping table and get final product for target data corresponding to list item that does not import continues to import physical tape, so just realize the increment importing.If covering again, backup server write certain dummy data block in the virtual tape, do not import because the importing identification information of the corresponding list item in the mapping table also is set to this moment, therefore when carrying out the continuation import operation next time, just can search by dummy data block capped in the virtual tape, thereby realize continuing to import from the dummy data block that covers, namely realized the difference importing.Because in importing process, the speed of search mapping table is very fast, the speed that imports data is very slow, so the importing efficient that difference imports and increment imports that the embodiment of the invention realizes is very high.
Preferably, the device that the embodiment of the invention provides also comprises: recovery unit 505 is used for reclaiming the storage space that described dummy block will is numbered corresponding virtual tape.
Particularly, in order to save the shared storage space of virtual tape, the shared storage space of dummy data block that data can be imported into physical tape reclaims.
In the embodiment of the invention, VTL receives the data write request that backup server sends, and carries target data in the described data write request; Described target data is write in the dummy data block of virtual tape, and judge whether described target data stores data in the described dummy data block before writing in the dummy data block of virtual tape; If no, then generate the dummy block will numbering of the described dummy data block that described target data writes; The described dummy block will numbering of record in the mapping table that sets in advance is to be used for according to described dummy block will numbering described target data being imported physical tape.Realized according to mapping table thus, the data communication device in the virtual tape has been crossed the mode that difference imports or increment imports import in the physical tape, improved the efficient with the data importing physical tape.
Correspondingly, the embodiment of the invention also provides a kind of virtual tape library equipment.A kind of virtual tape library equipment schematic diagram that Fig. 6 provides for the embodiment of the invention.As shown in Figure 6, as shown in the figure, the present embodiment comprises network interface 601, processor 602 and storer 603.System bus 604 is used for interconnection network interface 601, processor 602 and storer 603.
Network interface 601 is used for communicating with backup server, physical tape library facilities.
The VTL that is formed by a plurality of virtual tapes can be comprised in the storer 603, device driver, mapping table and component software can be preserved in the storer 603.Component software can be carried out the various functional modules of said method of the present invention; Device driver can be network and interface drive program.
When starting, these component softwares are loaded in the storer 603, are then accessed and carry out as giving an order by processor 602:
Receive the data write request that backup server sends, carry target data in the described data write request;
Described target data is write in the dummy data block of virtual tape, and judge whether described target data stores data in the described dummy data block before writing in the dummy data block of virtual tape;
If no, then generate the dummy block will numbering of the described dummy data block that described target data writes;
The described dummy block will numbering of record in the mapping table that sets in advance is to be used for according to described dummy block will numbering described target data being imported physical tape.
Wherein, in order to realize technical scheme of the present invention, in order to realize technical scheme of the present invention, a mapping table is provided in the embodiment of the invention, this mapping table is used for the mapping relations between realization virtual tape and the physical tape, can be stored in the virtual tape library equipment, also can be stored in other equipment that can be accessed by VTL.A plurality of list items have been stored in this mapping table, the item No. of each list item is consistent with the dummy block will numbering, and consistent with the physical block number of each physical block in the physical tape, this physical block is the data block that being used in the described physical tape deposited the target data that described virtual tape library equipment imports.In order to make things convenient for the index list item, the length of each list item is identical, and the information of list item is as shown in table 1.The information of each list item comprises dummy block will numbering, and this dummy block will numbering can be consistent with the item No. of list item, and the information that is numbered 0 dummy data block and item No. such as dummy block will and is in 0 the list item is corresponding.
A kind of preferred embodiment in, the information of each list item of mapping table can also comprise the importing identification information and reclaim identification information, whether the data that this importing identification information is used for dummy data block corresponding to sign are fed to physical tape, and whether this recovery identification information is used for the shared storage space of sign dummy data block and is recovered.
In a kind of optional embodiment, the information of each list item of mapping table can also comprise physical block number, and this physical block number is used for the sign dummy block will and numbers the physical data block that the data of corresponding dummy data block will write.
In the optional embodiment of another kind, the information of each list item of mapping table can also comprise the type of target data, and being used for the sign target data is data or file mark Filemark.
The foundation of this mapping table is a dynamic process, backup server is data writing in the new dummy data block in the virtual tape at every turn, all can generate a new dummy block will numbering, and in mapping table, add a list item corresponding with this dummy block will numbering, the position skew of list item equals the size that logical block number multiply by list item).Wherein, the importing identification information of new list item reclaims identification information for not reclaiming for not importing.When the target data that writes dummy data block is imported into physical tape, the importing identification information of corresponding list item will be modified as importing.With the dummy data block of data importing physical tape, its shared storage space can be recovered for, and the recovery identification information of corresponding list item will be modified as reclaiming this moment.
Further, virtual tape library equipment records the dummy block will numbering in the mapping table that sets in advance after, behind the component software of described processor 602 reference-to storage 603, carry out the instruction of following process: according to described dummy block will numbering described target data is imported physical tape.
Further, after processor 602 imports physical tape according to described dummy block will numbering with described target data, behind the component software of reference-to storage 603, carry out the instruction of following process: the storage space that reclaims virtual tape corresponding to described dummy block will numbering.
In actual applications, when importing the target data in the virtual tape in the physical tape, can be revised as the importing identification information of the corresponding list item of mapping table and import, when import operation by Halfway Stopping, next time is when continuing to carry out import operation, only need to search and import identification information in the mapping table and get final product for target data corresponding to list item that does not import continues to import physical tape, so just realize the increment importing.If covering again, backup server write certain dummy data block in the virtual tape, do not import because the importing identification information of the corresponding list item in the mapping table also is set to this moment, therefore when carrying out the continuation import operation next time, just can search by dummy data block capped in the virtual tape, thereby realize continuing to import from the dummy data block that covers, namely realized the difference importing.Because in importing process, the speed of search mapping table is very fast, the speed that imports data is very slow, so the importing efficient that difference imports and increment imports that the embodiment of the invention realizes is very high.
In the embodiment of the invention, VTL receives the data write request that backup server sends, and carries target data in the described data write request; Described target data is write in the dummy data block of virtual tape, and judge whether described target data stores data in the described dummy data block before writing in the dummy data block of virtual tape; If no, then generate the dummy block will numbering of the described dummy data block that described target data writes; The described dummy block will numbering of record in the mapping table that sets in advance is to be used for according to described dummy block will numbering described target data being imported physical tape.Realized according to mapping table thus, the data communication device in the virtual tape has been crossed the mode that difference imports or increment imports import in the physical tape, improved the efficient with the data importing physical tape.
Correspondingly, the embodiment of the invention also provides a kind of system with the data importing physical tape, implant above-mentioned method with the data importing physical tape in this system, comprised above-mentioned device with the data importing physical tape, and backup server and the residing physical tape library facilities of physical tape.In this system, VTL receives the data write request that backup server sends, and carries target data in the described data write request; Described target data is write in the dummy data block of virtual tape, and judge whether described target data stores data in the described dummy data block before writing in the dummy data block of virtual tape; If no, then generate the dummy block will numbering of the described dummy data block that described target data writes; The described dummy block will numbering of record in the mapping table that sets in advance is to be used for according to described dummy block will numbering described target data being imported physical tape.Realized according to mapping table thus, the data communication device in the virtual tape has been crossed the mode that difference imports or increment imports import in the physical tape, improved the efficient with the data importing physical tape.So the system that data is write physical tape that the embodiment of the invention provides is also in the protection domain of the embodiment of the invention.
The professional should further recognize, unit and the algorithm steps of each example of describing in conjunction with embodiment disclosed herein, can realize with electronic hardware, computer software or the combination of the two, for the interchangeability of hardware and software clearly is described, composition and the step of each example described in general manner according to function in the above description.These functions are carried out with hardware or software mode actually, depend on application-specific and the design constraint of technical scheme.The professional and technical personnel can specifically should be used for realizing described function with distinct methods to each, but this realization should not thought and exceeds scope of the present invention.
The method of describing in conjunction with embodiment disclosed herein or the step of algorithm can use the software module of hardware, processor execution, and perhaps the combination of the two is implemented.Software module can place the storage medium of any other form known in random access memory (RAM), internal memory, ROM (read-only memory) (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or the technical field.
Above-described embodiment; purpose of the present invention, technical scheme and beneficial effect are further described; institute is understood that; the above only is the specific embodiment of the present invention; the protection domain that is not intended to limit the present invention; within the spirit and principles in the present invention all, any modification of making, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (9)

1. the method with the data importing physical tape is characterized in that, described method comprises:
Receive the data write request that backup server sends, carry target data in the described data write request;
Described target data is write in the dummy data block of virtual tape, and judge whether described target data stores data in the described dummy data block before writing in the dummy data block of virtual tape;
If no, then generate the dummy block will numbering of the described dummy data block that described target data writes;
The described dummy block will numbering of record in the mapping table that sets in advance is to be used for according to described dummy block will numbering described target data being imported physical tape.
2. method according to claim 1 is characterized in that, the described numbering according to described dummy block will comprises described target data importing physical tape:
In the address corresponding with described dummy block will numbering that described target data is imported physical tape.
3. method according to claim 1 and 2 is characterized in that, describedly also comprises after will described target data importing physical tape according to described dummy block will numbering:
Reclaim the storage space of virtual tape corresponding to described dummy block will numbering.
4. method according to claim 1 is characterized in that, described mapping table also comprises: import identification information and reclaim identification information;
Described importing identification information is used for identifying described target data and whether is imported into physical tape;
Whether described recovery identification information is recovered for the dummy data block that identifies the shared virtual tape of described target data.
5. the device with the data importing physical tape is characterized in that, described device comprises:
Receiving element is used for receiving the data write request that backup server sends, and carries target data in the described data write request, and described target data is transferred to processing unit;
Processing unit, be used for receiving the described target data of described receiving element transmission, described target data is write in the dummy data block of virtual tape, and judge that whether described target data stores data in the described dummy data block before writing in the dummy data block of virtual tape, transfers to generation unit with judged result;
Generation unit is used for receiving the described judged result of described processing unit transmission, if described judged result be yes, the dummy block will that then generates the described dummy data block that described target data writes is numbered, with described dummy block will numbered transmission to importing the unit;
Import the unit, be used for receiving the described dummy block will numbering of described generation unit transmission, the described dummy block will numbering of record in the mapping table that sets in advance is to be used for according to described dummy block will numbering described target data being imported physical tape.
6. device according to claim 5 is characterized in that, described importing unit specifically is used for: according to the address corresponding with described dummy block will numbering that described target data is imported physical tape.
7. according to claim 5 or 6 described devices, it is characterized in that, described device also comprises: recovery unit is used for reclaiming the storage space of virtual tape corresponding to described dummy block will numbering.
8. device according to claim 5 is characterized in that, described mapping table also comprises: import identification information and reclaim identification information;
Described importing identification information is used for identifying described target data and whether is imported into physical tape;
Whether described recovery identification information is recovered for the dummy data block that identifies the shared virtual tape of described target data.
9. the system with the data importing physical tape is characterized in that, described system comprises each described device with the data importing physical tape such as claim 5-9, and backup server, the residing physical tape library facilities of physical tape.
CN201210586935.3A 2012-12-28 2012-12-28 By the methods, devices and systems of data importing physical tape Active CN103049224B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210586935.3A CN103049224B (en) 2012-12-28 2012-12-28 By the methods, devices and systems of data importing physical tape

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210586935.3A CN103049224B (en) 2012-12-28 2012-12-28 By the methods, devices and systems of data importing physical tape

Publications (2)

Publication Number Publication Date
CN103049224A true CN103049224A (en) 2013-04-17
CN103049224B CN103049224B (en) 2015-12-23

Family

ID=48061877

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210586935.3A Active CN103049224B (en) 2012-12-28 2012-12-28 By the methods, devices and systems of data importing physical tape

Country Status (1)

Country Link
CN (1) CN103049224B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105022680A (en) * 2015-08-05 2015-11-04 浪潮(北京)电子信息产业有限公司 Data backup method and device
CN106650480A (en) * 2015-10-29 2017-05-10 杭州华为数字技术有限公司 Method and device for isolating file access
CN107291386A (en) * 2017-06-14 2017-10-24 湖北第二师范学院 A kind of cache management system and method for blue light VTL gateways
CN110647297A (en) * 2019-09-19 2020-01-03 中国工商银行股份有限公司 Method, apparatus, system, and medium for controlling tape unloading
CN111026333A (en) * 2019-12-10 2020-04-17 北京金山云网络技术有限公司 Access request processing method, processing device, electronic equipment and storage medium
CN111857534A (en) * 2019-04-24 2020-10-30 北京嘀嘀无限科技发展有限公司 A data transmission method, data storage server and data storage system
CN112114756A (en) * 2020-09-27 2020-12-22 海光信息技术有限公司 Storage system and electronic device
CN113448922A (en) * 2021-08-30 2021-09-28 阿里云计算有限公司 Data archiving method, data access method and respective devices
TWI815735B (en) * 2022-11-21 2023-09-11 中華電信股份有限公司 A serialized storage system and method with space reclamation and computer-readable medium thereof

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1781072A (en) * 2003-02-05 2006-05-31 迪利根特技术公司 Tape storage emulation for open systems environments
US20080040723A1 (en) * 2006-08-09 2008-02-14 International Business Machines Corporation Method and system for writing and reading application data
CN101727291A (en) * 2008-10-14 2010-06-09 北京众志和达信息技术有限公司 System and method for embedded integrated virtual tape library
CN101739307A (en) * 2008-11-04 2010-06-16 北京众志和达信息技术有限公司 Embedded integrated virtual tape library-based data archiving protection system and method
CN101751231A (en) * 2009-12-17 2010-06-23 成都市华为赛门铁克科技有限公司 Method and device for writing in and reading out data and virtual tape library device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1781072A (en) * 2003-02-05 2006-05-31 迪利根特技术公司 Tape storage emulation for open systems environments
US20080040723A1 (en) * 2006-08-09 2008-02-14 International Business Machines Corporation Method and system for writing and reading application data
CN101727291A (en) * 2008-10-14 2010-06-09 北京众志和达信息技术有限公司 System and method for embedded integrated virtual tape library
CN101739307A (en) * 2008-11-04 2010-06-16 北京众志和达信息技术有限公司 Embedded integrated virtual tape library-based data archiving protection system and method
CN101751231A (en) * 2009-12-17 2010-06-23 成都市华为赛门铁克科技有限公司 Method and device for writing in and reading out data and virtual tape library device

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105022680A (en) * 2015-08-05 2015-11-04 浪潮(北京)电子信息产业有限公司 Data backup method and device
CN106650480A (en) * 2015-10-29 2017-05-10 杭州华为数字技术有限公司 Method and device for isolating file access
CN107291386A (en) * 2017-06-14 2017-10-24 湖北第二师范学院 A kind of cache management system and method for blue light VTL gateways
CN107291386B (en) * 2017-06-14 2018-09-07 湖北第二师范学院 A kind of cache management system and method for blue light VTL gateways
CN111857534A (en) * 2019-04-24 2020-10-30 北京嘀嘀无限科技发展有限公司 A data transmission method, data storage server and data storage system
CN110647297A (en) * 2019-09-19 2020-01-03 中国工商银行股份有限公司 Method, apparatus, system, and medium for controlling tape unloading
CN110647297B (en) * 2019-09-19 2023-12-19 中国工商银行股份有限公司 Method, apparatus, system, and medium for controlling tape spool
CN111026333A (en) * 2019-12-10 2020-04-17 北京金山云网络技术有限公司 Access request processing method, processing device, electronic equipment and storage medium
CN112114756A (en) * 2020-09-27 2020-12-22 海光信息技术有限公司 Storage system and electronic device
CN113448922A (en) * 2021-08-30 2021-09-28 阿里云计算有限公司 Data archiving method, data access method and respective devices
TWI815735B (en) * 2022-11-21 2023-09-11 中華電信股份有限公司 A serialized storage system and method with space reclamation and computer-readable medium thereof

Also Published As

Publication number Publication date
CN103049224B (en) 2015-12-23

Similar Documents

Publication Publication Date Title
CN103049224B (en) By the methods, devices and systems of data importing physical tape
CN102508784B (en) Data storage method of flash memory card in video monitoring equipment, and system thereof
CN102467408B (en) Method and device for accessing data of virtual machine
CN102331993B (en) Data migration method of distributed database and distributed database migration system
CN102541927B (en) Method and device for realizing data cache
CN102929748B (en) Data back up method and device
CN104850358B (en) A kind of magneto-optic electricity mixing storage system and its data acquisition and storage method
CN106874348B (en) File storage and index method and device and file reading method
US9996557B2 (en) Database storage system based on optical disk and method using the system
CN109598156B (en) Method for redirecting engine snapshot stream during writing
CN106326229B (en) File storage method and device of embedded system
CN103577339A (en) Method and system for storing data
CN113296696A (en) Data access method, computing device and storage medium
CN101777017A (en) Rapid recovery method of continuous data protection system
CN106354658B (en) A method of it reducing mapping table memory source in mixed-use developments algorithm and occupies
KR20100065786A (en) Cache synchronization method and system for fast power-off
CN103399823A (en) Method, equipment and system for storing service data
CN105446664B (en) A kind of pair of memory carries out file memory method and storage device
CN102402622A (en) Memory page management scheduling method of embedded memory database
CN101510332B (en) Method and apparatus for managing memory space of smart card
CN103246615B (en) The method of data management in a kind of flash memory device and device
CN102306128B (en) Disk management method and device and network equipment
CN113190180A (en) Storage device based on mixed media and distributed storage system
CN102609364A (en) Cache exchange method
CN103309619A (en) NAND Flash memory data storage 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
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20170620

Address after: 510640 Guangdong City, Tianhe District Province, No. five, road, public education building, unit 371-1, unit 2401

Patentee after: GUANGDONG GAOHANG INTELLECTUAL PROPERTY OPERATION Co.,Ltd.

Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Patentee before: HUAWEI TECHNOLOGIES Co.,Ltd.

TR01 Transfer of patent right
CB03 Change of inventor or designer information

Inventor after: Wang Zanhua

Inventor before: Liu Xiangang

CB03 Change of inventor or designer information
TR01 Transfer of patent right

Effective date of registration: 20170907

Address after: 110000, 3-4-3, 69 South Street, Tiexi District, Liaoning, Shenyang

Patentee after: Wang Zanhua

Address before: 510640 Guangdong City, Tianhe District Province, No. five, road, public education building, unit 371-1, unit 2401

Patentee before: GUANGDONG GAOHANG INTELLECTUAL PROPERTY OPERATION Co.,Ltd.

TR01 Transfer of patent right
CP02 Change in the address of a patent holder

Address after: 541199 Lingui County, Guilin, Lingui County, Lingui Town, Xinglin Road, No. 1, unit 202, Room 202

Patentee after: Wang Zanhua

Address before: 110000, 3-4-3, 69 South Street, Tiexi District, Liaoning, Shenyang

Patentee before: Wang Zanhua

CP02 Change in the address of a patent holder
TR01 Transfer of patent right

Effective date of registration: 20180925

Address after: 244000 Shun an Jinshan Industrial Park, Yi An District, Tongling, Anhui

Patentee after: ANHUI RONGJING FENGDAN BIOTECHNOLOGY Co.,Ltd.

Address before: 541199 room 2, unit 8, Xinglin Road, Lingui Town, Lingui, the Guangxi Zhuang Autonomous Region, 202, Guilin, 202

Patentee before: Wang Zanhua

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20231113

Address after: 910-1510, Building A3, Phase I, Innovation Industrial Park, No. 800 Wangjiang West Road, High tech Zone, Hefei City, Anhui Province, 230000

Patentee after: Hefei Jiaying Juhe Technology Service Co.,Ltd.

Address before: 244000 Shun an Jinshan Industrial Park, Yi An District, Tongling, Anhui

Patentee before: ANHUI RONGJING FENGDAN BIOTECHNOLOGY Co.,Ltd.

TR01 Transfer of patent right