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:
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.