Storage apparatus, storage device and data processing method
By combining magnetic tape modules and electrical storage modules in the storage device, the data addressing and synthesis process is optimized, solving the problem of slow addressing speed in cassette tape memory and achieving faster read and write speeds and longer tape module lifespan.
Patent Information
- Application Number
- PCT/CN2025/082056
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-07-31
- Filing Date
- 2025-03-12
- Publication Date
- 2026-02-05
AI Technical Summary
The slow rotation speed of the magnetic tape in cassette tape storage results in slow addressing and data read/write speeds.
The device employs a storage structure including a housing, a magnetic tape module, an electrical storage module, and a control module. The electrical storage module is used to quickly read and write small-particle data, while large-particle data is stored in the magnetic tape module. The control module optimizes the data addressing and synthesis process.
It improves read and write speeds, reduces the number of address seeks, extends the lifespan of the tape module, and expands the applicable environment of the storage device.
Smart Images

Figure CN2025082056_05022026_PF_FP_ABST
Abstract
Description
Storage device, storage equipment and data processing method
[0001] The present application claims priority to the Chinese patent application No. 202411046266.X, filed on July 31, 2024, and entitled "Storage device, storage equipment and data processing method", the content of which is incorporated herein by reference in its entirety. TECHNICAL FIELD
[0002] The present application relates to the field of storage, in particular to a storage device, a storage equipment and a data processing method. BACKGROUND
[0003] The magnetic tape storage is a storage device using magnetic tape as storage medium. Currently, there is a cassette tape storage including a magnetic head, a magnetic tape, a tape winding assembly and a control circuit board. When the control circuit receives a read-write instruction, the control circuit drives the tape winding motor of the tape winding assembly, the tape winding motor drives the tape winding wheel and the magnetic tape to rotate, and when the magnetic tape rotates to the specified position, the magnetic head reads and writes the magnetic tape.
[0004] In the cassette tape storage, the magnetic tape rotates slowly, so the addressing speed is slow, and the read-write speed of data is slow. SUMMARY
[0005] The present application provides a storage device including a shell structure, a magnetic tape module, an electrical storage module and a control module, so that the electrical storage module can be used to efficiently read and write small particle data, and the magnetic tape module can be used to provide large capacity storage capability. The present application also provides a data processing method, a storage equipment, a computer readable storage medium and a computer program product.
[0006] The first aspect provides a storage device including a shell structure, a magnetic tape module, an electrical storage module and a control module, the magnetic tape module, the electrical storage module and the control module are respectively fixed inside the shell structure, the control module is respectively connected to the magnetic tape module and the electrical storage module, the electrical storage module is used to store small particle data; the magnetic tape module is used to store large particle data, and the control module is used to write the small particle data into the electrical storage module and write the large particle data into the magnetic tape module. Wherein, the data amount of the small particle data is less than a data amount threshold, and the data amount of the large particle data is greater than or equal to the data amount threshold. The data amount threshold can be set according to actual conditions. The electrical storage module can include but is not limited to a solid state drive (SSD), an embedded multimedia card (EMMC) or a mechanical hard disk.
[0007] Since the read-write speed supported by the electric storage module is faster than the read-write speed supported by the magnetic tape, the efficiency of reading and writing small-granularity data can be improved based on the electric storage module, and large-granularity data can be stored based on the magnetic tape module.
[0008] With reference to the first aspect, in a possible implementation, when the types of the plurality of small-granularity data in the electric storage module are the same and the sum of the data amounts of the plurality of small-granularity data is greater than or equal to a data amount threshold, the control module is further configured to synthesize the plurality of small-granularity data into large-granularity data, and then write the synthesized large-granularity data to the magnetic tape module. The type of the small-granularity data can be, but is not limited to, a service type, so that a large amount of small-granularity data can be stored by the magnetic tape module. The data amount threshold is less than or equal to the maximum data amount obtained by performing one addressing operation on the magnetic tape module. When the data amount of the large-granularity data is the data amount threshold, it indicates that the large-granularity data can be obtained by performing one addressing operation on the magnetic tape module. When the data amount of the large-granularity data is greater than the data amount threshold, the large-granularity data can be obtained by performing a small number of addressing operations on the magnetic tape module. For example, 100 small-granularity data are synthesized into 1 large-granularity data. Reading 100 small-granularity data requires 100 addressing operations, and reading 1 large-granularity data requires 2 addressing operations. If a large number of small-granularity data are read and written from the magnetic tape, a large number of addressing operations need to be performed. Therefore, this implementation can greatly reduce the number of addressing operations and improve the read-write speed.
[0009] With reference to the above possible implementation of the first aspect, in another possible implementation, the control module is further configured to copy the start data in the large-granularity data, and save the start data in the electric storage module; and read the start data in the large-granularity data from the electric storage module and read the remaining part of the large-granularity data from the magnetic tape module according to the read instruction corresponding to the large-granularity data. Since the addressing speed of the electric storage module is faster than the addressing speed of the magnetic tape module, the start data can be quickly read, and the storage address of the remaining part can be determined in the magnetic tape module. After the start data is read, the remaining part of the large-granularity data is read according to the storage address of the remaining part, so that the speed of reading the large-granularity data can be improved.
[0010] With reference to the above possible implementation of the first aspect, in another possible implementation, the shell structure includes a first cavity and a second cavity. The first cavity is a sealed cavity for accommodating the magnetic tape module, and the second cavity is for accommodating the control module and the electric storage module. Placing the magnetic tape module in the sealed cavity can reduce the influence of the external environment on the magnetic tape module, improve the service life of the magnetic tape module, and expand the application environment of the storage device.
[0011] In combination with the foregoing possible implementation, in another possible implementation, the first cavity comprises a dust removal unit and / or a humidity control unit. The dust removal unit can reduce dust in the first cavity, thereby reducing the influence of dust on the tape module. The humidity control unit can control the humidity of the first cavity within a set range, ensuring the normal operation of the tape module.
[0012] In combination with the foregoing possible implementation of the first aspect, in another possible implementation, the tape module comprises a head assembly, a roll-shaped tape, and a tape winding mechanism, the tape winding mechanism comprising a tape winding motor and a tape winding wheel, the roll-shaped tape being wound on the tape winding wheel. The roll-shaped tape can be, but is not limited to, a round roll or an oval roll, which occupies less space. A roll-shaped tape that is longer than tapes of other shapes can be accommodated in a closed cavity, and the roll-shaped tape can provide greater storage capacity.
[0013] In combination with the foregoing possible implementation, in another possible implementation, the tape winding wheel and the tape winding motor are in an integrated structure. In this way, the tape module as a whole does not need to be disassembled to take out the tape, and there is no need to spend time taking out the tape. Since the head assembly and the tape in the tape module are matched when the tape module is shipped, there is no need to consider the compatibility of the head and the tape.
[0014] In combination with the foregoing possible implementation, in another possible implementation, the head assembly comprises a head, a head motor set, and a head track, the head motor set comprising one or more head motors, the head motor set being configured to drive the head to run along the head track to a target position of the roll-shaped tape according to an instruction from the control module, the target position corresponding to a start position or an end position of a large-granularity data, thereby realizing precise addressing.
[0015] In combination with the foregoing possible implementation, in another possible implementation, the head motor set comprises a first head motor and a second head motor, the first head motor being configured to drive the head to run along the head track to a target region of the roll-shaped tape according to an instruction from the control module, and the second head motor being configured to drive the head to run along the head track to a target position in the target region. The first head motor can realize low-precision addressing, and the second head motor can realize high-precision addressing, so that the addressing precision of the head assembly reaches the nanometer level, and the addressing time length can reach the microsecond level.
[0016] In combination with the foregoing possible implementation of the first aspect, in another possible implementation, the side surface of the shell structure is further provided with a handle strip for pulling out the storage device. When the storage device is placed in the tray of the cabinet, the handle strip can be used to conveniently take out the storage device from the cabinet.
[0017] The second aspect provides a data processing method, which is applied to a storage device including a housing structure, a tape module, an electric storage module and a control module, the electric storage module is used to store small-granularity data, and the tape module is used to store large-granularity data. The method includes: writing the small-granularity data into the electric storage module and writing the large-granularity data into the tape module. In this way, the small-granularity data can be quickly read and written based on the electric storage module, and the large-granularity data can be stored based on the tape module.
[0018] In a possible implementation manner of the second aspect, when the types of the plurality of small-granularity data in the electric storage module are the same and the sum of the data amounts of the plurality of small-granularity data is greater than or equal to a data amount threshold, the plurality of small-granularity data is synthesized into large-granularity data, and the synthesized large-granularity data is written into the tape module. The data amount threshold is less than or equal to a maximum data amount obtained by performing one addressing operation on the tape module. When the data amount of the large-granularity data is the data amount threshold, it indicates that the large-granularity data can be obtained by performing one addressing operation on the tape module. When the data amount of the large-granularity data is greater than the data amount threshold, the large-granularity data can be obtained by performing a small number of addressing operations on the tape module. If a large number of small-granularity data is read and written from the tape, a large number of addressing operations need to be performed. Therefore, the implementation manner can greatly reduce the number of addressing operations and improve the read and write speed.
[0019] In combination with the second aspect or the above possible implementation manners of the second aspect, in another possible implementation manner of the second aspect, after the start data in the large-granularity data is copied, the start data in the large-granularity data is saved in the electric storage module, and then the start data in the large-granularity data is read from the electric storage module and the remaining part of the large-granularity data is read from the tape module according to the corresponding read instruction of the large-granularity data. Since the addressing speed of the electric storage module is faster than that of the tape module, the start data of the large-granularity data can be quickly read, and the storage address of the remaining part can be determined in the tape module. After the start data is read, the remaining part of the large-granularity data is read according to the storage address of the remaining part, so that the speed of reading the large-granularity data can be improved.
[0020] The terms in the second aspect can refer to the corresponding descriptions in the first aspect.
[0021] The third aspect provides a storage device including the storage device in the first aspect or any possible implementation manner of the first aspect.
[0022] The fourth aspect provides a computer-readable storage medium including computer-readable instructions for implementing the method in the above aspect or any possible implementation manner of the above aspect.
[0023] The fifth aspect provides a computer program product, comprising computer readable instructions for implementing the method in the above aspect or any possible implementation manner of the above aspect. BRIEF DESCRIPTION OF DRAWINGS
[0024] Fig. 1 is a structural diagram of a storage system in an embodiment of the present application;
[0025] Fig. 2A is a schematic diagram of writing data in an embodiment of the present application;
[0026] Fig. 2B is a schematic diagram of reading data in an embodiment of the present application;
[0027] Fig. 3 is a structural diagram of a storage device in an embodiment of the present application;
[0028] Fig. 4 is another structural diagram of a storage device in an embodiment of the present application;
[0029] Fig. 5 is a schematic diagram of connection of a control module, a tape module and an electrical storage module in an embodiment of the present application;
[0030] Fig. 6 is a schematic diagram of controlling movement of a magnetic head in an embodiment of the present application;
[0031] Fig. 7 is a flowchart of a data processing method in an embodiment of the present application. DETAILED DESCRIPTION
[0032] The present application provides a storage device, which can be applied to scenarios such as data warehouse, data center, cloud storage, etc. Please refer to Fig. 1, in an example, a storage system includes a server 110, a storage device 120 and a power supply 130. The server 120 can be, but is not limited to, an application server, an edge server, etc. The power supply 130 can be a computer room power supply or a city power supply, etc.
[0033] The storage device 120 includes a main control board 121, a backboard 122, a magnetic-electric disc 123, a magnetic-electric disc 124, a magnetic-electric disc 125 and an electrical disc 126.
[0034] The main control board 121 can be a printed circuit board assembly (PCBA), which includes integrated circuits, power supply interfaces and signal interfaces, etc. The backboard 122 is also a PCBA, which includes multiple power supply interfaces and multiple signal interfaces. The main control board 121 and the backboard 122 are both used for transmitting data and / or instructions.
[0035] The power interface of the main control board 121 is connected with the power interface 1220 of the backboard 122, the signal interface of the main control board 121 is connected with the signal interface 1221 of the backboard 122, the power interface of the magneto-electric disc 123 is connected with the power interface 1222 of the backboard 122, the signal interface of the magneto-electric disc 123 is connected with the signal interface 1223 of the backboard 122, the power interface of the magneto-electric disc 124 is connected with the power interface 1224 of the backboard 122, the signal interface of the magneto-electric disc 124 is connected with the signal interface 1225 of the backboard 122, the power interface of the magneto-electric disc 125 is connected with the power interface 1226 of the backboard 122, the signal interface of the magneto-electric disc 125 is connected with the signal interface 1227 of the backboard 122, the power interface of the magneto-electric disc 126 is connected with the power interface 1228 of the backboard 122, and the signal interface of the magneto-electric disc 126 is connected with the signal interface 1229 of the backboard 122.
[0036] The magneto-electric disc and the magneto-electric disc can store data. In the storage device 120, the main control board 121, the backboard 122 and the magneto-electric disc 126 are optional. The number of magneto-electric discs and magneto-electric discs can be installed according to actual conditions, and the application is not limited.
[0037] The data processing process based on the above storage device 120 will be introduced below. Referring to FIG. 2A, in an example, the user terminal sends a storage data request to the server 110, the storage data request is used to request to store warm data or cold data, the server 110 sends a write instruction and data to the main control board 121 according to the storage data request, the main control board 121 writes the write instruction and data into the magneto-electric disc 123 and the magneto-electric disc 126 through the backboard 122, after writing the data, the magneto-electric disc 123 and the magneto-electric disc 126 feed back the response information, the main control board 121 sends the response information to the server 110, and then the server 110 feeds back the response information to the user terminal. The response information is used to indicate that the data writing is completed.
[0038] Referring to FIG. 2B, in an example, the user terminal sends a data acquisition request to the server 110, the server 110 sends a read instruction to the main control board 121 according to the data acquisition request, the main control board 121 sends the read instruction to the magneto-electric disc 123 and the magneto-electric disc 126 through the backboard 122, the main control board 121 reads the data from the magneto-electric disc 123 and the magneto-electric disc 126 through the backboard 122 respectively, and then sends the data to the server 110. The server 110 feeds back the data to the user terminal. It should be understood that the storage device for reading and writing data is not limited to the magneto-electric disc 126 and the magneto-electric disc 123. The above warm data and cold data are distinguished according to the access frequency. The access frequency interval of the warm data and the access frequency interval of the cold data can be set according to actual conditions, and the application is not limited.
[0039] The storage device of the present application can be, but is not limited to, a magnetic disk. The storage device of the present application is described below. Referring to FIG. 3, in an embodiment, the storage device 300 of the present application includes a housing structure 310, a magnetic tape module 320, an electrical storage module 330, and a control module 340. The magnetic tape module 320, the electrical storage module 330, and the control module 340 are respectively fixed in the interior of the housing structure 310, and the control module 340 is electrically connected with the magnetic tape module 320 and the electrical storage module 330 respectively. The electrical connection can be, but is not limited to, a connection through a peripheral component interconnect (PCI) bus.
[0040] The control module 340 is configured to write small-granularity data into the electrical storage module 330 and write large-granularity data into the magnetic tape module 320.
[0041] The electrical storage module 330 is other non-volatile storage medium other than the magnetic tape storage medium, which includes, but is not limited to, a solid state drive (SSD), an embedded multimedia card (EMMC), or a mechanical hard disk. The solid state drive can include, but is not limited to, a flash memory (such as a NAND flash).
[0042] In the embodiment, the small-granularity data can be stored in the electrical storage module 330, so that the read and write speed of the small-granularity data can be improved, and the large-granularity data can be stored in the magnetic tape module 320 to provide large-capacity storage capability.
[0043] In an optional embodiment, when the types of the plurality of small-granularity data in the electrical storage module 330 are the same and the sum of the data amounts of the plurality of small-granularity data is greater than or equal to a data amount threshold, the control module 340 is further configured to combine the plurality of small-granularity data into large-granularity data and write the combined large-granularity data into the magnetic tape module 320, so that a large amount of small-granularity data can be stored in the magnetic tape module 320. The type of the small-granularity data can be, but is not limited to, a service type.
[0044] The data amount threshold is less than or equal to the maximum data amount obtained by performing one addressing operation on the magnetic tape module 320. When the data amount of the large-granularity data is the data amount threshold, it indicates that the large-granularity data can be obtained by performing one addressing operation on the magnetic tape module 320. When the data amount of the large-granularity data is greater than the data amount threshold, the large-granularity data can be obtained by performing a small number of addressing operations on the magnetic tape module 320. For example, 200 small-granularity data are combined into 1 large-granularity data, and 200 addressing operations are required to read 200 small-granularity data, and 2 addressing operations are required to read 1 large-granularity data.
[0045] Compared with the method of performing multiple addressing operations when reading and writing multiple small granular data from the magnetic tape, the method of the embodiment can reduce the number of addressing operations and improve the reading and writing speed. It should be understood that the maximum amount of data obtained by the magnetic tape module 320 performing one addressing operation is related to the magnetic medium of the magnetic tape, and can be determined according to actual conditions, which is not limited in the present application. When the data amount of the large granular data is greater than the data amount threshold, the data amount of the large granular data can be an integer multiple of the data amount threshold, and the specific multiple is not limited in the present application.
[0046] In another optional embodiment, the control module 340 is further configured to copy the starting data in the large granular data, write the starting data in the large granular data into the electric storage module 330, and read the starting data of the large granular data from the electric storage module 330 and read the remaining part of the large granular data from the magnetic tape module 320 according to the read instruction corresponding to the large granular data.
[0047] In the embodiment, the data amount of the starting data can be set according to actual conditions. For example, the data amount of the starting data is greater than or equal to the product of the average addressing time of the magnetic tape and the reading and writing speed of the electric storage module 330. The addressing speed of the electric storage module 330 is faster than the addressing speed of the magnetic tape module 320, so that the starting address of the large granular data can be quickly determined and the starting part of the large granular data can be read. When reading the data of the starting part, the storage address (i.e. the offset address) of the remaining part can be determined in the magnetic tape module 320, and then the remaining part of the large granular data can be read according to the storage address of the remaining part, so that the overall speed of reading the large granular data can be improved.
[0048] Optionally, the shell structure 310 is a closed structure. Referring to FIG. 4, in an optional embodiment, the shell structure 310 includes a first cavity 311 and a second cavity 312. The first cavity 311 is a closed cavity for accommodating the magnetic tape module 320, and the second cavity 312 is for accommodating the control module 340 and the electric storage module 330.
[0049] A dry environment or a high-humidity environment can cause the magnetic powder on the magnetic tape to fall off, which can cause the magnetic tape module 320 to not work normally. In the embodiment, the magnetic tape module 320 is arranged in the closed first cavity 311, so that the temperature and humidity of the cavity can be maintained within a set range. Thus, the performance of the magnetic head and the magnetic tape in the magnetic tape module 320 is difficult to be affected by the external environment, the service life of the magnetic tape module 320 can be prolonged, and the storage device 300 can adapt to various environments, thereby expanding the application scenarios of the storage device 300. Optionally, the set range includes that the temperature of the first cavity 311 is room temperature, and the relative humidity of the first cavity 311 is maintained at 20% to 70% in a non-condensation state. It should be understood that the shapes and sizes of the first cavity 311 and the second cavity 312 are not limited to the cavities shown in FIG. 4.
[0050] Optionally, the first cavity 311 is further provided with a dust removal unit, which is used to absorb or discharge the dust in the first cavity 311. Another option, the first cavity 311 is further provided with a humidity control unit, which is used to keep the humidity of the first cavity 311 within a set range. The dust removal unit can remove dust, and the humidity control unit can keep the humidity, which can reduce the impact of dust and humidity on the tape module 320 and prolong the service life of the tape module 320. Another option, the side of the shell structure 310 is further provided with a handle strip. When the storage device 300 is installed in the cabinet, the handle strip can be used to quickly take out the storage device 300 from the cabinet.
[0051] The tape module 320 includes a magnetic tape 321, a tape winding mechanism 322, a head assembly 323, and a roller 324.
[0052] The magnetic tape 321 is a roll-shaped magnetic tape, such as a circular roll-shaped magnetic tape or an elliptical roll-shaped magnetic tape. The roll-shaped magnetic tape occupies less space, and a closed cavity can accommodate a longer roll-shaped magnetic tape than other shapes, so it can provide more storage capacity. The thickness of the magnetic tape 321 is in the order of microns. The length and capacity of the magnetic tape 321 can be set according to actual conditions. For example, the length of the magnetic tape 321 can reach more than 1 kilometer, and the data capacity can reach more than 72 TB.
[0053] The tape winding mechanism 322 includes a tape winding motor and a tape winding wheel for winding the magnetic tape 321, and the tape winding wheel and the tape winding motor are an integrated structure. The tape winding motor is used to drive the tape winding wheel to rotate and support fast start. Since the tape winding motor and the tape winding wheel are an integrated structure, the magnetic tape 321 wound on the tape winding wheel, the tape winding mechanism 322, and the head assembly 323 can be integrated into one whole, without the need to disassemble the magnetic tape from the tape module 320. In the production of the tape module 320, the magnetic tape, the tape winding mechanism, and the head are matched, so there is no need to consider the compatibility between the magnetic tape 321 and the head assembly 323. In existing cassette tape storage, the tape winding wheel and the tape winding motor for winding the magnetic tape are detachable, and the magnetic tape and the head may come from different manufacturers, and installation or replacement of the magnetic tape may have mismatching problems, and it may take a lot of time to install or replace the magnetic tape. In this embodiment, the tape module is a whole, without the need to match the head and the magnetic tape, and without the need to replace the magnetic tape (i.e., the magnetic tape taking time is 0), so the magnetic tape taking time can be saved.
[0054] Referring to FIG. 5, in one example, the power interface and the signal interface of the control module 340 are connected to the backplane, the power interface is used for power supply, and the signal interface is used for communication with the main control board. The control module 340 drives the tape winding motor of the tape winding mechanism 322 to move according to the instruction, the tape winding motor drives the tape winding wheel to wind the magnetic tape, and the magnetic tape is rotated to the magnetic head position. The control module 340 is also used to drive the magnetic head motor of the magnetic head assembly 323 to move according to the instruction, the magnetic head motor drives the magnetic head to obtain the track position, and then reads and writes data from the magnetic tape. In addition, the control module 340 can also read and write data from the electric storage module 330.
[0055] The magnetic head assembly 323 includes a magnetic head, a magnetic head motor group, and a magnetic head track. The magnetic head motor group is used to drive the magnetic head to address according to the instruction from the control module 340. Specifically, the magnetic head motor group includes one or more magnetic head motors, and the magnetic head motor group is used to drive the magnetic head to move to a specified position along the magnetic head track according to the instruction from the control module 340, so as to realize the addressing function, as shown in FIG. 6. When the magnetic head reaches the specified position, the magnetic head can read or write data at the current track. It should be noted that the specified position corresponds to a target position on the magnetic tape, and the target position is the start position or the end position of the large particle data, so that the target position on the magnetic tape can be directly found by the magnetic head, and accurate addressing is realized.
[0056] Optionally, the magnetic head motor group includes a first magnetic head motor and a second magnetic head motor. The first magnetic head motor is used to drive the magnetic head to move to a target area of the roll-shaped magnetic tape along the magnetic head track according to the instruction from the control module. The second magnetic head motor is used to drive the magnetic head to move to a target position in the target area along the magnetic head track. The first magnetic head motor can realize low-precision addressing, and the second magnetic head motor can realize high-precision addressing, so that the addressing precision of the magnetic head assembly reaches the nanometer level, and the addressing time length can reach the microsecond level.
[0057] In the prior art, when the fixed magnetic head addresses, a magnetic tape area is first found, and then an accurate position in the magnetic tape area is found. The addressing precision is in the millimeter level, and the addressing time length is in the millisecond level. It can be seen that the movable magnetic head in the embodiment has higher addressing precision and faster addressing speed than the fixed magnetic head in the prior art.
[0058] The roller 324 is used to adjust the movement direction of the magnetic tape to reduce the phenomenon of tape jamming. The roller 324 is an optional element. The storage device 300 can also include a power interface 350 and a signal interface 360.
[0059] In the storage device 300, the proportion of the data capacity of the magnetic tape module 320 and the data capacity of the electric storage module 330 can be set according to actual conditions. For example, the data capacity of the magnetic tape module 320 accounts for 95%, and the data capacity of the electric storage module 330 accounts for 5%.
[0060] The data processing method of the present application is introduced based on the storage device 300 of the present application. Referring to FIG. 7, in an optional embodiment, the data processing method of the present application includes:
[0061] S701, writing small-granularity data into the electric storage module.
[0062] The data amount of the small-granularity data is less than the data amount threshold value, and the small-granularity data can be written into the electric storage module to improve the storage speed.
[0063] S702, writing large-granularity data into the magnetic tape module.
[0064] The data amount of the large-granularity data is greater than or equal to the data amount threshold value. The data amount threshold value can be set according to the actual situation, for example, the data amount threshold value is equal to the maximum data amount obtained by performing one addressing operation on the magnetic tape module, and the specific application does not limit it. S701 and S702 have no fixed sequence, and in actual application, S702 can be performed first, and then S701.
[0065] In this embodiment, since the addressing speed of the electric storage module is faster than that of the magnetic tape module, the small-granularity data can be quickly addressed when stored, thereby improving the speed of writing small-granularity data. Similarly, the speed of reading small-granularity data is also faster. Moreover, the magnetic tape module can provide large-capacity storage capability for storing large-granularity data.
[0066] In an optional embodiment, when the types of a plurality of small-granularity data in the electric storage module are the same and the sum of the data amounts of the plurality of small-granularity data is greater than or equal to the data amount threshold value, the plurality of small-granularity data is combined into large-granularity data, and the combined large-granularity data is written into the magnetic tape module. The data amount threshold value is less than or equal to the maximum data amount obtained by performing one addressing operation on the magnetic tape module. When the data amount of the large-granularity data is the data amount threshold value, it indicates that the large-granularity data can perform one addressing operation on the magnetic tape module. When the data amount of the large-granularity data is greater than the data amount threshold value, a small amount of addressing operations can be performed on the magnetic tape module. For example, 200 small-granularity data is combined into 1 large-granularity data, and 200 addressing operations are required to read 200 small-granularity data, and 2 addressing operations are required to read 1 large-granularity data. If many small-granularity data is read and written from the magnetic tape, a large number of addressing operations need to be performed, and therefore the method of the present embodiment can reduce the number of addressing operations and improve the read and write speed.
[0067] In another optional embodiment, after copying the starting data in the large-granularity data, the starting data in the large-granularity data is saved in the electric storage module, and then the starting data of the large-granularity data is read from the electric storage module and the remaining part of the large-granularity data is read from the magnetic tape module according to the corresponding read instruction of the large-granularity data.
[0068] In the embodiment, the addressing speed of the electric storage module is faster than that of the magnetic tape module, so that the starting address of the large particle data can be quickly determined and the starting part (i.e., the starting data) of the large particle data can be read. While the data of the starting part is read, the storage address (i.e., the offset address) of the remaining part can be determined in the magnetic tape module, and the remaining part of the large particle data can be read according to the storage address of the remaining part, so that the overall speed of reading the large particle data is improved.
[0069] The embodiment of the present application further provides a computer program product containing instructions. The computer program product can be software or a program product containing instructions, which can run on a computing device or be stored in any available medium. When the computer program product runs on at least one computing device, the at least one computing device is caused to execute the data processing method of the present application.
[0070] The embodiment of the present application further provides a computer readable storage medium. The computer readable storage medium can be any available medium that the computing device can store or a data storage device such as a data center containing one or more available media. The available medium can be a magnetic medium (for example, a floppy disk, a hard disk, a magnetic tape), an optical medium (for example, a DVD), or a semiconductor medium (for example, a solid state disk), etc. The computer readable storage medium contains instructions, which instruct the computing device to execute the data processing method of the present application.
[0071] The terms "first", "second", etc. in the specification and claims of the present application and in the above-described drawings are used to distinguish similar objects, and do not necessarily indicate a specific order or sequence. It should be understood that the data thus used can be interchanged under appropriate circumstances, so that the embodiments described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device containing a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but can include other steps or units not clearly listed or inherent to the process, method, product or device.
[0072] The above embodiments are only used to illustrate the technical solutions of the present application, rather than limit them; although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that the technical solutions recorded in the foregoing embodiments can be modified, or some technical features can be replaced by equivalent features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the protection scope of the technical solutions of the embodiments of the present application.
Claims
1. A memory device, comprising: The application relates to a storage device, which comprises a shell structure, a magnetic tape module, an electric storage module and a control module, wherein the magnetic tape module, the electric storage module and the control module are fixed in the shell structure respectively, and the control module is connected with the magnetic tape module and the electric storage module respectively. The control module is used for writing small-granularity data into the electric storage module and writing large-granularity data into the magnetic tape module, wherein the data amount of the small-granularity data is less than a data amount threshold, and the data amount of the large-granularity data is greater than or equal to the data amount threshold. When the types of multiple small-granularity data in the electric storage module are the same and the sum of the data amounts of the multiple small-granularity data is greater than or equal to the data amount threshold, the control module is further used for synthesizing the multiple small-granularity data into large-granularity data and writing the synthesized large-granularity data into the magnetic tape module, wherein the data amount threshold is less than or equal to the maximum data amount obtained by performing one addressing operation on the magnetic tape module.
2. The apparatus of claim 1, wherein, The control module is further used for copying start data in the large-granularity data, saving the start data in the electric storage module, reading the start data of the large-granularity data from the electric storage module and reading the remaining part of the large-granularity data from the magnetic tape module according to a read instruction corresponding to the large-granularity data.
3. The apparatus of claim 1 or 2, wherein, The shell structure comprises a first cavity and a second cavity, the first cavity is a sealed cavity used for accommodating the magnetic tape module, and the second cavity is used for accommodating the control module and the electric storage module.
4. The apparatus of any one of claims 1 to 3, wherein, The first cavity further comprises a dust removal unit and / or a humidity control unit.
5. The apparatus of claim 4, wherein, The magnetic tape module comprises a magnetic head assembly, a roll-shaped magnetic tape and a tape winding mechanism, the tape winding mechanism comprises a tape winding motor and a tape winding wheel used for winding the roll-shaped magnetic tape.
6. The apparatus of any one of claims 1 to 5, wherein, The tape winding wheel and the tape winding motor are in an integrated structure.
7. The apparatus of claim 6, wherein, The magnetic head assembly comprises a magnetic head, at least one magnetic head motor and a magnetic head track, the at least one magnetic head motor is used for driving the magnetic head to run to a target position of the roll-shaped magnetic tape along the magnetic head track according to an instruction from the control module.
8. The apparatus of claim 6, wherein, The at least one magnetic head motor comprises a first magnetic head motor and a second magnetic head motor, the first magnetic head motor is used for driving the magnetic head to run to a target area of the roll-shaped magnetic tape along the magnetic head track according to an instruction from the control module, and the second magnetic head motor is used for driving the magnetic head to run to a target position in the target area along the magnetic head track.
9. The apparatus of claim 8, wherein, The side surface of the shell structure is further provided with a handle strip, and the handle strip is used for pushing and pulling the storage device.
10. The apparatus of any one of claims 1 to 9, wherein, The method is applied to a storage device, which comprises a shell structure, a magnetic tape module, an electric storage module and a control module, and the method comprises the following steps.
11. A data processing method, characterized by, Small-granularity data is written into the electric storage module, and large-granularity data is written into the magnetic tape module, wherein the data amount of the small-granularity data is less than a data amount threshold, and the data amount of the large-granularity data is greater than or equal to the data amount threshold. The method further comprises the following steps.
12. The method of claim 11, wherein, When the types of the multiple small-granularity data in the electric storage module are same and the sum of the data amounts of the multiple small-granularity data is greater than or equal to the data amount threshold, the multiple small-granularity data are synthesized into large-granularity data, and the synthesized large-granularity data are written into the magnetic tape module, the data amount threshold being less than or equal to a maximum data amount obtained by performing one addressing operation on the magnetic tape module.
13. The method according to claim 11 or 12, characterized in that, The method further comprises: copying the starting data in the large-granularity data and saving the starting data in the electric storage module; reading the starting data in the large-granularity data from the electric storage module and reading the remaining part of the large-granularity data from the magnetic tape module according to a corresponding read instruction of the large-granularity data.
14. A storage device, comprising: The storage device of any one of claims 1 to 10.
15. A computer readable storage medium characterized by: Computer readable instructions for implementing the method of any one of claims 11 to 13.
16. A computer program product comprising computer readable instructions, characterized in that, The computer readable instructions for implementing the method of any one of claims 11 to 13.
Citation Information
Patent Citations
A method and apparatus for storing and retrieving file data
CN102263818A
Data storage method and device, and computer storage medium
CN108710474A
Cache replacement method for storage system software, storage device and storage medium
CN109359063A
Data processing method and related equipment
CN109521970A
Storage device write request processing method and related device
CN110007870A