A storage method for improving storage system performance

By dividing the disk into different areas, detecting disk status in real time, and dynamically migrating damaged data blocks, the problem of wasted storage space caused by data backup in the storage system is solved, and storage performance and efficiency are improved.

CN118069066BActive Publication Date: 2024-09-06四川华鲲振宇智能科技有限责任公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410438593.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-04-12
Publication Date
2024-09-06
Estimated Expiration
2044-04-12

AI Technical Summary

Technical Problem

Existing storage systems avoid data loss through data backup, but this results in a large amount of wasted storage space and low storage system performance.

Method used

Divide the disk into different areas to store different data types, add data type labels before data is written, detect disk status in real time, and dynamically migrate damaged data blocks to free areas or other disks to reduce waste of storage space.

Benefits of technology

Through disk partitioning and dynamic migration technology, storage space waste is reduced, storage system performance and efficiency are improved, and data security is ensured.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118069066B
    Figure CN118069066B
Patent Text Reader

Abstract

The present invention belongs to the field of secure storage technology, and specifically relates to a storage method for improving the performance of a storage system. First, a disk is divided into different areas for storing different data types; then, a data type label is added to the data before the data is written to the disk, and the data is written to the corresponding disk area according to the label; the state of the data block in the disk is detected in real time by a disk controller to check whether there is a damaged data block. If so, check whether there is any free available data block in the area. If so, the data in the damaged data block is dynamically migrated to the free available data block in the area. If not, the data in the damaged data block is dynamically migrated to the corresponding area of ​​other free available disks. Through the above storage method, the disk controller monitors the state of the disk in real time, and when an abnormality occurs in the disk or the data block in the disk, the data is promptly migrated to the free disk or data block, which greatly reduces the waste of storage space.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of storage security technology, and in particular relates to a storage method for improving storage system performance. Background Art

[0002] With the rapid development of technologies such as cloud computing, big data and artificial intelligence, the storage system industry has also received a huge boost. The development of storage technology has enabled storage systems to handle large amounts of data and process data faster. In addition, these technologies have also enabled storage systems to provide more functions, such as analyzing data and predicting trends.

[0003] Secondly, with the popularization of the Internet of Things and mobile Internet, the amount of data generated is growing at an alarming rate, which also puts higher requirements on storage systems. Storage systems need to have higher reliability, lower latency, and higher throughput to cope with the growing amount of data. And with the popularization of 5G technology, storage systems will also usher in new development opportunities. 5G technology can provide faster network connection speeds, allowing storage systems to process data faster and provide more functions.

[0004] However, as storage systems develop rapidly, some new challenges have also been brought about. When a storage disk stores a large amount of data, the entire disk or some data blocks in the disk may be damaged. When the disk is damaged or some data blocks are damaged, the data stored on it may be lost. The existing technology uses data backup to prevent the loss of stored data. However, due to the large amount of data in the existing environment, the use of data backup will result in a large waste of storage space.

[0005] Therefore, how to reduce the usage of storage space and improve the performance of storage systems while ensuring the security of stored data is a technical problem that urgently needs to be solved. Summary of the invention

[0006] The purpose of the present invention is to provide a storage method for improving the performance of a storage system, so as to solve the technical problem that the existing storage system adopts data backup to avoid data loss, which will cause a large amount of storage space to be wasted and the storage system performance is low.

[0007] In order to solve the above technical problems, the technical solution adopted by the present invention is as follows:

[0008] A storage method for improving storage system performance comprises the following steps:

[0009] S1: Divide the disk into different areas to store different data types;

[0010] S2: Before writing data to disk, add data type labels to the data and write the data to the corresponding disk area according to the labels;

[0011] S3: The disk controller detects the status of the data blocks in the disk in real time to check whether there are abnormal or damaged data blocks. If so, it checks whether there are any free data blocks in the area. If so, it dynamically migrates the data in the damaged data blocks to the free data blocks in the area. If not, it executes S4;

[0012] S4: Dynamically migrate the data in the damaged data block to the corresponding area of ​​other free available disks.

[0013] Preferably, the different areas divided into the disk in step S1 include an original data area and a mirror data area, the data types include original data and mirror data, the original data area is used to store original data, and the mirror data area is used to store mirror data.

[0014] Preferably, the data type label added to the data in step S2 includes an original data label and a mirror data label, and the subsequent data storage process is stored in corresponding areas according to the category of the label.

[0015] Preferably, the different areas of the disk partition in step S1 include a structured data area and an unstructured data area, and the data types include structured data and unstructured data. The structured data area is used to store structured data, and the unstructured data area is used to store unstructured data.

[0016] Preferably, the data type labels added to the data include structured data labels and unstructured data labels, and the subsequent data storage process is stored in corresponding areas according to the categories of the labels.

[0017] Preferably, a hot spare disk is configured in the storage system and connected to the disk controller and the basic disk. When the basic disk is damaged or the storage space is full and the basic disk is unavailable, the hot spare disk is enabled for storage, or the data in the basic disk is migrated to the hot spare disk.

[0018] The beneficial effects of the present invention include:

[0019] The storage method for improving the performance of the storage system provided by the present invention first divides the disk into different areas for storing different data types; then adds a data type label to the data before writing the data to the disk, and writes the data to the corresponding disk area according to the label; the disk controller detects the status of the data block in the disk in real time to check whether there is a damaged data block, and if so, checks whether there is any free available data block in the area, and if so, dynamically migrates the data in the damaged data block to the free available data block in the area, and if not, dynamically migrates the data in the damaged data block to the corresponding area of ​​other free available disks. Through the above storage method, the disk controller monitors the status of the disk in real time, and when an abnormality occurs in the disk or the data block in the disk, the data is promptly migrated to the free disk or data block, which greatly reduces the waste of storage space. In addition, the data is stored in a classified manner, which improves the convenience of the data call process. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] Figure 1 A schematic diagram of a flow chart of a storage method for improving storage system performance according to the present invention. DETAILED DESCRIPTION

[0021] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments. The components of the embodiments of the present application usually described and shown in the drawings here can be arranged and designed in various configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.

[0022] The present application will present various aspects, embodiments or features around a system that may include multiple devices, components, modules, etc. It should be understood and appreciated that each system may include additional devices, components, modules, etc., and / or may not include all of the devices, components, modules, etc. discussed in conjunction with the figures. In addition, combinations of these schemes may also be used.

[0023] In addition, in the embodiments of the present application, words such as "exemplarily" and "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplary" in the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of the word "exemplary" is intended to present concepts in a specific way.

[0024] In the embodiments of the present application, "information", "signal", "message", "channel" and "signaling" can sometimes be used interchangeably. It should be noted that when the distinction between them is not emphasized, the meanings to be expressed are consistent. "of", "corresponding, relevant" and "corresponding" can sometimes be used interchangeably. It should be noted that when the distinction between them is not emphasized, the meanings to be expressed are consistent.

[0025] The following is combined with Figure 1 The present invention is further described in detail:

[0026] See attached Figure 1 As shown, the storage method for improving the performance of the storage system includes the following steps:

[0027] S1: Divide the disk into different areas to store different data types;

[0028] S2: Before writing data to disk, add data type labels to the data and write the data to the corresponding disk area according to the labels;

[0029] S3: The disk controller detects the status of the data blocks in the disk in real time to check whether there are abnormal or damaged data blocks. If so, it checks whether there are any free data blocks in the area. If so, it dynamically migrates the data in the damaged data blocks to the free data blocks in the area. If not, it executes S4;

[0030] S4: Dynamically migrate the data in the damaged data block to the corresponding area of ​​other free available disks.

[0031] Before data storage, the storage disk is first divided into different areas according to the data type, and different areas are used to store different data types. When different data are stored in different locations, on the one hand, the same data type can be stored centrally for easy data management; on the other hand, when calling data, it can also be called conveniently.

[0032] Before data is stored, it is also necessary to add a data type label to the data so that when the data is written to the storage system, it can be quickly and accurately written to the corresponding location on the disk based on the data label, thereby achieving centralized management and quick call of data of the same type.

[0033] The disk controller monitors the status of the data blocks in the disk in real time. When it detects that the data blocks of the disk are abnormal or damaged, it will dynamically migrate the data in the abnormal data blocks of the disk to the idle and available data blocks in the corresponding area of ​​the disk in a timely manner. If the data blocks in the corresponding area of ​​the disk are not available, the stored data in the abnormal or damaged data blocks needs to be migrated to the corresponding areas of other idle and available disks for storage.

[0034] Through the dynamic migration of the above data, the storage capacity of the storage system can be significantly improved, while a larger storage space is reserved to prepare for sudden storage events, and the storage efficiency of the storage system can be effectively improved.

[0035] In the above scheme, the disk in step S1 is divided into different areas, and the different areas can be original data areas and mirror data areas. The data types include original data and mirror data. The original data area is used to store original data, and the mirror data area is used to store mirror data. The data type labels added to the data in step S2 include original data labels and mirror data labels. The subsequent data storage process is stored in corresponding areas according to the types of labels, for example, the original data is stored in the original data area, and the mirror data is stored in the mirror data area.

[0036] In another embodiment, the different areas of the disk partition in step S1 can also be divided into structured data areas and unstructured data areas, and the data types include structured data and unstructured data. The structured data area is used to store structured data, and the unstructured data area is used to store unstructured data. Correspondingly, the data type labels added to the stored data include structured data labels and unstructured data labels, and the subsequent data storage process is stored in the corresponding areas according to the category of the label, that is, structured data is stored in the structured data area, and unstructured data is stored in the unstructured data area.

[0037] In the storage method of the above storage system, the storage system has good storage performance. However, for enterprises, enterprise managers also need to further improve the performance of the storage system, such as security, according to the needs of enterprise development. Therefore, in another embodiment of the present invention, a hot spare disk can also be configured in the storage system to further improve the security of the storage system. The hot spare disk is connected to the disk controller and the basic disk. The hot spare disk always remains activated. When the basic disk is damaged or the storage space is full and the basic disk is unavailable, the hot spare disk is immediately enabled for storage, or the data in the basic disk is migrated to the hot spare disk.

[0038] Since the hot spare disk is always activated, there is no need to worry about the loss of server data, and a large enough operating space is maintained for the storage system during the design process of the storage system.

[0039] In summary, the storage method for improving the performance of the storage system provided by the present invention first divides the disk into different areas for storing different data types; then adds a data type label to the data before writing the data to the disk, and writes the data to the corresponding disk area according to the label; the disk controller detects the status of the data block in the disk in real time to check whether there is a damaged data block, and if so, checks whether there is any free data block in the area, and if so, dynamically migrates the data in the damaged data block to the free data block in the area, and if not, dynamically migrates the data in the damaged data block to the corresponding area of ​​other free and available disks. Through the above storage method, the disk controller monitors the status of the disk in real time, and when an abnormality occurs in the disk or the data block in the disk, the data is promptly migrated to the free disk or data block, which greatly reduces the waste of storage space.

[0040] The above-mentioned embodiments only express the specific implementation method of the present application, and the description thereof is relatively specific and detailed, but it cannot be understood as limiting the protection scope of the present application. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the technical solution of the present application, and these all belong to the protection scope of the present application.

Claims

1. A storage method for improving storage system performance, characterized in that: The following steps are involved: S1: Divide the disk into different areas to store different data types; S2: Before writing data to disk, add data type labels to the data and write the data to the corresponding disk area according to the labels; S3: The disk controller detects the status of the data blocks in the disk in real time to check whether there are abnormal or damaged data blocks. If so, it checks whether there are any free data blocks in the area. If so, it dynamically migrates the data in the damaged data blocks to the free data blocks in the area. If not, it executes S4; S4: Dynamically migrate the data in the damaged data block to the corresponding area of ​​other free available disks; The different areas of the disk partition in step S1 include an original data area and a mirror data area, the data types include original data and mirror data, the original data area is used to store original data, and the mirror data area is used to store mirror data; The data type labels added to the data in step S2 include original data labels and mirror data labels, and the subsequent data storage process is stored in corresponding areas according to the types of labels; The different areas divided into the disk in step S1 include a structured data area and an unstructured data area, the data types include structured data and unstructured data, the structured data area is used to store structured data, and the unstructured data area is used to store unstructured data; Configure a hot spare disk in the storage system and connect the hot spare disk to the disk controller and the base disk. If the base disk is damaged or the storage space is full and the base disk is unavailable, enable the hot spare disk for storage or migrate data from the base disk to the hot spare disk.

2. A storage method for improving storage system performance according to claim 1, characterized in that: The data type labels added to the data include structured data labels and unstructured data labels. The subsequent data storage process is stored in corresponding areas according to the category of the label.