Method, system, equipment and medium for initializing redundant array of independent disks

文档序号:1815424 发布日期:2021-11-09 浏览:4次 中文

阅读说明:本技术 一种独立冗余磁盘阵列的初始化方法、系统、设备及介质 (Method, system, equipment and medium for initializing redundant array of independent disks ) 是由 朱红玉 梁欣玲 于 2021-06-30 设计创作,主要内容包括:本发明公开了一种独立冗余磁盘阵列的初始化方法,包括以下步骤:利用多个硬盘组成独立冗余磁盘阵列,并构建多个逻辑卷;响应于接收到逻辑卷的删除指令,根据所述删除指令确定若干个待删除的逻辑卷;将若干个所述待删除的逻辑卷更新到第一初始化位图中,并将所述第一初始化位图中若干个所述待删除的逻辑卷的状态设置为未完成状态;依次对所述第一初始化位图中处于未完成状态的所述待删除的逻辑卷进行初始化操作,并在完成初始化操作后将对应的待删除的逻辑卷的未完成状态更新为完成状态。本发明还公开了一种系统、计算机设备以及可读存储介质。本发明中提出的初始化方法对部分非数据区域进行初始化,减少操作范围进而提升性能。(The invention discloses an initialization method of an independent redundant disk array, which comprises the following steps: forming an independent redundant disk array by using a plurality of hard disks, and constructing a plurality of logical volumes; in response to receiving a deletion instruction of a logical volume, determining a plurality of logical volumes to be deleted according to the deletion instruction; updating a plurality of logical volumes to be deleted into a first initialization bitmap, and setting the states of the plurality of logical volumes to be deleted in the first initialization bitmap as uncompleted states; and sequentially carrying out initialization operation on the logical volumes to be deleted in the incomplete state in the first initialization bitmap, and updating the incomplete state of the corresponding logical volumes to be deleted into the complete state after the initialization operation is completed. The invention also discloses a system, a computer device and a readable storage medium. The initialization method provided by the invention initializes part of the non-data area, reduces the operation range and further improves the performance.)

1. A method for initializing a Redundant Array of Independent Disks (RAID) comprises the following steps:

forming an independent redundant disk array by using a plurality of hard disks, and constructing a plurality of logical volumes;

in response to receiving a deletion instruction of a logical volume, determining a plurality of logical volumes to be deleted according to the deletion instruction;

updating a plurality of logical volumes to be deleted into a first initialization bitmap, and setting the states of the plurality of logical volumes to be deleted in the first initialization bitmap as uncompleted states;

and sequentially carrying out initialization operation on the logical volumes to be deleted in the incomplete state in the first initialization bitmap, and updating the incomplete state of the corresponding logical volumes to be deleted into the complete state after the initialization operation is completed.

2. The method of claim 1, wherein updating a number of the logical volumes to be deleted into a first initialization bitmap and setting a status of the number of the logical volumes to be deleted in the first initialization bitmap to an incomplete status, further comprises:

updating each data unit of each logical volume into the first initialization bitmap and setting the status of each data unit to an uncompleted status.

3. The method of claim 2, wherein initialization operations are sequentially performed on the logical volumes to be deleted that are in the incomplete state in the first initialization bitmap, and the incomplete state of the corresponding logical volumes to be deleted is updated to the complete state after the initialization operations are completed, further comprising:

and sequentially carrying out initialization operation on each data unit of the logical volume and updating the state of the corresponding data unit to be a finished state after the initialization operation is finished.

4. The method of claim 3, wherein performing the initialization operation on each data unit of the logical volume further comprises:

and filling the hard disk area corresponding to each data unit of the logical volume.

5. The method of claim 1, further comprising:

recording the plurality of logical volumes into a second bitmap;

and in response to the initialization of the plurality of logical volumes to be deleted being completed, deleting the plurality of logical volumes to be deleted from the second bitmap.

6. The method of claim 5, further comprising:

in response to the detection of the hard disk abnormality, determining a first area of the abnormal hard disk according to the logical volume recorded by the second bitmap;

and responding to the re-online of the hard disk, and performing reconstruction operation on the first area of the re-online hard disk.

7. The method of claim 6, further comprising:

updating other areas of the hard disk which is newly on-line into a third initialization bitmap, and setting the states of the other areas in the third initialization bitmap to be unfinished states;

and performing initialization operation on other areas in the incomplete state in the third initialization bitmap, and updating the incomplete state of the corresponding area to be in the complete state after the initialization operation is completed.

8. An initialization system for a redundant array of independent disks, comprising:

the construction module is configured to utilize a plurality of hard disks to form an independent redundant disk array and construct a plurality of logical volumes;

the determining module is configured to respond to a received deleting instruction of the logical volume and determine a plurality of logical volumes to be deleted according to the deleting instruction;

the updating module is configured to update the plurality of logical volumes to be deleted into a first initialization bitmap, and set the states of the plurality of logical volumes to be deleted in the first initialization bitmap to be uncompleted states;

and the initialization module is configured to sequentially perform initialization operation on the logical volumes to be deleted in the incomplete state in the first initialization bitmap, and update the incomplete state of the corresponding logical volumes to be deleted into a complete state after the initialization operation is completed.

9. A computer device, comprising:

at least one processor; and

memory storing a computer program operable on the processor, wherein the processor executes the program to perform the steps of the method according to any of claims 1-7.

10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, is adapted to carry out the steps of the method according to any one of claims 1 to 7.

Technical Field

The invention relates to the field of storage, in particular to an initialization method, a system, equipment and a storage medium of an independent redundant disk array.

Background

When a hard disk in an array fails, the manner of restoring data to a replacement hard disk is widely used as one of the means of restoring data, i.e., a reconstruction operation. With the continuous expansion of array capacity, the data reconstruction amount caused by the loss of the hard disk is continuously increased, and the time spent on recovering data is continuously prolonged.

The idea of reconstructing only the area actually used by the user is widely used, in which the array area is divided into a data area and a non-data area, the data area refers to an area where the user actually writes data, and the non-data area refers to an area where the user does not write data or data is no longer valid. And reconstructing only the data region allows recovery of the user data and recovery of the data redundancy of the region.

But it is also necessary to keep the non-data area in the array consistent, and the array is guaranteed to have the characteristic of data redundancy through the data-related consistency between the hard disks. Loss of array member hard disks and replacement of old hard disks with new ones breaks this correlation and consistency, so that non-data areas, although data is meaningless, also need to restore consistency to make these areas support read-over-write features.

After the disk is offline, most methods used for the non-data area are reconstruction and initialization methods: the reconstruction mode refers to reconstructing the non-data area as a data area to restore consistency, and the initialization mode refers to performing 0 padding (or a trim instruction supported by the SSD) on the non-data area to restore consistency.

In the initialization method, the operation of filling 0 in the non-data area requires to operate all the hard disks in the non-data area, and these write operations occupy the bandwidth of the device and affect the performance of the device.

Disclosure of Invention

In view of the above, in order to overcome at least one aspect of the above problems, an embodiment of the present invention provides an initialization method for a redundant array of independent disks, including the following steps:

forming an independent redundant disk array by using a plurality of hard disks, and constructing a plurality of logical volumes;

in response to receiving a deletion instruction of a logical volume, determining a plurality of logical volumes to be deleted according to the deletion instruction;

updating a plurality of logical volumes to be deleted into a first initialization bitmap, and setting the states of the plurality of logical volumes to be deleted in the first initialization bitmap as uncompleted states;

and sequentially carrying out initialization operation on the logical volumes to be deleted in the incomplete state in the first initialization bitmap, and updating the incomplete state of the corresponding logical volumes to be deleted into the complete state after the initialization operation is completed.

In some embodiments, updating a plurality of the logical volumes to be deleted into a first initialization bitmap, and setting the states of the plurality of the logical volumes to be deleted in the first initialization bitmap to an incomplete state, further includes:

updating each data unit of each logical volume into the first initialization bitmap and setting the status of each data unit to an uncompleted status.

In some embodiments, sequentially performing an initialization operation on the logical volumes to be deleted in the first initialization bitmap, which are in an incomplete state, and after the initialization operation is completed, updating the incomplete state of the corresponding logical volumes to be deleted to a complete state, further including:

and sequentially carrying out initialization operation on each data unit of the logical volume and updating the state of the corresponding data unit to be a finished state after the initialization operation is finished.

In some embodiments, initializing each data unit of the logical volume further comprises:

and filling the hard disk area corresponding to each data unit of the logical volume.

In some embodiments, further comprising:

recording the plurality of logical volumes into a second bitmap;

and in response to the initialization of the plurality of logical volumes to be deleted being completed, deleting the plurality of logical volumes to be deleted from the second bitmap.

In some embodiments, further comprising:

in response to the detection of the hard disk abnormality, determining a first area of the abnormal hard disk according to the logical volume recorded by the second bitmap;

and responding to the re-online of the hard disk, and performing reconstruction operation on the first area of the re-online hard disk.

In some embodiments, further comprising:

updating other areas of the hard disk which is newly on-line into a third initialization bitmap, and setting the states of the other areas in the third initialization bitmap to be unfinished states;

and performing initialization operation on other areas in the incomplete state in the third initialization bitmap, and updating the incomplete state of the corresponding area to be in the complete state after the initialization operation is completed.

Based on the same inventive concept, according to another aspect of the present invention, an embodiment of the present invention further provides an initialization system for a redundant array of independent disks, including:

the construction module is configured to utilize a plurality of hard disks to form an independent redundant disk array and construct a plurality of logical volumes;

the determining module is configured to respond to a received deleting instruction of the logical volume and determine a plurality of logical volumes to be deleted according to the deleting instruction;

the updating module is configured to update the plurality of logical volumes to be deleted into a first initialization bitmap, and set the states of the plurality of logical volumes to be deleted in the first initialization bitmap to be uncompleted states;

and the initialization module is configured to sequentially perform initialization operation on the logical volumes to be deleted in the incomplete state in the first initialization bitmap, and update the incomplete state of the corresponding logical volumes to be deleted into a complete state after the initialization operation is completed.

Based on the same inventive concept, according to another aspect of the present invention, an embodiment of the present invention further provides a computer apparatus, including:

at least one processor; and

a memory storing a computer program operable on the processor, wherein the processor executes the program to perform any of the steps of the method for initializing a redundant array of independent disks as described above.

Based on the same inventive concept, according to another aspect of the present invention, an embodiment of the present invention further provides a computer-readable storage medium storing a computer program, which when executed by a processor performs the steps of any one of the methods for initializing a redundant array of independent disks described above.

The invention has one of the following beneficial technical effects: the initialization method provided by the invention initializes part of the non-data area, reduces the operation range and further improves the performance.

Drawings

In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other embodiments can be obtained by using the drawings without creative efforts.

Fig. 1 is a schematic flowchart of an initialization method for an raid according to an embodiment of the present invention;

FIG. 2 is a schematic structural diagram of an initialization system of an RAID according to an embodiment of the present invention;

FIG. 3 is a schematic structural diagram of a computer device provided in an embodiment of the present invention;

fig. 4 is a schematic structural diagram of a computer-readable storage medium according to an embodiment of the present invention.

Detailed Description

In order to make the objects, technical solutions and advantages of the present invention more apparent, the following embodiments of the present invention are described in further detail with reference to the accompanying drawings.

It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are used for distinguishing two entities with the same name but different names or different parameters, and it should be noted that "first" and "second" are merely for convenience of description and should not be construed as limitations of the embodiments of the present invention, and they are not described in any more detail in the following embodiments.

According to an aspect of the present invention, an embodiment of the present invention provides an initialization method of a redundant array of independent disks, as shown in fig. 1, which may include the steps of:

s1, forming an independent redundant disk array by using a plurality of hard disks, and constructing a plurality of logical volumes;

s2, responding to the received deletion instruction of the logical volume, and determining a plurality of logical volumes to be deleted according to the deletion instruction;

s3, updating the plurality of logical volumes to be deleted into a first initialization bitmap, and setting the states of the plurality of logical volumes to be deleted in the first initialization bitmap as uncompleted states;

s4, sequentially performing an initialization operation on the to-be-deleted logical volumes in the first initialization bitmap, and after the initialization operation is completed, updating the incomplete state of the corresponding to-be-deleted logical volume to a complete state.

The initialization method provided by the invention initializes part of the non-data area, reduces the operation range and further improves the performance.

In some embodiments, in step S1, a redundant array of independent disks is formed by a plurality of hard disks, and a plurality of logical volumes are constructed, and in particular, the redundant array of independent disks may be formed by a plurality of hard disks, and hard disk space is allocated for better management, and the logical volumes may be used for management. In the existing array use, a user generally divides the array into different areas, and the different areas are used corresponding to different logical volumes. The actual physical storage address corresponding to each logical volume may be from multiple hard disks, that is, a partial storage space of multiple hard disks corresponds to one logical volume. In the embodiment of the present invention, each logical volume is a data area, and when a user performs a deletion operation of a logical volume, the data area corresponding to the logical volume is considered to be no longer used, and is recovered as a non-data area.

In some embodiments, updating a plurality of the logical volumes to be deleted into a first initialization bitmap, and setting the states of the plurality of the logical volumes to be deleted in the first initialization bitmap to an incomplete state, further includes:

updating each data unit of each logical volume into the first initialization bitmap and setting the status of each data unit to an uncompleted status.

In some embodiments, sequentially performing an initialization operation on the to-be-deleted logical volumes in the first initialization bitmap, which are in an incomplete state, and after the initialization operation is completed, updating the completion state of the non-corresponding to-be-deleted logical volumes to a completion state, further includes:

and sequentially carrying out initialization operation on each data unit of the logical volume and updating the state of the corresponding data unit to be a finished state after the initialization operation is finished.

In some embodiments, initializing each data unit of the logical volume further comprises:

and filling the hard disk area corresponding to each data unit of the logical volume.

Specifically, when deleting a logical volume, a corresponding logical volume to be deleted may be first determined according to the deletion instruction, and then the logical volume to be deleted is updated to the array initialization bitmap (i.e., the first initialization bitmap) to record the logical volume that needs to be initialized through the bitmap, where a state of the logical volume to be deleted in the array initialization bitmap is an incomplete state. And then, submitting the task to a background so as to initialize the corresponding logical volume according to the information recorded by the array initialization bitmap. And after the initialization is finished, setting the state of the corresponding logical volume in the array initialization bitmap as a finished state.

In some embodiments, a logical volume may be divided into a plurality of data units of a specified size, and 0 or 1 may be used to describe whether each data unit has been initialized. In this embodiment, each data unit of each logical volume may be recorded in the array initialization bitmap, and the status of each data unit is set to be in an incomplete status, and then, after the initialization task is submitted to the background, the initialization operation may be performed on each data unit recorded in the array initialization bitmap, and after the initialization is completed, the status of each data unit may be updated to be in a complete status.

In some embodiments, further comprising:

recording the plurality of logical volumes into a second bitmap;

and in response to the initialization of the plurality of logical volumes to be deleted being completed, deleting the plurality of logical volumes to be deleted from the second bitmap.

Specifically, each logical volume, that is, each data area, may be recorded through the second bitmap, and after a plurality of hard disks form an independent redundant disk array and a plurality of logical volumes are constructed, information of each logical volume may be recorded in the second bitmap, for example, a correspondence between a logical volume and an actual storage address of a hard disk may be recorded in the second bitmap. And after the user executes the instruction of deleting the logical volume, after the logical volume to be deleted is initialized, deleting the information of the logical volume to be deleted from the second bitmap.

In some embodiments, further comprising:

in response to the detection of the hard disk abnormality, determining a first area of the abnormal hard disk according to the logical volume recorded by the second bitmap;

and responding to the re-online of the hard disk, and performing reconstruction operation on the first area of the re-online hard disk.

In some embodiments, further comprising:

updating other areas of the hard disk which is newly on-line into a third initialization bitmap, and setting the states of the other areas in the third initialization bitmap to be unfinished states;

and performing initialization operation on other areas in the incomplete state in the third initialization bitmap, and updating the incomplete state of the corresponding area to be in the complete state after the initialization operation is completed.

Specifically, the hard disk exception may be that a hard disk is unavailable to any array member hard disk, include a failure of the hard disk itself, or may correspond to manual pulling out or instruction pulling out of the hard disk, and then a new hard disk is used for replacement. At this time, after the hard disk is newly brought online, since the data area and the non-data area of the hard disk which is newly brought online correspond to the data area and the non-data area of the hard disk which has a fault, the data area (i.e. the first area) of the hard disk which is newly brought online can be determined according to the information recorded in the second bitmap, and then the reconstruction operation and recovery are performed on the data area by using the existing data reconstruction method. And then marking all units of the non-data area in a member initialization bitmap (a third initialization bitmap) as uninitialized states, submitting an initialization task to a background, and performing the initialization task of the hard disk in the background according to the information recorded by the member initialization bitmap.

In some embodiments, the priority of array initialization is higher than that of array member initialization, and when two types of tasks exist simultaneously, the array member initialization needs to be executed after the array initialization is completed. That is, when the background has both the task of initializing the logical volume and the task of initializing the hard disk, the task of initializing the logical volume needs to be executed first, and then the task of initializing the hard disk needs to be executed.

In the embodiment of the invention, when a user performs read-write operation, if the background has an initialization task, the read-write operation can be performed only after the initialization task of the background is completed. Therefore, before the user performs the read-write operation, whether the related background task is completely completed for the area needs to be detected, and the user performs the read-write operation for the completely completed background task. Otherwise, executing all background tasks to be executed according to the priority, and then executing the read-write operation of the user.

The proposal provided by the invention replaces the reconstruction or initialization operation of the existing non-data area by a method of performing 0 filling on part of hard disks of the non-data area or performing 0 filling on part of the non-data area, thereby reducing the operation range and improving the performance.

Based on the same inventive concept, according to another aspect of the present invention, an embodiment of the present invention further provides an initialization system 400 for a redundant array of independent disks, as shown in fig. 2, including:

a building module 401 configured to form an independent redundant disk array by using a plurality of hard disks and build a plurality of logical volumes;

the determining module 402 is configured to, in response to receiving a deletion instruction of a logical volume, determine a plurality of logical volumes to be deleted according to the deletion instruction;

an updating module 403, configured to update the plurality of logical volumes to be deleted into a first initialization bitmap, and set the states of the plurality of logical volumes to be deleted in the first initialization bitmap to an uncompleted state;

an initialization module 404 configured to sequentially perform initialization operations on the logical volumes to be deleted in the incomplete state in the first initialization bitmap, and update the incomplete state of the corresponding logical volumes to be deleted to a complete state after the initialization operations are completed.

In some embodiments, updating a plurality of the logical volumes to be deleted into a first initialization bitmap, and setting the states of the plurality of the logical volumes to be deleted in the first initialization bitmap to an incomplete state, further includes:

updating each data unit of each logical volume into the first initialization bitmap and setting the status of each data unit to an uncompleted status.

In some embodiments, sequentially performing an initialization operation on the logical volumes to be deleted in the first initialization bitmap, which are in an incomplete state, and after the initialization operation is completed, updating the incomplete state of the corresponding logical volumes to be deleted to a complete state, further including:

and sequentially carrying out initialization operation on each data unit of the logical volume and updating the state of the corresponding data unit to be a finished state after the initialization operation is finished.

In some embodiments, initializing each data unit of the logical volume further comprises:

and filling the hard disk area corresponding to each data unit of the logical volume.

In some embodiments, the system further comprises a recording module configured to:

recording the plurality of logical volumes into a second bitmap;

and in response to the initialization of the plurality of logical volumes to be deleted being completed, deleting the plurality of logical volumes to be deleted from the second bitmap.

In some embodiments, the apparatus further comprises a detection module configured to:

in response to the detection of the hard disk abnormality, determining a first area of the abnormal hard disk according to the logical volume recorded by the second bitmap;

and responding to the re-online of the hard disk, and performing reconstruction operation on the first area of the re-online hard disk.

In some embodiments, the apparatus further comprises a second initialization module configured to:

updating other areas of the hard disk which is newly on-line into a third initialization bitmap, and setting the states of the other areas in the third initialization bitmap to be unfinished states;

and performing initialization operation on other areas in the incomplete state in the third initialization bitmap, and updating the incomplete state of the corresponding area to be in the complete state after the initialization operation is completed.

The proposal provided by the invention replaces the reconstruction or initialization operation of the existing non-data area by a method of performing 0 filling on part of hard disks of the non-data area or performing 0 filling on part of the non-data area, thereby reducing the operation range and improving the performance.

Based on the same inventive concept, according to another aspect of the present invention, as shown in fig. 3, an embodiment of the present invention further provides a computer apparatus 501, comprising:

at least one processor 520; and

a memory 510, the memory 510 storing a computer program 511 executable on the processor, the processor 520 executing the program to perform the steps of:

s1, forming an independent redundant disk array by using a plurality of hard disks, and constructing a plurality of logical volumes;

s2, responding to the received deletion instruction of the logical volume, and determining a plurality of logical volumes to be deleted according to the deletion instruction;

s3, updating the plurality of logical volumes to be deleted into a first initialization bitmap, and setting the states of the plurality of logical volumes to be deleted in the first initialization bitmap as uncompleted states;

s4, sequentially performing an initialization operation on the to-be-deleted logical volumes in the first initialization bitmap, and after the initialization operation is completed, updating the incomplete state of the corresponding to-be-deleted logical volume to a complete state.

In some embodiments, updating a plurality of the logical volumes to be deleted into a first initialization bitmap, and setting the states of the plurality of the logical volumes to be deleted in the first initialization bitmap to an incomplete state, further includes:

updating each data unit of each logical volume into the first initialization bitmap and setting the status of each data unit to an uncompleted status.

In some embodiments, sequentially performing an initialization operation on the logical volumes to be deleted in the first initialization bitmap, which are in an incomplete state, and after the initialization operation is completed, updating the incomplete state of the corresponding logical volumes to be deleted to a complete state, further including:

and sequentially carrying out initialization operation on each data unit of the logical volume and updating the state of the corresponding data unit to be a finished state after the initialization operation is finished.

In some embodiments, initializing each data unit of the logical volume further comprises:

and filling the hard disk area corresponding to each data unit of the logical volume.

In some embodiments, further comprising:

recording the plurality of logical volumes into a second bitmap;

and in response to the initialization of the plurality of logical volumes to be deleted being completed, deleting the plurality of logical volumes to be deleted from the second bitmap.

In some embodiments, further comprising:

in response to the detection of the hard disk abnormality, determining a first area of the abnormal hard disk according to the logical volume recorded by the second bitmap;

and responding to the re-online of the hard disk, and performing reconstruction operation on the first area of the re-online hard disk.

In some embodiments, further comprising:

updating other areas of the hard disk which is newly on-line into a third initialization bitmap, and setting the states of the other areas in the third initialization bitmap to be unfinished states;

and performing initialization operation on other areas in the incomplete state in the third initialization bitmap, and updating the incomplete state of the corresponding area to be in the complete state after the initialization operation is completed.

The proposal provided by the invention replaces the reconstruction or initialization operation of the existing non-data area by a method of performing 0 filling on part of hard disks of the non-data area or performing 0 filling on part of the non-data area, thereby reducing the operation range and improving the performance.

Based on the same inventive concept, according to another aspect of the present invention, as shown in fig. 4, an embodiment of the present invention further provides a computer-readable storage medium 601, where the computer-readable storage medium 601 stores computer program instructions 610, and the computer program instructions 610, when executed by a processor, perform the following steps:

s1, forming an independent redundant disk array by using a plurality of hard disks, and constructing a plurality of logical volumes;

s2, responding to the received deletion instruction of the logical volume, and determining a plurality of logical volumes to be deleted according to the deletion instruction;

s3, updating the plurality of logical volumes to be deleted into a first initialization bitmap, and setting the states of the plurality of logical volumes to be deleted in the first initialization bitmap as uncompleted states;

s4, sequentially performing an initialization operation on the to-be-deleted logical volumes in the first initialization bitmap, and after the initialization operation is completed, updating the incomplete state of the corresponding to-be-deleted logical volume to a complete state.

In some embodiments, updating a plurality of the logical volumes to be deleted into a first initialization bitmap, and setting the states of the plurality of the logical volumes to be deleted in the first initialization bitmap to an incomplete state, further includes:

updating each data unit of each logical volume into the first initialization bitmap and setting the status of each data unit to an uncompleted status.

In some embodiments, sequentially performing an initialization operation on the logical volumes to be deleted in the first initialization bitmap, which are in an incomplete state, and after the initialization operation is completed, updating the incomplete state of the corresponding logical volumes to be deleted to a complete state, further including:

and sequentially carrying out initialization operation on each data unit of the logical volume and updating the state of the corresponding data unit to be a finished state after the initialization operation is finished.

In some embodiments, initializing each data unit of the logical volume further comprises:

and filling the hard disk area corresponding to each data unit of the logical volume.

In some embodiments, further comprising:

recording the plurality of logical volumes into a second bitmap;

and in response to the initialization of the plurality of logical volumes to be deleted being completed, deleting the plurality of logical volumes to be deleted from the second bitmap.

In some embodiments, further comprising:

in response to the detection of the hard disk abnormality, determining a first area of the abnormal hard disk according to the logical volume recorded by the second bitmap;

and responding to the re-online of the hard disk, and performing reconstruction operation on the first area of the re-online hard disk.

In some embodiments, further comprising:

updating other areas of the hard disk which is newly on-line into a third initialization bitmap, and setting the states of the other areas in the third initialization bitmap to be unfinished states;

and performing initialization operation on other areas in the incomplete state in the third initialization bitmap, and updating the incomplete state of the corresponding area to be in the complete state after the initialization operation is completed.

The proposal provided by the invention replaces the reconstruction or initialization operation of the existing non-data area by a method of performing 0 filling on part of hard disks of the non-data area or performing 0 filling on part of the non-data area, thereby reducing the operation range and improving the performance.

Finally, it should be noted that, as will be understood by those skilled in the art, all or part of the processes of the methods of the above embodiments may be implemented by a computer program, which may be stored in a computer-readable storage medium, and when executed, may include the processes of the embodiments of the methods described above.

Further, it should be appreciated that the computer-readable storage media (e.g., memory) herein can be either volatile memory or nonvolatile memory, or can include both volatile and nonvolatile memory.

Those of skill would further appreciate that the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the disclosure herein may be implemented as electronic hardware, computer software, or combinations of both. To clearly illustrate this interchangeability of hardware and software, various illustrative components, blocks, modules, circuits, and steps have been described above generally in terms of their functionality. Whether such functionality is implemented as software or hardware depends upon the particular application and design constraints imposed on the overall system. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the disclosed embodiments of the present invention.

The foregoing is an exemplary embodiment of the present disclosure, but it should be noted that various changes and modifications could be made herein without departing from the scope of the present disclosure as defined by the appended claims. The functions, steps and/or actions of the method claims in accordance with the disclosed embodiments described herein need not be performed in any particular order. Furthermore, although elements of the disclosed embodiments of the invention may be described or claimed in the singular, the plural is contemplated unless limitation to the singular is explicitly stated.

It should be understood that, as used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly supports the exception. It should also be understood that "and/or" as used herein is meant to include any and all possible combinations of one or more of the associated listed items.

The numbers of the embodiments disclosed in the embodiments of the present invention are merely for description, and do not represent the merits of the embodiments.

It will be understood by those skilled in the art that all or part of the steps of implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.

Those of ordinary skill in the art will understand that: the discussion of any embodiment above is meant to be exemplary only, and is not intended to intimate that the scope of the disclosure, including the claims, of embodiments of the invention is limited to these examples; within the idea of an embodiment of the invention, also technical features in the above embodiment or in different embodiments may be combined and there are many other variations of the different aspects of the embodiments of the invention as described above, which are not provided in detail for the sake of brevity. Therefore, any omissions, modifications, substitutions, improvements, and the like that may be made without departing from the spirit and principles of the embodiments of the present invention are intended to be included within the scope of the embodiments of the present invention.

14页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种桶生命周期配置方法、装置、设备及介质

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类