[go: up one dir, main page]

CN104461791B - Information processing method and device - Google Patents

Information processing method and device Download PDF

Info

Publication number
CN104461791B
CN104461791B CN201410712454.1A CN201410712454A CN104461791B CN 104461791 B CN104461791 B CN 104461791B CN 201410712454 A CN201410712454 A CN 201410712454A CN 104461791 B CN104461791 B CN 104461791B
Authority
CN
China
Prior art keywords
disk
hot spare
hotspare
association
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410712454.1A
Other languages
Chinese (zh)
Other versions
CN104461791A (en
Inventor
曾茜逾
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201410712454.1A priority Critical patent/CN104461791B/en
Publication of CN104461791A publication Critical patent/CN104461791A/en
Application granted granted Critical
Publication of CN104461791B publication Critical patent/CN104461791B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Signal Processing For Digital Recording And Reproducing (AREA)

Abstract

本发明提供一种信息处理方法及处理装置,所述方法包括:当检测到硬盘组中存在发生故障的故障成员盘时,启动热备盘重构,将所述故障成员盘中的数据恢复到与所述故障成员盘关联的关联热备盘中;当检测到所述关联热备盘从所述热备盘槽位被拔出时,创建增量数据位图;当检测到所述关联热备盘被插入到所述成员盘槽位时,将所述关联热备盘识别为成员盘;根据所述增量数据位图,将增量数据重构到所述成员盘中,其中,所述增量数据位图用于记录自所述关联热备盘从所述热备盘槽位被拔出的拔出时刻起至所述关联热备盘被插入到所述成员盘槽位的插入时刻之间,主机向所述故障成员盘写入的所述增量数据的存储位置。

The present invention provides an information processing method and processing device. The method includes: when detecting that there is a faulty member disk in a hard disk group, starting hot spare disk reconstruction, and restoring the data in the faulty member disk to In the associated hot spare disk associated with the faulty member disk; when it is detected that the associated hot spare disk is pulled out from the hot spare disk slot, an incremental data bitmap is created; when it is detected that the associated hot spare disk When the spare disk is inserted into the member disk slot, the associated hot spare disk is identified as a member disk; according to the incremental data bitmap, the incremental data is reconstructed into the member disk, wherein the The incremental data bitmap is used to record the time when the associated hot spare disk is pulled out from the hot spare disk slot until the associated hot spare disk is inserted into the member disk slot. Between moments, the storage location of the incremental data written by the host to the failed member disk.

Description

一种信息处理方法及处理装置An information processing method and processing device

技术领域technical field

本发明涉及电子技术领域,尤其涉及一种信息处理方法及处理装置。The present invention relates to the field of electronic technology, in particular to an information processing method and a processing device.

背景技术Background technique

现有技术中将一定数量的硬盘分组形成RAID组(英文:Redundant Array ofIndependent Disks;中文:独立硬盘冗余阵列),通过使用各式RAID算法来提高数据冗余性和读写性能,达到保护数据和优化性能的目的。当RAID组中的硬盘发生故障时,故障成员硬盘上的数据即无法读写,RAID组的状态由正常变为降级,此时可以通过RAID算法来将数据恢复到热备盘上,恢复数据的过程称为重构。其中,热备盘为RAID组中配置的用于及时替换故障成员硬盘的硬盘。启动重构后,被占用的热备盘则成为RAID组的专用硬盘。如果用硬盘备件替换RAID组中的故障成员盘,等待重构完成之后,数据会从热备盘中复制到备件盘里,这个数据复制过程称为回拷。热备盘会在回拷完成后被RAID组释放,由多个RAID组构成的系统中各RAID组公有。In the prior art, a certain number of hard disks are grouped into RAID groups (English: Redundant Array of Independent Disks; Chinese: Redundant Array of Independent Hard Disks), and various RAID algorithms are used to improve data redundancy and read and write performance, so as to protect data and to optimize performance. When a hard disk in a RAID group fails, the data on the hard disk of the faulty member cannot be read or written, and the state of the RAID group changes from normal to degraded. At this time, the data can be restored to the hot spare disk through the RAID algorithm to restore the data The process is called refactoring. Among them, the hot spare disk is a hard disk configured in the RAID group to replace the hard disk of a failed member in time. After the reconstruction is started, the occupied hot spare disk becomes the dedicated hard disk of the RAID group. If a spare hard disk is used to replace a failed member disk in the RAID group, after the reconstruction is complete, the data will be copied from the hot spare disk to the spare disk. This data copy process is called copyback. The hot spare disk will be released by the RAID group after the copyback is complete, and each RAID group in a system consisting of multiple RAID groups is shared.

现有技术提供了三种重构方法:热备盘重构、就地重构以及换盘重构。热备盘重构是最基本的重构方式,当有RAID组中的成员盘故障时,把故障成员硬盘的数据通过RAID算法恢复到热备盘上,热备盘被RAID组占用,暂时代替故障成员盘的功能。当故障成员盘更换为备件盘后,启动回拷,释放热备盘。而就地重构先用备件盘替换RAID组中的故障成员盘,再直接将数据重构到硬盘备件中。换盘重构把RAID组中的故障成员硬盘的数据通过RAID算法恢复到热备盘上,热备盘被RAID组占用,重构完成之后成为RAID组的成员盘。The prior art provides three reconfiguration methods: hot spare disk reconfiguration, in-place reconfiguration, and disk replacement reconfiguration. Hot spare disk reconstruction is the most basic reconstruction method. When a member disk in a RAID group fails, restore the data of the failed member hard disk to the hot spare disk through the RAID algorithm. The hot spare disk is occupied by the RAID group and temporarily replaces it. The function of the faulty member disk. After the failed member disk is replaced with a spare disk, start copyback to release the hot spare disk. In-place reconstruction first replaces the failed member disk in the RAID group with a spare disk, and then directly reconstructs the data to the spare hard disk. Disk replacement and reconstruction restore the data of the failed member hard disk in the RAID group to the hot spare disk through the RAID algorithm. The hot spare disk is occupied by the RAID group and becomes a member disk of the RAID group after the reconstruction is completed.

但是,热备盘重构一旦启动,需要等待重构完成之后才能启动回拷。在重构和回拷的时间段内,RAID组将热备盘持续占用,整个阵列系统的可靠性降低,系统中其他RAID组再出现硬盘故障可能找不到合适的热备盘去恢复数据。就地重构需要手工干预用备件盘替换故障成员盘后,才能启动就地重构。在备件盘插入到故障成员盘的槽位之前,RAID组一直保持降级的状态,它承载的主机业务的性能和可靠性都大大降低。换盘重构成员盘槽位会出现后台自动变更,不适用于对RAID组的成员盘物理位置规划固定的情况。However, once the reconstruction of the hot spare disk is started, the copyback cannot be started until the reconstruction is completed. During the period of reconstruction and copyback, the RAID group will continue to occupy the hot spare disk, reducing the reliability of the entire array system. If a hard disk failure occurs in another RAID group in the system, a suitable hot spare disk may not be found to restore data. In-place reconstruction requires manual intervention to replace the failed member disk with a spare disk before starting the in-place reconstruction. Before the spare disk is inserted into the slot of the faulty member disk, the RAID group remains degraded, and the performance and reliability of the host services carried by it are greatly reduced. The slots of member disks will be automatically changed in the background after disk replacement and reconstruction, which is not applicable to the situation where the physical location planning of member disks in a RAID group is fixed.

因此,现有技术中还不存在既不改变RAID组的成员盘的物理位置,又能够尽快恢复硬盘组的性能及可靠性的故障处理方案。Therefore, in the prior art, there is no fault handling solution that can restore the performance and reliability of the hard disk group as soon as possible without changing the physical locations of the member disks of the RAID group.

发明内容Contents of the invention

本发明实施例提供一种信息处理方法及处理装置,提供了一种既不改变RAID组的成员盘的物理位置,又能够尽快恢复硬盘组的性能及可靠性的故障处理方案,实现了在不改变RAID组的成员盘物理位置的同时,通过减少热备盘被占用时间的方法,尽快恢复硬盘组的性能及可靠性的技术效果。The embodiment of the present invention provides an information processing method and a processing device, and provides a fault handling scheme that can restore the performance and reliability of the hard disk group as soon as possible without changing the physical location of the member disks of the RAID group, and realizes While changing the physical location of the member disks of the RAID group, the performance and reliability of the hard disk group can be restored as soon as possible by reducing the occupied time of the hot spare disk.

本发明实施例第一方面提供了一种信息处理方法,所述方法包括:The first aspect of the embodiments of the present invention provides an information processing method, the method including:

当检测到硬盘组中存在发生故障的故障成员盘时,启动热备盘重构,将所述故障成员盘中的数据恢复到与所述故障成员盘关联的关联热备盘中,其中,所述关联热备盘位于热备盘槽位中,所述故障成员盘位于成员盘槽位中;When it is detected that there is a faulty member disk that has failed in the hard disk group, start hot spare disk reconstruction, and restore the data in the faulty member disk to the associated hot spare disk associated with the faulty member disk, wherein the The associated hot spare disk is located in the slot of the hot spare disk, and the failed member disk is located in the slot of the member disk;

当检测到所述关联热备盘从所述热备盘槽位被拔出时,创建增量数据位图;When it is detected that the associated hot spare disk is pulled out from the hot spare disk slot, an incremental data bitmap is created;

当检测到所述关联热备盘被插入到所述成员盘槽位时,将所述关联热备盘识别为成员盘;When detecting that the associated hot spare disk is inserted into the member disk slot, identifying the associated hot spare disk as a member disk;

根据所述增量数据位图,将增量数据重构到所述成员盘中,其中,所述增量数据位图用于记录自所述关联热备盘从所述热备盘槽位被拔出的拔出时刻起至所述关联热备盘被插入到所述成员盘槽位的插入时刻之间,主机向所述故障成员盘写入的所述增量数据的存储位置。According to the incremental data bitmap, the incremental data is reconstructed into the member disk, wherein the incremental data bitmap is used for recording from the associated hot spare disk from the hot spare disk slot The storage location of the incremental data written by the host to the failed member disk between the time of unplugging and the time when the associated hot spare disk is inserted into the slot of the member disk.

结合第一方面,在第一种可能的实现方式中,在所述将增量数据恢复到所述成员盘中之后,所述方法还包括:With reference to the first aspect, in a first possible implementation manner, after the incremental data is restored to the member disk, the method further includes:

确定所述热备盘重构的重构进度,所述重构进度表征在所述拔出时刻,所述关联热备盘中的数据量占所述故障成员盘中的数据量的比例;determining the reconstruction progress of the reconstruction of the hot spare disk, the reconstruction progress representing the ratio of the data volume in the associated hot spare disk to the data volume in the faulty member disk at the moment of unplugging;

若所述重构进度表征所述故障成员盘中只有部分数据已重构到所述关联热备盘中,则将所述故障成员盘中的除所述部分数据外的剩余数据重构到所述成员盘中。If the reconstruction progress indicates that only part of the data in the faulty member disk has been reconstructed into the associated hot spare disk, reconstruct the remaining data in the faulty member disk except for the part of data into the associated hot spare disk. The above member disk.

结合第一方面,在第二种可能的实现方式中,所述当检测到所述关联热备盘被插入到所述成员盘槽位时,将所述关联热备盘识别为成员盘,具体为:With reference to the first aspect, in a second possible implementation manner, when it is detected that the associated hot spare disk is inserted into the slot of the member disk, identifying the associated hot spare disk as a member disk, specifically for:

在检测到所述故障成员盘从所述成员盘槽位拔出后,判断所述成员盘槽位上第一次插入的硬盘是否是所述关联热备盘;After detecting that the faulty member disk is pulled out from the member disk slot, determine whether the hard disk inserted into the member disk slot for the first time is the associated hot spare disk;

若为是,则将所述关联热备盘识别为成员盘。If yes, identify the associated hot spare disk as a member disk.

结合第一方面,第一种可能的实现方式及第二种可能的实现方式,在第三种可能的实现方式中,在所述将所述关联热备盘识别为成员盘之后,所述方法还包括:With reference to the first aspect, the first possible implementation and the second possible implementation, in the third possible implementation, after the associated hot spare disk is identified as a member disk, the method Also includes:

当检测到备件盘被插入到所述热备盘槽位时,将所述备件盘设置为热备盘。When it is detected that the spare disk is inserted into the slot of the hot spare disk, the spare disk is set as the hot spare disk.

结合第一方面,在第四种可能的实现方式中,所述当检测到所述关联热备盘被插入到所述成员盘槽位时,将所述关联热备盘识别为成员盘,具体为:With reference to the first aspect, in a fourth possible implementation manner, when it is detected that the associated hot spare disk is inserted into the slot of the member disk, identifying the associated hot spare disk as a member disk, specifically for:

在检测到所述故障成员盘从所述成员盘槽位拔出后,判断所述成员盘槽位上第一次插入的硬盘是否是备件盘;After detecting that the faulty member disk is pulled out from the member disk slot, determine whether the hard disk inserted into the member disk slot for the first time is a spare disk;

若为是,则启动回拷,将所述故障成员盘中的数据复制到所述备件盘中;If yes, start copyback, and copy the data in the failed member disk to the spare disk;

在所述回拷的过程中,交换所述备件盘与所述关联热备盘的位置,将所述关联热备盘插入到所述成员盘槽位,且将所述备件盘插入到所述热备盘槽位;In the process of copying back, the positions of the spare part disk and the associated hot spare disk are exchanged, the associated hot spare disk is inserted into the member disk slot, and the spare part disk is inserted into the Hot spare disk slot;

将所述关联热备盘识别为成员盘。Identify the associated hot spare disk as a member disk.

结合第四种可能的实现方式,在第五种可能的实现方式中,在所述将所述关联热备盘识别为成员盘之后,所述方法还包括:With reference to the fourth possible implementation manner, in a fifth possible implementation manner, after identifying the associated hot spare disk as a member disk, the method further includes:

将所述备件盘设置为热备盘。Set the spare part disk as a hot spare disk.

结合第一方面,第一种可能的实现方式至第五种可能的实现方式,在第六种可能的实现方式中,所述当检测到所述关联热备盘被插入到所述成员盘槽位时,将所述关联热备盘识别为成员盘,具体为:With reference to the first aspect, the first possible implementation to the fifth possible implementation, in the sixth possible implementation, when it is detected that the associated hot spare disk is inserted into the member disk slot When the bit is set, identify the associated hot spare disk as a member disk, specifically:

判断所述关联热备盘是否在自所述拔出时刻起的预定时间内被插入到所述成员盘槽位;judging whether the associated hot spare disk is inserted into the member disk slot within a predetermined time from the moment of pulling out;

若为是,则将所述关联热备盘识别为成员盘,其中,所述预定时间为所述硬盘组设定的有效换盘时间。If yes, the associated hot spare disk is identified as a member disk, wherein the predetermined time is an effective disk replacement time set by the hard disk group.

本发明实施例第二方面提供了一种处理装置,所述处理装置包括:The second aspect of the embodiment of the present invention provides a processing device, the processing device includes:

热备盘重构模块,用于当检测到硬盘组中存在发生故障的故障成员盘时,启动热备盘重构,将所述故障成员盘中的数据恢复到与所述故障成员盘关联的关联热备盘中,其中,所述关联热备盘位于热备盘槽位中,所述故障成员盘位于成员盘槽位中;The hot spare disk reconstruction module is used to start the reconstruction of the hot spare disk when detecting that there is a faulty member disk in the hard disk group, and restore the data in the faulty member disk to the data associated with the faulty member disk. In the associated hot spare disk, wherein the associated hot spare disk is located in a slot of the hot spare disk, and the failed member disk is located in the slot of the member disk;

位图创建模块,用于当检测到所述关联热备盘从所述热备盘槽位被拔出时,创建增量数据位图;A bitmap creation module, configured to create an incremental data bitmap when it is detected that the associated hot spare disk is pulled out from the hot spare disk slot;

处理模块,用于当检测到所述关联热备盘被插入到所述成员盘槽位时,将所述关联热备盘识别为成员盘;A processing module, configured to identify the associated hot spare disk as a member disk when detecting that the associated hot spare disk is inserted into the slot of the member disk;

增量数据重构模块,用于根据所述增量数据位图,将增量数据重构到所述成员盘中,其中,所述增量数据位图用于记录自所述关联热备盘从所述热备盘槽位被拔出的拔出时刻起至所述关联热备盘被插入到所述成员盘槽位的插入时刻之间,主机向所述故障成员盘写入的所述增量数据的存储位置。An incremental data reconstruction module, configured to reconstruct incremental data into the member disk according to the incremental data bitmap, wherein the incremental data bitmap is used to record from the associated hot spare disk From the time when the hot spare disk slot is pulled out to the insertion time when the associated hot spare disk is inserted into the member disk slot, the host writes to the failed member disk The storage location of incremental data.

结合第二方面,在第一种可能的实现方式中,所述处理装置还包括:With reference to the second aspect, in a first possible implementation manner, the processing device further includes:

重构进度确定模块,用于在所述将增量数据恢复到所述成员盘中之后,确定所述热备盘重构的重构进度,所述重构进度表征在所述拔出时刻,所述关联热备盘中的数据量占所述故障成员盘中的数据量的比例;A reconstruction progress determination module, configured to determine the reconstruction progress of the hot spare disk reconstruction after the incremental data is restored to the member disk, the reconstruction progress indicates that at the pulling time, The ratio of the amount of data in the associated hot spare disk to the amount of data in the faulty member disk;

重构模块,用于若所述重构进度表征所述故障成员盘中只有部分数据已重构到所述关联热备盘中,则将所述故障成员盘中的除所述部分数据外的剩余数据重构到所述成员盘中。a reconstruction module, configured to, if the reconstruction progress indicates that only part of the data in the faulty member disk has been reconstructed into the associated hot spare disk, The remaining data is reconstructed to the member disk.

结合第二方面,在第二种可能的实现方式中,所述处理模块具体用于:With reference to the second aspect, in a second possible implementation manner, the processing module is specifically configured to:

在检测到所述故障成员盘从所述成员盘槽位拔出后,判断所述成员盘槽位上第一次插入的硬盘是否是所述关联热备盘;After detecting that the faulty member disk is pulled out from the member disk slot, determine whether the hard disk inserted into the member disk slot for the first time is the associated hot spare disk;

若为是,则将所述关联热备盘识别为成员盘。If yes, identify the associated hot spare disk as a member disk.

结合第二方面、第一种可能的实现方式及第二种可能的实现方式,在第三种可能的实现方式中,所述处理装置还包括:With reference to the second aspect, the first possible implementation manner, and the second possible implementation manner, in a third possible implementation manner, the processing device further includes:

第一热备盘设置单元,用于在所述将所述关联热备盘识别为成员盘之后,且当检测到备件盘被插入到所述热备盘槽位时,将所述备件盘设置为热备盘。The first hot spare disk setting unit is configured to set the spare disk after the associated hot spare disk is identified as a member disk and when it is detected that the spare disk is inserted into the hot spare disk slot It is a hot spare disk.

结合第二方面,在第四种可能的实现方式中,所述处理模块具体用于:With reference to the second aspect, in a fourth possible implementation manner, the processing module is specifically configured to:

在检测到所述故障成员盘从所述成员盘槽位拔出后,判断所述成员盘槽位上第一次插入的硬盘是否是备件盘;After detecting that the faulty member disk is pulled out from the member disk slot, determine whether the hard disk inserted into the member disk slot for the first time is a spare disk;

若为是,则启动回拷,将所述故障成员盘中的数据复制到所述备件盘中;If yes, start copyback, and copy the data in the failed member disk to the spare disk;

在所述回拷的过程中,交换所述备件盘与所述关联热备盘的位置,将所述关联热备盘插入到所述成员盘槽位,且将所述备件盘插入到所述热备盘槽位;In the process of copying back, the positions of the spare part disk and the associated hot spare disk are exchanged, the associated hot spare disk is inserted into the member disk slot, and the spare part disk is inserted into the Hot spare disk slot;

将所述关联热备盘识别为成员盘。Identify the associated hot spare disk as a member disk.

结合第四种可能的实现方式,在第五种可能的实现方式中,所述处理装置还包括:With reference to the fourth possible implementation manner, in a fifth possible implementation manner, the processing device further includes:

第二热备盘设置模块,用于在所述将所述关联热备盘识别为成员盘之后,将所述备件盘设置为热备盘。The second hot spare disk setting module is configured to set the spare disk as a hot spare disk after the associated hot spare disk is identified as a member disk.

结合第二方面、第一种可能的实现方式至第五种可能的实现方式,在第六种可能的实现方式中,所述处理模块具体用于:With reference to the second aspect, the first possible implementation to the fifth possible implementation, in a sixth possible implementation, the processing module is specifically configured to:

判断所述关联热备盘是否在自所述拔出时刻起的预定时间内被插入到所述成员盘槽位;judging whether the associated hot spare disk is inserted into the member disk slot within a predetermined time from the moment of pulling out;

若为是,则将所述关联热备盘识别为成员盘,其中,所述预定时间为所述硬盘组设定的有效换盘时间。If yes, the associated hot spare disk is identified as a member disk, wherein the predetermined time is an effective disk replacement time set by the hard disk group.

本发明实施例中提供的一个或多个技术方案,至少具有如下技术效果或优点:One or more technical solutions provided in the embodiments of the present invention have at least the following technical effects or advantages:

本发明实施例中,当检测到硬盘组中存在发生故障的故障成员盘时,启动热备盘重构;然后检测到关联热备盘被插入到故障成员盘的成员盘槽位时,将所述关联热备盘识别为成员盘,最后根据增量数据位图,将增量数据重构到识别出的成员盘中,其中,增量数据位图用于记录自关联热备盘被拔出期间,主机向故障成员盘写入的增量数据的存储位置。In the embodiment of the present invention, when it is detected that there is a faulty member disk in the hard disk group, reconstruction of the hot spare disk is started; then when it is detected that the associated hot spare disk is inserted into the member disk slot of the faulty member disk, all The associated hot spare disk is identified as a member disk, and finally the incremental data is reconstructed to the identified member disk according to the incremental data bitmap, where the incremental data bitmap is used to record that the associated hot spare disk is unplugged During this period, the storage location of the incremental data written by the host to the failed member disk.

由于关联热备盘被插入到故障成员盘的槽位后被识别为成员盘,代替故障成员盘的工作,所以硬盘组的成员盘的物理位置未发生改变。此外,由于增量数据位图记录了在关联热备盘被拔出期间,主机向故障成员盘写入的增量数据的存储位置,所以在关联热备盘被识别为成员盘后,仅需将增量数据重构到识别出的成员盘中即可,而增量数据量较小,所以可以减少热备盘被占用时间,尽快恢复硬盘组的性能及可靠性。Since the associated hot spare disk is inserted into the slot of the failed member disk, it is recognized as a member disk and replaces the work of the failed member disk, so the physical location of the member disk in the disk group remains unchanged. In addition, since the incremental data bitmap records the storage location of the incremental data written by the host to the failed member disk during the period when the associated hot spare disk is pulled out, after the associated hot spare disk is recognized as a member disk, only It only needs to reconstruct the incremental data to the identified member disks, and the amount of incremental data is small, so the time occupied by the hot spare disk can be reduced, and the performance and reliability of the disk group can be restored as soon as possible.

附图说明Description of drawings

为了更清楚地说明本发明或现有技术中的技术方案,下面将对本发明或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它的附图。In order to more clearly illustrate the present invention or the technical solutions in the prior art, the accompanying drawings that need to be used in the description of the present invention or the prior art will be briefly introduced below. Obviously, the accompanying drawings in the following description are only the present invention. For some embodiments of the present invention, those skilled in the art can also obtain other drawings according to these drawings without paying creative efforts.

图1为本发明实施例提供的信息处理方法适用的硬盘组的示意图;FIG. 1 is a schematic diagram of a hard disk group to which an information processing method provided by an embodiment of the present invention is applicable;

图2为本发明实施例提供的信息处理方法的流程图;FIG. 2 is a flowchart of an information processing method provided by an embodiment of the present invention;

图3A-图3C为本发明实施例中信息处理方法的第一种实施方式的示意图;3A-3C are schematic diagrams of the first implementation of the information processing method in the embodiment of the present invention;

图4A-图4B为本发明实施例中信息处理方法的第二种实施方式的示意图;4A-4B are schematic diagrams of a second implementation of the information processing method in the embodiment of the present invention;

图5A-图5B为本发明实施例中信息处理方法的第三种实施方式的示意图;5A-5B are schematic diagrams of a third implementation manner of an information processing method in an embodiment of the present invention;

图6为本发明实施例提供的处理装置的模块图;FIG. 6 is a block diagram of a processing device provided by an embodiment of the present invention;

图7为本发明实施例提供的电子设备的硬件结构示意图。FIG. 7 is a schematic diagram of a hardware structure of an electronic device provided by an embodiment of the present invention.

具体实施方式detailed description

本发明实施例提供一种信息处理方法,提供了一种既不改变RAID组的成员盘的物理位置,又能够尽快恢复硬盘组的性能及可靠性的故障处理方案,实现了在不改变RAID组的成员盘物理位置的同时,通过减少热备盘被占用时间的方法,尽快恢复硬盘组的性能及可靠性的技术效果。The embodiment of the present invention provides an information processing method, which provides a fault handling scheme that can restore the performance and reliability of the hard disk group as soon as possible without changing the physical location of the member disks of the RAID group, and realizes At the same time, the performance and reliability of the hard disk group can be restored as soon as possible by reducing the occupied time of the hot spare disk.

本发明实施例中,当检测到硬盘组中存在发生故障的故障成员盘时,启动热备盘重构;然后检测到关联热备盘被插入到故障成员盘的成员盘槽位时,将所述关联热备盘识别为成员盘,最后根据增量数据位图,将增量数据重构到识别出的成员盘中,其中,增量数据位图用于记录自关联热备盘被拔出期间,主机向故障成员盘写入的增量数据的存储位置。In the embodiment of the present invention, when it is detected that there is a faulty member disk in the hard disk group, reconstruction of the hot spare disk is started; then when it is detected that the associated hot spare disk is inserted into the member disk slot of the faulty member disk, all The associated hot spare disk is identified as a member disk, and finally the incremental data is reconstructed to the identified member disk according to the incremental data bitmap, where the incremental data bitmap is used to record that the associated hot spare disk is unplugged During this period, the storage location of the incremental data written by the host to the failed member disk.

由于关联热备盘被插入到故障成员盘的槽位后被识别为成员盘,代替故障成员盘的工作,所以硬盘组的成员盘的物理位置未发生改变。此外,由于增量数据位图记录了在关联热备盘被拔出期间,主机向故障成员盘写入的增量数据的存储位置,所以在关联热备盘被识别为成员盘后,仅需将增量数据重构到识别出的成员盘中即可,而增量数据量较小,所以可以减少热备盘被占用时间,尽快恢复硬盘组的性能及可靠性。Since the associated hot spare disk is inserted into the slot of the failed member disk, it is recognized as a member disk and replaces the work of the failed member disk, so the physical location of the member disk in the disk group remains unchanged. In addition, since the incremental data bitmap records the storage location of the incremental data written by the host to the failed member disk during the period when the associated hot spare disk is pulled out, after the associated hot spare disk is recognized as a member disk, only It only needs to reconstruct the incremental data to the identified member disks, and the amount of incremental data is small, so the time occupied by the hot spare disk can be reduced, and the performance and reliability of the disk group can be restored as soon as possible.

为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present application.

本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系。The term "and/or" in this article is just an association relationship describing associated objects, which means that there can be three relationships, for example, A and/or B can mean: A exists alone, A and B exist simultaneously, and there exists alone B these three situations. In addition, the character "/" in this article generally indicates that the contextual objects are an "or" relationship.

下面结合附图对本发明的实施方式进行详细说明。Embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings.

本发明实施例提供一种信息处理方法,适用于RAID组(英文:Redundant Array ofIndependent Disks;中文:独立硬盘冗余阵列),RAID组是将一定数量的硬盘分组形成的,RAID组中的每个硬盘称为成员盘,各个成员盘之间通过使用各式RAID算法可以提高数据冗余性和读写性能,达到保护数据和优化性能的目的。The embodiment of the present invention provides a kind of information processing method, is suitable for RAID group (English: Redundant Array of Independent Disks; Chinese: Independent Hard Disk Redundant Array), RAID group is to form by grouping a certain number of hard disks, each in the RAID group Hard disks are called member disks, and various RAID algorithms can be used between member disks to improve data redundancy and read/write performance, so as to protect data and optimize performance.

请参考图1,图1为本发明实施例提供的信息处理方法适用的RAID的示意图。图1中,RAID组有3个成员盘:成员盘0、成员盘1及成员盘2。如果3个成员盘中任一成员盘发生故障,可以利用剩余两个成员盘中的数据,通过RAID算法,将发生故障的故障成员盘中的数据恢复出来。其中,RAID组的级别为RAID 5。Please refer to FIG. 1 . FIG. 1 is a schematic diagram of a RAID applicable to an information processing method provided by an embodiment of the present invention. In Figure 1, the RAID group has three member disks: member disk 0, member disk 1, and member disk 2. If any of the three member disks fails, the data in the remaining two member disks can be used to restore the data in the failed member disk through the RAID algorithm. The level of the RAID group is RAID 5.

请参考图2,图2为本发明实施例提供的信息处理方法的流程图。所述方法包括:Please refer to FIG. 2 , which is a flowchart of an information processing method provided by an embodiment of the present invention. The methods include:

步骤21:当检测到硬盘组中存在发生故障的故障成员盘时,启动热备盘重构,将所述故障成员盘中的数据恢复到与所述故障成员盘关联的关联热备盘中,其中,所述关联热备盘位于热备盘槽位中,所述故障成员盘位于成员盘槽位中;Step 21: When it is detected that there is a faulty member disk that has failed in the hard disk group, start hot spare disk reconstruction, and restore the data in the faulty member disk to the associated hot spare disk associated with the faulty member disk, Wherein, the associated hot spare disk is located in the slot of the hot spare disk, and the failed member disk is located in the slot of the member disk;

步骤22:当检测到所述关联热备盘从所述热备盘槽位被拔出时,创建增量数据位图;Step 22: When it is detected that the associated hot spare disk is pulled out from the slot of the hot spare disk, create an incremental data bitmap;

步骤23:当检测到所述关联热备盘被插入到所述成员盘槽位时,将所述关联热备盘识别为成员盘;Step 23: When detecting that the associated hot spare disk is inserted into the slot of the member disk, identifying the associated hot spare disk as a member disk;

步骤24:根据所述增量数据位图,将增量数据重构到所述成员盘中,其中,所述增量数据位图用于记录自所述关联热备盘从所述热备盘槽位被拔出的拔出时刻起至所述关联热备盘被插入到所述成员盘槽位的插入时刻之间,主机向所述故障成员盘写入的所述增量数据的存储位置。Step 24: Reconstruct incremental data into the member disk according to the incremental data bitmap, wherein the incremental data bitmap is used to record data from the associated hot spare disk from the hot spare disk The storage location of the incremental data written by the host to the failed member disk between the time when the slot is pulled out and the time when the associated hot spare disk is inserted into the slot of the member disk .

通常来说,硬盘组中有成员盘发生故障后,硬盘组会自动启动热备盘重构,寻找合适的热备盘,将发生故障的故障成员盘中的数据恢复到热备盘中,存储恢复的数据的热备盘称为故障成员盘的关联热备盘。本发明实施例提供的方案不仅仅适用于磁盘,也适用于SSD等固态硬盘。Generally speaking, after a member disk in the disk group fails, the disk group will automatically start the reconstruction of the hot spare disk, find a suitable hot spare disk, and restore the data in the failed member disk to the hot spare disk. The hot spare disk of the recovered data is called the associated hot spare disk of the failed member disk. The solutions provided by the embodiments of the present invention are not only applicable to magnetic disks, but also applicable to solid-state hard disks such as SSDs.

仍请参考图1,假设硬盘组中的成员盘1发生故障,则硬盘组会自动启动热备盘重构,通过成员盘0及成员盘2将发生故障的故障成员盘1中的数据恢复到热备盘3中。热备盘3称为故障成员盘1的关联热备盘。Still referring to Figure 1, assuming that member disk 1 in the disk group fails, the disk group will automatically start hot spare disk reconstruction, and recover the data in the failed member disk 1 through member disk 0 and member disk 2 to Hot spare disk 3. Hot spare disk 3 is called the associated hot spare disk of failed member disk 1.

本发明实施例中,硬盘组会将关联热备盘识别为成员盘。为了不改变成员盘的物理位置,需要将位于热备盘槽位上的关联热备盘拔出,然后插入到故障成员盘的成员盘槽位。这样一来,既完成了数据恢复,又没有改变硬盘组的成员盘的物理位置。In the embodiment of the present invention, the hard disk group will recognize the associated hot spare disk as a member disk. In order not to change the physical location of the member disk, you need to remove the associated hot spare disk from the hot spare disk slot, and then insert it into the member disk slot of the faulty member disk. In this way, the data recovery is completed without changing the physical location of the member disks of the disk group.

现有技术中,在备件盘插入到故障成员盘的成员盘槽位上后,需要将热备盘中的数据复制到备件盘中,需要复制的数据量较大,热备盘被占用的时间较长。本发明实施例中,为了保证在关联热备盘插入到故障成员盘的成员盘槽位后,仅需恢复在关联热备盘被拔出期间主机向故障成员盘中写入的数据,可以在检测到关联热备盘从热备盘槽位上被拔出时,创建增量数据位图。增量数据位图记录了自关联热备盘从热备盘槽位上被拔出时刻起,至关联热备盘被插入到故障成员盘的成员盘槽位的插入时刻之间,主机向故障成员盘写入的增量数据的位置。In the prior art, after the spare disk is inserted into the member disk slot of the faulty member disk, the data in the hot spare disk needs to be copied to the spare disk. longer. In the embodiment of the present invention, in order to ensure that after the associated hot spare disk is inserted into the member disk slot of the faulty member disk, only the data written by the host to the faulty member disk during the period when the associated hot spare disk is pulled out can be restored. When it is detected that the associated hot spare disk is pulled out from the hot spare disk slot, an incremental data bitmap is created. The incremental data bitmap records the time when the associated hot spare disk is removed from the hot spare disk slot and the time when the associated hot spare disk is inserted into the member disk slot of the faulty member disk. The location of the incremental data written to the member disk.

在检测到关联热备盘被插入到故障成员盘的槽位时,硬盘组将关联热备盘识别为硬盘组的成员盘,并将增量数据恢复到识别出的成员盘中。具体地,利用未发生故障的成员盘中的数据以及增量数据位图,通过RAID算法可以恢复出增量数据。When detecting that the associated hot spare disk is inserted into the slot of the failed member disk, the disk group recognizes the associated hot spare disk as a member disk of the disk group, and restores incremental data to the identified member disk. Specifically, the incremental data can be recovered through the RAID algorithm by using the data in the non-faulty member disks and the incremental data bitmap.

本发明实施例中,根据检测到关联热备盘被插入到故障成员盘的成员槽位盘时的插入时刻,硬盘组的数据恢复状态,有以下三种具体实施方式。In the embodiment of the present invention, according to the insertion time when the associated hot spare disk is detected to be inserted into the member slot disk of the failed member disk, the data recovery status of the hard disk group has the following three specific implementation modes.

第一种实施方式:检测到关联热备盘被插入到故障成员盘的成员槽位盘时的插入时刻,硬盘组正在热备盘重构的过程中,热备盘重构尚未完成。也就是说,在硬盘组热备盘重构的过程中,关联热备盘被插入到故障成员盘的成员槽位盘。The first implementation mode: when it is detected that the associated hot spare disk is inserted into the member slot disk of the failed member disk, the disk group is in the process of rebuilding the hot spare disk, and the reconstruction of the hot spare disk has not been completed yet. That is to say, during the reconstruction process of the hot spare disk of the disk group, the associated hot spare disk is inserted into the member slot disk of the failed member disk.

在第一种实施方式下,在执行完步骤24之后,还可以执行以下步骤:In the first implementation manner, after performing step 24, the following steps may also be performed:

确定所述热备盘重构的重构进度,所述重构进度表征在所述拔出时刻,所述关联热备盘中的数据量占所述故障成员盘中的数据量的比例;determining the reconstruction progress of the reconstruction of the hot spare disk, the reconstruction progress representing the ratio of the data volume in the associated hot spare disk to the data volume in the faulty member disk at the moment of unplugging;

若所述重构进度表征所述故障成员盘中只有部分数据已重构到所述关联热备盘中,则将所述故障成员盘中的除所述部分数据外的剩余数据重构到所述成员盘中。If the reconstruction progress indicates that only part of the data in the faulty member disk has been reconstructed into the associated hot spare disk, reconstruct the remaining data in the faulty member disk except for the part of data into the associated hot spare disk. The above member disk.

举例来讲,通常来说,硬盘组中有成员盘发生故障后,硬盘组会自动启动热备盘重构,寻找合适的热备盘,将发生故障的故障成员盘中的数据恢复到热备盘中,如果在硬盘组热备盘重构的过程中,关联热备盘被从热备盘槽位上拔出,则热备盘重构会暂停,故障成员盘中的数据仅有部分数据恢复到关联热备盘中,在关联热备盘被插入到故障成员盘的槽位时,关联热备盘被识别为成员盘,会接着将故障成员盘中的剩余数据恢复到识别出的成员盘中。For example, generally speaking, after a member disk in the disk group fails, the disk group will automatically start the reconstruction of the hot spare disk, find a suitable hot spare disk, and restore the data in the failed member disk to the hot spare disk. If the associated hot spare disk is pulled out of the hot spare disk slot during the reconstruction of the hot spare disk of the disk group, the reconstruction of the hot spare disk will be suspended, and only part of the data in the failed member disk Restore to the associated hot spare disk. When the associated hot spare disk is inserted into the slot of the failed member disk, the associated hot spare disk will be identified as a member disk, and then the remaining data in the failed member disk will be restored to the identified member disk. plate.

仍请参考图1,假设硬盘组中的成员盘1发生故障,则硬盘组会自动启动热备盘重构,根据RAID冗余算法利用成员盘0及成员盘2将发生故障的故障成员盘1中的数据恢复到热备盘3中。热备盘3称为故障成员盘1的关联热备盘。在热备盘重构的过程中,热备盘3被从热备盘槽位上拔出,则热备盘重构会暂停,成员盘1中的数据仅有部分数据恢复到热备盘3中,如图3A所示,成员盘1中仅有部分数据恢复到热备盘3中,图3A中用阴影部分表示恢复到热备盘3中的部分数据。在热备盘3被插入到成员盘1的槽位时,热备盘3被识别为成员盘,会接着将成员盘1中的剩余数据恢复到识别出的成员盘中。Please still refer to Figure 1. Assuming that member disk 1 in the disk group fails, the disk group will automatically start hot spare disk reconstruction, and use member disk 0 and member disk 2 to restore the faulty member disk 1 according to the RAID redundancy algorithm. The data in is restored to hot spare disk 3. Hot spare disk 3 is called the associated hot spare disk of failed member disk 1. During the reconstruction of the hot spare disk, if the hot spare disk 3 is pulled out from the slot of the hot spare disk, the reconstruction of the hot spare disk will be suspended, and only part of the data in the member disk 1 will be restored to the hot spare disk 3. 3A, only part of the data in the member disk 1 is restored to the hot spare disk 3, and the shaded part in FIG. 3A represents the partial data restored to the hot spare disk 3. When the hot spare disk 3 is inserted into the slot of the member disk 1, the hot spare disk 3 is identified as a member disk, and then the remaining data in the member disk 1 will be restored to the identified member disk.

在热备盘3被从热备盘槽位上拔出时,还会创建增量数据位图。如图3B所示,在热备盘被拔出期间,即热备盘3被从热备盘槽位上拔出的拔出时刻起,至热备盘3被插入到成员盘1的成员盘槽位之间,主机向成员盘1写入的数据称为增量数据。图3B中,成员盘0和成员盘2中的小方块即代表增量数据。可以创建增量数据的存储位置,称为增量数据位图。图3B中的表格即为增量数据位图。When the hot spare disk 3 is pulled out from the hot spare disk slot, an incremental data bitmap will also be created. As shown in Figure 3B, during the period when the hot spare disk is pulled out, that is, from the moment when the hot spare disk 3 is pulled out from the hot spare disk slot, until the hot spare disk 3 is inserted into the member disk of member disk 1 Between slots, the data written by the host to member disk 1 is called incremental data. In FIG. 3B , the small squares in member disk 0 and member disk 2 represent incremental data. You can create storage locations for incremental data, known as incremental data bitmaps. The table in FIG. 3B is the incremental data bitmap.

在热备盘3被插入到成员盘1的槽位时,热备盘3被识别为成员盘,不仅会接着将成员盘1中的剩余数据恢复到识别出的成员盘中,还会将增量数据恢复到识别出的成员盘中。如图3C所示,热备盘3位于成员盘1的槽位上,不仅将增量数据恢复到热备盘3中,还将剩余数据恢复到热备盘3中,在图3C中,热备盘3中的非阴影部分表示剩余部分数据。When hot spare disk 3 is inserted into the slot of member disk 1, hot spare disk 3 is recognized as a member disk, and not only will the remaining data in member disk 1 be restored to the identified member disk, but also the additional Amount of data can be restored to the identified member disks. As shown in Figure 3C, the hot spare disk 3 is located in the slot of the member disk 1, not only restores the incremental data to the hot spare disk 3, but also restores the remaining data to the hot spare disk 3, in Figure 3C, the hot spare disk The unshaded part in the spare disk 3 represents the rest of the data.

第二种实施方式:检测到关联热备盘被插入到故障成员盘的成员槽位盘时的插入时刻,硬盘组已经完成热备盘重构。也就是说,在硬盘组热备盘重构完成后,关联热备盘被插入到故障成员盘的成员槽位盘。The second implementation manner: when it is detected that the associated hot spare disk is inserted into the member slot disk of the faulty member disk, the disk group has completed reconstruction of the hot spare disk. That is to say, after the reconstruction of the hot spare disk in the disk group is completed, the associated hot spare disk is inserted into the member slot of the failed member disk.

在第二种实施方式下,步骤23具体为:In the second implementation manner, step 23 is specifically:

在检测到所述故障成员盘从所述成员盘槽位拔出后,判断所述成员盘槽位上第一次插入的硬盘是否是所述关联热备盘;After detecting that the faulty member disk is pulled out from the member disk slot, determine whether the hard disk inserted into the member disk slot for the first time is the associated hot spare disk;

若为是,则将所述关联热备盘识别为成员盘。If yes, identify the associated hot spare disk as a member disk.

举例来讲,通常来说,硬盘组中有成员盘发生故障后,硬盘组会自动启动热备盘重构,寻找合适的热备盘,将发生故障的故障成员盘中的数据恢复到热备盘中,如果在硬盘组热备盘重构的过程中,关联热备盘被从热备盘槽位上拔出,则热备盘重构会暂停,故障成员盘中的数据仅有部分数据恢复到关联热备盘中,在关联热备盘被插入到故障成员盘的槽位时,关联热备盘被识别为成员盘,会接着将故障成员盘中的剩余数据恢复到识别出的成员盘中。For example, generally speaking, after a member disk in the disk group fails, the disk group will automatically start the reconstruction of the hot spare disk, find a suitable hot spare disk, and restore the data in the failed member disk to the hot spare disk. If the associated hot spare disk is pulled out of the hot spare disk slot during the reconstruction of the hot spare disk of the disk group, the reconstruction of the hot spare disk will be suspended, and only part of the data in the failed member disk Restore to the associated hot spare disk. When the associated hot spare disk is inserted into the slot of the failed member disk, the associated hot spare disk will be identified as a member disk, and then the remaining data in the failed member disk will be restored to the identified member disk. plate.

仍请参考图1,假设硬盘组中的成员盘1发生故障,则硬盘组会自动启动热备盘重构,通过成员盘0及成员盘2将发生故障的故障成员盘1中的数据恢复到热备盘3中。热备盘3称为故障成员盘1的关联热备盘。在热备盘重构完成后,成员盘1中的全部数据恢复到热备盘3中,如图4A所示,成员盘1中全部数据恢复到热备盘3中,图4A中用阴影部分表示恢复到热备盘3中的数据。在热备盘3被插入到成员盘1的槽位时,热备盘3被识别为成员盘,仅需将增量数据恢复到识别出的成员盘中。Still referring to Figure 1, assuming that member disk 1 in the disk group fails, the disk group will automatically start hot spare disk reconstruction, and recover the data in the failed member disk 1 through member disk 0 and member disk 2 to Hot spare disk 3. Hot spare disk 3 is called the associated hot spare disk of failed member disk 1. After the reconstruction of the hot spare disk is completed, all data in member disk 1 is restored to hot spare disk 3, as shown in Figure 4A, all data in member disk 1 is restored to hot spare disk 3, and the shaded part is used in Figure 4A Indicates the data restored to hot spare disk 3. When the hot spare disk 3 is inserted into the slot of the member disk 1, the hot spare disk 3 is identified as a member disk, and only incremental data needs to be restored to the identified member disk.

在热备盘3被插入到成员盘1的槽位时,热备盘3被识别为成员盘,由于热备盘重构已经完成,所以仅需将增量数据恢复到识别出的成员盘中。如图4B所示,热备盘3位于成员盘1的槽位上,仅需将增量数据恢复到热备盘3中,在图4B中,热备盘3中的阴影部分表示成员盘1中的全部数据。When hot spare disk 3 is inserted into the slot of member disk 1, hot spare disk 3 is recognized as a member disk. Since the reconstruction of the hot spare disk has been completed, it is only necessary to restore the incremental data to the identified member disk . As shown in Figure 4B, the hot spare disk 3 is located in the slot of the member disk 1, and only the incremental data needs to be restored to the hot spare disk 3. In Figure 4B, the shaded part of the hot spare disk 3 represents the member disk 1 All data in .

在上述两种实施方式中,在所述将所述关联热备盘识别为成员盘之后,所述方法还包括:当检测到备件盘被插入到所述热备盘槽位时,将所述备件盘设置为热备盘。In the above two implementation manners, after identifying the associated hot spare disk as a member disk, the method further includes: when detecting that the spare disk is inserted into the slot of the hot spare disk, The spare disk is set as a hot spare disk.

具体来讲,在将关联热备盘识别为成员盘后,可以将备件盘插入到关联热备盘的热备盘槽位,备件盘即成为热备盘。例如:在将热备盘3插入到成员盘1的槽位后,热备盘3被识别为成员盘,此时,可以将备件盘插入到热备盘3的热备盘槽位,备件盘即成为热备盘。Specifically, after the associated hot spare disk is identified as a member disk, the spare disk can be inserted into the hot spare disk slot of the associated hot spare disk, and the spare disk becomes a hot spare disk. For example: after hot spare disk 3 is inserted into the slot of member disk 1, hot spare disk 3 is identified as a member disk, at this time, the spare disk can be inserted into the hot spare disk slot of hot spare disk 3, and the spare disk It becomes a hot spare disk.

第三种实施方式:检测到关联热备盘被插入到故障成员盘的成员槽位盘时的插入时刻,硬盘组正在进行回拷。也就是说,在硬盘组回拷的过程中,关联热备盘被插入到故障成员盘的成员槽位盘。The third implementation manner: when it is detected that the associated hot spare disk is inserted into the member slot disk of the faulty member disk, the hard disk group is copying back. That is to say, during the copyback process of the disk group, the associated hot spare disk is inserted into the member slot disk of the failed member disk.

在第三种实施方式下,步骤23具体为:In the third implementation manner, step 23 is specifically:

在检测到所述故障成员盘从所述成员盘槽位拔出后,判断所述成员盘槽位上第一次插入的硬盘是否是备件盘;After detecting that the faulty member disk is pulled out from the member disk slot, determine whether the hard disk inserted into the member disk slot for the first time is a spare disk;

若为是,则启动回拷,将所述故障成员盘中的数据复制到所述备件盘中;If yes, start copyback, and copy the data in the failed member disk to the spare disk;

在所述回拷的过程中,交换所述备件盘与所述关联热备盘的位置,将所述关联热备盘插入到所述成员盘槽位,且将所述备件盘插入到所述热备盘槽位;In the process of copying back, the positions of the spare part disk and the associated hot spare disk are exchanged, the associated hot spare disk is inserted into the member disk slot, and the spare part disk is inserted into the Hot spare disk slot;

将所述关联热备盘识别为成员盘。Identify the associated hot spare disk as a member disk.

在第三种实施方式下,在所述将所述关联热备盘识别为成员盘之后,所述方法还包括:将所述备件盘设置为热备盘。In a third implementation manner, after the associated hot spare disk is identified as a member disk, the method further includes: setting the spare disk as a hot spare disk.

举例来讲,通常来说,硬盘组中有成员盘发生故障后,硬盘组会自动启动热备盘重构,寻找合适的热备盘,将发生故障的故障成员盘中的数据恢复到热备盘中,在热备盘重构完成后,如果将备件盘插入到故障成员盘的成员盘槽位,则硬盘组会自动启动重拷,将热备盘中的数据恢复到备件盘中。由于热备盘中的数据是故障成员盘中的数据,数据量大,回拷需要花费很长时间。所以可以将关联热备盘和备件盘交换位置,将关联热备盘插入到故障成员盘的成员盘槽位,而将备件盘插入到关联热备盘的热备盘槽位,这样一来,插入到故障成员盘的成员盘上的关联热备盘中已经存储了故障成员盘中的数据,仅需将增量数据,即关联热备盘被拔出期间主机写入到故障成员盘中的数据恢复到关联热备盘中即可。同时,由于备件盘被插入到关联热备盘的槽位,所以可以将备件盘设置为热备盘。For example, generally speaking, after a member disk in the disk group fails, the disk group will automatically start the reconstruction of the hot spare disk, find a suitable hot spare disk, and restore the data in the failed member disk to the hot spare disk. After the reconstruction of the hot spare disk is completed, if the spare disk is inserted into the member disk slot of the faulty member disk, the disk group will automatically start recopying, and restore the data in the hot spare disk to the spare disk. Because the data in the hot spare disk is the data in the failed member disk, the data volume is large, and copying back takes a long time. Therefore, the associated hot spare disk and the spare disk can be exchanged, and the associated hot spare disk can be inserted into the member disk slot of the faulty member disk, and the spare disk can be inserted into the hot spare disk slot of the associated hot spare disk. In this way, The data in the failed member disk has already been stored in the associated hot spare disk inserted into the member disk of the failed member disk, and only the incremental data, that is, the data written by the host to the failed member disk when the associated hot spare disk is pulled out, is required. The data can be restored to the associated hot spare disk. At the same time, since the spare part disk is inserted into the slot associated with the hot spare disk, the spare part disk can be set as a hot spare disk.

仍请参考图1,假设硬盘组中的成员盘1发生故障,则硬盘组会自动启动热备盘重构,通过成员盘0及成员盘2将发生故障的故障成员盘1中的数据恢复到热备盘3中。热备盘3称为故障成员盘1的关联热备盘。在热备盘重构完成后,成员盘1中的全部数据恢复到热备盘3中,如图5A所示,成员盘1中全部数据恢复到热备盘3中,图5A中用阴影部分表示恢复到热备盘3中的数据。在备件盘4被插入到成员盘1的槽位时,硬盘组会自动启动重拷,将热备盘3中的数据复制到备件盘4中。图5A中用黑色部分表示复制到备件盘4中的数据。Still referring to Figure 1, assuming that member disk 1 in the disk group fails, the disk group will automatically start hot spare disk reconstruction, and recover the data in the failed member disk 1 through member disk 0 and member disk 2 to Hot spare disk 3. Hot spare disk 3 is called the associated hot spare disk of failed member disk 1. After the reconstruction of the hot spare disk is completed, all the data in the member disk 1 is restored to the hot spare disk 3, as shown in Figure 5A, all the data in the member disk 1 is restored to the hot spare disk 3, and the shaded part is used in Figure 5A Indicates the data restored to hot spare disk 3. When the spare disk 4 is inserted into the slot of the member disk 1, the hard disk group will automatically start recopying, and copy the data in the hot spare disk 3 to the spare disk 4. Data copied to the spare disk 4 is indicated by a black portion in FIG. 5A.

在重拷的过程中,热备盘3与备件盘4交换位置,将热备盘3被插入到成员盘1的槽位,将备件盘1插入到热备盘3的热备盘槽位,在热备盘3被插入到成员盘1的槽位时,热备盘3被识别为成员盘,仅需将增量数据恢复到识别出的成员盘中。During the recopying process, the hot spare disk 3 and the spare disk 4 are swapped, the hot spare disk 3 is inserted into the slot of the member disk 1, and the spare disk 1 is inserted into the hot spare disk slot of the hot spare disk 3, When the hot spare disk 3 is inserted into the slot of the member disk 1, the hot spare disk 3 is identified as a member disk, and only incremental data needs to be restored to the identified member disk.

在热备盘3被插入到成员盘1的槽位时,热备盘3被识别为成员盘,由于热备盘重构已经完成,所以仅需将增量数据恢复到识别出的成员盘中。如图5B所示,热备盘3位于成员盘1的槽位上,仅需将增量数据恢复到热备盘3中,在图5B中,热备盘3中的阴影部分表示成员盘1中的全部数据,备件盘4位于热备盘3的槽位上,被设置为热备盘。When hot spare disk 3 is inserted into the slot of member disk 1, hot spare disk 3 is recognized as a member disk. Since the reconstruction of the hot spare disk has been completed, it is only necessary to restore the incremental data to the identified member disk . As shown in Figure 5B, the hot spare disk 3 is located in the slot of the member disk 1, and only the incremental data needs to be restored to the hot spare disk 3. In Figure 5B, the shaded part of the hot spare disk 3 represents the member disk 1 All the data in , the spare disk 4 is located in the slot of the hot spare disk 3, and is set as the hot spare disk.

在上述三种实施方式中,步骤23具体为:In the above three implementation manners, step 23 is specifically:

判断所述关联热备盘是否在自所述拔出时刻起的预定时间内被插入到所述成员盘槽位;judging whether the associated hot spare disk is inserted into the member disk slot within a predetermined time from the moment of pulling out;

若为是,则将所述关联热备盘识别为成员盘,其中,所述预定时间为所述硬盘组设定的有效换盘时间。If yes, the associated hot spare disk is identified as a member disk, wherein the predetermined time is an effective disk replacement time set by the hard disk group.

具体来讲,在关联热备盘被拔出后,只有在预定时间,即硬盘组设定的有效换盘时间内插入到故障成员盘的成员盘槽位,才会将关联热备盘识别为成员盘。如果关联热备盘被拔出后,长时间未检测到关联热备盘插入到故障成员盘的成员盘槽位,则为了防止硬盘组降级,会寻找新的热备盘进行热备盘重构。避免硬盘组一直等待关联热备盘插入到故障成员盘的成员盘槽位。Specifically, after the associated hot spare disk is pulled out, the associated hot spare disk will be identified as member disk. If it is not detected that the associated hot spare disk is inserted into the member disk slot of the failed member disk for a long time after the associated hot spare disk is pulled out, in order to prevent the disk group from degrading, a new hot spare disk will be searched for hot spare disk reconstruction . Prevent the disk group from waiting for the associated hot spare disk to be inserted into the member disk slot of the failed member disk.

本发明实施例提供的信息处理方法,在硬盘组重构过程中,或者是重构完成,或者是回拷过程中,将发生故障的故障成员盘的关联热备盘插入到故障成员盘的成员盘槽位后,被识别为成员盘,能够立即承担故障成员盘的工作。相对于热备盘重构,只需将增量数据恢复到识别出的成员盘中,无需等待备件盘插入到故障成员盘的成员盘槽位后,进行回拷,节省了回拷时间。相对于就地重构,无需等待备件盘插入到故障成员盘的成员盘槽位,只需将关联热备盘插入到故障成员盘的成员盘槽位,减少了硬盘组处于降级状态的时间。相对于换盘重构,未改变硬盘组的成员盘的位置分布,不影响客户物理硬盘规划。如果误将被键盘插入到故障成员盘的成员盘槽位,不必等待回拷完成,可以直接将备件盘与关联热备盘交换位置,然后将增量数据恢复到关联热备盘中即可。The information processing method provided by the embodiment of the present invention inserts the associated hot spare disk of the faulty member disk into the member After the disk slot is set, it is recognized as a member disk and can immediately take over the work of the failed member disk. Compared with hot spare disk reconstruction, only the incremental data needs to be restored to the identified member disk, and there is no need to wait for the spare disk to be inserted into the member disk slot of the faulty member disk before copying back, saving copyback time. Compared with in-place reconstruction, there is no need to wait for the spare disk to be inserted into the member disk slot of the faulty member disk, and only need to insert the associated hot spare disk into the member disk slot of the faulty member disk, which reduces the time that the disk group is in the degraded state. Compared with disk replacement and reconstruction, the location and distribution of the member disks of the disk group are not changed, and the physical disk planning of customers is not affected. If the keyboard is inserted into the member disk slot of the faulty member disk by mistake, you can directly exchange the spare disk with the associated hot spare disk without waiting for the copyback to complete, and then restore the incremental data to the associated hot spare disk.

基于同一发明构思,本发明实施例还提供一种处理装置,请参考图6,图6为本发明实施例提供的处理装置的模块图。图6所示的处理装置涉及到的术语的含义以及具体实现,可以参考前述图1至图5以及实施例的相关描述。Based on the same inventive concept, an embodiment of the present invention further provides a processing device, please refer to FIG. 6 , which is a block diagram of the processing device provided by the embodiment of the present invention. For the meanings and specific implementations of the terms involved in the processing device shown in FIG. 6 , reference may be made to the aforementioned FIGS. 1 to 5 and related descriptions of the embodiments.

请参考图6,信息处理装置60包括:Please refer to FIG. 6, the information processing device 60 includes:

热备盘重构模块61,用于当检测到硬盘组中存在发生故障的故障成员盘时,启动热备盘重构,将所述故障成员盘中的数据恢复到与所述故障成员盘关联的关联热备盘中,其中,所述关联热备盘位于热备盘槽位中,所述故障成员盘位于成员盘槽位中;The hot spare disk reconstruction module 61 is used to start the reconstruction of the hot spare disk when it is detected that there is a failed member disk in the hard disk group, and restore the data in the failed member disk to the data associated with the failed member disk. In the associated hot spare disk, the associated hot spare disk is located in the slot of the hot spare disk, and the failed member disk is located in the slot of the member disk;

位图创建模块62,用于当检测到所述关联热备盘从所述热备盘槽位被拔出时,创建增量数据位图;A bitmap creation module 62, configured to create an incremental data bitmap when it is detected that the associated hot spare disk is pulled out from the hot spare disk slot;

处理模块63,用于当检测到所述关联热备盘被插入到所述成员盘槽位时,将所述关联热备盘识别为成员盘;A processing module 63, configured to identify the associated hot spare disk as a member disk when it is detected that the associated hot spare disk is inserted into the slot of the member disk;

增量数据重构模块64,用于根据所述增量数据位图,将增量数据重构到所述成员盘中,其中,所述增量数据位图用于记录自所述关联热备盘从所述热备盘槽位被拔出的拔出时刻起至所述关联热备盘被插入到所述成员盘槽位的插入时刻之间,主机向所述故障成员盘写入的所述增量数据的存储位置。Incremental data reconstruction module 64, configured to reconstruct incremental data into the member disk according to the incremental data bitmap, wherein the incremental data bitmap is used to record from the associated hot standby Between the time when the disk is pulled out from the hot spare disk slot and the insertion time when the associated hot spare disk is inserted into the member disk slot, all data written by the host to the failed member disk The storage location of the incremental data mentioned above.

可选的,处理装置60还包括:Optionally, the processing device 60 also includes:

重构进度确定模块,用于在所述将增量数据恢复到所述成员盘中之后,确定所述热备盘重构的重构进度,所述重构进度表征在所述拔出时刻,所述关联热备盘中的数据量占所述故障成员盘中的数据量的比例;A reconstruction progress determination module, configured to determine the reconstruction progress of the hot spare disk reconstruction after the incremental data is restored to the member disk, the reconstruction progress indicates that at the pulling time, The ratio of the amount of data in the associated hot spare disk to the amount of data in the faulty member disk;

重构模块,用于若所述重构进度表征所述故障成员盘中只有部分数据已重构到所述关联热备盘中,则将所述故障成员盘中的除所述部分数据外的剩余数据重构到所述成员盘中。a reconstruction module, configured to, if the reconstruction progress indicates that only part of the data in the faulty member disk has been reconstructed into the associated hot spare disk, The remaining data is reconstructed to the member disk.

可选的,所述处理模块63具体用于:Optionally, the processing module 63 is specifically configured to:

在检测到所述故障成员盘从所述成员盘槽位拔出后,判断所述成员盘槽位上第一次插入的硬盘是否是所述关联热备盘;After detecting that the faulty member disk is pulled out from the member disk slot, determine whether the hard disk inserted into the member disk slot for the first time is the associated hot spare disk;

若为是,则将所述关联热备盘识别为成员盘。If yes, identify the associated hot spare disk as a member disk.

结合以上各实施例,所述处理装置还包括:In combination with the above embodiments, the processing device further includes:

第一热备盘设置单元,用于在所述将所述关联热备盘识别为成员盘之后,且当检测到备件盘被插入到所述热备盘槽位时,将所述备件盘设置为热备盘。The first hot spare disk setting unit is configured to set the spare disk after the associated hot spare disk is identified as a member disk and when it is detected that the spare disk is inserted into the hot spare disk slot It is a hot spare disk.

可选的,所述处理模块63具体用于:Optionally, the processing module 63 is specifically configured to:

在检测到所述故障成员盘从所述成员盘槽位拔出后,判断所述成员盘槽位上第一次插入的硬盘是否是备件盘;After detecting that the faulty member disk is pulled out from the member disk slot, determine whether the hard disk inserted into the member disk slot for the first time is a spare disk;

若为是,则启动回拷,将所述故障成员盘中的数据复制到所述备件盘中;If yes, start copyback, and copy the data in the failed member disk to the spare disk;

在所述回拷的过程中,交换所述备件盘与所述关联热备盘的位置,将所述关联热备盘插入到所述成员盘槽位,且将所述备件盘插入到所述热备盘槽位;In the process of copying back, the positions of the spare part disk and the associated hot spare disk are exchanged, the associated hot spare disk is inserted into the member disk slot, and the spare part disk is inserted into the Hot spare disk slot;

将所述关联热备盘识别为成员盘。Identify the associated hot spare disk as a member disk.

可选的,所述处理装置还包括:Optionally, the processing device also includes:

第二热备盘设置模块,用于在所述将所述关联热备盘识别为成员盘之后,将所述备件盘设置为热备盘。The second hot spare disk setting module is configured to set the spare disk as a hot spare disk after the associated hot spare disk is identified as a member disk.

结合以上各实施例,所述处理模块63具体用于:In combination with the above embodiments, the processing module 63 is specifically used for:

判断所述关联热备盘是否在自所述拔出时刻起的预定时间内被插入到所述成员盘槽位;judging whether the associated hot spare disk is inserted into the member disk slot within a predetermined time from the moment of pulling out;

若为是,则将所述关联热备盘识别为成员盘,其中,所述预定时间为所述硬盘组设定的有效换盘时间。If yes, the associated hot spare disk is identified as a member disk, wherein the predetermined time is an effective disk replacement time set by the hard disk group.

前述图1-图5实施例中的信息处理方法中的各种变化方式和具体实例同样适用于本实施例的处理装置,通过前述对信息处理方法的详细描述,本领域技术人员可以清楚的知道本实施例中处理装置的实施方法,所以为了说明书的简洁,在此不再详述。The various variations and specific examples of the information processing method in the aforementioned embodiments of Figures 1-5 are also applicable to the processing device of this embodiment, and those skilled in the art can clearly understand through the aforementioned detailed description of the information processing method The implementation method of the processing device in this embodiment is not described in detail here for the sake of brevity.

基于同一发明构思,本发明实施例还提供一种电子设备,请参考图7,图7为本发明实施例提供的电子设备的硬件结构示意图。电子设备700包括:Based on the same inventive concept, an embodiment of the present invention further provides an electronic device, please refer to FIG. 7 , which is a schematic diagram of a hardware structure of the electronic device provided by an embodiment of the present invention. Electronic device 700 includes:

处理器71、总线70和存储器72。processor 71 , bus 70 and memory 72 .

处理器71用于:Processor 71 is used for:

当检测到硬盘组中存在发生故障的故障成员盘时,启动热备盘重构,将所述故障成员盘中的数据恢复到与所述故障成员盘关联的关联热备盘中,其中,所述关联热备盘位于热备盘槽位中,所述故障成员盘位于成员盘槽位中;When it is detected that there is a faulty member disk that has failed in the hard disk group, start hot spare disk reconstruction, and restore the data in the faulty member disk to the associated hot spare disk associated with the faulty member disk, wherein the The associated hot spare disk is located in the slot of the hot spare disk, and the failed member disk is located in the slot of the member disk;

当检测到所述关联热备盘从所述热备盘槽位被拔出时,创建增量数据位图;When it is detected that the associated hot spare disk is pulled out from the hot spare disk slot, an incremental data bitmap is created;

当检测到所述关联热备盘被插入到所述成员盘槽位时,将所述关联热备盘识别为成员盘;When detecting that the associated hot spare disk is inserted into the member disk slot, identifying the associated hot spare disk as a member disk;

根据所述增量数据位图,将增量数据重构到所述成员盘中,其中,所述增量数据位图用于记录自所述关联热备盘从所述热备盘槽位被拔出的拔出时刻起至所述关联热备盘被插入到所述成员盘槽位的插入时刻之间,主机向所述故障成员盘写入的所述增量数据的存储位置。According to the incremental data bitmap, the incremental data is reconstructed into the member disk, wherein the incremental data bitmap is used for recording from the associated hot spare disk from the slot of the hot spare disk The storage location of the incremental data written by the host to the failed member disk between the time of unplugging and the time when the associated hot spare disk is inserted into the slot of the member disk.

可选的,所述处理器71还用于:Optionally, the processor 71 is also used for:

在所述将增量数据恢复到所述成员盘中之后,确定所述热备盘重构的重构进度,所述重构进度表征在所述拔出时刻,所述关联热备盘中的数据量占所述故障成员盘中的数据量的比例;After the incremental data is restored to the member disk, the reconstruction progress of the hot spare disk reconstruction is determined, and the reconstruction progress represents that at the time of pulling out, the associated hot spare disk The ratio of the amount of data to the amount of data in the faulty member disk;

若所述重构进度表征所述故障成员盘中只有部分数据已重构到所述关联热备盘中,则将所述故障成员盘中的除所述部分数据外的剩余数据重构到所述成员盘中。If the reconstruction progress indicates that only part of the data in the faulty member disk has been reconstructed into the associated hot spare disk, reconstruct the remaining data in the faulty member disk except for the part of data into the associated hot spare disk. The above member disk.

可选的,所述处理器71具体用于:Optionally, the processor 71 is specifically configured to:

在检测到所述故障成员盘从所述成员盘槽位拔出后,判断所述成员盘槽位上第一次插入的硬盘是否是所述关联热备盘;After detecting that the faulty member disk is pulled out from the member disk slot, determine whether the hard disk inserted into the member disk slot for the first time is the associated hot spare disk;

若为是,则将所述关联热备盘识别为成员盘。If yes, identify the associated hot spare disk as a member disk.

可选的,所述处理器71用于:Optionally, the processor 71 is used for:

在所述将所述关联热备盘识别为成员盘之后,且当检测到备件盘被插入到所述热备盘槽位时,将所述备件盘设置为热备盘。After the associated hot spare disk is identified as a member disk, and when it is detected that the spare disk is inserted into the slot of the hot spare disk, the spare disk is set as a hot spare disk.

可选的,所述处理器71用于:Optionally, the processor 71 is used for:

在检测到所述故障成员盘从所述成员盘槽位拔出后,判断所述成员盘槽位上第一次插入的硬盘是否是备件盘;After detecting that the faulty member disk is pulled out from the member disk slot, determine whether the hard disk inserted into the member disk slot for the first time is a spare disk;

若为是,则启动回拷,将所述故障成员盘中的数据复制到所述备件盘中;If yes, start copyback, and copy the data in the failed member disk to the spare disk;

在所述回拷的过程中,交换所述备件盘与所述关联热备盘的位置,将所述关联热备盘插入到所述成员盘槽位,且将所述备件盘插入到所述热备盘槽位;In the process of copying back, the positions of the spare part disk and the associated hot spare disk are exchanged, the associated hot spare disk is inserted into the member disk slot, and the spare part disk is inserted into the Hot spare disk slot;

将所述关联热备盘识别为成员盘。Identify the associated hot spare disk as a member disk.

可选的,所述处理器71用于:Optionally, the processor 71 is used for:

在所述将所述关联热备盘识别为成员盘之后,将所述备件盘设置为热备盘。After the associated hot spare disk is identified as a member disk, the spare disk is set as a hot spare disk.

可选的,所述处理器71用于:Optionally, the processor 71 is used for:

判断所述关联热备盘是否在自所述拔出时刻起的预定时间内被插入到所述成员盘槽位;judging whether the associated hot spare disk is inserted into the member disk slot within a predetermined time from the moment of pulling out;

若为是,则将所述关联热备盘识别为成员盘,其中,所述预定时间为所述硬盘组设定的有效换盘时间。If yes, the associated hot spare disk is identified as a member disk, wherein the predetermined time is an effective disk replacement time set by the hard disk group.

其中,在图7中,总线架构(用总线70来代表),总线70可以包括任意数量的互联的总线和桥,总线70将包括由处理器71代表的一个或多个处理器和存储器72代表的存储器的各种电路连接在一起。总线70还可以将诸如外围设备、稳压器和功率管理电路等之类的各种其他电路连接在一起,这些都是本领域所公知的,因此,本文不再对其进行进一步描述。Wherein, in FIG. 7, the bus architecture (represented by bus 70), bus 70 may include any number of interconnected buses and bridges, and bus 70 will include one or more processors represented by processor 71 and memory 72. The various circuits of the memory are connected together. The bus 70 may also connect together various other circuits, such as peripherals, voltage regulators, and power management circuits, etc., which are well known in the art and thus will not be further described herein.

处理器71负责管理总线70和通常的处理,而存储器72可以被用于存储处理器71在执行操作时所使用的数据和执行的代码。The processor 71 is responsible for managing the bus 70 and general processing, while the memory 72 may be used to store data and execute codes used by the processor 71 when performing operations.

本实施例的电子设备700可以执行前述图1至图5实施例中的信息处理方法中的各种变化方式和具体实例,通过前述对信息处理方法的详细描述,本领域技术人员可以清楚的知道本实施例中电子设备的实施方法,所以为了说明书的简洁,在此不再详述。The electronic device 700 of this embodiment can implement various variations and specific examples of the information processing method in the foregoing embodiments in FIGS. 1 to 5 . Those skilled in the art can clearly understand the The implementation method of the electronic device in this embodiment is not described in detail here for the sake of brevity.

本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present invention may be provided as methods, systems, or computer program products. Accordingly, the present invention can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) having computer-usable program code embodied therein.

本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It should be understood that each procedure and/or block in the flowchart and/or block diagram, and a combination of procedures and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions may be provided to a general purpose computer, special purpose computer, embedded processor, or processor of other programmable data processing equipment to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing equipment produce a An apparatus for realizing the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.

这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the instructions The device realizes the function specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.

这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device, causing a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process, thereby The instructions provide steps for implementing the functions specified in the flow chart or blocks of the flowchart and/or the block or blocks of the block diagrams.

尽管已描述了本发明的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例做出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本发明范围的所有变更和修改。While preferred embodiments of the present invention have been described, additional changes and modifications can be made to these embodiments by those skilled in the art once the basic inventive concept is appreciated. Therefore, it is intended that the appended claims be construed to cover the preferred embodiment as well as all changes and modifications which fall within the scope of the invention.

显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and equivalent technologies thereof, the present invention also intends to include these modifications and variations.

Claims (14)

1. a kind of information processing method is it is characterised in that methods described includes:
When detect there is the fault member disk breaking down in hard disk groups when, start HotSpare disk reconstruct, by described fault member To in the association HotSpare disk associating with described fault member disk, wherein, described association HotSpare disk is located at heat to data recovery in disk In standby dish groove position, described fault member disk is located in member's dish groove position;
When detect described association HotSpare disk be pulled out from described hot standby dish groove position when, create incremental data bitmap;
When detect described association HotSpare disk be inserted into described member dish groove position when, by described association HotSpare disk be identified as member Disk;
According to described incremental data bitmap, incremental data is reconfigured in described member disk, wherein, described incremental data bitmap is used In record from described association HotSpare disk from described hot standby dish groove position be pulled out extract constantly to described association HotSpare disk inserted Enter between the insertion moment of described member's dish groove position, the storage of the described incremental data that main frame writes to described fault member disk Position.
2. the method for claim 1 it is characterised in that return in described member disk it described by incremental data Afterwards, methods described also includes:
Determine the reconstruct progress of described HotSpare disk reconstruct, described reconstruct progress be characterized in described in extract the moment, described association is hot standby Data volume in disk accounts for the ratio of the data volume in described fault member disk;
If described reconstruct progress characterizes only partial data in described fault member disk and has been reconfigured in described association HotSpare disk, The remaining data in addition to described partial data in described fault member disk is reconfigured in described member disk.
3. the method for claim 1 it is characterised in that described when detect described association HotSpare disk be inserted into described During member dish groove position, described association HotSpare disk is identified as member disk, particularly as follows:
Detecting after described fault member disk extracts from described member's dish groove position, judging to insert for the first time on described member's dish groove position Whether the hard disk entering is described association HotSpare disk;
If it has, then described association HotSpare disk is identified as member disk.
4. the method as described in claim arbitrary in claim 1-3 is it is characterised in that identify described association HotSpare disk described After member disk, methods described also includes:
When spare part disk is detected and being inserted into described hot standby dish groove position, described spare part disk is set to HotSpare disk.
5. the method for claim 1 it is characterised in that described when detect described association HotSpare disk be inserted into described During member dish groove position, described association HotSpare disk is identified as member disk, particularly as follows:
Detecting after described fault member disk extracts from described member's dish groove position, judging to insert for the first time on described member's dish groove position Whether the hard disk entering is spare part disk;
If it has, then start back copying, by the data duplication in described fault member disk in described spare part disk;
During copying, exchange the position of described spare part disk and described association HotSpare disk at described go back to, by described association HotSpare disk It is inserted into described member's dish groove position, and described spare part disk is inserted into described hot standby dish groove position;
Described association HotSpare disk is identified as member disk.
6. method as claimed in claim 5 it is characterised in that described by described association HotSpare disk be identified as member disk it Afterwards, methods described also includes:
Described spare part disk is set to HotSpare disk.
7. the method as described in claim arbitrary in claim 1-3,5,6 is it is characterised in that described hot when described association is detected When standby disk is inserted into described member dish groove position, described association HotSpare disk is identified as member disk, particularly as follows:
Judge whether described association HotSpare disk is inserted into described member's dish groove within the scheduled time from described extracting constantly Position;
If it has, then described association HotSpare disk is identified as member disk, wherein, the described scheduled time is that described hard disk groups set Effectively change the disk time.
8. a kind of processing meanss are it is characterised in that described processing meanss include:
HotSpare disk reconstructed module, for when detect there is the fault member disk breaking down in hard disk groups when, start HotSpare disk Reconstruct, by the data recovery in described fault member disk in the association HotSpare disk associating with described fault member disk, wherein, institute State association HotSpare disk to be located in hot standby dish groove position, described fault member disk is located in member's dish groove position;
Bitmap creation module, for when detect described association HotSpare disk be pulled out from described hot standby dish groove position when, create increment Data bitmap;
Processing module, for when detect described association HotSpare disk be inserted into described member dish groove position when, will described association heat Standby disk is identified as member disk;
Incremental data reconstructed module, for according to described incremental data bitmap, incremental data being reconfigured in described member disk, its In, described incremental data bitmap be used for record from described association HotSpare disk from described hot standby dish groove position be pulled out extract constantly It is inserted between the insertion moment of described member's dish groove position to described association HotSpare disk, main frame writes to described fault member disk Described incremental data storage location.
9. processing meanss as claimed in claim 8 are it is characterised in that described processing meanss also include:
Reconstruct progress determining module, for described incremental data is returned in described member disk after, determine described hot standby Disk reconstruct reconstruct progress, described reconstruct progress be characterized in described in extract the moment, the data volume in described association HotSpare disk accounts for institute State the ratio of the data volume in fault member disk;
Reconstructed module, if characterize only partial data in described fault member disk for described reconstruct progress be reconfigured to described pass In connection HotSpare disk, then the remaining data in addition to described partial data in described fault member disk is reconfigured to described member disk In.
10. processing meanss as claimed in claim 8 it is characterised in that described processing module specifically for:
Detecting after described fault member disk extracts from described member's dish groove position, judging to insert for the first time on described member's dish groove position Whether the hard disk entering is described association HotSpare disk;
If it has, then described association HotSpare disk is identified as member disk.
11. processing meanss as described in claim arbitrary in claim 8-10 are it is characterised in that described processing meanss also include:
First HotSpare disk arranging unit, for described described association HotSpare disk is identified as member disk after, and when detecting When spare part disk is inserted into described hot standby dish groove position, described spare part disk is set to HotSpare disk.
12. processing meanss as claimed in claim 8 it is characterised in that described processing module specifically for:
Detecting after described fault member disk extracts from described member's dish groove position, judging to insert for the first time on described member's dish groove position Whether the hard disk entering is spare part disk;
If it has, then start back copying, by the data duplication in described fault member disk in described spare part disk;
During copying, exchange the position of described spare part disk and described association HotSpare disk at described go back to, by described association HotSpare disk It is inserted into described member's dish groove position, and described spare part disk is inserted into described hot standby dish groove position;
Described association HotSpare disk is identified as member disk.
13. processing meanss as claimed in claim 12 are it is characterised in that described processing meanss also include:
Second HotSpare disk setup module, for described by described association HotSpare disk be identified as member disk after, by described spare part Disk is set to HotSpare disk.
14. processing meanss as described in claim arbitrary in claim 8-10,12,13 are it is characterised in that described processing module has Body is used for:
Judge whether described association HotSpare disk is inserted into described member's dish groove within the scheduled time from described extracting constantly Position;
If it has, then described association HotSpare disk is identified as member disk, wherein, the described scheduled time is that described hard disk groups set Effectively change the disk time.
CN201410712454.1A 2014-11-28 2014-11-28 Information processing method and device Active CN104461791B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410712454.1A CN104461791B (en) 2014-11-28 2014-11-28 Information processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410712454.1A CN104461791B (en) 2014-11-28 2014-11-28 Information processing method and device

Publications (2)

Publication Number Publication Date
CN104461791A CN104461791A (en) 2015-03-25
CN104461791B true CN104461791B (en) 2017-02-01

Family

ID=52907887

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410712454.1A Active CN104461791B (en) 2014-11-28 2014-11-28 Information processing method and device

Country Status (1)

Country Link
CN (1) CN104461791B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105117172B (en) * 2015-08-31 2019-04-02 深圳神州数码云科数据技术有限公司 A kind of disk array history falls the store method of disk record
CN105302668B (en) * 2015-10-21 2018-09-25 上海爱数信息技术股份有限公司 A kind of method of block device data access performance in optimization object storage system
CN106126378A (en) 2016-06-29 2016-11-16 华为技术有限公司 A kind of trigger the method and device that disk array is reconstructed
CN108319523A (en) * 2017-12-13 2018-07-24 创新科存储技术(深圳)有限公司 A kind of adding method of storage HotSpare disk
CN108827145A (en) * 2018-06-20 2018-11-16 杭州吉翱世联土地勘测规划设计有限公司 A kind of rural holding house site area measurement method and system
CN109901953B (en) * 2019-02-14 2022-07-08 新华三技术有限公司成都分公司 Data reconstruction method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5210866A (en) * 1990-09-12 1993-05-11 Storage Technology Corporation Incremental disk backup system for a dynamically mapped data storage subsystem
CN1940849A (en) * 2005-09-30 2007-04-04 富士通株式会社 RAID system and rebuild/copy back processing method thereof
CN101840311A (en) * 2009-12-30 2010-09-22 创新科存储技术有限公司 Self-repairing method suitable for RAID system and RAID system
CN101980137A (en) * 2010-10-19 2011-02-23 成都市华为赛门铁克科技有限公司 Inexpensive Disk Redundant Array Reconfiguration Method, Device and System
CN103049400A (en) * 2012-12-27 2013-04-17 华为技术有限公司 Disk reconfiguration method and disk reconfiguration device
CN103513942A (en) * 2013-10-21 2014-01-15 华为技术有限公司 Method and device for reconstructing independent redundancy array of inexpensive disks

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5210866A (en) * 1990-09-12 1993-05-11 Storage Technology Corporation Incremental disk backup system for a dynamically mapped data storage subsystem
CN1940849A (en) * 2005-09-30 2007-04-04 富士通株式会社 RAID system and rebuild/copy back processing method thereof
CN101840311A (en) * 2009-12-30 2010-09-22 创新科存储技术有限公司 Self-repairing method suitable for RAID system and RAID system
CN101980137A (en) * 2010-10-19 2011-02-23 成都市华为赛门铁克科技有限公司 Inexpensive Disk Redundant Array Reconfiguration Method, Device and System
CN103049400A (en) * 2012-12-27 2013-04-17 华为技术有限公司 Disk reconfiguration method and disk reconfiguration device
CN103513942A (en) * 2013-10-21 2014-01-15 华为技术有限公司 Method and device for reconstructing independent redundancy array of inexpensive disks

Also Published As

Publication number Publication date
CN104461791A (en) 2015-03-25

Similar Documents

Publication Publication Date Title
US9189311B2 (en) Rebuilding a storage array
CN104461791B (en) Information processing method and device
US10146640B2 (en) Recovering a volume table and data sets
US9715436B2 (en) System and method for managing raid storage system having a hot spare drive
CN100573464C (en) Recover device, the system and method for multivolume data set
US9594652B1 (en) Systems and methods for decreasing RAID rebuilding time
US9600375B2 (en) Synchronized flashcopy backup restore of a RAID protected array
JPWO2006123416A1 (en) Disk failure recovery method and disk array device
US10324810B2 (en) Method and apparatus for redundant array of independent disks with raid metadata and sub-raid metadata stored using different raid algorithms
CN103513942B (en) The reconstructing method of raid-array and device
CN109086425B (en) Data processing method and device for database
WO2014132373A1 (en) Storage system and memory device fault recovery method
US9529674B2 (en) Storage device management of unrecoverable logical block addresses for RAID data regeneration
CN102999564B (en) Write the method for data, device and equipment
WO2013118189A1 (en) Storage device replacement method, and storage sub-system adopting storage device replacement method
CN105593829A (en) Excluding file system objects from raw image backups
WO2014075586A1 (en) Method and device for automatically recovering storage of jbod array
US20070234107A1 (en) Dynamic storage data protection
CN102609223B (en) Redundant array of independent disk system and initializing method thereof
CN105183583A (en) Method for data reconstruction of disk array, and disk array system
US20120158652A1 (en) System and method for ensuring consistency in raid storage array metadata
US9286163B2 (en) Data recovery scheme based on data backup status
CN106933707B (en) Data recovery method and system of data storage device based on raid technology
CN104978241A (en) Data recovery method and apparatus for COW type file system
CN104407806A (en) Method and device for revising hard disk information of redundant array group of independent disk (RAID)

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant