Metadata repair method, system, storage medium and device
By judging the storage pool configuration information and performing metadata repair in the all-flash storage system, and using the verification pairing repair process of LP tree and PL tree, the problem of long time-consuming metadata repair is solved, the system business can be quickly restored, and the efficiency is improved. High availability of all-flash storage systems.
Patent Information
- Application Number
- CN202210605731.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-30
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2042-05-30
AI Technical Summary
Existing all-flash storage systems take a long time to repair metadata when multiple failures occur, resulting in system business interruption and inability to quickly recover.
Determine whether there is storage volume configuration information in the storage pool. If so, perform a full scan to extract the metadata repair object, and perform verification and repair based on the root address of the LP tree. If successful, directly perform the PL tree pairing repair and notify the storage pool and The storage volume is brought online and system services are restored.
Rapid metadata repair is achieved under different configuration scenarios, effectively saving metadata repair time and improving efficiency. The time to repair 1T data is shortened to less than 20 minutes.
Smart Images

Figure CN114816266B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of storage technology, and in particular to a metadata repair method, system, storage medium and device. Background Art
[0002] When multiple failures occur in the current all-flash storage system (such as hardware or software failures in each controller at the same time), the storage pool and storage volume in the storage system will be offline due to the loss of data in the cache, and the system business will be interrupted. After this failure occurs, in order to restore the system business as soon as possible, it is necessary to use the metadata repair function to restore the lost data in the cache as much as possible, and then notify the system's storage pool and storage volume to go online, so as to restore the system business. The current metadata repair function is based on the granularity of the storage pool. During the repair, the three necessary stages of full disk scanning, LP (LBA to PBA mapping) and PL (PBA to LBA mapping) tree verification and repair, and LP and PL tree pairing repair are required to complete the data repair and notify the storage pool and storage volume to go online. LBA: Logical Block Address, logical block address; PBA: Physical Block Address, physical block address.
[0003] Since the current repair process does not take into account special scenarios, data disk characteristics and other factors, the system must go through the above three stages in sequence during repair. In addition, the full disk scan stage involves all disk read operations. At the same time, there are a large number of asynchronous operations and cross-node queries in the verification repair and pairing repair stages. These operations are time-consuming, so the metadata repair function of the current system is time-consuming (for example, it takes about 1 hour to repair 1T of data). Summary of the invention
[0004] In view of this, an object of the present invention is to provide a metadata repair method, system, storage medium and device to solve the problem of long metadata repair time in an all-flash storage system in the prior art.
[0005] Based on the above purpose, the present invention provides a metadata repair method, comprising the following steps:
[0006] In response to a failure of the all-flash storage system during operation causing the storage pool and the storage volume to be offline, determining whether there is storage volume configuration information in the storage pool;
[0007] In response to the storage volume configuration information being present in the storage pool, a full disk scan is performed on the storage pool to extract a metadata repair object, and all LP trees are verified and repaired based on the root address of the LP tree in the metadata repair object;
[0008] In response to all LP tree verification and repair being successful, directly perform PL tree pairing repair;
[0009] In response to the successful repair of the PL tree pairing, the storage pool and storage volume are notified to go online, and the services of the all-flash storage system are restored.
[0010] In some embodiments, the method further comprises:
[0011] In response to all LP trees not being successfully verified and repaired, continuing to verify and repair all PL trees;
[0012] In response to the completion of verification and repair of all PL trees, a process of pairing and repairing the LP tree and the PL tree is entered;
[0013] In response to the successful repair of the pairing of the LP tree and the PL tree, the storage pool and the storage volume are notified to go online, and the services of the all-flash storage system are restored.
[0014] In some embodiments, performing check and repair on all LP trees based on the root address of the LP tree in the metadata repair object includes:
[0015] Starting from the root address of the LP tree in the metadata repair object, all LP trees are verified and repaired.
[0016] In some embodiments, the method further comprises:
[0017] In response to the lack of storage volume configuration information in the storage pool, the storage pool is directly notified to go online, and the service of the all-flash storage system is restored.
[0018] Another aspect of the present invention further provides a metadata repair system, comprising:
[0019] A judgment module configured to judge whether there is storage volume configuration information in the storage pool in response to a failure of the all-flash storage system during operation that causes the storage pool and storage volume to go offline;
[0020] An LP tree check and repair module is configured to perform a full disk scan on the storage pool in response to storage volume configuration information in the storage pool to extract a metadata repair object, and check and repair all LP trees based on the root address of the LP tree in the metadata repair object;
[0021] a PL tree pairing repair module, configured to directly perform PL tree pairing repair in response to all LP tree verification and repair being successful; and
[0022] The online module is configured to notify the storage pool and storage volume to go online in response to the successful repair of the PL tree pairing, and to restore the services of the all-flash storage system.
[0023] In some embodiments, the system also includes a PL tree verification and repair module, which is configured to continue to verify and repair all PL trees in response to all LP trees not being verified and repaired successfully; to enter the process of pairing and repairing the LP tree and the PL tree in response to the completion of the verification and repair of all PL trees; and to notify the storage pool and storage volume to go online and restore the business of the all-flash storage system in response to the successful pairing and repair of the LP tree and the PL tree.
[0024] In some embodiments, the LP tree check and repair module includes a root address module configured to check and repair all LP trees starting from the root address of the LP tree in the metadata repair object.
[0025] In some embodiments, the system further includes a direct online module configured to directly notify the storage pool to go online and restore services of the all-flash storage system in response to the absence of storage volume configuration information in the storage pool.
[0026] According to another aspect of the present invention, a computer-readable storage medium is provided, which stores computer program instructions, and the computer program instructions implement the above method when executed by a processor.
[0027] According to another aspect of the present invention, a computer device is provided, comprising a memory and a processor, wherein a computer program is stored in the memory, and the computer program executes the above method when executed by the processor.
[0028] The present invention has at least the following beneficial technical effects:
[0029] The metadata repair method of the present invention can determine whether there is storage volume configuration information in the storage pool after multiple failures occur in the all-flash storage system, causing the storage pool and storage volume to go offline and interrupting the business. If there is storage volume configuration information in the storage pool, the storage pool is fully scanned to extract the metadata repair object, and all LP trees are verified and repaired based on the root address of the LP tree in the metadata repair object. If all LP trees are verified and repaired successfully, PL tree pairing repair is directly performed. If the PL tree pairing repair is successful, the storage pool and storage volume are notified to go online, and the business of the all-flash storage system is restored, thereby realizing rapid repair of metadata in different configuration scenarios, effectively saving metadata repair time and improving efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other embodiments can be obtained based on these drawings without paying creative work.
[0031] Figure 1 A schematic diagram of a metadata repair method provided according to an embodiment of the present invention;
[0032] Figure 2 A schematic diagram of a metadata repair system provided according to an embodiment of the present invention;
[0033] Figure 3 A schematic diagram of a computer-readable storage medium for implementing a metadata repair method according to an embodiment of the present invention;
[0034] Figure 4 The present invention is a schematic diagram of the hardware structure of a computer device for executing a metadata repair method according to an embodiment of the present invention. DETAILED DESCRIPTION
[0035] In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the embodiments of the present invention are further described in detail below in combination with specific embodiments and with reference to the accompanying drawings.
[0036] It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are intended to distinguish two non-identical entities or non-identical parameters with the same name. It can be seen that "first" and "second" are only for the convenience of expression and should not be understood as limitations on the embodiments of the present invention. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, other steps or units inherent to a process, method, system, product or device that includes a series of steps or units.
[0037] Based on the above objectives, a first aspect of an embodiment of the present invention provides an embodiment of a metadata repair method. Figure 1 FIG. 2 is a schematic diagram of an embodiment of a metadata repair method provided by the present invention. Figure 1 As shown, the embodiment of the present invention includes the following steps:
[0038] Step S10: In response to a failure of the all-flash storage system during operation causing the storage pool and storage volume to be offline, determining whether there is storage volume configuration information in the storage pool;
[0039] Step S20: In response to the storage volume configuration information being present in the storage pool, a full disk scan is performed on the storage pool to extract a metadata repair object, and all LP trees are verified and repaired based on the root address of the LP tree in the metadata repair object;
[0040] Step S30: in response to all LP tree verification and repair being successful, directly perform PL tree pairing repair;
[0041] Step S40: In response to the PL tree pairing being repaired successfully, the storage pool and storage volume are notified to go online, and the services of the all-flash storage system are restored.
[0042] In the embodiment of the present invention, both the LP tree and the PL tree adopt the data structure of the B+ tree. The B+ tree is a tree data structure, which is an n-ary tree. Each node usually has multiple children. A B+ tree includes a root node, internal nodes and leaf nodes. The B+ tree is usually used in the file system of databases and operating systems. The characteristic of the B+ tree is that it can keep data stable and orderly, and its insertion and modification have a relatively stable logarithmic time complexity. The B+ tree is a variant of the B tree. The leaf nodes on the B+ tree store keywords and the addresses of the corresponding records, and the layers above the leaf nodes are used as indexes. An m-order B+ tree is defined as follows: (1) Each node has at most m children; (2) Except for the root node, each node has at least [m / 2] children, and the root node has at least two children; (3) A node with k children must have k keywords. The search of the B+ tree is different from that of the B tree. When the keyword of a node in the index part is equal to the keyword to be searched, the search does not stop. It should continue to go down along the pointer to the left of this keyword until the leaf node where the keyword is located is found.
[0043] LP means the mapping from LBA (Logical Block Address) to PBA (Physics Block Address); PL means the mapping from PBA to LBA. LBA can refer to the address of a data block or the data block pointed to by an address.
[0044] Metadata is data that describes data, mainly information that describes data attributes, and is used to support functions such as indicating storage location, historical data, resource search, and file records.
[0045] The metadata repair method of the embodiment of the present invention can determine whether there is storage volume configuration information in the storage pool after multiple failures occur in the all-flash storage system, causing the storage pool and storage volume to go offline and interrupting the business. If there is storage volume configuration information in the storage pool, the storage pool is fully scanned to extract the metadata repair object, and all LP trees are verified and repaired based on the root address of the LP tree in the metadata repair object. If all LP trees are verified and repaired successfully, PL tree pairing repair is directly performed. If the PL tree pairing repair is successful, the storage pool and storage volume are notified to go online, and the business of the all-flash storage system is restored, thereby realizing rapid repair of metadata in different configuration scenarios, effectively saving metadata repair time and improving efficiency.
[0046] In some embodiments, performing check-repair on all LP trees based on the root address of the LP tree in the metadata repair object includes: performing check-repair on all LP trees starting from the root address of the LP tree in the metadata repair object.
[0047] In the above embodiment, if there is storage volume configuration information in the storage pool, the storage pool is scanned in its entirety, and metadata repair objects are extracted by reading and comparing the data in the disk. The repair objects mainly record the root addresses of all LP and PL trees, the timestamp of the disk placement, and other information. The time required for this stage is linearly related to the space size of the storage pool. According to the root address of the LP tree in the metadata repair object, the LP tree is created, verified, and repaired from top to bottom in parallel until all LP trees are verified. If all LP trees are successfully verified and restored (since LP trees are more frequently stored on disk than PL trees in the system design, LP trees will be verified successfully in most cases), there is no need to verify and repair the PL tree, but directly enter the PL tree pairing repair. This repair process does not require pairing search, so it does not take long.
[0048] In some embodiments, the method also includes: in response to all LP trees not being successfully verified and repaired, continuing to verify and repair all PL trees; in response to the verification and repair of all PL trees being completed, entering the process of pairing and repairing the LP tree and the PL tree; in response to the successful pairing and repair of the LP tree and the PL tree, notifying the storage pool and storage volume to go online, and restoring the business of the all-flash storage system.
[0049] In this embodiment, if the LP tree is not fully verified successfully, the verification and repair of the PL tree will continue. After all the PL trees are verified and restored, the LP and PL tree mutual configuration and repair stage will be entered. This stage is the original pre-optimization process. Since the LP and PL trees need to be paired and repaired separately, and a large number of cross-node searches, asynchronous callbacks and other operations are required during the pairing and repair process, this stage is time-consuming.
[0050] In some embodiments, the method further includes: in response to the absence of storage volume configuration information in the storage pool, directly notifying the storage pool to go online and recovering the services of the all-flash storage system.
[0051] In this embodiment, due to multiple failures in the all-flash storage system during operation, the storage pool and storage volume in the system are offline, and the system service is interrupted. Therefore, the metadata repair function is needed to repair the lost data and restore the system service. When repairing the metadata, it is first determined whether there is storage volume configuration information in the storage pool. If not, the storage pool is directly notified to go online and the system service is restored. At this point, the repair function is completed.
[0052] In summary, after comprehensively considering special scenarios, metadata disk characteristics and other factors, the metadata repair method of this embodiment can achieve rapid online access in seconds (less than 3 seconds) in a volume-free scenario. In a normal volume scenario, the repair process can be optimized according to different data characteristics to effectively improve the repair speed (repairing 1T of data takes less than 20 minutes), thereby improving the high availability of the all-flash storage system.
[0053] A second aspect of the embodiments of the present invention further provides a metadata repair system. Figure 2 FIG. 2 is a schematic diagram of an embodiment of a metadata repair system provided by the present invention. Figure 2 As shown, a metadata repair system includes:
[0054] The judgment module 10 is configured to judge whether there is storage volume configuration information in the storage pool in response to a failure of the all-flash storage system during operation that causes the storage pool and storage volume to go offline;
[0055] The LP tree check and repair module 20 is configured to perform a full scan of the storage pool in response to storage volume configuration information in the storage pool to extract a metadata repair object, and check and repair all LP trees based on the root address of the LP tree in the metadata repair object;
[0056] A PL tree pairing repair module 30, configured to directly perform PL tree pairing repair in response to all LP tree verification and repair being successful; and
[0057] The online module 40 is configured to notify the storage pool and storage volume to go online in response to the successful repair of the PL tree pairing, and to restore the services of the all-flash storage system.
[0058] In the embodiment of the present invention, both the LP tree and the PL tree adopt the data structure of the B+ tree. The B+ tree is a tree data structure, which is an n-ary tree. Each node usually has multiple children. A B+ tree contains a root node, internal nodes and leaf nodes. The B+ tree is usually used in the file system of databases and operating systems. The characteristic of the B+ tree is that it can keep the data stable and orderly, and its insertion and modification have a relatively stable logarithmic time complexity. The B+ tree is a deformation form of the B tree. The leaf nodes on the B+ tree store keywords and the addresses of the corresponding records, and the layers above the leaf nodes are used as indexes.
[0059] LP means the mapping from LBA (Logical Block Address) to PBA (Physics Block Address); PL means the mapping from PBA to LBA. LBA can refer to the address of a data block or the data block pointed to by an address.
[0060] Metadata is data that describes data, mainly information that describes data attributes, and is used to support functions such as indicating storage location, historical data, resource search, and file records.
[0061] The metadata repair system of the embodiment of the present invention can determine whether there is storage volume configuration information in the storage pool after multiple failures occur in the all-flash storage system, causing the storage pool and storage volume to go offline and interrupting the business. If there is storage volume configuration information in the storage pool, the system will perform a full disk scan on the storage pool to extract the metadata repair object, and verify and repair all LP trees based on the root address of the LP tree in the metadata repair object. If all LP trees are verified and repaired successfully, PL tree pairing repair is directly performed. If the PL tree pairing repair is successful, the storage pool and storage volume are notified to go online, and the business of the all-flash storage system is restored, thereby realizing rapid repair of metadata in different configuration scenarios, effectively saving metadata repair time and improving efficiency.
[0062] In some embodiments, the LP tree check and repair module 20 includes a root address module configured to check and repair all LP trees starting from the root address of the LP tree in the metadata repair object.
[0063] In the above embodiment, if there is storage volume configuration information in the storage pool, the storage pool is scanned in its entirety, and metadata repair objects are extracted by reading and comparing the data in the disk. The repair objects mainly record the root addresses of all LP and PL trees, the timestamp of the disk placement, and other information. The time required for this stage is linearly related to the space size of the storage pool. According to the root address of the LP tree in the metadata repair object, the LP tree is created, verified, and repaired from top to bottom in parallel until all LP trees are verified. If all LP trees are successfully verified and restored (since LP trees are more frequently stored on disk than PL trees in the system design, LP trees will be verified successfully in most cases), there is no need to verify and repair the PL tree, but directly enter the PL tree pairing repair. This repair process does not require pairing search, so it does not take long.
[0064] In some embodiments, the system also includes a PL tree verification and repair module, which is configured to continue to verify and repair all PL trees in response to all LP trees not being verified and repaired successfully; to enter the process of pairing and repairing the LP tree and the PL tree in response to the completion of the verification and repair of all PL trees; and to notify the storage pool and storage volume to go online and restore the business of the all-flash storage system in response to the successful pairing and repair of the LP tree and the PL tree.
[0065] In this embodiment, if the LP tree is not fully verified successfully, the verification and repair of the PL tree will continue. After all the PL trees are verified and restored, the LP and PL tree mutual configuration and repair stage will be entered. This stage is the original pre-optimization process. Since the LP and PL trees need to be paired and repaired separately, and a large number of cross-node searches, asynchronous callbacks and other operations are required during the pairing and repair process, this stage is time-consuming.
[0066] In some embodiments, the system further includes a direct online module configured to directly notify the storage pool to go online and restore services of the all-flash storage system in response to the absence of storage volume configuration information in the storage pool.
[0067] In this embodiment, due to multiple failures in the all-flash storage system during operation, the storage pool and storage volume in the system are offline, and the system service is interrupted. Therefore, the metadata repair function is needed to repair the lost data and restore the system service. When repairing the metadata, it is first determined whether there is storage volume configuration information in the storage pool. If not, the storage pool is directly notified to go online and the system service is restored. At this point, the repair function is completed.
[0068] In summary, after comprehensively considering special scenarios, metadata disk characteristics and other factors, the metadata repair system of this embodiment can achieve rapid online access in seconds (less than 3 seconds) in a volume-free scenario. In a normal volume scenario, the repair process can be optimized according to different data characteristics to effectively improve the repair speed (repairing 1T of data takes less than 20 minutes), thereby improving the high availability of the all-flash storage system.
[0069] A third aspect of the embodiments of the present invention further provides a computer-readable storage medium. Figure 3 FIG. 2 is a schematic diagram showing a computer-readable storage medium for implementing a metadata repair method according to an embodiment of the present invention. Figure 3 As shown, the computer readable storage medium 3 stores computer program instructions 31. When the computer program instructions 31 are executed by the processor, the following steps are implemented:
[0070] In response to a failure of the all-flash storage system during operation causing the storage pool and the storage volume to be offline, determining whether there is storage volume configuration information in the storage pool;
[0071] In response to the storage volume configuration information being present in the storage pool, a full disk scan is performed on the storage pool to extract a metadata repair object, and all LP trees are verified and repaired based on the root address of the LP tree in the metadata repair object;
[0072] In response to all LP tree verification and repair being successful, directly perform PL tree pairing repair;
[0073] In response to the successful repair of the PL tree pairing, the storage pool and storage volume are notified to go online, and the services of the all-flash storage system are restored.
[0074] In some embodiments, the steps also include: in response to all LP trees not being successfully verified and repaired, continuing to verify and repair all PL trees; in response to all PL trees being verified and repaired, entering the process of pairing and repairing the LP tree and the PL tree; in response to the LP tree and the PL tree being successfully paired and repaired, notifying the storage pool and storage volume to go online, and restoring the business of the all-flash storage system.
[0075] In some embodiments, performing check-repair on all LP trees based on the root address of the LP tree in the metadata repair object includes: performing check-repair on all LP trees starting from the root address of the LP tree in the metadata repair object.
[0076] In some embodiments, the steps further include: in response to the absence of storage volume configuration information in the storage pool, directly notifying the storage pool to go online and recovering the services of the all-flash storage system.
[0077] It should be understood that, in the absence of mutual conflicts, all the embodiments, features and advantages described above for the metadata repair method according to the present invention are also applicable to the metadata repair system and storage medium according to the present invention.
[0078] A fourth aspect of the embodiments of the present invention further provides a computer device, including: Figure 4 The memory 402 and the processor 401 are shown, and the memory 402 stores a computer program, and when the computer program is executed by the processor 401, the method of any one of the above embodiments is implemented.
[0079] like Figure 4 FIG. 1 is a schematic diagram of the hardware structure of a computer device for executing the metadata repair method provided by the present invention. Figure 4 Taking the computer device shown in FIG. 4 as an example, the computer device includes a processor 401 and a memory 402, and may also include: an input device 403 and an output device 404. The processor 401, the memory 402, the input device 403 and the output device 404 may be connected via a bus or other means. Figure 4 The example of the bus connection is taken as an example. The input device 403 can receive input digital or character information, and generate key signal input related to user settings and function control of the metadata repair system. The output device 404 can include display devices such as display screens.
[0080] The memory 402, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer executable programs and modules, such as program instructions / modules corresponding to the metadata repair method in the embodiment of the present application. The memory 402 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required by at least one function; the data storage area may store data created by the use of the metadata repair method, etc. In addition, the memory 402 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory 402 may optionally include a memory remotely arranged relative to the processor 401, and these remote memories may be connected to the local module via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0081] The processor 401 executes various functional applications and data processing of the server by running the non-volatile software programs, instructions and modules stored in the memory 402, that is, implements the metadata repair method of the above method embodiment.
[0082] Finally, it should be noted that the computer-readable storage medium (e.g., memory) herein may be a volatile memory or a nonvolatile memory, or may include both a volatile memory and a nonvolatile memory. As an example and not by way of limitation, a nonvolatile memory may include a read-only memory (ROM), a programmable ROM (PROM), an electrically programmable ROM (EPROM), an electrically erasable programmable ROM (EEPROM), or a flash memory. A volatile memory may include a random access memory (RAM), which may act as an external cache memory. As an example and not by way of limitation, RAM may be obtained in a variety of forms, such as synchronous RAM (DRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), and direct Rambus RAM (DRRAM). The storage devices of the disclosed aspects are intended to include, but are not limited to, these and other suitable types of memory.
[0083] It will also be appreciated by those skilled in the art that various exemplary logic blocks, modules, circuits and algorithm steps described in conjunction with the disclosure herein can be implemented as electronic hardware, computer software or a combination of the two. In order to clearly illustrate this interchangeability of hardware and software, a general description has been given to the functions of various schematic components, blocks, modules, circuits and steps. Whether this function is implemented as software or hardware depends on specific applications and the design constraints imposed on the entire system. Those skilled in the art can implement the function in various ways for each specific application, but this implementation decision should not be interpreted as causing a departure from the disclosed scope of the embodiments of the present invention.
[0084] The various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure herein may be implemented or executed using the following components designed to perform the functions herein: a general purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination of these components. A general purpose processor may be a microprocessor, but alternatively, the processor may be any conventional processor, controller, microcontroller, or state machine. The processor may also be implemented as a combination of computing devices, for example, a combination of a DSP and a microprocessor, a plurality of microprocessors, one or more microprocessors in conjunction with a DSP, and / or any other such configuration.
[0085] The above are exemplary embodiments disclosed in the present invention, but it should be noted that various changes and modifications may be made without departing from the scope disclosed in the embodiments of the present invention as defined in the claims. The functions, steps and / or actions of the method claims according to the disclosed embodiments described herein do not need to be performed in any particular order. In addition, although the elements disclosed in the embodiments of the present invention may be described or required in individual form, they may also be understood as multiple unless explicitly limited to the singular.
[0086] It should be understood that, as used herein, the singular form "a" or "an" is intended to include the plural form as well, unless the context clearly supports an exception. It should also be understood that, as used herein, "and / or" refers to any and all possible combinations of one or more of the items listed in association. The serial numbers of the embodiments disclosed in the above embodiments of the present invention are for description only and do not represent the advantages and disadvantages of the embodiments.
[0087] A person skilled in the art should understand that the discussion of any of the above embodiments is only exemplary and is not intended to imply that the scope of the disclosure of the embodiments of the present invention (including the claims) is limited to these examples; under the concept of the embodiments of the present invention, the technical features in the above embodiments or different embodiments can also be combined, and there are many other changes in different aspects of the embodiments of the present invention as above, which are not provided in detail for the sake of simplicity. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present invention should be included in the protection scope of the embodiments of the present invention.
Claims
1. A metadata repair method, characterized in that: The following steps are involved: In response to a failure of the all-flash storage system during operation causing a storage pool and a storage volume to be offline, determining whether there is storage volume configuration information in the storage pool; In response to the storage volume configuration information being present in the storage pool, a full disk scan is performed on the storage pool to extract a metadata repair object, and a verification and repair is performed on all LP trees based on the root address of the LP tree in the metadata repair object; In response to all LP tree verification and repair being successful, directly performing PL tree pairing repair; In response to the PL tree pairing being repaired successfully, notifying the storage pool and the storage volume to go online, and resuming the service of the all-flash storage system; In response to all the LP trees not being successfully verified and repaired, continuing to verify and repair all the PL trees; In response to the completion of checking and repairing all PL trees, a process of pairing and repairing the LP tree and the PL tree is entered; In response to the LP tree and the PL tree being paired and repaired successfully, notifying the storage pool and the storage volume to go online, and resuming the service of the all-flash storage system; In response to the storage pool not having the storage volume configuration information, directly notifying the storage pool to go online and resuming the service of the all-flash storage system; The checking and repairing of all LP trees based on the root address of the LP tree in the metadata repair object includes: Starting from the root address of the LP tree in the metadata repair object, all LP trees are checked and repaired.
2. A metadata repair system, characterized in that: include: A judgment module configured to judge whether there is storage volume configuration information in the storage pool in response to a failure of the all-flash storage system during operation that causes the storage pool and the storage volume to go offline; an LP tree check and repair module configured to perform a full scan of the storage pool in response to the storage volume configuration information being present in the storage pool to extract a metadata repair object, and check and repair all LP trees based on the root address of the LP tree in the metadata repair object; A PL tree pairing repair module, configured to directly perform PL tree pairing repair in response to all LP tree verification and repair being successful; An online module, configured to notify the storage pool and the storage volume to go online in response to successful repair of the PL tree pairing, and to restore the service of the all-flash storage system; A PL tree check and repair module is configured to, in response to all LP trees not being successfully checked and repaired, continue to check and repair all PL trees; in response to all PL trees being checked and repaired, enter a process of pairing and repairing the LP trees with the PL trees; In response to the LP tree and the PL tree being paired and repaired successfully, the storage pool and the storage volume are notified to go online, and the service of the all-flash storage system is restored; The LP tree check and repair module includes a root address module configured to check and repair all LP trees starting from the root address of the LP tree in the metadata repair object; The direct online module is configured to directly notify the storage pool to go online and restore the services of the all-flash storage system in response to the absence of the storage volume configuration information in the storage pool.
3. A computer-readable storage medium, characterized in that: Computer program instructions are stored, and when the computer program instructions are executed by a processor, the method according to claim 1 is implemented.
4. A computer device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and when the computer program is executed by the processor, the method according to claim 1 is performed.
