Controller, tape drive device, and storage system
By incorporating a gap and contact mechanism between the magnetic head and the tape in the tape drive, the problem of magnetic head wear on the tape is solved, extending the tape's lifespan and maintaining high efficiency in data access.
Patent Information
- Application Number
- PCT/CN2024/144132
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-06-28
- Filing Date
- 2024-12-31
- Publication Date
- 2026-01-02
AI Technical Summary
The magnetic head in a magnetic tape drive causes significant wear on the tape, affecting its lifespan.
In magnetic tape drives, a gap is set between the magnetic head and the tape. When the travel distance is outside the target distance range, the gap is maintained to avoid friction; when the travel distance is within the target distance range, the magnetic head contacts the tape to access data.
This reduces wear on the tape by the magnetic head, extends the tape's lifespan, and does not affect the accuracy and speed of data access.
Smart Images

Figure CN2024144132_02012026_PF_FP_ABST
Abstract
Description
Controller, tape drive device and storage system
[0001] The present application claims priority to the Chinese patent application No. 202410874376.9, filed on June 28, 2024, entitled "Controller, tape drive device and storage system", the content of which is incorporated herein by reference in its entirety. TECHNICAL FIELD
[0002] The present application relates to the field of magnetic tape technology, and in particular to a controller, a tape drive device and a storage system. BACKGROUND
[0003] A tape drive is a single drive product including a tape drive and a magnetic tape. The tape drive generally reads and writes data by sliding the magnetic tape on the header in the tape drive. The thickness of the tape drive is associated with the header travel height and the thickness of the tape drive shell, and the header travel height is the sum of the height of the header body and the maximum moving distance of the header body in the data access process.
[0004] Compared with solid state drives (SSDs) and hard disk drives (HDDs), the tape drive has the advantages of low cost, high bandwidth and large capacity improvement space.
[0005] In the process of managing data, the tape drive has a large wear on the tape body, which affects the service life of the tape body. SUMMARY
[0006] The present application provides a controller, a tape drive device and a storage system. The purpose is to improve the problem of tape wear in the tape drive device.
[0007] To achieve the above purpose, the present application adopts the following technical solutions.
[0008] In a first aspect, the present application provides a tape drive device. The tape drive device includes a base, a tape body, a sensor module, a header and a controller. The tape body is arranged on the base, and the tape body is used to store data. The sensor module is used to obtain the moving distance of the tape body. The header is in sliding connection with the base. The controller is used to instruct the header to slide relative to the base according to the moving distance. When the moving distance is located outside a target distance interval, there is a gap between the header and the tape body. When the moving distance is located within the target distance interval, the header contacts the tape body and accesses the data in the tape body.
[0009] Therefore, when the moving distance of the tape body does not reach the target distance interval, the gap between the magnetic head and the tape body can avoid the friction between the magnetic head and the tape body, which is conducive to reducing the wear of the tape body in the magnetic tape and prolonging the service life of the magnetic tape. When the moving distance of the tape body reaches the target distance interval, the magnetic head contacts the tape body and accesses the data in the tape body. Since the magnetic head also has the function of accessing the address in the tape body, the magnetic head can accurately read the address of the tape body and access the target data after contacting the tape body. Therefore, even if there is an error between the foregoing target distance interval and the address where the target data to be accessed is located, the magnetic head can still access the target data. In summary, the magnetic tape device provided by the application can avoid the friction between the magnetic tape and the magnetic head during the movement of the tape body without affecting the accuracy of the magnetic head accessing data in the magnetic tape device, which is conducive to reducing the wear of the tape body by the magnetic head and prolonging the service life of the tape body.
[0010] In some possible implementation manners, when the moving distance is located outside the target distance interval, the maximum value of the moving speed of the tape body is a first value. When the moving distance is located within the target distance interval, the maximum value of the moving speed of the tape body is a second value, and the second value is less than the first value. In this way, when there is a gap between the magnetic head and the tape body, the moving speed of the tape body is relatively large, and the moving speed of the tape body is relatively fast, that is, the tape body is not worn and the time for moving the tape body can be saved, which is conducive to reducing the time for accessing data.
[0011] In some possible implementation manners, the controller is further configured to: determine an IO scheduling scheme of a target index according to the moving distance; and the target index comprises one or a combination of the following: access latency, access bandwidth, moving distance of the tape body, and wear of the tape body.
[0012] In some possible implementation manners, the magnetic tape device further comprises a slide rail. The sliding connection between the magnetic head and the base comprises that the magnetic head and the base are connected through the slide rail.
[0013] In some possible implementation manners, the sensor module comprises an encoding strip and a detection assembly. The encoding strip is connected with the tape body, and the encoding strip comprises a plurality of strips, and one strip is used for recording one encoding. The detection assembly is configured to determine the moving distance according to the encodings recorded by at least two strips in the plurality of strips. In this way, the detection assembly can obtain the moving distance of the tape body by detecting the encodings recorded by different strips.
[0014] In some possible implementation modes of the first aspect, the plurality of strips includes a first strip and a second strip. The first strip includes at least one first identification part and at least one second identification part; and the arrangement order of the identification parts in the first strip indicates a first code. The second strip includes at least one first identification part and at least one second identification part; and the arrangement order of the identification parts in the second strip indicates a second code. The arrangement order of the identification parts in the first strip is different from the arrangement order of the identification parts in the second strip. The detection component is configured to determine the movement distance of the strip body according to the second code and the first code. In this way, the detection component identifies the first identification parts and the second identification parts, and determines the first code and the second code according to the arrangement order of the first identification parts and the second identification parts, to determine the movement distance of the strip body.
[0015] In some possible implementation modes of the first aspect, the first identification part is a light-transmitting part, and the second identification part is a light-absorbing part or a light-reflecting part. Alternatively, the first identification part is a light-reflecting part, and the second identification part is a light-absorbing part. In this way, the arrangement order of the first identification parts and the second identification parts can be detected by the laser emitter and the laser receiver, to identify the first code recorded by the first strip and the second code recorded by the second strip.
[0016] In some possible implementation modes of the first aspect, the first identification part and the second identification part have different light transmittances. In this way, the first identification parts and the second identification parts can be identified by detecting the light transmittances, and the first code recorded by the first strip and the second code recorded by the second strip can be identified according to the arrangement order of the first identification parts and the second identification parts.
[0017] In some possible implementation modes of the first aspect, the first identification part and the second identification part have different capacitance values. In this way, the detection component is configured to detect the capacitance values of the first identification parts and the second identification parts. The codes indicated by the arrangement order of the first identification parts and the second identification parts are obtained. The detection component determines the movement distance of the strip body according to the codes recorded by the at least two strips.
[0018] In some possible implementation modes of the first aspect, the strip includes an image layer, and the detection component includes an image sensor configured to obtain an image of the strip. In this way, the detection component can determine the movement distance of the strip body according to at least two images.
[0019] In some possible implementation modes of the first aspect, the image layer includes one or a combination of the following: a two-dimensional code, a radio frequency identification code, a bar code, or a character label.
[0020] In some possible implementation modes of the first aspect, the coding strip is connected to one side of the tape body along the width direction. In this way, the coding strip does not occupy the space in the thickness direction of the tape body, and the setting of the coding strip does not thicken the tape body. Moreover, the length of the coding strip can be the same as the length of the tape body, and the space of the device strip can be larger.
[0021] In some possible implementation modes of the first aspect, the tape body includes a plurality of data areas storing data and at least one connection area not storing data; two adjacent data areas are connected through one connection area; and the coding strip is arranged in the thickness direction of the tape body and stacked with the connection area. Since the connection area does not store data, the setting of the coding strip has little effect on the data stored in the tape body. Moreover, the setting of the coding strip does not occupy the space in the width direction of the tape body.
[0022] In some possible implementation modes of the first aspect, the tape drive device further includes a reel connected to the base, and the tape body is wound on the reel. The sensor module includes an angle sensor configured to determine the movement distance according to the angle of rotation of the reel. In this way, during the movement of the tape body, the reel and the tape body move synchronously, and thus the angle of rotation of the reel can be detected to obtain the angle of rotation of the tape body. The movement distance of the tape body can be determined according to the product of the corresponding radian of the angle of rotation of the tape body and the radius of the tape body.
[0023] In some possible implementation modes of the first aspect, the tape drive device further includes a reel connected to the base, and the tape body is wound on the reel. The sensor module includes a thickness sensor configured to determine the movement distance according to the thickness of the tape body wound on the reel. In this way, during the movement of the tape body, the thickness of the tape body wound on the reel increases or decreases. The thickness of the tape body wound on the reel is equal to the product of the thickness of the tape body and the movement distance of the tape body. Therefore, the movement distance of the tape body can be determined according to the thickness of the tape body wound on the reel.
[0024] In some possible implementation modes of the first aspect, the tape drive device further includes a reel. The tape body is wound on the reel. The sensor module includes a Hall encoder or an optical encoder. The Hall encoder or the optical encoder is sleeved on the reel. In this way, the optical encoder can convert the mechanical geometric displacement on the reel into a pulse or a digital quantity through photoelectric conversion, and transmit the pulse or the digital quantity to the controller. The sensor module can obtain the movement distance of the tape body wound on the reel. Similarly, the Hall encoder can measure the movement distance of the tape body wound on the reel.
[0025] With reference to the first aspect, in some possible implementation manners, the tape drive device further includes a driver. The driver is configured to drive the magnetic head to slide relative to the base; and the controller is in signal connection with the driver. The controller is configured to instruct the driver to drive the magnetic head to slide relative to the base according to the movement distance.
[0026] With reference to the second aspect, in some possible implementation manners, the storage system includes a tape controller and one or more tape drive devices according to any of the first aspect.
[0027] With reference to the third aspect, in some possible implementation manners, the controller is applied to a tape drive device, and the tape drive device includes a base, a magnetic head, and a tape body configured to store data. The tape body is arranged on the base, and the magnetic head is in sliding connection with the base. The controller includes a communication interface and a processor. The communication interface is configured to receive a movement distance of the tape body. The processor is configured to send a control instruction according to the movement distance. The control instruction is configured to instruct the magnetic head to slide relative to the base. When the movement distance is outside a target distance range, the control instruction instructs the magnetic head to have a gap from the tape body. When the movement distance is within the target distance range, the control instruction instructs the magnetic head to contact the tape body and access data in the tape body.
[0028] With reference to the third aspect, in some possible implementation manners, the control instruction is further configured to instruct a movement speed of the tape body. When the movement distance is outside the target distance range, a maximum value of the movement speed of the tape body is a first value. When the movement distance is within the target distance range, a maximum value of the movement speed of the tape body is a second value, and the second value is less than the first value.
[0029] With reference to the third aspect, in some possible implementation manners, the processor is specifically configured to determine an IO scheduling scheme of target index management according to the movement distance. The target index includes one or a combination of the following: access latency, access bandwidth, movement distance of the tape body, and wear of the tape body.
[0030] The beneficial effects of the implementation manners of the second aspect or the third aspect can be refer to the description of the optional implementation manners of the first aspect, which will not be described herein. The implementation manners of the above aspects can be further combined to provide more implementation manners. BRIEF DESCRIPTION OF DRAWINGS
[0031] FIG. 1 is a structural schematic diagram of a data access system according to an embodiment of the present application.
[0032] FIG. 2 is a structural schematic diagram of a tape drive device in a first state according to an embodiment of the present application.
[0033] Fig. 3a is a structural schematic diagram of a second state of the tape drive device according to an embodiment of the present application.
[0034] Fig. 3b is a control schematic diagram of the controller according to an embodiment of the present application.
[0035] Fig. 3c is a schematic diagram of an IO scheduling scheme according to an embodiment of the present application.
[0036] Fig. 3d is a schematic diagram of another IO scheduling scheme according to an embodiment of the present application.
[0037] Fig. 3e is a schematic diagram of still another IO scheduling scheme according to an embodiment of the present application.
[0038] Fig. 3f is a schematic diagram of yet another IO scheduling scheme according to an embodiment of the present application.
[0039] Fig. 4a is a schematic diagram of a connection structure of the head and the base according to an embodiment of the present application.
[0040] Fig. 4b is a schematic diagram of another connection structure of the head and the base according to an embodiment of the present application.
[0041] Fig. 5a is a schematic diagram of a structure of a sensor module and a tape body according to an embodiment of the present application.
[0042] Fig. 5b is a schematic diagram of a structure of a winding drum and a tape body according to an embodiment of the present application.
[0043] Fig. 6 is a schematic diagram of a structure of still another sensor module and a tape body according to an embodiment of the present application.
[0044] Fig. 7 is a schematic diagram of a structure of another sensor module and a tape body according to an embodiment of the present application.
[0045] Fig. 8 is a schematic diagram of a structure of yet another sensor module and a tape body according to an embodiment of the present application.
[0046] Fig. 9 is a schematic diagram of a structure of still another sensor module and a tape body according to an embodiment of the present application.
[0047] Fig. 10 is a schematic diagram of a structure of a strip and a detection assembly according to an embodiment of the present application.
[0048] Fig. 11a is a schematic diagram of a structure of still another strip and a detection assembly according to an embodiment of the present application.
[0049] Fig. 11b is a schematic diagram of a structure of another strip and a detection assembly according to an embodiment of the present application.
[0050] Fig. 11c is a schematic diagram of a structure of still another strip and a detection assembly according to an embodiment of the present application.
[0051] Fig. 12 is a structural schematic diagram of a sensor module according to an embodiment of the present application.
[0052] Fig. 13 is a structural schematic diagram of another sensor module according to an embodiment of the present application.
[0053] In the figures: 100 - data access device; 110 - switch; 120 - storage device; 121 - engine; 1211 - front-end interface; 1214 - back-end interface; 1212 - processor; 1213 - memory; 122 - hard disk frame; 1225 - control unit; 1226 - network card; 1224 - hard disk; 1222 - solid state disk; 1221 - mechanical hard disk; 200 - tape drive device; 210 - base; 220 - tape body; 221 - data area; 222 - connection area; 230 - sensor module; 233 - encoding strip; 232 - detection assembly; 2321 - laser emitter; 2322 - laser receiver; 240 - magnetic head; 241 - bracket; 243 - motor; 242 - read-write head; 244 - driver; 245 - slide rail; 250 - controller; 260 - reel; 201 - first tape; 202 - second tape; 203 - third tape; 101 - first identification part; 102 - second identification part; 21 - first roller; 22 - second roller; 231 - tape; 235 - base film; 263 - reel shaft; 261 - first cover plate; 262 - second cover plate. DETAILED DESCRIPTION
[0054] The present application provides a controller, a tape drive device and a storage system. The tape drive device comprises a sensor module for obtaining a moving distance of the tape body. In the addressing process, there is a gap between the magnetic head and the tape body, which reduces the friction between the magnetic head and the tape body and prolongs the service life of the tape body. Moreover, the moving distance obtained by the sensor module can indicate that the tape body moves to the vicinity of the target position, and in this process, neither the magnetic head nor the tape body is in contact. When the tape body moves to the vicinity of the target position, the magnetic head and the tape body are in contact, the magnetic head accurately obtains the address information of the tape body and reads and writes data. In this way, the tape drive device can not only reduce the friction between the magnetic head and the tape body, but also does not affect the addressing and data reading of the magnetic head.
[0055] The technical solutions involved in the present application can not only be applied to current tape technology or storage devices, but also can be applied to future tape technology or storage devices, or storage systems including tape medium storage or storage devices. The terms used in the embodiment part of the present application are only used to explain the specific embodiments of the present application, and are not intended to limit the present application. First, some concepts that can be involved in the present application are briefly introduced below.
[0056] Storage medium: A storage material used for recording sound, image, digital or other signals. The storage material can include, but is not limited to, a magnetic tape, which refers to a tape-like material with a magnetic layer used for recording sound, image, digital or other signals. The magnetic tape is attached with a magnetic medium, such as magnetic powder, etc. used for storing data. For example, the magnetic field change in the magnetic medium is usually formed by coating a layer of granular magnetic material on a plastic film tape base (support) or evaporating and depositing a layer of magnetic oxide or alloy thin film. The tape base of the magnetic tape can include, but is not limited to, paper, cellophane or polyester film, etc.
[0057] Header: A component that reads and writes the magnetic medium on the magnetic tape by magnetic principle, which is divided into a write head and a read head. The write head records data by magnetizing the magnetic field of the magnetic medium (such as magnetic powder), and the read head reads the data on the magnetic medium by inducting the magnetic field of the magnetic medium.
[0058] In order to make the purpose, technical scheme and advantages of the present application clearer, the present application will be further described in detail below with reference to the accompanying drawings.
[0059] Hereinafter, the terms "first", "second", etc. are only used for the purpose of description, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined with "first", "second", etc. can explicitly or implicitly include one or more of the features. In the description of the present application, unless otherwise stated, the meaning of "a plurality of" is two or more.
[0060] In addition, in the embodiments of the present application, the orientation terms such as "upper", "lower", etc. are defined with respect to the orientation of the components shown in the drawings. It should be understood that these directional terms are relative concepts, which are used for relative description and clarification, and can be changed accordingly according to the change of the orientation of the components placed in the drawings.
[0061] Fig. 1 is a structural schematic diagram of a data access system provided by the present application. The data access system includes a data access device 100 and a storage device 120. In the application scenario shown in Fig. 1, the user accesses data through application programs. The computer running these application programs can be referred to as a "computing device".
[0062] The data access device 100 can be a physical machine, a virtual machine, or a container. The physical machine can include one or both of a user end and a smart NIC. For example, the data access device 100 includes a user end. The user end can refer to a client, such as a host, a desktop computer, a server, a notebook computer, a mobile device, and the like. For another example, the data access device 100 includes a smart NIC. The smart NIC, also referred to as a smart network adapter, provides a built-in programmable and configurable hardware acceleration engine in addition to the network transmission function of a standard network card, improves the performance of an application, and greatly reduces the consumption of a CPU in communication in a host connected to the smart NIC, and provides more CPU resources for the application. For example, in a highly virtualized environment, a CPU in a host needs to run open virtual switch (OVS) related tasks, and the CPU in the host also needs to process storage, online or offline encryption and decryption of data packets, deep packet inspection, firewall, complex routing, and the like. These operations not only consume a large amount of CPU resources, but also cause the performance of services to be unable to be best due to the contention of CPU resources among different services. The smart NIC serves as a hub connecting various services, and accelerates the services on the smart NIC.
[0063] In one possible example, the data access device 100 accesses the storage device 120 through a network to access data. For example, the network can include the switch 110.
[0064] In another possible example, the data access device 100 can also communicate with the storage device 120 through a wired connection, such as a universal serial bus (USB) or a peripheral component interconnect express (PCIe) bus, and the like.
[0065] The storage device 120 shown in FIG. 1 can be a centralized storage system. The centralized storage system has the feature of having a unified entrance through which all data from external devices passes, and the entrance is an engine 121 of the centralized storage system. The engine 121 has a management function, and many advanced functions of the storage system are implemented therein.
[0066] As shown in FIG. 1, the engine 121 can have one or more controllers. FIG. 1 illustrates an example in which the engine 121 includes one controller. In one possible example, if the engine 121 has multiple controllers, any two controllers can have a mirror channel to implement a backup function for each other, so as to avoid a hardware failure leading to an unavailability of the entire storage device 120. It should be understood that if the engine 121 includes multiple controllers, the engine 121 can also be referred to as an array controller of the storage device 120.
[0067] The engine 121 also includes a front-end interface 1211 and a back-end interface 1214. The front-end interface 1211 is used to communicate with the data access device 100, so as to provide data access services for the data access device 100. The back-end interface 1214 is used to communicate with the hard disks, so as to expand the capacity of the storage device 120. Through the back-end interface 1214, the engine 121 can connect more hard disks, so as to form a very large storage resource pool.
[0068] In hardware, as shown in FIG. 1, the controller includes at least a processor 1212 and a memory 1213. The processor 1212 is a central processing unit (CPU) used to process data access requests from outside the storage device 120 (a server or other storage system) and to process requests generated inside the storage device 120. For example, when the processor 1212 receives a write data request sent by the data access device 100 through the front-end interface 1211, the processor 1212 temporarily saves the data in the write data request in the memory 1213. When the total amount of data in the memory 1213 reaches a certain threshold, the processor 1212 sends the data stored in the memory 1213 to at least one of the mechanical hard disk 1221, the solid state drive (SSD) 1222, the tape device 200, or other hard disks 1224 through the back-end port for persistent storage.
[0069] The memory 1213 refers to an internal memory that exchanges data directly with the processor. It can read and write data at any time and has a very fast speed, and is used as a temporary data storage for an operating system or other programs running at the moment. The memory includes at least two types of memories, for example, the memory can be a random access memory or a read only memory (ROM). For example, the random access memory is a DRAM or an SCM. The DRAM is a semiconductor memory, and like most random access memories (RAMs), it is a volatile memory device. However, the DRAM and the SCM are only exemplary in this embodiment, and the memory can also include other random access memories, such as static random access memories (SRAM) and the like. As for the read only memory, for example, it can be a programmable read only memory (PROM), an erasable programmable read only memory (EPROM), and the like. In addition, the memory 1213 can also be a dual in-line memory module (DIMM), that is, a module composed of dynamic random access memories (DRAM), and can also be an SSD. In practical applications, multiple memories 1213 can be configured in the controller, and different types of memories 1213 can be configured. This embodiment does not limit the number and type of the memory 1213. In addition, the memory 1213 can be configured to have a power retention function. The power retention function refers to that when the system is powered off and then powered on again, the data stored in the memory 1213 will not be lost. The memory with the power retention function is called a non-volatile memory. The memory 1213 stores software programs, and the processor 1212 runs the software programs in the memory 1213 to achieve the management of the hard disk. For example, the hard disk is abstracted as a storage resource pool, and the storage resource pool is provided to the server in the form of a logical unit number (LUN). The LUN is actually the hard disk seen on the server. Of course, some centralized storage systems themselves are file servers, which can provide shared file services for servers.
[0070] As shown in FIG. 1, in the system, the engine 121 can not have a hard disk slot, and the hard disk needs to be placed in the hard disk frame 122, and the back-end interface 1214 communicates with the hard disk frame 122. The back-end interface 1214 exists in the engine 121 in the form of an adapter card, and two or more back-end interfaces 1214 can be used simultaneously on one engine 121 to connect multiple hard disk frames. Alternatively, the adapter card can also be integrated on the mainboard, at which time the adapter card can communicate with the processor 1212 through the PCIe bus.
[0071] It should be noted that only one engine 121 is shown in FIG. 1, but in actual application, two or more engines 121 can be included in the storage system, and redundancy or load balancing is performed between the multiple engines 121.
[0072] The hard disk frame 122 includes a control unit 1225 and several hard disks. The control unit 1225 can have various forms. In one case, the hard disk frame 122 belongs to a smart disk frame, as shown in FIG. 1, and the control unit 1225 includes a CPU and a memory. The CPU is used to perform address conversion and read and write data operations. The memory is used to temporarily store data to be written to the hard disk, or data read from the hard disk to be sent to the controller. In another case, the control unit 1225 is a programmable electronic component, such as a data processing unit (DPU). The DPU has the versatility and programmability of the CPU, but is more specialized and can efficiently operate on network packets, storage requests, or analysis requests. The DPU is distinguished from the CPU by a greater degree of parallelism (a large number of requests need to be processed). Alternatively, the DPU here can also be replaced by a graphics processing unit (GPU), an embedded neural-network processing unit (NPU), etc. In general, the number of control units 1225 can be one, two or more. The functions of the control unit 1225 can be offloaded to the network card 1226. In other words, in this embodiment, the hard disk frame 122 does not have a control unit 1225 inside, but the data read and write, address conversion and other computing functions are completed by the network card 1226. At this time, the network card 1226 is a smart network card. It can contain a CPU and a memory. The CPU is used to perform address conversion and read and write data operations. The memory is used to temporarily store data to be written to the hard disk, or data read from the hard disk to be sent to the controller. It can also be a programmable electronic component, such as a DPU. The network card 1226 in the hard disk frame 122 has no affiliation with the hard disks, and the network card 1226 can access any hard disk in the hard disk frame 122 (such as the mechanical hard disk 1221, the solid state disk 1222, the tape machine device 200 and other hard disks 1224 shown in FIG. 1), so that it is more convenient to expand the hard disk when the storage space is insufficient.
[0073] In the embodiments of the present application, the tape machine device 200 refers to a storage device including a magnetic tape medium. In hardware implementation, the tape machine device can include but is not limited to a magnetic tape and a head driver. The head driver can be used to access the magnetic tape, such as writing data to the magnetic tape or reading data from the magnetic tape. The specific implementation of the tape machine device 200 can refer to the embodiments shown in FIGS. 2 to 12 below, which will not be described here.
[0074] According to the type of the communication protocol between the engine 121 and the hard disk frame 122, the hard disk frame 122 can be a serial attached small computer system interface (SAS) hard disk frame connected in series, can be an NVMe (Non-Volatile Memory express) hard disk frame, and can be other types of hard disk frames. The SAS hard disk frame adopts the SAS3.0 protocol, and each frame supports 25 SAS hard disks. The engine 121 is connected with the hard disk frame 122 through a built-in SAS interface or a SAS interface module. The NVMe hard disk frame is more like a complete computer system, and the NVMe hard disk is inserted into the NVMe hard disk frame. The NVMe hard disk frame is connected with the engine 121 through an RDMA port. In some cases, the engine 121 can also be referred to as a hard disk management device.
[0075] In terms of hardware implementation, the hard disk frame 122 can be installed in a storage system, or the hard disk frame 122 can be packaged and independently arranged. When the hard disk frame 122 exists independently, the hard disk frame 122 can also be referred to as a storage device, which is not limited in the present application.
[0076] In an optional implementation, the storage device 120 is a centralized storage system with integrated disk control, and the storage device 120 does not have the hard disk frame 122 described above. The engine 121 is used to manage a plurality of hard disks connected through hard disk slots. The function of the hard disk slot can be implemented by the back-end interface 1214.
[0077] In other optional implementations, the storage device 120 is a distributed storage system. The distributed storage system includes a computing node cluster and a storage node cluster. The computing node cluster includes one or more computing nodes, and the computing nodes can communicate with each other. The computing node can be a server, a desktop computer, or a controller of a storage array, etc. In terms of hardware, the computing node can include a processor, a memory, a network card, etc. The processor is a CPU, which is used to process data access requests from outside the computing node or requests generated inside the computing node. For example, when the processor receives a write data request sent by a user, the processor temporarily saves the data in the write data request in the memory. When the total amount of data in the memory reaches a certain threshold, the processor sends the data stored in the memory to the storage node for persistent storage. In addition, the processor is also used for data computing or processing, such as metadata management, data deduplication, data compression, virtualization of storage space, address translation, etc. In the embodiments provided in the present application, the storage node can be a magnetic disk or other types of hard disks, etc. It can be understood that the storage system described in the embodiments of the present application can be a distributed storage system with integrated storage and computing, or can be a distributed storage system with separated storage and computing, which is not limited in the present application.
[0078] For example, the distributed storage system can be implemented by a network attached storage (NAS) technology. The NAS refers to a network storage architecture that provides storage resources through file-level data access and sharing based on an Internet Protocol (IP) network. In a NAS scenario, the NAS is an external device for a server / host, and the NAS is used to provide file-level storage space for the server / host in the distributed storage system.
[0079] It is worth noting that the above examples are only possible implementations of the data access system provided by the embodiments, and should not be construed as a limitation of the present application.
[0080] FIG. 2 is a structural schematic diagram of a first state of a tape drive device 200 provided by an embodiment of the present application. Referring to FIG. 2, the tape drive device 200 includes a base 210, a tape body 220, a sensor module 230, a magnetic head 240, and a controller 250. The tape body 220 is arranged on the base 210, and the magnetic head 240 is slidingly connected to the base 210. The magnetic head 240 can be close to or away from the tape body 220. When the tape drive device 200 reads and writes data, the tape body 220 moves relative to the magnetic head 240, and the sensor module 230 is used to obtain the moving distance (for example, distance X in FIG. 2) of the tape body 220.
[0081] The controller 250 is in signal connection with the sensor module 230. The controller 250 is configured to instruct the magnetic head 240 to slide relative to the base 210 according to the moving distance X.
[0082] In the embodiments of the present application, the controller 250 can be arranged on the tape drive device 200 or outside the tape drive device 200. For example, the controller 250 can be arranged on the control unit 1225 in FIG. 1 or integrated on a controller in the storage device 120.
[0083] For example, when the moving distance is outside the target distance interval, there is a gap between the magnetic head 240 and the tape body 220. When the moving distance is within the target distance interval, the magnetic head 240 contacts and accesses the data in the tape body 220.
[0084] For example, the moving distance X of the tape body 220 is determined according to the target position of the target data to be accessed and the current position of the magnetic head 240.
[0085] Therefore, when the moving distance of the tape 220 does not reach the target distance interval during the addressing process, the gap between the head 240 and the tape 220 can avoid the head 240 rubbing against the tape 220. The abrasion of the tape 220 is reduced. When the moving distance of the tape 220 reaches the target distance interval, the head 240 contacts the tape 220 and accesses the data in the tape 220. Since the head 240 also has the function of accessing the address in the tape 220, the head 240 can accurately read the address of the tape 220 and access the target data after contacting the tape 220. Therefore, even if there is an error between the aforementioned target distance interval and the address of the target data to be accessed, the head 240 can still access the target data. In summary, the tape drive device 200 provided by the embodiments of the present application can reduce the abrasion of the head 240 to the tape 220, while not affecting the accuracy of the head 240 accessing data, and can prolong the service life of the tape 220.
[0086] In the embodiments of the present application, for the convenience of description, the state that the head 240 has a gap with the tape 220 is defined as a first state. The state that the head 240 contacts the tape 220 is defined as a second state.
[0087] In the embodiments of the present application, the aforementioned target distance interval has a maximum value and a minimum value. In some embodiments, when the moving distance is equal to the minimum value or the maximum value, the head 240 has a gap with the tape 220. Alternatively, in some embodiments, when the moving distance is equal to the minimum value or the maximum value, the head 240 contacts the tape 220. In other words, when the value of the moving distance is equal to the maximum value or the minimum value of the target distance interval, in some embodiments, the controller 250 instructs the tape drive device 200 to be in the first state. In other embodiments, the controller 250 instructs the tape drive device 200 to be in the second state.
[0088] The aforementioned “the moving distance is outside the target distance interval” means that the moving distance is less than or equal to the minimum value of the target distance interval, or the moving distance is greater than or equal to the maximum value of the target distance interval. The aforementioned “the moving distance is within the target distance interval” means that the moving distance is greater than or equal to the minimum value of the target distance interval, and less than or equal to the maximum value of the target distance interval.
[0089] It can be understood that the aforementioned moving distance of the tape 220 can be determined according to the current address of the head 240 and the address of the target data. For example, the tape drive device 200 receives a request to access target data, and the target data is stored in a target address. The tape drive device 200 determines the moving distance of the tape 220 according to the current address of the head 240 and the target address. For example, the tape 220 reaches the vicinity of the target address after moving a target distance, and the target distance is within the target distance interval.
[0090] In the example of FIG. 2, there is a gap between the magnetic head 240 and the tape 220. Embodiments of the present application do not limit the size of the gap between the magnetic head 240 and the tape 220. In FIG. 2, the width of the gap between the magnetic head 240 and the tape 220 is H. In an example, the width H can be 1 mm to 50 mm. For example, the width H can be 1 mm, 2 mm, 3 mm, 5 mm, 6 mm, 8 mm, 10 mm, 15 mm, 20 mm, 25 mm, 30 mm, 35 mm, 40 mm, or 50 mm, etc.
[0091] In some embodiments of the present application, the tape drive device 200 can further include a first roller 21 and a second roller 22, which are used to press against the tape 220 and together restrict the transmission path of the tape 220.
[0092] FIG. 3a is a structural schematic diagram of the tape drive device 200 in a second state according to an embodiment of the present application. In FIG. 3a, the magnetic head 240 is in contact with the tape 220. In this state, the magnetic head 240 can access data in the tape 220.
[0093] In the second state, the gap between the magnetic head 240 and the tape 220 can be considered as non-existent or small, for example, the width of the gap is 0 nm to 20 nm, for example, the width of the gap is 0 nm, 0.1 nm, 0.4 nm, 0.8 nm, 1 nm, 2 nm, 3 nm, 4 nm, 6 nm, 8 nm, 10 nm, 15 nm, 18 nm, or 20 nm, etc.
[0094] In some embodiments of the present application, when the moving distance is outside the target distance interval, the maximum value of the moving speed of the tape is a first value. When the moving distance is within the target distance interval, the maximum value of the moving speed of the tape is a second value, which is less than the first value. In other words, when the tape drive device 200 is in the first state, the maximum value of the moving speed of the tape is the first value, and when the tape drive device 200 is in the second state, the maximum value of the moving speed of the tape 220 is the second value, which is less than the first value. In this way, when there is a gap between the magnetic head 240 and the tape 220, the moving speed of the tape 220 is relatively large, which can shorten the time for the tape 220 to move and avoid the tape 220 being worn by the magnetic head 240. When the magnetic head 240 accesses the tape 220, the moving speed of the tape 220 is relatively small, which does not affect the magnetic head 240 to access data.
[0095] The tape drive device 200 provided by the embodiments of the present application can reduce the wear of the tape 220 and the access time at the same time.
[0096] The minimum value of the moving speed of the tape body when the tape drive device 200 is in the first state is a third value. Obviously, the third value is less than the first value. Embodiments of the present application do not limit the size of the third value. For example, the third value can be greater than, less than, or equal to the second value, or even the third value can be zero.
[0097] Similarly, when the tape drive device 200 is in the second state, the minimum value of the moving speed of the tape body 220 is a fourth value, which is less than the second value.
[0098] Embodiments of the present application do not limit the size of the second value. For example, the second value can be 4 m / s (meter / second) to 5 m / s. For example, the second value can be 4 m / s, 4.2 m / s, 4.5 m / s, 4.8 m / s, 5 m / s, etc.
[0099] Embodiments of the present application also do not limit the size of the first value. For example, the first value can be 6 m / s to 10 m / s. For example, the second value can be 6 m / s, 7 m / s, 8 m / s, 9 m / s, 10 m / s, etc.
[0100] It should be noted that embodiments of the present application do not limit the tape drive device 200 to only the first state and the second state described above. In some embodiments, the tape drive device 200 can also have a third state. For example, the third state is defined as when the tape drive device 200 is in a standby state or a shutdown state. In the third state, there is a gap between the magnetic head 240 and the tape body 220. In this way, the time of contact between the magnetic head 240 and the tape body 220 is reduced, avoiding the magnetic head 240 pressing the same position of the tape body 220 for a long time, causing the tape body to creep, which is beneficial to prolong the service life of the tape body 220.
[0101] FIG. 3b is a control schematic diagram of the controller 250 provided by embodiments of the present application. Please refer to FIG. 3b. The controller 250 includes a communication interface and a processor. The communication interface is configured to receive a moving distance of the tape body 220. The processor is configured to send a control instruction according to the moving distance. The control instruction is configured to instruct the magnetic head 240 to slide relative to the base.
[0102] When the moving distance is outside the target distance interval, the control instruction instructs that there is a gap between the magnetic head and the tape body.
[0103] When the moving distance is within the target distance interval, the control instruction instructs that the magnetic head contacts the tape body and accesses data in the tape body. It should be noted that when the moving distance of the magnetic tape is within the target distance interval, the magnetic head will access the data in the tape body of the magnetic tape, so the control instruction can also be called an access instruction, a read-write instruction, a read instruction, or a write instruction, etc. Embodiments of the present application do not limit this.
[0104] In some embodiments, the control instruction is further used to indicate a moving speed of the tape body; when the moving distance is outside the target distance range, a maximum value of the moving speed of the tape body is a first value; when the moving distance is inside the target distance range, a maximum value of the moving speed of the tape body is a second value; the second value is less than the first value.
[0105] In some embodiments of the present application, the processor is specifically configured to determine a target index management IO (Input / Output) scheduling scheme according to the moving distance; the target index comprises one or a combination of the following: access latency, access bandwidth, moving distance of the tape body, and wear of the tape body.
[0106] In some embodiments, the processor is further configured to determine a target IO scheduling scheme from a plurality of IO scheduling schemes according to the moving distance, and send a control instruction matched with the target IO scheduling scheme.
[0107] The following illustrates some IO scheduling schemes in combination with FIG. 3c, FIG. 3d, FIG. 3e, and FIG. 3f.
[0108] FIG. 3c is a schematic diagram of an IO scheduling scheme provided by an embodiment of the present application. In FIG. 3c, the addressing mode provided by the conventional technology is contact addressing. The scheduling scheme of the contact addressing is: from the initial position of the magnetic head to the process that the magnetic head reaches the access area of the tape body and accesses data, the magnetic head and the tape body are in contact. The contact distance of the magnetic head and the tape body is the full length. In the scheduling scheme of the contact addressing, before the magnetic head reaches the access area of the tape body, the tape body moves at a high speed for a distance. When the moving speed of the tape body is greater than the maximum value of the "access data speed range", the magnetic head cannot determine the address of the tape body, therefore, before the magnetic head reaches the access area of the tape body, the moving speed of the tape body needs to be reduced to the "access data speed range", and the tape body is accessed at the moving speed of the "access data speed range". In other words, in the scheduling scheme of the contact addressing: the tape body needs to move a long distance in the "access data speed range", and the time consumption is long. In addition, since the magnetic head and the tape body are always in contact, it is one of the factors that limits the maximum speed of the tape body.
[0109] The IO scheduling scheme (non-contact addressing in FIG. 3c) of the tape drive device provided by the embodiment of the present application is as follows: from the initial position of the magnetic head to the time when the magnetic head reaches the access region of the tape, there is a gap between the magnetic head and the tape (non-contact state). When the magnetic head reaches the access region of the tape, the magnetic head contacts the tape. The contact distance between the magnetic head and the tape is the length of the access region. In the scheduling scheme of the non-contact addressing, because there is a gap between the magnetic head and the tape, from the initial position of the magnetic head to the time when the magnetic head reaches the access region of the tape, the moving speed of the tape is not limited by the contact state with the magnetic head. The moving speed of the tape can be higher. When the magnetic head reaches the access region of the tape, the data is accessed at the moving speed of the tape as the "access data speed range". In other words, in the scheduling scheme of the non-contact addressing, the moving distance of the tape in the "access data speed range" can be only the length of the access region, and the rest of the time can be at a speed greater than the "access data speed range".
[0110] As can be seen from the above, the IO scheduling scheme of the tape drive device provided by the embodiment of the present application is that the length of the contact between the magnetic head and the tape is short, which is beneficial to reduce the wear of the tape caused by the magnetic head and prolong the service life of the tape. In addition, in the state of the gap between the magnetic head and the tape, the moving speed of the tape can be greater than the moving speed of the tape in the state of the contact between the magnetic head and the tape, which is beneficial to shorten the time of the addressing of the magnetic head.
[0111] The tape does not need to be slowed down in advance at a long distance, and the data access can be completed by controlling the speed of the tape to be in the "access data speed range" when the tape reaches the access region.
[0112] In the example of FIG. 3c, the moving direction of the tape is the same direction, for example, from left to right in FIG. 3c, in other words, the magnetic head does not need to turn around. In some scheduling schemes, the magnetic head needs to turn around during the addressing process of the magnetic head.
[0113] FIG. 3d is a schematic diagram of another IO scheduling scheme provided by the embodiment of the present application. The difference between FIG. 3d and FIG. 3c is that the magnetic head needs to turn around during the addressing process of the magnetic head.
[0114] As in FIG. 3c, the addressing mode provided by the general technology is the contact addressing, and the scheduling scheme of the contact addressing is as follows: from the initial position of the magnetic head to the time when the magnetic head reaches the access region of the tape and accesses the data, the magnetic head and the tape are in the contact state. From the initial position of the magnetic head to the time when the magnetic head reaches the access region of the tape, the tape moves at a high speed for a distance. When it is necessary to turn around, the tape is slowed down to the "access data speed range" to determine the address, and then is slowed down to 0. After the magnetic head turns around, the tape is accelerated to the "access data speed range" to reach the access region to access the data.
[0115] The aforementioned "head turn" refers to the process of switching from the relative movement of the tape body relative to the head in one direction to the relative movement of the tape body relative to the head in the opposite direction. For example, in Figure 3c, the tape body moves relative to the head from left to right, and is switched to move relative to the head from right to left.
[0116] The IO scheduling scheme (non-contact addressing in Figure 3d) of the tape drive device provided by the embodiment of the present application is as follows: since the sensor module can obtain the moving distance of the tape body, the tape body is moved at a high speed to the vicinity of the target distance interval, is slowed down to 0, and then is accelerated to the "data access speed range" after the head turn, and reaches the access region to access data.
[0117] Similarly, in Figure 3d, the length of the contact between the non-contact addressing head and the tape body is short, which is beneficial to reduce the wear of the tape body by the head and prolong the service life of the tape body. Since the sensor module obtains the moving distance of the tape body, the head does not need to determine whether it reaches the vicinity of the access region, and can be slowed down according to the moving distance of the tape body obtained by the sensor module to select the position for the head turn. In the same moving distance, the IO scheduling scheme of the non-contact addressing provided by the embodiment of the present application takes less time.
[0118] Figure 3e is a schematic diagram of another IO scheduling scheme provided by the embodiment of the present application. Figure 3e is short-distance addressing, that is, the distance between the initial position of the head and the access region is short. In short-distance addressing, if the position of the head is too close to the access region, the tape body cannot increase the speed to the "data access speed range" when the head reaches the access region. The tape body needs to move in the opposite direction to increase the distance and then access data.
[0119] Similarly to Figure 3d, the addressing mode provided by the general technology is contact addressing, and the scheduling scheme of the contact addressing is as follows: from the initial position of the head to the process of the head reaching the access region of the tape body and accessing data, the head and the tape body are in a contact state.
[0120] In the contact addressing (1) in Figure 3e, the head may lose the address information of the initial position of the head due to an abnormality (for example, power failure, etc.). The moving speed of the tape body needs to be in the "data access speed range" to obtain the position information of the head. When the tape body needs to increase the speed to the "data access speed range", the head has missed the initial address of the access region, and therefore, the head needs to turn twice to access data.
[0121] In the contact addressing (2) in Figure 3e, the head knows the address information of the initial position of the head, and in the process of the head turn, the reverse moving speed of the tape body needs to be in the "data access speed range" to obtain the address, so as to determine whether the head can turn. In this process, the distance of the reverse movement of the tape body is usually far. The time for the head to reach the access region after the head turn is long.
[0122] In the contact addressing (3) in Fig. 3e, the magnetic head knows the address information of the initial position. After the tape body reverses, whether the magnetic head can turn around can be determined by estimation (for example, estimating the time of reversing). In the estimation process, the distance of the tape body reversing is usually far. The time of the magnetic head reaching the access area after turning around is long.
[0123] In the IO scheduling scheme of the tape drive device provided by the embodiment of the application (non-contact addressing in Fig. 3e), because the sensor module can obtain the moving distance of the tape body, the distance of the tape body reversing can be obtained by the sensor module. The distance of the tape body reversing can be short, and the time of the magnetic head reaching the access area after turning around is short. The read-write delay can be reduced.
[0124] In other words, in Fig. 3e, even if the tape body is not in the "access data speed range", in the addressing process, the magnetic head can be relatively accurately controlled to turn around at the right position according to the moving distance of the tape body obtained by the sensor module, so as to avoid that the tape body reverses too much distance and increases the access time.
[0125] In the contact addressing and non-contact addressing schemes in Fig. 3e, the moving speed of the tape body from 0 to the "access data speed range" is small, and the moving distance of the tape body is small. In other words, in the process of the magnetic head turning around from 0 to the "access data speed range", the moving distance of the tape body can be regarded as the same. In the non-contact addressing scheme, the time of the magnetic head turning around is short, and the distance of the magnetic head from turning around to reaching the access area is short, so as to reduce the access delay.
[0126] Fig. 3f is a schematic diagram of another IO scheduling scheme provided by the embodiment of the application. Fig. 3f is batch IO access. When receiving the batch IO read-write request.
[0127] In the contact addressing scheme provided by the general technology, in order to obtain the address of the access area, the moving speed of the tape body cannot be out of the "access data speed range", and there is much read-write delay. Therefore, in order to avoid long access time, the access order of the access area 1, the access area 2, the access area 3 and the access area 4 is less.
[0128] In the IO scheduling scheme of the tape drive device provided by the embodiment of the application (non-contact addressing), because the sensor module can obtain the moving distance of the tape body, the addresses of the access area 1, the access area 2, the access area 3 and the access area 4 can be obtained by the moving distance. In order to reduce the delay, the IO scheduling scheme with the optimal read-write delay or the optimal combination of some or multiple indexes can be selected.
[0129] It can be understood that the foregoing FIG. 3c, FIG. 3d, FIG. 3e and FIG. 3f only exemplify part of the IO scheduling scheme, and the tape device provided by the embodiments of the present application is not limited to the foregoing IO scheduling scheme.
[0130] As described above, the head 240 is slidingly connected with the base 210. The embodiments of the present application do not limit the manner in which the head 240 is slidingly connected with the base 210. For example, the head 240 and the base 210 are slidingly connected through a slide rail, a slide block or a slide groove. The embodiments of the present application are exemplarily described with reference to FIG. 4a and FIG. 4b.
[0131] FIG. 4a is a schematic diagram of a connection structure of the head 240 and the base 210 provided by the embodiments of the present application. Referring to FIG. 4a, in a first state, the head 240 is in contact with the tape body 220. In a second state, there is a gap between the head 240 and the tape body 220, and the gap has a width H.
[0132] In FIG. 4a, the head 240 includes a bracket 241, a motor 243 and a read-write head 242. The motor 243 can drive the head 240 to move, so that the read-write head 242 accesses data of the tape body 220, for example, writes data into the tape body 220 or reads data from the tape body 220. The bracket 241 is connected with the base 210. The motor 243 is arranged on the bracket 241.
[0133] Optionally, the read-write head 242 includes a write head, a read head and a write head. The read head is located between the two write heads. In the process of writing data, the tape slides from left to right, the left write head magnetizes the storage position of the data to be written in the tape, thereby changing the magnetic field of the magnetic medium (such as magnetic powder) in the storage position, and then storing the data to be written in the storage position. In addition, the read head senses the magnetic field of the storage position, thereby reading back the data written by the write head in the tape to ensure the accuracy of writing data.
[0134] The bracket 241 is provided with a slide rail 245, and the read-write head 242 and the bracket 241 are slidingly connected through the slide rail. This allows the read-write head 242 to approach or move away from the tape body 220.
[0135] Exemplarily, the tape device 200 can further include a driver 244. The read-write head 242 and the bracket 241 are both connected with the driver 244. After the driver 244 outputs power, the read-write head 242 approaches or moves away from the tape body 220, so that the tape device 200 switches between the first state and the second state.
[0136] The embodiments of the present application do not limit the type of the driver 244. For example, the driver 244 can include a linear motor, a hydraulic cylinder or a cylinder, etc.
[0137] As mentioned above, the controller instructs the magnetic head 240 to slide relative to the base 210 according to the moving distance of the tape body 220. Exemplarily, the controller 250 sends a control instruction (as shown in FIG. 3b) to the driver 244. The driver 244 is configured to accept the control instruction and output power according to the control instruction to drive the magnetic head 240 to slide relative to the base 210.
[0138] FIG. 4b is a schematic view of another connection structure of the magnetic head 240 and the base 210 provided in the embodiment of the present application. In FIG. 4b, the bracket 241 and the base 210 are slidingly connected.
[0139] Exemplarily, a slide rail is arranged on the base 210, and the bracket 241 is slidingly connected with the base 210 through the slide rail. After the driver 244 outputs the power, the entire magnetic head 240 (for example, the bracket 241, the motor 243 and the read-write head 242) moves relative to the base 210. The sliding connection of the magnetic head 240 and the base 210 can also be achieved.
[0140] For example, the bracket 241 and the base 210 are slidingly connected. The entire magnetic head 240 (for example, the bracket 241, the motor 243 and the read-write head 242) slides relative to the base 210.
[0141] In the embodiment of the present application, the sensor module 230 has multiple types, and correspondingly, the way of obtaining the moving distance of the tape body also has multiple types. The following is an exemplary description.
[0142] FIG. 5a is a schematic view of a structure of a sensor module 230 and a tape body 220 provided in the embodiment of the present application. Please refer to FIG. 5a, the tape machine device 200 can further include a winding drum 260. The winding drum 260 is rotationally connected with the base 210, and the tape body 220 is arranged around the winding drum 260. The sensor module 230 includes a Hall encoder or an optical encoder, and the Hall encoder or the optical encoder is sleeved on the winding drum 260.
[0143] The optical encoder can convert the mechanical geometric displacement amount on the winding drum 260 into a pulse or a digital quantity through photoelectric conversion, and transmit the pulse or the digital quantity to the controller. The sensor module 230 can obtain the moving distance of the tape body 220 arranged around the winding drum 260. Similarly, the Hall encoder can measure the moving distance of the tape body 220 arranged around the winding drum 260.
[0144] Fig. 5b is a structural schematic diagram of a winding drum 260 and a belt 220 according to an embodiment of the present application. Referring to Fig. 5b, the winding drum 260 comprises a winding shaft 263, a first cover plate 261 and a second cover plate 262. The winding shaft 263 is rotationally connected to the base 210. The belt 220 is located between the first cover plate 261 and the second cover plate 262. The first cover plate 261 and the second cover plate 262 can constrain the belt 220 to avoid the belt 220 from being separated from the winding shaft 263. During rotation of the winding shaft 263, the first cover plate 261 and the second cover plate 262 rotate synchronously. Exemplarily, a Hall encoder or an optical encoder is connected to the winding shaft 263.
[0145] The first cover plate 261 can be a circular plate structure as shown in Fig. 5b, and the second cover plate 262 can be a circular plate structure as shown in Fig. 5b.
[0146] The embodiments of the present application do not limit the shapes of the first cover plate 261 and the second cover plate 262. For example, the first cover plate 261 can be a circular, square, oval or irregular plate. Similarly, the second cover plate 262 can be a circular, square, oval or irregular plate. The shape of the first cover plate 261 can be the same as or different from that of the second cover plate 262.
[0147] Exemplarily, the first cover plate 261 and the winding shaft 263 can be connected by welding, clamping or bonding, etc. Similarly, the second cover plate 262 and the winding shaft 263 can be connected by welding, clamping or bonding, etc.
[0148] Referring back to Fig. 3a, the tape machine device 200 comprises two winding drums 260. The leading end of the belt 220 is wound around one winding drum 260, and the trailing end of the belt 220 is wound around the other winding drum 260. The Hall encoder or the optical encoder can be arranged on any of the winding drums 260.
[0149] Fig. 6 is a structural schematic diagram of another sensor module 230 and a belt 220 according to an embodiment of the present application. Referring to Fig. 6, the sensor module 230 comprises an angle sensor for determining the moving distance of the belt 220 according to the rotation angle of the winding drum 260.
[0150] Because the band 220 is wound on the reel 260, the radius of the reel 260 is a determined value. The band 220 wound on the reel 260 increases (or decreases) one turn every 360° rotation of the reel 260, and the radius of the band 220 wound on the reel 260 also increases (or decreases) accordingly. Thus, the angle sensor can obtain the radius of the band 220 wound on the reel 260 according to the angle of rotation of the reel 260 and the thickness of the single-layer band 220. In addition, the reel 260 and the band 220 move synchronously during the movement of the band 220, so that the angle of rotation of the band 220 can be obtained by detecting the angle of rotation of the reel 260, and the movement distance of the band 220 can be determined according to the corresponding radian of the angle of rotation of the band 220 and the radius of the band 220.
[0151] In the example of FIG. 6, the angle sensor detects that the angle of rotation of the reel 260 is β, and the angle of rotation of the band 220 is also β, so that the movement distance of the band 220 can be determined by the product of the radian corresponding to the angle β and the radius of the band 220.
[0152] In the example of FIG. 6, the angle sensor detects that the angle of rotation of the reel 260 is β, and the angle of rotation of the band 220 is also β, so that the movement distance of the band 220 can be determined by the product of the radian corresponding to the angle β and the radius of the band 220.
[0153] FIG. 7 is a structural schematic diagram of another sensor module 230 and the band 220 provided in an embodiment of the present application. Referring to FIG. 7, the sensor module 230 includes a thickness sensor. The thickness sensor is used to determine the movement distance of the band 220 according to the thickness of the band wound on the reel 260.
[0154] During the movement of the band 220, the thickness of the band 220 wound on the reel 260 increases or decreases. The total thickness of the band 220 wound on the reel 260 is equal to the product of the thickness m of the single-layer band 220 and the number of turns of the band 220. The movement distance of the band 220 can be determined according to the difference between the thickness of the band 220 wound on the reel 260, the radius of the band 220 wound on the reel 260, and the thickness m of the single-layer band 220.
[0155] For example, in FIG. 7, the thickness sensor measures the thickness of the band 220 wound on the reel 260 as d1 in the first state. The thickness sensor measures the thickness of the band 220 wound on the reel 260 as d2 in the second state. d2 is greater than d1, the thickness of the band 220 wound on the reel 260 increases when the band 220 is adjusted from the first state to the second state, and the movement distance of the band 220 gradually increases. Conversely, the thickness of the band 220 wound on the reel 260 decreases when the band 220 is adjusted from the second state to the first state, and the movement distance of the band 220 gradually increases.
[0156] Thus, the moving distance of the tape 220 can also be obtained. The controller indicates the magnetic head to slide relative to the base according to the moving distance.
[0157] As in the example of FIG. 6, in the embodiment in which the tape drive device 200 includes two reels 260 (as shown in FIG. 3a), the thickness sensor can detect the thickness information of the tape 220 on any one of the two reels 260. The moving distance of the tape 220 is determined according to the thickness information.
[0158] The foregoing FIG. 5a, FIG. 6 and FIG. 7 are to determine the moving distance of the tape 220 by obtaining the information of the reel 260. In some embodiments of the present application, the sensor module can obtain the information of the tape 220 to determine the moving distance of the tape 220. The following is exemplarily described in combination with FIG. 8 to FIG. 13.
[0159] FIG. 8 is a structural schematic view of another sensor module 230 and the tape 220 provided in an embodiment of the present application. Referring to FIG. 8, the sensor module 230 includes an encoding strip 231 and a detection assembly 232. The encoding strip 231 is connected with the tape 220. The encoding strip 231 includes a plurality of strips 231, one strip being used to record one encoding. The encoding strip 231 records a plurality of encodings. The detection assembly 232 is used to determine the moving distance of the tape according to the encodings recorded by at least two strips of the plurality of strips.
[0160] In some embodiments of the present application, the encoding strip 231 is spliced with the tape 220. For example, in FIG. 8, the encoding strip 231 is connected with one side of the tape 220 in the width direction. The encoding strip 231 is distributed along the width direction of the tape 220. Exemplarily, the encoding strip 231 is connected with one side of the tape 220 in the width direction through a glue layer.
[0161] Thus, the encoding strip 233 does not occupy the space in the thickness direction of the tape 220, avoiding the setting of the encoding strip 233 to thicken the tape 220. The length of the encoding strip 233 can be the same as the length of the tape 220, and the space of the encoding strip 231 can be larger.
[0162] FIG. 9 is a structural schematic view of another sensor module 230 and the tape 220 provided in an embodiment of the present application. The difference between FIG. 9 and FIG. 8 includes the connection manner of the tape 220 and the encoding strip 233.
[0163] In the example of FIG. 9, the band 220 includes a plurality of data areas 221 and at least one connection area 222. The data areas 221 are used to store data. The connection area is not used to store data. Two adjacent data areas 221 are connected by a connection area 222. In other words, along the length direction of the band 220, there is a connection area 222 between two adjacent data areas 221. Exemplarily, the data areas 221 and the connection area 222 are connected by a glue layer.
[0164] The encoding strip 233 and the connection area 222 are stacked along the thickness direction of the band 220. In other words, the encoding strip 233 and the connection area 222 are arranged along the thickness direction of the band 220. For example, the encoding strip 233 and the connection area 222 are connected by a glue layer.
[0165] Since the connection area is not used to store data, the arrangement of the encoding strip 233 has little effect on the data stored in the band 220. Moreover, the arrangement of the encoding strip 233 does not occupy space in the width direction of the band 220.
[0166] In some embodiments, the encoding strip 233 can be connected to the side of the connection area 222 facing the magnetic head. In some embodiments, the encoding strip 233 can also be connected to the side of the connection area 222 away from the magnetic head; the embodiments of the present application do not limit this.
[0167] In FIG. 9, during the movement of the band 220, the detection assembly 232 can identify the position of the connection area 222 according to the encoding recorded by the strip located in the connection area 222, and then determine the movement distance of the band 220 according to the position of the connection area 222.
[0168] The embodiments of the present application do not limit the number of connection areas 222 in the band 220. For example, the number of connection areas 222 can be one, two, three or more.
[0169] As can be known from the embodiments provided in FIGS. 8 and 9 above, the strip 231 is used to record encoding, and the detection assembly 232 is used to obtain the encoding and determine the movement of the band according to the encoding. In the embodiments of the present application, the strip 231 has a plurality of types, and correspondingly, the detection assembly 232 also has a plurality of types.
[0170] FIG. 10 is a structural schematic diagram of a strip 231 and a detection assembly 232 according to an embodiment of the present application. Referring to FIG. 10, the plurality of strips 231 includes a first strip 201 and a second strip 202. The first strip 201 includes at least one first identification part 101 and at least one second identification part 102. The arrangement order of the identification parts in the first strip 201 indicates a first code. The second strip 202 includes at least one first identification part 101 and at least one second identification part 102. The arrangement order of the identification parts in the second strip 202 indicates a second code. The arrangement orders of the identification parts in the first strip 201 and the second strip 202 are different.
[0171] The aforementioned "arrangement order of the identification parts in the first strip 201" refers to the arrangement order of the first identification part 101 and the second identification part 102 in the first strip 201 along a direction. For example, the first direction is along the width direction of the strip body 220, and the arrangement order of "the first identification part 101, the second identification part 102, the first identification part 101" is different from the arrangement order of "the first identification part 101, the first identification part 101, the second identification part 102". The arrangement order of the identification parts in the second strip 202 is the same.
[0172] In this way, the detection assembly 232 identifies the first identification part 101 and the second identification part 102, and determines the first code and the second code through the arrangement order of the first identification part 101 and the second identification part 102, so as to determine the moving distance of the strip body.
[0173] In the embodiments of the present application, the number of the first identification part 101 and the second identification part 102 in each strip is not limited. For example, the number of the first identification part 101 can be one, two, three, four or more. The number of the second identification part 102 can be one, two, three, four or more. It can be understood that the more the number of the first identification part 101 and the number of the second identification part 102, the more the arrangement order mode of the identification parts in the strip. The more the types of the codes in the plurality of strips.
[0174] Similarly, the plurality of strips 231 can further include a third strip 203, the arrangement order of the identification parts in the third strip 203, the arrangement order of the identification parts in the first strip 201 and the arrangement order of the identification parts in the second strip 202 are all different from each other, and so on, which will not be described herein.
[0175] It can be understood that in some embodiments of the present application, at least one strip of the plurality of strips 231 can not include the first identification part 101, for example, all the identification parts in the at least one strip are the second identification parts, and the strip can also record the code. Similarly, at least one strip of the plurality of strips 231 can not include the second identification part 102, for example, all the identification parts are the first identification parts.
[0176] Exemplarily, the encoding of the plurality of strips 231 can be absolute encoding or relative encoding, and embodiments of the present application do not limit the encoding.
[0177] The first identification part 101 and the second identification part 102 have at least one different performance. The detection component 232 is configured to detect the performance to identify the first identification part 101 and the second identification part 102. In some embodiments, the first identification part 101 and the second identification part 102 have different optical properties.
[0178] FIG. 11a is a structural schematic diagram of another strip 231 and detection component 232 according to an embodiment of the present application. In FIG. 11a, the first identification part 101 is a light-transmitting part, and the second identification part 102 is a light-absorbing part or a light-reflecting part. The detection component 232 includes a laser emitter 2321 and a laser receiver 2322. The laser emitter 2321 is configured to emit a light signal, and the laser receiver 2322 is configured to receive the light signal.
[0179] Exemplarily, the laser emitter 2321 and the laser receiver 2322 are respectively located on opposite sides of the strip 231. For example, the laser emitter 2321 is located on the upper side in FIG. 11a, and the laser receiver 2322 is located on the lower side in FIG. 11a.
[0180] The light signal emitted by the laser emitter 2321 can be transmitted through the first identification part 101 (the light-transmitting part) and received by the laser receiver 2322. The light signal emitted by the laser emitter 2321 is absorbed by the second identification part 102 (the light-absorbing part) or reflected by the second identification part 102 (the light-reflecting part), and is not received by the laser receiver 2322.
[0181] Exemplarily, the type of encoding can be binary encoding, cyclic code, or binary complement, etc. For example, the laser receiver 2322 records the received light signal as a signal "0" output. For example, the laser receiver 2322 records the non-received light signal as a signal "1" output. The detection component 232 determines the encoding according to the arrangement order of 0 and 1.
[0182] When the arrangement order of the identification parts in the first strip 201 and the second strip 202 is different, the signal output by the laser receiver 2322 is different. Then the detection component 232 can identify the first encoding recorded by the first strip and the second encoding recorded by the second strip.
[0183] Exemplarily, the structure of the light-transmitting part can be a transparent adhesive layer. The structure of the light-absorbing part can be a black film layer. The structure of the light-reflecting part can be a reflective film. Embodiments of the present application do not limit the structures.
[0184] Figure 11b is a schematic diagram of another structure of a strip 231 and a detection assembly 232 according to an embodiment of the present application. In Figure 11b, the first identification part 101 is a light-transmissive part, and the second identification part 102 is a light-reflective part. The difference between Figure 11b and Figure 11a is that the laser emitter 2321 and the laser receiver 2322 are located on the same side of the strip 231. For example, both are located on the upper side in Figure 11b.
[0185] The light signal emitted by the laser emitter 2321 is reflected by the second identification part 102 and received by the laser receiver 2322. The light signal emitted by the laser emitter 2321 is transmitted through the first identification part 101 (light-transmissive part) and is not received by the laser receiver 2322.
[0186] Similarly, the detection assembly 232 in Figure 11b can identify the arrangement order of the identification parts in the first strip and the second strip. Thus, the first code recorded by the first strip and the second code recorded by the second strip can be identified.
[0187] In some embodiments, the detection assembly 232 can include two laser receivers 2322, one of which is located on the same side of the strip 231 as the laser emitter 2321. The other laser receiver 2322 (the laser receiver 2322 shown in dashed lines in the figure) is located on the opposite side of the strip 231 as the laser emitter 2321. The other laser receiver 2322 is used to receive the light signal transmitted through the light-transmissive part. In this way, the two laser receivers 2322 jointly acquire the arrangement order of the identification parts, which can improve the accuracy.
[0188] It can be understood that, in other embodiments, the detection assembly 232 can include either of the two laser receivers 2322.
[0189] Figure 11c is a schematic diagram of another structure of a strip 231 and a detection assembly 232 according to an embodiment of the present application. In Figure 11c, the first identification part 101 is a light-reflective part, and the second identification part 102 is a light-absorbing part. The laser emitter 2321 and the laser receiver 2322 are located on the same side of the strip 231.
[0190] The light signal emitted by the laser emitter 2321 is reflected by the first identification part 101 and received by the laser receiver 2322. The light signal emitted by the laser emitter 2321 is absorbed by the second identification part 102 and is not received by the laser receiver 2322.
[0191] Similarly, the detection assembly 232 in Figure 11c can identify the arrangement order of the identification parts in the first strip and the second strip. Thus, the first code recorded by the first strip and the second code recorded by the second strip can be identified.
[0192] FIG. 11a, FIG. 11b and FIG. 11c only show some examples of the first identification part 101 and the second identification part 102 with different light properties. In some embodiments, the first identification part 101 and the second identification part 102 can be other identification parts with different light properties.
[0193] For example, the first identification part 101 and the second identification part 102 have different light transmittances. The detection component 232 identifies the first identification part 101 and the second identification part 102 by detecting the light transmittances. In embodiments in which the strip includes a third identification part, the third identification part, the first identification part 101 and the second identification part 102 can all have different light transmittances. Similarly, the first identification part 101 and the second identification part 102 can have different reflectances. The detection component 232 identifies the first identification part 101 and the second identification part 102 by detecting the reflectances. Alternatively, the first identification part 101 and the second identification part 102 have different polarization properties. The detection component 232 identifies the first identification part 101 and the second identification part 102 by detecting the polarization properties of the light transmitted through the first identification part 101 and the second identification part 102.
[0194] In some embodiments, the first identification part 101 and the second identification part 102 have different capacitance values. The detection component 232 identifies the first identification part 101 and the second identification part 102 by detecting the capacitance values of the first identification part 101 and the second identification part 102, and obtains the code according to the arrangement order of the first identification part 101 and the second identification part 102, and determines the moving distance of the strip body according to the code.
[0195] FIG. 12 is a structural schematic diagram of a sensor module 230 provided in an embodiment of the present application. The difference between FIG. 12 and FIG. 11a is that the structures of the first identification part 101 and the second identification part 102 are different.
[0196] In FIG. 12, the first identification part 101 and the second identification part 102 are both metal layers, and the first identification part 101 and the second identification part 102 are arranged at intervals. The first identification part 101 and the second identification part 102 have different capacitance values. For example, the first identification part 101 has a first capacitance value, and the second identification part 102 has a second capacitance value.
[0197] Embodiments of the present application do not limit the material of the metal layer, which can be at least one of titanium and its alloys, aluminum and its alloys, copper and its alloys, iron and its alloys, etc. Embodiments of the present application do not limit the shape of the metal layer, which can be square, circular, oval, irregular or the like.
[0198] In some embodiments, the sensor module 230 can further include a base film 235 connected with the strip body 220. The metal is arranged on the base film, and the base film 235 can support the metal layer to prevent the metal layer from falling off.
[0199] Exemplarily, the materials of the first identification part 101 and the second identification part 102 can be different, so as to make the capacitance values of the first identification part 101 and the second identification part 102 different. Alternatively, the materials of the first identification part 101 and the second identification part 102 are the same, and the areas are different, so as to make the capacitance values of the first identification part 101 and the second identification part 102 different.
[0200] The detection component 232 comprises a capacitance sensor, which is used to detect the capacitance values of the first identification part 101 and the second identification part 102. Thus, the code indicated by the arrangement order of the first identification part 101 and the second identification part 102 is acquired. The detection component 232 determines the movement distance of the band body according to the code recorded by at least two strips.
[0201] In other embodiments, in the embodiment in which the first identification part 101 and the second identification part 102 both comprise metal layers, the first identification part 101 and the second identification part 102 can also be arranged to have different resistance values. The detection component 232 comprises a resistance sensor, which is used to detect the resistance values of the first identification part 101 and the second identification part 102. Similarly, the movement distance of the band body can also be determined according to the code recorded by at least two strips.
[0202] In some embodiments of the present application, the code can not be indicated by the order of the first identification part 101 and the second identification part 102. For example, as shown in FIG. 13, the strip 231 can be arranged with an image, and the detection component determines the movement distance of the band body 220 according to the image to identify the code recorded by the strip.
[0203] FIG. 13 is a structural schematic diagram of another sensor module 230 provided by an embodiment of the present application. The difference between FIG. 13 and FIG. 11a is that the structure of the strip 231 is different.
[0204] In FIG. 13, the strip 231 comprises an image layer, and the detection component 232 comprises an image sensor. The image sensor is used to acquire the image of the strip 231. The strip 231 comprising the image layer records the code. One strip 231 is arranged with one image layer.
[0205] The detection component 232 comprises an image sensor, which is used to acquire the image of the strip 231. The detection component 232 determines the movement distance of the band body according to the code recorded by the image layer in at least two strips.
[0206] The embodiment of the present application does not limit the forming manner of the image layer. For example, the image layer can be formed by using the printing, coating or etching process.
[0207] The embodiment of the present application does not limit the type of the image layer. FIG. 13 exemplifies several types of image layers. Correspondingly, the image sensor can be selected according to the type of the image layer.
[0208] In example one, the image layer includes a two-dimensional code. One strip 231 indicates one code. One two-dimensional code indicates one code. The code strips are provided with a plurality of two-dimensional codes.
[0209] In the embodiment where the code of the code strip is an absolute code, the plurality of two-dimensional codes are different from each other. In the embodiment where the code of the code strip is a relative code, the plurality of two-dimensional codes can be regarded as a plurality of two-dimensional code groups, each two-dimensional code group includes a plurality of two-dimensional codes, and the two-dimensional codes in each two-dimensional code group are different from each other.
[0210] In example two, the image layer includes a bar code. One bar code indicates one code. The remaining description refers to the description of the image layer including a two-dimensional code in the foregoing example one, which will not be repeated here.
[0211] In example three, the image layer includes a radio frequency identification (RFID) code. The remaining description refers to the description of the image layer including a two-dimensional code in the foregoing example one, which will not be repeated here. The image sensor can be an RFID reader.
[0212] In example four, the image layer includes a text label. The text label includes a plurality of texts. One text indicates one code. The text in the text label is not limited in the embodiments of the present application. The text label can be, for example, Arabic numerals, Roman numerals, Chinese characters, English characters, Japanese characters, Korean characters, Greek letters, etc.
[0213] In example four of FIG. 13, the text label is Arabic numerals. “1” indicates one code, “2” indicates another code, “3” indicates another code, and so on. The remaining text labels are the same, which will not be repeated here.
[0214] In example five, the image layer includes a plurality of patterns. Each pattern indicates one code. The pattern style is not limited in the embodiments of the present application. For example, the pattern can be a landscape pattern, an animal pattern, a human pattern, etc.
[0215] In some embodiments of the present application, the image layer can include a combination of two or more of the foregoing example one, example two, example three, example four, and example five. For example, the image layer includes a combination of the two-dimensional code of example one and the bar code of example two.
[0216] Five types of image layers are shown in FIG. 13. It can be understood that the image layer can also include other types of images.
[0217] It can be understood that in other embodiments of the present application, the sensor module is used to acquire the moving distance of the belt body, which is not limited to the above-mentioned manner, and other manners can also be used for acquisition.
[0218] The embodiments of the present application also provide a storage system. The storage system comprises a communication interface, a storage controller, and the tape device provided by any of the foregoing embodiments. The tape device is configured to store data, the communication interface is configured to receive a data access request, and the storage controller is configured to manage a target storage device in the storage system according to the data access request. The storage system may, for example, be the tape device, or a computer / server comprising the tape device as a persistent storage medium.
[0219] The storage controller comprises one or more processors, which may, for example, be a very large scale integrated circuit. The processor is installed with an operating system and other software programs, so that the processor can access the tape device and various PCIe devices. The processor comprises one or more processor cores. The processor core in the processor may, for example, be a central processing unit (CPU) or other ASIC. The processor may, for example, also be another general-purpose processor, a DSP, an ASIC, an FPGA or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component, or the like. In actual applications, the storage system may, for example, also comprise a plurality of controllers.
[0220] Optionally, the storage system may, for example, also comprise other storage media, such as a dynamic random access memory (DRAM) or a static random access memory (SRAM), for caching data of the tape device for processing by the processor. In addition, the other storage media may, for example, also be a read only memory (ROM). For the read only memory, for example, it may, for example, be a programmable ROM (PROM), an erasable programmable ROM (EPROM), or the like. The embodiments of the present application do not limit the number and types of the other storage media. In addition, the other storage media may, for example, also be configured to have a power retention function. The power retention function refers to that, when the system is powered off and then powered on again, the data stored in the storage media will not be lost. The storage media with the power retention function is referred to as a non-volatile memory.
[0221] The other storage media may, for example, be used to store an index of the data stored on the tape. The index may, for example, be metadata of the data, a logical address of the data, a hash value calculated from the logical address of the data, or a pointer of the data, or the like.
[0222] In the description of the specification, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0223] Finally, it should be noted that 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 still be modified, or some technical features can be replaced by equivalents; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A magnetic tape drive device, characterized in that, The magnetic tape drive device includes: Base; A belt, disposed on the base, is used to store data; The sensor module is used to acquire the moving distance of the belt. A magnetic head, wherein the magnetic head is slidably connected to the base; and A controller is configured to instruct the magnetic head to slide relative to the base based on the distance traveled. Wherein, when the moving distance is outside the target distance range, there is a gap between the magnetic head and the tape; When the moving distance is within the target distance range, the magnetic head contacts the tape and accesses the data in the tape.
2. The magnetic tape drive device according to claim 1, characterized in that, When the moving distance is outside the target distance range, the maximum value of the moving speed of the belt is a first value; When the moving distance is within the target distance range, the maximum moving speed of the belt is a second value; the second value is less than the first value.
3. The magnetic tape drive device according to claim 1 or 2, characterized in that, The controller is also used for: The IO scheduling scheme for target indicator management is determined based on the travel distance; the target indicator includes one or a combination of the following: access latency, access bandwidth, the travel distance of the tape and the wear of the tape.
4. The magnetic tape drive device according to any one of claims 1-3, characterized in that, The tape drive device further includes a slide rail, and the sliding connection between the magnetic head and the base includes: the magnetic head and the base are slidably connected via the slide rail.
5. The magnetic tape drive device according to any one of claims 1-4, characterized in that, The sensor module includes an encoding bar and a detection component; The coding strip is connected to the strip body; the coding strip includes multiple strips, and one strip is used to record one code; The detection component is used to determine the movement distance based on the encoding of at least two of the plurality of strips.
6. The magnetic tape drive device according to claim 5, characterized in that, The plurality of strips includes a first strip and a second strip; The first strip includes at least one first identifier and at least one second identifier; the arrangement order of the identifiers in the first strip indicates a first code; The second strip includes at least one first identifier and at least one second identifier; the arrangement order of the identifiers in the second strip indicates a second code; The arrangement order of the markings in the first strip is different from the arrangement order of the markings in the second strip; The detection component is used to determine the moving distance based on the second code and the first code.
7. The magnetic tape drive device according to claim 6, characterized in that, The first marking part is a light-transmitting part, and the second marking part is a light-absorbing part or a light-reflecting part; Alternatively, the first marking part can be a reflective part, and the second marking part can be a light-absorbing part.
8. The magnetic tape drive device according to claim 6, characterized in that, The capacitance values of the first marking part and the second marking part are different.
9. The magnetic tape drive device according to claim 6, characterized in that, The strip includes an image layer, and the detection component includes an image sensor for acquiring an image of the strip.
10. The magnetic tape drive device according to claim 9, characterized in that, The image layer includes one or a combination of the following: QR code, RFID code, barcode, or text label.
11. The magnetic tape drive device according to any one of claims 5-10, characterized in that, The coding bar is connected to one side of the strip along its width.
12. The magnetic tape drive device according to any one of claims 5-10, characterized in that, The tape body includes multiple data areas for storing data and at least one connection area for not storing data; two adjacent data areas are connected by one connection area; the coding strip and the connection area are stacked along the thickness direction of the tape body.
13. The magnetic tape drive device according to any one of claims 1-4, characterized in that, The magnetic tape drive further includes: a reel connected to the base, and the tape being wound around the reel; The sensor module includes an angle sensor, used to determine the moving distance based on the rotation angle of the drum.
14. The magnetic tape drive device according to any one of claims 1-4, characterized in that, The magnetic tape drive further includes: a reel connected to the base; and the tape body wound around the reel. The sensor module includes a thickness sensor for determining the moving distance based on the thickness of the tape wound on the spool.
15. The magnetic tape drive device according to any one of claims 1-4, characterized in that, The magnetic tape drive further includes: a drum, with the tape wound around the drum; the sensor module includes a Hall encoder or a photoelectric encoder; the Hall encoder or the photoelectric encoder is sleeved on the drum.
16. The magnetic tape drive device according to any one of claims 1-15, characterized in that, The tape drive device further includes a driver; the driver is used to drive the magnetic head to slide relative to the base; the controller is signal-connected to the driver; The controller is used to instruct the driver to drive the magnetic head to slide relative to the base based on the travel distance.
17. A storage system, characterized in that, The storage system includes a tape controller and one or more tape drive devices as described in any one of claims 1-16; the tape controller is used to manage the tape drive devices according to data access requests.
18. A controller, characterized in that, An application is made to a magnetic tape drive, the magnetic tape drive comprising a base, a magnetic head, and a tape body for storing data; the tape body is disposed on the base, and the magnetic head is slidably connected to the base; the controller comprises: A communication interface is used to receive the movement distance of the belt. A processor is configured to send control commands based on the distance traveled. The control command is used to instruct the magnetic head to slide relative to the base; When the moving distance is outside the target distance range, the control command indicates that there is a gap between the magnetic head and the tape. When the moving distance is within the target distance range, the control command instructs the magnetic head to contact the tape and access the data in the tape.
19. The controller according to claim 18, characterized in that, The control command is also used to indicate the moving speed of the belt; Wherein, when the moving distance is outside the target distance range, the maximum value of the moving speed of the belt is a first value; When the moving distance is within the target distance range, the maximum moving speed of the belt is a second value; the second value is less than the first value.
20. The controller according to claim 18 or 19, characterized in that, The processor is specifically used for: The IO scheduling scheme for target indicator management is determined based on the travel distance; the target indicator includes one or a combination of the following: access latency, access bandwidth, the travel distance of the tape and the wear of the tape.
Citation Information
Patent Citations
Active pitch control for contactless tape recording
CN115867967A
Adjustable magnetic tape drive
US10395681B1
Error protection of data stored using variable-length headers
US9373357B1