技术领域Technical field
本申请涉及计算机技术领域,尤其是涉及一种硬盘数据处理方法、装置、计算机设备及存储介质。The present application relates to the field of computer technology, and in particular to a hard disk data processing method, device, computer equipment and storage medium.
背景技术Background technique
目前,固态硬盘(Solid State Disk,SSD)设计中将硬盘划分为众多独立的物理单元,用于存储数据。硬盘数据的读写异常分为两种情况,一些是硬盘的物理性损坏造成的,一些是硬盘的逻辑性损坏造成的。一般来说,如果是物理性损坏造成的硬盘损伤,只能报废整个硬盘,这对用户来说是不小的损失,尤其是大容量硬盘。而如果不更换硬盘,继续对发生物理性损坏的硬盘中的数据进行读写操作,会严重影响固态硬盘的性能和稳定性。Currently, the design of Solid State Disk (SSD) divides the hard disk into many independent physical units for storing data. There are two types of abnormal reading and writing of hard disk data. Some are caused by physical damage to the hard disk, and some are caused by logical damage to the hard disk. Generally speaking, if the hard drive is damaged due to physical damage, the entire hard drive can only be scrapped, which is a considerable loss to the user, especially for large-capacity hard drives. If you do not replace the hard drive and continue to read and write data in the physically damaged hard drive, the performance and stability of the solid-state drive will be seriously affected.
发明内容Contents of the invention
有鉴于此,本申请提供一种硬盘数据处理方法、计算机设备及存储介质,以解决硬盘发生物理性损坏时数据的读写问题。通过将物理性损坏的区域屏蔽起来,仅使用硬盘未受损的部分,可以在短期内存储一下数据,能够解决不少用户的问题。In view of this, this application provides a hard disk data processing method, computer equipment and storage medium to solve the problem of data reading and writing when the hard disk is physically damaged. By shielding physically damaged areas and using only the undamaged parts of the hard drive, data can be stored in the short term, which can solve many users' problems.
本申请的第一方面提供一种硬盘数据处理方法,所述方法包括:The first aspect of this application provides a hard disk data processing method, which method includes:
监测硬盘的物理单元是否发生损坏;Monitor the physical unit of the hard disk for damage;
若监测到所述物理单元发生物理性损坏时,对所述物理单元进行区域隔离;If it is detected that the physical unit is physically damaged, perform regional isolation on the physical unit;
在所述硬盘中为所述物理单元分配备用单元,并将所述物理单元中的数据备份至所述备用单元;Allocate a spare unit to the physical unit in the hard disk, and back up the data in the physical unit to the spare unit;
将所述物理单元的逻辑地址及所述备用单元的物理地址关联存储至区域管理表中,所述区域管理表存储于所述硬盘的控制芯片中;Store the logical address of the physical unit and the physical address of the spare unit in a region management table, and the region management table is stored in the control chip of the hard disk;
当接收到访问请求时,根据所述区域管理表确定所述访问请求对应的目标物理地址,并将所述访问请求映射到所述目标物理地址对应的目标数据。When an access request is received, a target physical address corresponding to the access request is determined according to the area management table, and the access request is mapped to target data corresponding to the target physical address.
在一个可选的实施方式中,所述方法还包括:In an optional implementation, the method further includes:
当监测到所述物理单元没有发生损坏时,获取所述物理单元的访问热度;When it is detected that the physical unit is not damaged, obtain the access heat of the physical unit;
判断所述访问热度是否大于预设访问热度阈值;Determine whether the access popularity is greater than a preset access popularity threshold;
当所述访问热度大于预设访问热度阈值时,预测所述物理单元发生物理性损坏的概率;When the access heat is greater than the preset access heat threshold, predict the probability of physical damage to the physical unit;
当预测所述物理单元发生物理性损坏的概率超过预设概率阈值时,在所述硬盘中为所述物理单元分配备用单元,并将所述物理单元中的数据备份至所述备用单元。When the predicted probability of physical damage to the physical unit exceeds a preset probability threshold, a spare unit is allocated to the physical unit in the hard disk, and the data in the physical unit is backed up to the spare unit.
在一个可选的实施方式中,所述预测所述物理单元发生物理性损坏的概率包括:In an optional implementation, the predicting the probability of physical damage to the physical unit includes:
确定所述物理单元的型号;Determine the model of the physical unit;
收集与所述型号相似的目标物理单元相关的历史故障数据;Collect historical failure data related to target physical units similar to the model described;
获取所述历史故障数据中故障类型为物理性损坏类型的目标历史故障数据;Obtain target historical fault data whose fault type is physical damage type in the historical fault data;
基于所述目标历史故障数据对应的故障发生时间得到物理性损坏故障概率时间分布图;Based on the fault occurrence time corresponding to the target historical fault data, a physical damage fault probability time distribution diagram is obtained;
利用时间序列模型基于所述物理性损坏故障概率时间分布图预测指定时间段内所述物理单元发生物理性损坏的概率。A time series model is used to predict the probability of physical damage to the physical unit within a specified time period based on the physical damage failure probability time distribution diagram.
在一个可选的实施方式中,所述方法还包括:In an optional implementation, the method further includes:
当所述访问请求为更新所述目标数据时,获取所述访问请求中的更新数据;When the access request is to update the target data, obtain the update data in the access request;
根据所述控制芯片的缓冲存储器的空间余量对所述更新数据进行切分,得到多个更新子数据;Segment the update data according to the space margin of the buffer memory of the control chip to obtain multiple update sub-data;
将所述多个更新子数据逐个缓存至所述控制芯片的缓冲存储器中,并在每次缓存一个更新子数据后获取所述缓冲存储器的剩余空间余量;Cache the plurality of update sub-data into the buffer memory of the control chip one by one, and obtain the remaining space margin of the buffer memory after each update sub-data is cached;
当所述剩余空间余量达到第一预设阈值时,根据所述缓冲存储器中缓存的更新子数据对所述目标数据进行更新。When the remaining space reaches the first preset threshold, the target data is updated according to the update sub-data cached in the buffer memory.
在一个可选的实施方式中,所述根据所述控制芯片的缓冲存储器的空间余量对所述更新数据进行切分,得到多个更新子数据包括:In an optional implementation, dividing the update data according to the space margin of the buffer memory of the control chip to obtain multiple update sub-data includes:
根据所述更新数据的优先级及所述缓冲存储器的空间余量,确定所述更新数据在所述缓冲存储器中的存储空间;Determine the storage space of the update data in the buffer memory according to the priority of the update data and the space margin of the buffer memory;
根据所述存储空间的空间余量对所述更新数据进行切分,得到多个更新子数据。The update data is divided according to the space margin of the storage space to obtain multiple update sub-data.
在一个可选的实施方式中,所述方法还包括:In an optional implementation, the method further includes:
当所述访问请求为读取所述目标数据时,将所述目标数据拷贝至所述缓冲存储器中;When the access request is to read the target data, copy the target data to the buffer memory;
从所述缓冲存储器中读取所述目标数据。The target data is read from the buffer memory.
在一个可选的实施方式中,所述方法还包括:In an optional implementation, the method further includes:
获取所述硬盘中发生物理性损坏的物理单元的数量;Obtain the number of physically damaged physical units in the hard disk;
当所述数量达到预设数量阈值时,生成硬盘损坏报告并将所述硬盘损坏报告发送至预设终端。When the number reaches the preset quantity threshold, a hard disk damage report is generated and the hard disk damage report is sent to the preset terminal.
本申请的第二方面提供一种硬盘数据处理装置,所述装置包括:A second aspect of the present application provides a hard disk data processing device, which includes:
单元监测模块,用于监测硬盘的物理单元是否发生损坏;The unit monitoring module is used to monitor whether the physical unit of the hard disk is damaged;
区域隔离模块,用于在监测到所述物理单元发生物理性损坏时,对所述物理单元进行区域隔离;A regional isolation module, used to perform regional isolation on the physical unit when physical damage to the physical unit is detected;
备用分配模块,用于在所述硬盘中为所述物理单元分配备用单元,并将所述物理单元中的数据备份至所述备用单元;A spare allocation module, configured to allocate a spare unit to the physical unit in the hard disk, and back up the data in the physical unit to the spare unit;
更新映射模块,用于将所述物理单元的逻辑地址及所述备用单元的物理地址关联存储至区域管理表中,所述区域管理表存储于所述硬盘的控制芯片中;Update mapping module, configured to associate and store the logical address of the physical unit and the physical address of the spare unit into a regional management table, and the regional management table is stored in the control chip of the hard disk;
请求处理模块,用于当接收到访问请求时,根据所述区域管理表确定所述访问请求对应的目标物理地址,并将所述访问请求映射到所述目标物理地址对应的目标数据。A request processing module, configured to, when receiving an access request, determine a target physical address corresponding to the access request according to the area management table, and map the access request to target data corresponding to the target physical address.
本申请的第三方面提供一种计算机设备,包括存储器、处理器以及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现所述的硬盘数据处理方法的步骤。A third aspect of the present application provides a computer device, including a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the computer program, the computer program is implemented. The steps of hard disk data processing method.
本申请的第四方面提供一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现所述的硬盘数据处理方法的步骤。A fourth aspect of the present application provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the hard disk data processing method are implemented.
本申请实施例提供的硬盘数据处理方法、装置、计算机设备及存储介质,通过实时检测物理单元的损坏情况,若监测到某个物理单元发生物理性损坏,对所述物理单元进行区域隔离并分配备用单元,将所述物理单元中的数据备份至备用单元,将备用单元的物理地址更新至区域管理表,当接收到访问请求时,根据区域管理表确定请求对应的目标物理地址,并将访问请求映射到该目标物理地址所对应的目标数据。通过对物理性损坏的物理单元分配备用单元,能够延长硬盘寿命,在将物理单元数据备份至备用单元后,将物理单元的逻辑地址及备用单元的物理地址关联存储至控制芯片的区域管理表中,避免数据的丢失,维护了固态硬盘的性能。The hard disk data processing method, device, computer equipment and storage medium provided by the embodiments of this application detect the damage of the physical unit in real time. If physical damage is detected in a certain physical unit, the physical unit is isolated and allocated. The standby unit backs up the data in the physical unit to the standby unit, updates the physical address of the standby unit to the regional management table, and when receiving an access request, determines the target physical address corresponding to the request according to the regional management table, and updates the access request The request is mapped to the target data corresponding to the target physical address. By allocating a spare unit to a physically damaged physical unit, the life of the hard disk can be extended. After backing up the physical unit data to the spare unit, the logical address of the physical unit and the physical address of the spare unit are associated and stored in the area management table of the control chip. , avoid data loss and maintain the performance of the solid state drive.
附图说明Description of the drawings
图1是本申请实施例示出的硬盘数据处理方法的流程图;Figure 1 is a flow chart of a hard disk data processing method according to an embodiment of the present application;
图2是本申请实施例示出的硬盘数据处理装置的功能模块图;Figure 2 is a functional module diagram of a hard disk data processing device shown in an embodiment of the present application;
图3是本申请实施例示出的计算机设备的结构图。FIG. 3 is a structural diagram of a computer device according to an embodiment of the present application.
具体实施方式Detailed ways
为使本申请的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述。In order to make the purpose, technical solutions and advantages of the present application clearer, the technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
本发明实施例提供的硬盘数据处理方法由计算机设备执行,相应地,硬盘数据处理装置运行于计算机设备中。The hard disk data processing method provided by the embodiment of the present invention is executed by computer equipment. Correspondingly, the hard disk data processing device runs in the computer equipment.
图1是本发明实施例一提供的硬盘数据处理方法的流程图,所述硬盘数据处理方法具体包括以下步骤。Figure 1 is a flow chart of a hard disk data processing method provided by Embodiment 1 of the present invention. The hard disk data processing method specifically includes the following steps.
S11,监测硬盘的物理单元是否发生损坏。S11, monitor whether the physical unit of the hard disk is damaged.
硬盘在设计时,可以划分成众多的独立性物理单元,每个物理单元具有唯一的标识,并通过一套管理体系对所有的物理单元进行统一的管理。可以使用坏道管理技术来对硬盘的每个物理单元进行实时监测。When designing a hard disk, it can be divided into numerous independent physical units. Each physical unit has a unique identity, and all physical units are managed uniformly through a set of management systems. Bad sector management technology can be used to monitor each physical unit of the hard disk in real time.
在监测到硬盘的某个物理单元发生损坏时,进一步监测硬盘的该物理单元是发生物理性损坏还是逻辑性损坏。如果硬盘发出异常的噪音,硬盘无法启动或没有任何反应等,则表明硬盘发生了物理性损坏。如果硬盘能够启动和正常旋转,但无法读取或写入数据,则可能是由于文件系统损坏、分区表错误或文件系统错误等逻辑问题引起的。When it is detected that a certain physical unit of the hard disk is damaged, it is further monitored whether the physical unit of the hard disk is physically damaged or logically damaged. If the hard drive makes abnormal noises, cannot start or has no response, etc., it indicates that the hard drive is physically damaged. If your hard drive boots and spins normally, but is unable to read or write data, it may be caused by a logical issue such as file system corruption, partition table error, or file system error.
当所述物理单元发生物理性损坏时,执行S12;当所述物理单元没有发生物理性损坏时,执行S13。When the physical unit is physically damaged, perform S12; when the physical unit is not physically damaged, perform S13.
S12,对所述物理单元进行区域隔离。S12, perform regional isolation on the physical unit.
发生逻辑性损坏的硬盘可以在一定程度上进行恢复,与逻辑性损坏相比,物理性损坏较为复杂,因而本申请实施例对于发生物理性损坏的物理单元,可以采用区域隔离技术进行区域隔离处理,以防止数据读取或写入,导致物理单元的进一步的损坏。A hard disk that is logically damaged can be restored to a certain extent. Compared with logical damage, physical damage is more complicated. Therefore, in the embodiment of this application, regional isolation technology can be used to perform regional isolation processing for physical units that are physically damaged. , to prevent data reading or writing from causing further damage to the physical unit.
S13,获取所述物理单元的访问热度。S13: Obtain the access popularity of the physical unit.
当所述物理单元没有发生物理性损坏时,为了保护物理单元中的重要数据,可以定期获取所述物理单元的访问热度,从而根据访问热度确定物理单元中的数据是否为重要数据,进而判断是否需要进行备份。When the physical unit is not physically damaged, in order to protect the important data in the physical unit, the access heat of the physical unit can be obtained regularly, so as to determine whether the data in the physical unit is important data based on the access heat, and then determine whether A backup is required.
可以通过记录物理单元的访问次数或者访问频率,得到物理单元的访问热度。访问次数越多或访问频率越高,访问热度越高,访问次数越少或访问频率越少,访问热度越低。The access popularity of a physical unit can be obtained by recording the number of accesses or access frequency of the physical unit. The more visits or the higher the frequency of visits, the higher the popularity of the visits. The fewer the number of visits or the less frequent the visits, the lower the popularity of the visits.
S14,判断所述访问热度是否大于预设访问热度阈值。S14: Determine whether the access popularity is greater than a preset access popularity threshold.
预设访问热度阈值为预先设置的用以判断物理单元中的数据是否为重要数据的临界值。The preset access heat threshold is a preset critical value used to determine whether the data in the physical unit is important data.
当所述访问热度大于或等于预设访问热度阈值时,表明物理单元中的数据为重要数据,执行S15;当所述访问热度小于预设访问热度阈值时,表明物理单元中的数据不为重要数据,执行S18。When the access heat is greater than or equal to the preset access heat threshold, it indicates that the data in the physical unit is important data, and S15 is executed; when the access heat is less than the preset access heat threshold, it indicates that the data in the physical unit is not important. data, execute S18.
S15,预测所述物理单元发生物理性损坏的概率,并判断所述概率是否超过预设概率阈值。S15: Predict the probability of physical damage to the physical unit, and determine whether the probability exceeds a preset probability threshold.
在一个可选的实施方式中,所述预测所述物理单元发生物理性损坏的概率包括:In an optional implementation, the predicting the probability of physical damage to the physical unit includes:
确定所述物理单元的型号;Determine the model of the physical unit;
收集与所述型号相似的目标物理单元相关的历史故障数据;Collect historical failure data related to target physical units similar to the model described;
获取所述历史故障数据中故障类型为物理性损坏类型的目标历史故障数据;Obtain target historical fault data whose fault type is physical damage type in the historical fault data;
基于所述目标历史故障数据对应的故障发生时间得到物理性损坏故障概率时间分布图;Based on the fault occurrence time corresponding to the target historical fault data, a physical damage fault probability time distribution diagram is obtained;
利用时间序列模型基于所述物理性损坏故障概率时间分布图预测指定时间段内所述物理单元发生物理性损坏的概率。A time series model is used to predict the probability of physical damage to the physical unit within a specified time period based on the physical damage failure probability time distribution diagram.
不同型号的物理单元可能具有不同的可靠性和故障模式,所以需要确定硬盘中各物理单元的型号(即,硬盘的型号)来标识和区分不同的物理单元,与所述型号相似的物理单元的故障数据更适合预测所述物理单元发生何种类型的损坏及损坏的概率。Different models of physical units may have different reliability and failure modes, so it is necessary to determine the model of each physical unit in the hard disk (i.e., the model of the hard disk) to identify and distinguish different physical units. Physical units similar to the model are Failure data is more suitable for predicting what type of damage will occur to the physical unit and the probability of damage.
可以收集历史上相似型号或相似使用条件下的物理单元故障数据,历史上的故障数据为历史故障数据,历史故障数据可以包括型号、故障类型、故障发生时间、故障时长、故障位置等。获取故障类型为物理性损坏的目标历史故障数据,通过分析目标历史故障数据,可以得到每个时间点上发生物理性损坏的概率,每个时间点上发生物理性损坏的概率可以根据对应时间点上发生物理性损坏的硬盘的数量与总数量之间的比例得到。将每个时间点上发生物理性损坏的概率进行直方图处理,得到物理性损坏故障概率时间分布图,所述分布图反映了不同时间点上物理单元发生物理性损坏的概率。使用历史故障数据中的趋势和模式建立时间序列模型,并利用所述时间序列模型预测指定时间段内物理单元发生物理性损坏的概率。Historical fault data of physical units of similar models or under similar usage conditions can be collected. Historical fault data is historical fault data. Historical fault data can include model, fault type, fault occurrence time, fault duration, fault location, etc. Obtain the target historical fault data whose fault type is physical damage. By analyzing the target historical fault data, the probability of physical damage at each time point can be obtained. The probability of physical damage at each time point can be calculated according to the corresponding time point. The ratio of the number of physically damaged hard drives to the total number is obtained. The probability of physical damage occurring at each time point is subjected to histogram processing to obtain a time distribution diagram of physical damage failure probability. The distribution diagram reflects the probability of physical damage occurring to a physical unit at different time points. Use trends and patterns in historical failure data to build a time series model and use the time series model to predict the probability of physical damage to a physical unit within a specified time period.
通过分析相同或相似型号的目标物理单元的历史故障数据和应用时间序列模型,能够预测指定时间段内物理单元发生物理性损坏的概率,接着判断预测的概率是否超过预设概率阈值,当预测所述物理单元发生物理性损坏的概率超过预设概率阈值时,执行S16;当预测所述物理单元发生物理性损坏的概率未超过预设概率阈值时,执行S18。By analyzing the historical failure data of the target physical unit of the same or similar model and applying the time series model, the probability of physical damage to the physical unit within a specified time period can be predicted, and then it is judged whether the predicted probability exceeds the preset probability threshold. When the predicted probability When the probability of physical damage to the physical unit exceeds the preset probability threshold, execute S16; when the predicted probability of physical damage to the physical unit does not exceed the preset probability threshold, execute S18.
S16,在所述硬盘中为所述物理单元分配备用单元,并将所述物理单元中的数据备份至所述备用单元。S16: Allocate a spare unit to the physical unit in the hard disk, and back up the data in the physical unit to the spare unit.
硬盘由控制单元、默认预留区和物理单元组成,物理单元负责存储数据,默认预留区用于为存储区的坏块提供替换的预留块,控制单元负责控制数据的读取与写入。The hard disk consists of a control unit, a default reserved area and a physical unit. The physical unit is responsible for storing data. The default reserved area is used to provide replacement reserved blocks for bad blocks in the storage area. The control unit is responsible for controlling the reading and writing of data. .
当物理单元发生物理性损坏,可以使用预留块选择算法,在默认预留区中,为物理性损坏的物理单元分配一个预留块作为备用单元。在为物理性损坏的物理单元分配备用单元后,可以将物理性损坏的物理单元中的数据复制到所述备用单元中,实现物理性损坏物理单元的数据的备份。When a physical unit is physically damaged, a reserved block selection algorithm can be used to allocate a reserved block as a spare unit to the physically damaged physical unit in the default reserved area. After allocating a spare unit to the physically damaged physical unit, the data in the physically damaged physical unit can be copied to the spare unit to realize the backup of the data in the physically damaged physical unit.
当物理单元没有发生物理性损坏,但物理单元的访问热度大于或等于预设访问热度阈值,且预测物理单元发生物理性损坏的概率超过预设概率阈值时,在默认预留区中,为访问热度较大且预测发生物理性损坏的概率较大的物理单元分配一个预留块作为备用单元。为便于描述,将访问热度较大且预测发生物理性损坏的概率较大的物理单元称之为大概率物理性损坏的物理单元。在为大概率物理性损坏的物理单元分配备用单元后,可以将大概率物理性损坏的物理单元中的数据复制到所述备用单元中,实现重要数据的提前备份。When no physical damage occurs to the physical unit, but the access heat of the physical unit is greater than or equal to the preset access heat threshold, and the predicted probability of physical damage to the physical unit exceeds the preset probability threshold, in the default reserved area, access is Physical units that are hotter and more likely to be physically damaged are allocated a reserved block as a spare unit. For convenience of description, a physical unit with high access heat and a high probability of predicted physical damage is called a physical unit with a high probability of physical damage. After allocating a spare unit to a physical unit with a high probability of physical damage, the data in the physical unit with a high probability of physical damage can be copied to the spare unit to achieve advance backup of important data.
示例性的,当硬盘中的物理单元A发生了物理性损坏时,根据预留块选择算法选择预留块C作为物理单元A的备用物理单元,预留块C的状态为未使用且存储状态为空。将物理单元A中的数据a进行备份到所述备用单元中。For example, when physical unit A in the hard disk is physically damaged, reserved block C is selected as a spare physical unit of physical unit A according to the reserved block selection algorithm. The status of reserved block C is unused and stored. Is empty. Back up data a in physical unit A to the backup unit.
S17,将所述物理单元的逻辑地址及所述备用单元的物理地址关联存储至区域管理表中,所述区域管理表存储于所述硬盘的控制芯片中。S17, associate and store the logical address of the physical unit and the physical address of the spare unit in a region management table. The region management table is stored in the control chip of the hard disk.
所述区域管理表中存储了物理单元的物理地址与逻辑地址之间的映射关系。监测到有物理性损坏的物理单元或者大概率物理性损坏的物理单元时,控制芯片将物理性损坏的物理单元或者大概率物理性损坏的物理单元所对应的物理地址在区域管理表中标记为无效或故障状态,并将对应的备用单元的物理地址更新到区域管理表中,即在区域管理表中,关联存储了物理性损坏的物理单元的物理地址、逻辑地址及备用单元的物理地址。The mapping relationship between the physical address and the logical address of the physical unit is stored in the area management table. When a physically damaged physical unit or a physical unit with a high probability of physical damage is detected, the control chip marks the physical address corresponding to the physically damaged physical unit or a physical unit with a high probability of physical damage in the area management table as Invalid or faulty status, and updates the physical address of the corresponding spare unit to the regional management table. That is, in the regional management table, the physical address, logical address and physical address of the spare unit of the physically damaged physical unit are associated and stored.
示例性的,当硬盘中的物理单元A发生物理性损坏时,将区域管理表中物理单元A的物理地址x标记为无效,并对应增加备用单元B的物理地址m,即将区域管理表中物理单元A的逻辑地址y与物理地址m进行关联存储。For example, when physical unit A in the hard disk is physically damaged, the physical address x of physical unit A in the area management table is marked as invalid, and the physical address m of spare unit B is correspondingly increased, that is, the physical address The logical address y of unit A is stored in association with the physical address m.
硬盘中设置一个控制芯片,所述区域管理表存储于所述控制芯片中,便于后续在控制芯片中访问区域管理表,避免在硬盘频繁的读取区域管理表,造成硬盘损坏。A control chip is provided in the hard disk, and the area management table is stored in the control chip, which facilitates subsequent access to the area management table in the control chip and avoids frequent reading of the area management table in the hard disk, causing damage to the hard disk.
S18,当接收到访问请求时,根据所述区域管理表确定所述访问请求对应的目标物理地址,并将所述访问请求映射到所述目标物理地址对应的目标数据。S18. When an access request is received, the target physical address corresponding to the access request is determined according to the area management table, and the access request is mapped to the target data corresponding to the target physical address.
当计算机设备接收到访问请求时,对访问请求进行解析,得到需要访问的目标逻辑地址,在控制芯片的区域管理表中查找目标逻辑地址对应的目标物理地址。当确定目标物理地址后,根据目标物理地址访问固态硬盘中的目标数据,将访问请求映射到目标数据上进行处理。When the computer device receives the access request, it parses the access request to obtain the target logical address that needs to be accessed, and searches the target physical address corresponding to the target logical address in the area management table of the control chip. After the target physical address is determined, the target data in the solid state drive is accessed according to the target physical address, and the access request is mapped to the target data for processing.
在一些实施方式中,计算机接收到访问请求时,可以根据目标逻辑地址在控制芯片的区域管理表中查找物理单元的物理地址,当查找到与目标逻辑地址对应的目标物理单元的物理地址时,识别目标物理单元的物理地址是否有效。当目标物理单元的物理地址有效时,则将访问请求映射到目标物理单元的物理地址中的数据。当目标物理单元的物理地址无效时,则将访问请求映射到目标物理单元对应的目标备用单元的物理地址中的数据。In some embodiments, when the computer receives an access request, it can search the physical address of the physical unit in the area management table of the control chip according to the target logical address. When the physical address of the target physical unit corresponding to the target logical address is found, Identifies whether the physical address of the target physical unit is valid. When the physical address of the target physical unit is valid, the access request is mapped to the data in the physical address of the target physical unit. When the physical address of the target physical unit is invalid, the access request is mapped to the data in the physical address of the target standby unit corresponding to the target physical unit.
示例性的,当目标逻辑地址为y时,在区域管理表中寻找逻辑地址y对应的有效的物理地址m,将访问请求映射到物理单元B上。For example, when the target logical address is y, the effective physical address m corresponding to the logical address y is found in the area management table, and the access request is mapped to the physical unit B.
使用区域管理表将逻辑地址与物理地址进行映射及将物理单元的物理地址与备用单元的物理地址进行映射,当需要对目标数据进行访问时,在区域管理表中查询目标逻辑地址映射的目标物理地址,实现对目标数据的访问。这种映射关系确保了逻辑地址的抽象性,隐藏了底层物理区域的变化,同时提供了高性能和数据冗余的优势。Use the area management table to map the logical address to the physical address and map the physical address of the physical unit to the physical address of the standby unit. When the target data needs to be accessed, query the target physical address of the target logical address mapping in the area management table. Address to achieve access to target data. This mapping relationship ensures the abstraction of logical addresses, hides changes in the underlying physical area, and provides the advantages of high performance and data redundancy.
所述访问请求可以为更新目标数据,也可以为读取目标数据。The access request may be for updating target data or reading target data.
当所述访问请求为更新所述目标数据时,可以对所述访问请求进行解析,得到所述访问请求中的更新数据,根据所述控制芯片的缓冲存储器的空间余量对所述更新数据进行切分,得到多个更新子数据,将所述多个更新子数据逐个缓存至所述控制芯片的缓冲存储器中,并在每次缓存一个更新子数据后获取所述缓冲存储器的剩余空间余量,当所述剩余空间余量达到第一预设阈值时,根据所述缓冲存储器中缓存的更新子数据对所述目标数据进行更新。When the access request is to update the target data, the access request can be parsed to obtain the update data in the access request, and the update data can be processed according to the space margin of the buffer memory of the control chip. Segment to obtain multiple update sub-data, cache the multiple update sub-data one by one into the buffer memory of the control chip, and obtain the remaining space margin of the buffer memory after each update sub-data is cached. , when the remaining space margin reaches the first preset threshold, the target data is updated according to the update sub-data cached in the buffer memory.
在每次缓存一个更新子数据后,控制芯片会计算缓冲存储器的剩余空间余量,所述剩余空间余量表示缓冲存储器中还可以存储多少数据。一旦缓冲存储器中的剩余空间余量达到第一预设阈值时,说明缓冲存储器已经积累了足够的更新子数据,可以执行更新操作,此时将缓冲存储器中的更新数据写入目标物理单元中,实现对目标数据的更新。After each time an updated sub-data is cached, the control chip will calculate the remaining space margin of the buffer memory. The remaining space margin represents how much data can be stored in the buffer memory. Once the remaining space in the buffer memory reaches the first preset threshold, it means that the buffer memory has accumulated enough update sub-data and the update operation can be performed. At this time, the update data in the buffer memory is written into the target physical unit. Implement updates to target data.
上述可选的实施方式,通过将更新数据切分为较小的更新子数据并逐个进行缓存,可以有效利用缓冲存储器的空间,提高资源的利用率;当缓冲存储器中的更新子数据的数据量达到设定阈值时再进行批量更新,可以减少对目标物理地址的频繁访问和操作,从而提高系统的整体性能,减少对硬盘的损耗。In the above optional implementation, by dividing the update data into smaller update sub-data and caching them one by one, the buffer memory space can be effectively used and resource utilization improved; when the amount of update sub-data in the buffer memory is Performing batch updates when the set threshold is reached can reduce frequent access and operations to the target physical address, thereby improving the overall performance of the system and reducing the wear and tear on the hard disk.
在一个可选的实施方式中,所述根据所述控制芯片的缓冲存储器的空间余量对所述更新数据进行切分,得到多个更新子数据包括:In an optional implementation, dividing the update data according to the space margin of the buffer memory of the control chip to obtain multiple update sub-data includes:
根据所述更新数据的优先级及所述缓冲存储器的空间余量,确定所述更新数据在所述缓冲存储器中的存储空间;Determine the storage space of the update data in the buffer memory according to the priority of the update data and the space margin of the buffer memory;
根据所述存储空间的空间余量对所述更新数据进行切分,得到多个更新子数据。The update data is divided according to the space margin of the storage space to obtain multiple update sub-data.
更新数据的优先级可以根据不同的因素进行确定,例如,根据目标数据的重要性、访问频率或属性进行确定。也可以在访问请求中指定更新数据的优先级。The priority of updating data can be determined based on different factors, for example, based on the importance, frequency of access, or attributes of the target data. You can also specify the priority of updated data in the access request.
通过考虑优先级,可以确定哪些更新数据应该被优先存储。对于优先级高的更新数据,则在缓冲存储器中分配较多的存储空间,使得更新数据能够被快速的写入缓冲存储器中,进而被快速的更新至目标物理地址中,实现对优先级高的更新数据的优先保护。对于优先级低的更新数据,则在缓冲存储器中分配较少的存储空间,避免占用优先级高的更新数据的存储资源。By considering priorities, you can determine which updated data should be stored first. For update data with high priority, more storage space is allocated in the buffer memory, so that the update data can be quickly written into the buffer memory, and then quickly updated to the target physical address, realizing high-priority update data. Prioritize protection of updated data. For update data with low priority, less storage space is allocated in the buffer memory to avoid occupying storage resources for update data with high priority.
上述可选的实施方式,根据更新数据的优先级和缓冲存储器的空间余量来确定更新数据在所述缓冲存储器中存储的优先级,确保了存储空间的合理分配;在根据所述存储空间的空间余量对所述更新数据进行切分,得到多个更新子数据,可以保证存储空间的有效利用,避免出现数据流拥堵的现象,保证更新数据能够及时存储以供后续处理或更新操作使用。In the above optional implementation, the priority of storing update data in the buffer memory is determined based on the priority of the update data and the space margin of the buffer memory, ensuring reasonable allocation of storage space; The space margin divides the update data to obtain multiple update sub-data, which can ensure the effective use of storage space, avoid data flow congestion, and ensure that the update data can be stored in time for subsequent processing or update operations.
当所述访问请求为读取目标数据时,可以将所述目标数据拷贝至所述缓冲存储器中,从所述缓冲存储器中读取所述目标数据。When the access request is to read target data, the target data may be copied to the buffer memory, and the target data may be read from the buffer memory.
缓冲存储器通常具有更低的访问延迟和更高的读取速度,使用缓冲存储器可以提高读取数据的性能和响应速度。通过将目标数据存放在缓冲存储器中,并在缓冲存储器中读取目标数据,可以更快地响应计算机设备的读取请求,减少对目标物理地址的访问,提供更好的用户体验。Buffer memory usually has lower access latency and higher read speed. Using buffer memory can improve the performance and response speed of reading data. By storing the target data in the buffer memory and reading the target data in the buffer memory, the computer device can respond to read requests faster, reduce access to the target physical address, and provide a better user experience.
在一个可选的实施方式中,所述方法还包括:In an optional implementation, the method further includes:
获取所述硬盘中发生物理性损坏的物理单元的数量;Obtain the number of physically damaged physical units in the hard disk;
当所述数量达到预设数量阈值时,生成硬盘损坏报告并将所述硬盘损坏报告发送至预设终端。When the number reaches the preset quantity threshold, a hard disk damage report is generated and the hard disk damage report is sent to the preset terminal.
当监测到硬盘中有物理性损坏的物理单元时,实时记录物理性损坏的物理单元的数量,并判断物理性损坏的物理单元的数量是否达到预设数量阈值。当物理性损坏的物理单元的数量达到预设数量阈值时,表明硬盘的物理性损坏情况较为严重,则生成硬盘损坏报告并发送至预设终端,提示预设终端的用户更换硬盘。When physically damaged physical units are detected in the hard disk, the number of physically damaged physical units is recorded in real time, and it is determined whether the number of physically damaged physical units reaches a preset quantity threshold. When the number of physically damaged physical units reaches the preset threshold, it indicates that the physical damage of the hard disk is serious, and a hard disk damage report is generated and sent to the preset terminal, prompting the user of the preset terminal to replace the hard disk.
硬盘损坏报告可以包括硬盘的详细信息,例如硬盘型号、损坏物理单元的位置和数量等,还可以包含损坏的类型、时间戳等其他相关信息。The hard drive damage report can include detailed information about the hard drive, such as the hard drive model, the location and number of damaged physical units, etc. It can also include the type of damage, timestamp, and other relevant information.
上述可选的实施方式,当物理性损坏的物理单元过多时,通过生成硬盘损坏报告并及时发送至预设终端,例如计算机设备的操作界面,以通知预设终端的用户尽快解决硬盘损坏问题,确保硬盘中数据的完整性。In the above optional implementation, when there are too many physically damaged physical units, a hard disk damage report is generated and promptly sent to a preset terminal, such as an operating interface of a computer device, to notify the user of the preset terminal to resolve the hard disk damage problem as soon as possible. Ensure the integrity of data on the hard drive.
本申请实施例,在硬盘的物理单元发生了物理性损坏时,通过对物理性损坏的物理单元进行区域隔离,避免数据写入,延长了硬盘的使用寿命,并在区域隔离后,为物理性损坏的物理单元分配备用单元,并将物理单元中的数据备份至备用单元中,减少了物理性损坏的物理单元中的数据丢失,将物理单元的物理地址及备用单元的物理地址关联存储至硬盘的控制芯片中的区域管理表中,在接收到访问请求时,根据区域管理表确定所述访问请求对应的目标物理地址,并将所述访问请求映射到所述目标物理地址对应的目标数据,可以避免对物理性损坏的物理单元的读取和写入,保护了硬盘,且使得用户可以无缝地访问到数据。In the embodiment of the present application, when the physical unit of the hard disk is physically damaged, the physically damaged physical unit is regionally isolated to avoid data writing, thereby extending the service life of the hard disk, and after regional isolation, the physical unit is physically damaged. The damaged physical unit is allocated a spare unit, and the data in the physical unit is backed up to the spare unit, reducing data loss in the physically damaged physical unit. The physical address of the physical unit and the physical address of the spare unit are associated and stored in the hard disk. In the area management table in the control chip, when receiving an access request, the target physical address corresponding to the access request is determined according to the area management table, and the access request is mapped to the target data corresponding to the target physical address, Reading and writing to physically damaged physical units can be avoided, protecting the hard drive and allowing users to seamlessly access data.
图2是本发明实施例二提供的硬盘数据处理装置的功能结构图。FIG. 2 is a functional structure diagram of a hard disk data processing device provided in Embodiment 2 of the present invention.
在一些实施例中,所述硬盘数据处理装置20可以包括多个由计算机程序段所组成的功能模块。所述硬盘数据处理装置20中的各个程序段的计算机程序可以存储于电子设备的存储器中,并由至少一个处理器所执行,以执行(详见图1描述)硬盘数据处理的功能。In some embodiments, the hard disk data processing device 20 may include multiple functional modules composed of computer program segments. The computer program of each program segment in the hard disk data processing device 20 can be stored in the memory of the electronic device and executed by at least one processor to perform the function of hard disk data processing (see Figure 1 for details).
本实施例中,所述硬盘数据处理装置20根据其所执行的功能,可以被划分为多个功能模块。所述功能模块可以包括:单元监测模块201、区域隔离模块202、热度获取模块203、热度判断模块204、概率预测模块205、备用分配模块206、更新映射模块207、请求处理模块208及硬盘报告模块209。本发明所称的模块是指一种能够被至少一个处理器所执行并且能够完成固定功能的一系列计算机程序段,其存储在存储器中。在本实施例中,关于各模块的功能将在后续的实施例中详述。In this embodiment, the hard disk data processing device 20 can be divided into multiple functional modules according to the functions it performs. The functional modules may include: unit monitoring module 201, area isolation module 202, heat acquisition module 203, heat judgment module 204, probability prediction module 205, spare allocation module 206, update mapping module 207, request processing module 208 and hard disk reporting module 209. The module referred to in the present invention refers to a series of computer program segments that can be executed by at least one processor and can complete fixed functions, which are stored in the memory. In this embodiment, the functions of each module will be described in detail in subsequent embodiments.
单元监测模块201,用于监测硬盘的物理单元是否发生损坏。The unit monitoring module 201 is used to monitor whether the physical unit of the hard disk is damaged.
硬盘在设计时,可以划分成众多的独立性物理单元,每个物理单元具有唯一的标识,并通过一套管理体系对所有的物理单元进行统一的管理。可以使用坏道管理技术来对硬盘的每个物理单元进行实时监测。When designing a hard disk, it can be divided into numerous independent physical units. Each physical unit has a unique identity, and all physical units are managed uniformly through a set of management systems. Bad sector management technology can be used to monitor each physical unit of the hard disk in real time.
在监测到硬盘的某个物理单元发生损坏时,进一步监测硬盘的该物理单元是发生物理性损坏还是逻辑性损坏。如果硬盘发出异常的噪音,硬盘无法启动或没有任何反应等,则表明硬盘发生了物理性损坏。如果硬盘能够启动和正常旋转,但无法读取或写入数据,则可能是由于文件系统损坏、分区表错误或文件系统错误等逻辑问题引起的。When it is detected that a certain physical unit of the hard disk is damaged, it is further monitored whether the physical unit of the hard disk is physically damaged or logically damaged. If the hard drive makes abnormal noises, cannot start or has no response, etc., it indicates that the hard drive is physically damaged. If your hard drive boots and spins normally, but is unable to read or write data, it may be caused by a logical issue such as file system corruption, partition table error, or file system error.
所述区域隔离模块202,用于对发生物理性损坏的物理单元进行区域隔离。The area isolation module 202 is used to area isolate physical units that are physically damaged.
发生逻辑性损坏的硬盘可以在一定程度上进行恢复,与逻辑性损坏相比,物理性损坏较为复杂,因而本申请实施例对于发生物理性损坏的物理单元,可以采用区域隔离技术进行区域隔离处理,以防止数据读取或写入,导致物理单元的进一步的损坏。A hard disk that is logically damaged can be restored to a certain extent. Compared with logical damage, physical damage is more complicated. Therefore, in the embodiment of this application, regional isolation technology can be used to perform regional isolation processing for physical units that are physically damaged. , to prevent data reading or writing from causing further damage to the physical unit.
所述热度获取模块203,用于获取所述物理单元的访问热度。The popularity acquisition module 203 is used to acquire the access popularity of the physical unit.
当所述物理单元没有发生物理性损坏时,为了保护物理单元中的重要数据,可以定期获取所述物理单元的访问热度,从而根据访问热度确定物理单元中的数据是否为重要数据,进而判断是否需要进行备份。When the physical unit is not physically damaged, in order to protect the important data in the physical unit, the access heat of the physical unit can be obtained regularly, so as to determine whether the data in the physical unit is important data based on the access heat, and then determine whether A backup is required.
可以通过记录物理单元的访问次数或者访问频率,得到物理单元的访问热度。访问次数越多或访问频率越高,访问热度越高,访问次数越少或访问频率越少,访问热度越低。The access popularity of a physical unit can be obtained by recording the number of accesses or access frequency of the physical unit. The more visits or the higher the frequency of visits, the higher the popularity of the visits. The fewer the number of visits or the less frequent the visits, the lower the popularity of the visits.
所述热度判断模块204,用于判断所述访问热度是否大于预设访问热度阈值。The popularity determination module 204 is used to determine whether the access popularity is greater than a preset access popularity threshold.
预设访问热度阈值为预先设置的用以判断物理单元中的数据是否为重要数据的临界值。The preset access heat threshold is a preset critical value used to determine whether the data in the physical unit is important data.
当所述访问热度大于或等于预设访问热度阈值时,表明物理单元中的数据为重要数据,当所述访问热度小于预设访问热度阈值时,表明物理单元中的数据不为重要数据。When the access heat is greater than or equal to the preset access heat threshold, it indicates that the data in the physical unit is important data. When the access heat is less than the preset access heat threshold, it indicates that the data in the physical unit is not important data.
所述概率预测模块205,用于当所述访问热度大于或等于预设访问热度阈值时,预测所述物理单元发生物理性损坏的概率。The probability prediction module 205 is configured to predict the probability of physical damage to the physical unit when the access heat is greater than or equal to a preset access heat threshold.
在一个可选的实施方式中,所述预测所述物理单元发生物理性损坏的概率包括:In an optional implementation, the predicting the probability of physical damage to the physical unit includes:
确定所述物理单元的型号;Determine the model of the physical unit;
收集与所述型号相似的目标物理单元相关的历史故障数据;Collect historical failure data related to target physical units similar to the model described;
获取所述历史故障数据中故障类型为物理性损坏类型的目标历史故障数据;Obtain target historical fault data whose fault type is physical damage type in the historical fault data;
基于所述目标历史故障数据对应的故障发生时间得到物理性损坏故障概率时间分布图;Based on the fault occurrence time corresponding to the target historical fault data, a physical damage fault probability time distribution diagram is obtained;
利用时间序列模型基于所述物理性损坏故障概率时间分布图预测指定时间段内所述物理单元发生物理性损坏的概率。A time series model is used to predict the probability of physical damage to the physical unit within a specified time period based on the physical damage failure probability time distribution diagram.
不同型号的物理单元可能具有不同的可靠性和故障模式,所以需要确定硬盘中各物理单元的型号(即,硬盘的型号)来标识和区分不同的物理单元,与所述型号相似的物理单元的故障数据更适合预测所述物理单元发生何种类型的损坏及损坏的概率。Different models of physical units may have different reliability and failure modes, so it is necessary to determine the model of each physical unit in the hard disk (i.e., the model of the hard disk) to identify and distinguish different physical units. Physical units similar to the model are Failure data is more suitable for predicting what type of damage will occur to the physical unit and the probability of damage.
可以收集历史上相似型号或相似使用条件下的物理单元故障数据,历史上的故障数据为历史故障数据,历史故障数据可以包括型号、故障类型、故障发生时间、故障时长、故障位置等。获取故障类型为物理性损坏的目标历史故障数据,通过分析目标历史故障数据,可以得到每个时间点上发生物理性损坏的概率,每个时间点上发生物理性损坏的概率可以根据对应时间点上发生物理性损坏的硬盘的数量与总数量之间的比例得到。将每个时间点上发生物理性损坏的概率进行直方图处理,得到物理性损坏故障概率时间分布图,所述分布图反映了不同时间点上物理单元发生物理性损坏的概率。使用历史故障数据中的趋势和模式建立时间序列模型,并利用所述时间序列模型预测指定时间段内物理单元发生物理性损坏的概率。Historical fault data of physical units of similar models or under similar usage conditions can be collected. Historical fault data is historical fault data. Historical fault data can include model, fault type, fault occurrence time, fault duration, fault location, etc. Obtain the target historical fault data whose fault type is physical damage. By analyzing the target historical fault data, the probability of physical damage at each time point can be obtained. The probability of physical damage at each time point can be calculated according to the corresponding time point. The ratio of the number of physically damaged hard drives to the total number is obtained. The probability of physical damage occurring at each time point is subjected to histogram processing to obtain a time distribution diagram of physical damage failure probability. The distribution diagram reflects the probability of physical damage occurring to a physical unit at different time points. Use trends and patterns in historical failure data to build a time series model and use the time series model to predict the probability of physical damage to a physical unit within a specified time period.
通过分析相同或相似型号的目标物理单元的历史故障数据和应用时间序列模型,能够预测指定时间段内物理单元发生物理性损坏的概率,接着判断预测的概率是否超过预设概率阈值,当预测所述物理单元发生物理性损坏的概率超过预设概率阈值时,在所述硬盘中为所述物理单元分配备用单元,并将所述物理单元中的数据备份至所述备用单元;当预测所述物理单元发生物理性损坏的概率未超过预设概率阈值时,不对所述物理单元进行处理。By analyzing the historical failure data of the target physical unit of the same or similar model and applying the time series model, the probability of physical damage to the physical unit within a specified time period can be predicted, and then it is judged whether the predicted probability exceeds the preset probability threshold. When the predicted probability When the probability of physical damage to the physical unit exceeds the preset probability threshold, a spare unit is allocated to the physical unit in the hard disk, and the data in the physical unit is backed up to the spare unit; when it is predicted that the When the probability of physical damage to a physical unit does not exceed the preset probability threshold, the physical unit will not be processed.
备用分配模块206,用于在所述硬盘中为所述物理单元分配备用单元,并将所述物理单元中的数据备份至所述备用单元。The spare allocation module 206 is used to allocate a spare unit to the physical unit in the hard disk, and back up the data in the physical unit to the spare unit.
硬盘由控制单元、默认预留区和物理单元组成,物理单元负责存储数据,默认预留区用于为存储区的坏块提供替换的预留块,控制单元负责控制数据的读取与写入。The hard disk consists of a control unit, a default reserved area and a physical unit. The physical unit is responsible for storing data. The default reserved area is used to provide replacement reserved blocks for bad blocks in the storage area. The control unit is responsible for controlling the reading and writing of data. .
当物理单元发生物理性损坏,可以使用预留块选择算法,在默认预留区中,为物理性损坏的物理单元分配一个预留块作为备用单元。在为物理性损坏的物理单元分配备用单元后,可以将物理性损坏的物理单元中的数据复制到所述备用单元中,实现物理性损坏物理单元的数据的备份。When a physical unit is physically damaged, a reserved block selection algorithm can be used to allocate a reserved block as a spare unit to the physically damaged physical unit in the default reserved area. After allocating a spare unit to the physically damaged physical unit, the data in the physically damaged physical unit can be copied to the spare unit to realize the backup of the data in the physically damaged physical unit.
当物理单元没有发生物理性损坏,但物理单元的访问热度大于或等于预设访问热度阈值,且预测物理单元发生物理性损坏的概率超过预设概率阈值时,在默认预留区中,为访问热度较大且预测发生物理性损坏的概率较大的物理单元分配一个预留块作为备用单元。为便于描述,将访问热度较大且预测发生物理性损坏的概率较大的物理单元称之为大概率物理性损坏的物理单元。在为大概率物理性损坏的物理单元分配备用单元后,可以将大概率物理性损坏的物理单元中的数据复制到所述备用单元中,实现重要数据的提前备份。When no physical damage occurs to the physical unit, but the access heat of the physical unit is greater than or equal to the preset access heat threshold, and the predicted probability of physical damage to the physical unit exceeds the preset probability threshold, in the default reserved area, access is Physical units that are hotter and more likely to be physically damaged are allocated a reserved block as a spare unit. For convenience of description, a physical unit with high access heat and a high probability of predicted physical damage is called a physical unit with a high probability of physical damage. After allocating a spare unit to a physical unit with a high probability of physical damage, the data in the physical unit with a high probability of physical damage can be copied to the spare unit to achieve advance backup of important data.
示例性的,当硬盘中的物理单元A发生了物理性损坏时,根据预留块选择算法选择预留块C作为物理单元A的备用物理单元,预留块C的状态为未使用且存储状态为空。将物理单元A中的数据a进行备份到所述备用单元中。For example, when physical unit A in the hard disk is physically damaged, reserved block C is selected as a spare physical unit of physical unit A according to the reserved block selection algorithm. The status of reserved block C is unused and stored. Is empty. Back up data a in physical unit A to the backup unit.
更新映射模块207,用于将所述物理单元的逻辑地址及所述备用单元的物理地址关联存储至区域管理表中,所述区域管理表存储于所述硬盘的控制芯片中。The update mapping module 207 is configured to associate and store the logical address of the physical unit and the physical address of the backup unit into a region management table. The region management table is stored in the control chip of the hard disk.
所述区域管理表中存储了物理单元的物理地址与逻辑地址之间的映射关系。监测到有物理性损坏的物理单元或者大概率物理性损坏的物理单元时,控制芯片将物理性损坏的物理单元或者大概率物理性损坏的物理单元所对应的物理地址在区域管理表中标记为无效或故障状态,并将对应的备用单元的物理地址更新到区域管理表中,即在区域管理表中,关联存储了物理性损坏的物理单元的物理地址、逻辑地址及备用单元的物理地址。The mapping relationship between the physical address and the logical address of the physical unit is stored in the area management table. When a physically damaged physical unit or a physical unit with a high probability of physical damage is detected, the control chip marks the physical address corresponding to the physically damaged physical unit or a physical unit with a high probability of physical damage in the area management table as Invalid or faulty status, and updates the physical address of the corresponding spare unit to the regional management table. That is, in the regional management table, the physical address, logical address and physical address of the spare unit of the physically damaged physical unit are associated and stored.
示例性的,当硬盘中的物理单元A发生物理性损坏时,将区域管理表中物理单元A的物理地址x标记为无效,并对应增加备用单元B的物理地址m,即将区域管理表中物理单元A的逻辑地址y与物理地址m进行关联存储。For example, when physical unit A in the hard disk is physically damaged, the physical address x of physical unit A in the area management table is marked as invalid, and the physical address m of spare unit B is correspondingly increased, that is, the physical address The logical address y of unit A is stored in association with the physical address m.
硬盘中设置一个控制芯片,所述区域管理表存储于所述控制芯片中,便于后续在控制芯片中访问区域管理表,避免在硬盘频繁的读取区域管理表,造成硬盘损坏。A control chip is provided in the hard disk, and the area management table is stored in the control chip, which facilitates subsequent access to the area management table in the control chip and avoids frequent reading of the area management table in the hard disk, causing damage to the hard disk.
请求处理模块208,用于当接收到访问请求时,根据所述区域管理表确定所述访问请求对应的目标物理地址,并将所述访问请求映射到所述目标物理地址对应的目标数据。The request processing module 208 is configured to, when receiving an access request, determine the target physical address corresponding to the access request according to the area management table, and map the access request to target data corresponding to the target physical address.
当计算机设备接收到访问请求时,对访问请求进行解析,得到需要访问的目标逻辑地址,在控制芯片的区域管理表中查找目标逻辑地址对应的目标物理地址。当确定目标物理地址后,根据目标物理地址访问固态硬盘中的目标数据,将访问请求映射到目标数据上进行处理。When the computer device receives the access request, it parses the access request to obtain the target logical address that needs to be accessed, and searches the target physical address corresponding to the target logical address in the area management table of the control chip. After the target physical address is determined, the target data in the solid state drive is accessed according to the target physical address, and the access request is mapped to the target data for processing.
在一些实施方式中,计算机接收到访问请求时,所述请求处理模块208可以根据目标逻辑地址在控制芯片的区域管理表中查找物理单元的物理地址,当查找到与目标逻辑地址对应的目标物理单元的物理地址时,识别目标物理单元的物理地址是否有效。当目标物理单元的物理地址有效时,则将访问请求映射到目标物理单元的物理地址中的数据。当目标物理单元的物理地址无效时,则将访问请求映射到目标物理单元对应的目标备用单元的物理地址中的数据。In some embodiments, when the computer receives an access request, the request processing module 208 can search for the physical address of the physical unit in the area management table of the control chip according to the target logical address. When the target physical address corresponding to the target logical address is found, When checking the physical address of a unit, identify whether the physical address of the target physical unit is valid. When the physical address of the target physical unit is valid, the access request is mapped to the data in the physical address of the target physical unit. When the physical address of the target physical unit is invalid, the access request is mapped to the data in the physical address of the target standby unit corresponding to the target physical unit.
示例性的,当目标逻辑地址为y时,在区域管理表中寻找逻辑地址y对应的有效的物理地址m,将访问请求映射到物理单元B上。For example, when the target logical address is y, the effective physical address m corresponding to the logical address y is found in the area management table, and the access request is mapped to the physical unit B.
使用区域管理表将逻辑地址与物理地址进行映射及将物理单元的物理地址与备用单元的物理地址进行映射,当需要对目标数据进行访问时,在区域管理表中查询目标逻辑地址映射的目标物理地址,实现对目标数据的访问。这种映射关系确保了逻辑地址的抽象性,隐藏了底层物理区域的变化,同时提供了高性能和数据冗余的优势。Use the area management table to map the logical address to the physical address and map the physical address of the physical unit to the physical address of the standby unit. When the target data needs to be accessed, query the target physical address of the target logical address mapping in the area management table. Address to achieve access to target data. This mapping relationship ensures the abstraction of logical addresses, hides changes in the underlying physical area, and provides the advantages of high performance and data redundancy.
所述访问请求可以为更新目标数据,也可以为读取目标数据。The access request may be for updating target data or reading target data.
当所述访问请求为更新所述目标数据时,可以对所述访问请求进行解析,得到所述访问请求中的更新数据,根据所述控制芯片的缓冲存储器的空间余量对所述更新数据进行切分,得到多个更新子数据,将所述多个更新子数据逐个缓存至所述控制芯片的缓冲存储器中,并在每次缓存一个更新子数据后获取所述缓冲存储器的剩余空间余量,当所述剩余空间余量达到第一预设阈值时,根据所述缓冲存储器中缓存的更新子数据对所述目标数据进行更新。When the access request is to update the target data, the access request can be parsed to obtain the update data in the access request, and the update data can be processed according to the space margin of the buffer memory of the control chip. Segment to obtain multiple update sub-data, cache the multiple update sub-data one by one into the buffer memory of the control chip, and obtain the remaining space margin of the buffer memory after each update sub-data is cached. , when the remaining space margin reaches the first preset threshold, the target data is updated according to the update sub-data cached in the buffer memory.
在每次缓存一个更新子数据后,控制芯片会计算缓冲存储器的剩余空间余量,所述剩余空间余量表示缓冲存储器中还可以存储多少数据。一旦缓冲存储器中的剩余空间余量达到第一预设阈值时,说明缓冲存储器已经积累了足够的更新子数据,可以执行更新操作,此时将缓冲存储器中的更新数据写入目标物理单元中,实现对目标数据的更新。After each time an updated sub-data is cached, the control chip will calculate the remaining space margin of the buffer memory. The remaining space margin represents how much data can be stored in the buffer memory. Once the remaining space in the buffer memory reaches the first preset threshold, it means that the buffer memory has accumulated enough update sub-data and the update operation can be performed. At this time, the update data in the buffer memory is written into the target physical unit. Implement updates to target data.
上述可选的实施方式,通过将更新数据切分为较小的更新子数据并逐个进行缓存,可以有效利用缓冲存储器的空间,提高资源的利用率;当缓冲存储器中的更新子数据的数据量达到设定阈值时再进行批量更新,可以减少对目标物理地址的频繁访问和操作,从而提高系统的整体性能,减少对硬盘的损耗。In the above optional implementation, by dividing the update data into smaller update sub-data and caching them one by one, the buffer memory space can be effectively used and resource utilization improved; when the amount of update sub-data in the buffer memory is Performing batch updates when the set threshold is reached can reduce frequent access and operations to the target physical address, thereby improving the overall performance of the system and reducing the wear and tear on the hard disk.
在一个可选的实施方式中,所述根据所述控制芯片的缓冲存储器的空间余量对所述更新数据进行切分,得到多个更新子数据包括:In an optional implementation, dividing the update data according to the space margin of the buffer memory of the control chip to obtain multiple update sub-data includes:
根据所述更新数据的优先级及所述缓冲存储器的空间余量,确定所述更新数据在所述缓冲存储器中的存储空间;Determine the storage space of the update data in the buffer memory according to the priority of the update data and the space margin of the buffer memory;
根据所述存储空间的空间余量对所述更新数据进行切分,得到多个更新子数据。The update data is divided according to the space margin of the storage space to obtain multiple update sub-data.
更新数据的优先级可以根据不同的因素进行确定,例如,根据目标数据的重要性、访问频率或属性进行确定。也可以在访问请求中指定更新数据的优先级。The priority of updating data can be determined based on different factors, for example, based on the importance, frequency of access, or attributes of the target data. You can also specify the priority of updated data in the access request.
通过考虑优先级,可以确定哪些更新数据应该被优先存储。对于优先级高的更新数据,则在缓冲存储器中分配较多的存储空间,使得更新数据能够被快速的写入缓冲存储器中,进而被快速的更新至目标物理地址中,实现对优先级高的更新数据的优先保护。对于优先级低的更新数据,则在缓冲存储器中分配较少的存储空间,避免占用优先级高的更新数据的存储资源。By considering priorities, you can determine which updated data should be stored first. For update data with high priority, more storage space is allocated in the buffer memory, so that the update data can be quickly written into the buffer memory, and then quickly updated to the target physical address, realizing high-priority update data. Prioritize protection of updated data. For update data with low priority, less storage space is allocated in the buffer memory to avoid occupying storage resources for update data with high priority.
上述可选的实施方式,根据更新数据的优先级和缓冲存储器的空间余量来确定更新数据在所述缓冲存储器中存储的优先级,确保了存储空间的合理分配;在根据所述存储空间的空间余量对所述更新数据进行切分,得到多个更新子数据,可以保证存储空间的有效利用,避免出现数据流拥堵的现象,保证更新数据能够及时存储以供后续处理或更新操作使用。In the above optional implementation, the priority of storing update data in the buffer memory is determined based on the priority of the update data and the space margin of the buffer memory, ensuring reasonable allocation of storage space; The space margin divides the update data to obtain multiple update sub-data, which can ensure the effective use of storage space, avoid data flow congestion, and ensure that the update data can be stored in time for subsequent processing or update operations.
当所述访问请求为读取目标数据时,请求处理模块208可以将所述目标数据拷贝至所述缓冲存储器中,从所述缓冲存储器中读取所述目标数据。When the access request is to read target data, the request processing module 208 may copy the target data to the buffer memory and read the target data from the buffer memory.
缓冲存储器通常具有更低的访问延迟和更高的读取速度,使用缓冲存储器可以提高读取数据的性能和响应速度。通过将目标数据存放在缓冲存储器中,并在缓冲存储器中读取目标数据,可以更快地响应计算机设备的读取请求,减少对目标物理地址的访问,提供更好的用户体验。Buffer memory usually has lower access latency and higher read speed. Using buffer memory can improve the performance and response speed of reading data. By storing the target data in the buffer memory and reading the target data in the buffer memory, the computer device can respond to read requests faster, reduce access to the target physical address, and provide a better user experience.
在一个可选的实施方式中,所述硬盘报告模块209,用于:In an optional implementation, the hard disk reporting module 209 is used to:
获取所述硬盘中发生物理性损坏的物理单元的数量;Obtain the number of physically damaged physical units in the hard disk;
当所述数量达到预设数量阈值时,生成硬盘损坏报告并将所述硬盘损坏报告发送至预设终端。When the number reaches the preset quantity threshold, a hard disk damage report is generated and the hard disk damage report is sent to the preset terminal.
当监测到硬盘中有物理性损坏的物理单元时,实时记录物理性损坏的物理单元的数量,并判断物理性损坏的物理单元的数量是否达到预设数量阈值。当物理性损坏的物理单元的数量达到预设数量阈值时,表明硬盘的物理性损坏情况较为严重,则生成硬盘损坏报告并发送至预设终端,提示预设终端的用户更换硬盘。When physically damaged physical units are detected in the hard disk, the number of physically damaged physical units is recorded in real time, and it is determined whether the number of physically damaged physical units reaches a preset quantity threshold. When the number of physically damaged physical units reaches the preset threshold, it indicates that the physical damage of the hard disk is serious, and a hard disk damage report is generated and sent to the preset terminal, prompting the user of the preset terminal to replace the hard disk.
硬盘损坏报告可以包括硬盘的详细信息,例如硬盘型号、损坏物理单元的位置和数量等,还可以包含损坏的类型、时间戳等其他相关信息。The hard drive damage report can include detailed information about the hard drive, such as the hard drive model, the location and number of damaged physical units, etc. It can also include the type of damage, timestamp, and other relevant information.
上述可选的实施方式,当物理性损坏的物理单元过多时,通过生成硬盘损坏报告并及时发送至预设终端,例如计算机设备的操作界面,以通知预设终端的用户尽快解决硬盘损坏问题,确保硬盘中数据的完整性。In the above optional implementation, when there are too many physically damaged physical units, a hard disk damage report is generated and promptly sent to a preset terminal, such as an operating interface of a computer device, to notify the user of the preset terminal to resolve the hard disk damage problem as soon as possible. Ensure the integrity of data on the hard drive.
本申请实施例,在硬盘的物理单元发生了物理性损坏时,通过对物理性损坏的物理单元进行区域隔离,避免数据写入,延长了硬盘的使用寿命,并在区域隔离后,为物理性损坏的物理单元分配备用单元,并将物理单元中的数据备份至备用单元中,减少了物理性损坏的物理单元中的数据丢失,将物理单元的物理地址及备用单元的物理地址关联存储至硬盘的控制芯片中的区域管理表中,在接收到访问请求时,根据区域管理表确定所述访问请求对应的目标物理地址,并将所述访问请求映射到所述目标物理地址对应的目标数据,可以避免对物理性损坏的物理单元的读取和写入,保护了硬盘,且使得用户可以无缝地访问到数据。In the embodiment of the present application, when the physical unit of the hard disk is physically damaged, the physically damaged physical unit is regionally isolated to avoid data writing, thereby extending the service life of the hard disk, and after regional isolation, the physical unit is physically damaged. The damaged physical unit is allocated a spare unit, and the data in the physical unit is backed up to the spare unit, reducing data loss in the physically damaged physical unit. The physical address of the physical unit and the physical address of the spare unit are associated and stored in the hard disk. In the area management table in the control chip, when receiving an access request, the target physical address corresponding to the access request is determined according to the area management table, and the access request is mapped to the target data corresponding to the target physical address, Reading and writing to physically damaged physical units can be avoided, protecting the hard drive and allowing users to seamlessly access data.
参阅图3所示,为本申请实施例提供的计算机设备的结构示意图。在本申请较佳实施例中,所述计算机设备3包括存储器31、至少一个处理器32、至少一条通信总线33。Refer to FIG. 3 , which is a schematic structural diagram of a computer device provided by an embodiment of the present application. In the preferred embodiment of the present application, the computer device 3 includes a memory 31, at least one processor 32, and at least one communication bus 33.
本领域技术人员应该了解,图3示出的计算机设备的结构并不构成本申请实施例的限定,既可以是总线型结构,也可以是星形结构,所述计算机设备3还可以包括比图示更多或更少的其他硬件或者软件,或者不同的部件布置。Those skilled in the art should understand that the structure of the computer device shown in Figure 3 does not constitute a limitation of the embodiment of the present application. It can be a bus structure or a star structure. The computer device 3 can also include may show more or less additional hardware or software, or a different arrangement of components.
在一些实施例中,所述计算机设备3是一种能够按照事先设定或存储的指令,自动进行数值计算和/或信息处理的设备,其硬件包括但不限于微处理器、专用集成电路、可编程门阵列、数字处理器及嵌入式设备等。所述计算机设备3还可包括其他计算机设备,所述其他计算机设备包括但不限于任何一种可与用户通过键盘、鼠标、遥控器、触摸板或声控设备等方式进行人机交互的电子产品,例如,个人计算机、平板电脑、智能手机、数码相机等。In some embodiments, the computer device 3 is a device that can automatically perform numerical calculations and/or information processing according to preset or stored instructions. Its hardware includes but is not limited to microprocessors, application-specific integrated circuits, Programmable gate arrays, digital processors and embedded devices, etc. The computer device 3 may also include other computer devices, including but not limited to any electronic product that can perform human-computer interaction with the user through a keyboard, mouse, remote control, touch panel or voice control device, etc. For example, personal computers, tablets, smartphones, digital cameras, etc.
需要说明的是,所述计算机设备3仅为举例,其他现有的或今后可能出现的电子产品如可适应于本申请,也应包含在本申请的保护范围以内,并以引用方式包含于此。It should be noted that the computer device 3 is only an example. If other existing or possible electronic products that may appear in the future can be adapted to this application, they should also be included in the protection scope of this application and be included here by reference. .
在一些实施例中,所述存储器31中存储有计算机程序,所述计算机程序被所述至少一个处理器32执行时实现如所述的硬盘数据处理方法中的全部或者部分步骤。所述存储器31包括只读存储器(Read-Only Memory,ROM)、可编程只读存储器(Programmable Read-Only Memory,PROM)、可擦除可编程只读存储器(Erasable Programmable Read-OnlyMemory,EPROM)、一次可编程只读存储器(One-time Programmable Read-Only Memory,OTPROM)、电子擦除式可复写只读存储器(Electrically-Erasable Programmable Read-Only Memory,EEPROM)、只读光盘(Compact Disc Read-Only Memory,CD-ROM)或其他光盘存储器、磁盘存储器、磁带存储器、或者能够用于携带或存储数据的计算机可读的任何其他介质。In some embodiments, a computer program is stored in the memory 31 , and when the computer program is executed by the at least one processor 32 , all or part of the steps in the hard disk data processing method are implemented. The memory 31 includes read-only memory (Read-Only Memory, ROM), programmable read-only memory (Programmable Read-Only Memory, PROM), erasable programmable read-only memory (Erasable Programmable Read-OnlyMemory, EPROM), One-time Programmable Read-Only Memory (OTPROM), Electronically Erasable Programmable Read-Only Memory (EEPROM), Compact Disc Read-Only Memory, CD-ROM) or other optical disk storage, magnetic disk storage, magnetic tape storage, or any other computer-readable medium that can be used to carry or store data.
在一些实施例中,所述至少一个处理器32是所述计算机设备3的控制核心(Control Unit),利用各种接口和线路连接整个计算机设备3的各个部件,通过运行或执行存储在所述存储器31内的程序或者模块,以及调用存储在所述存储器31内的数据,以执行计算机设备3的各种功能和处理数据。例如,所述至少一个处理器32执行所述存储器中存储的计算机程序时实现本申请实施例中所述的硬盘数据处理方法的全部或者部分步骤;或者实现硬盘数据处理方法的全部或者部分功能。所述至少一个处理器32可以由集成电路组成,例如可以由单个封装的集成电路所组成,也可以是由多个相同功能或不同功能封装的集成电路所组成,包括一个或者多个中央处理器(Central Processing unit,CPU)、微处理器、数字处理坏块控制芯片、图形处理器及各种控制坏块控制芯片的组合等。In some embodiments, the at least one processor 32 is the control core (Control Unit) of the computer device 3, using various interfaces and lines to connect various components of the entire computer device 3, by running or executing the data stored in the computer device 3. The programs or modules in the memory 31 and the data stored in the memory 31 are called to perform various functions of the computer device 3 and process data. For example, when the at least one processor 32 executes the computer program stored in the memory, it implements all or part of the steps of the hard disk data processing method described in the embodiments of this application; or realizes all or part of the functions of the hard disk data processing method. The at least one processor 32 may be composed of an integrated circuit, for example, it may be composed of a single packaged integrated circuit, or it may be composed of multiple integrated circuits packaged with the same function or different functions, including one or more central processing units. (Central Processing unit, CPU), microprocessor, digital processing bad block control chip, graphics processor and various combinations of bad block control chips, etc.
在一些实施例中,所述至少一条通信总线33被设置为实现所述存储器31以及所述至少一个处理器32等之间的连接通信。尽管未示出,所述计算机设备3还可以包括给各个部件供电的电源(比如电池),优选的,电源可以通过电源管理装置与所述至少一个处理器32逻辑相连,从而通过电源管理装置实现管理充电、放电、以及功耗管理等功能。电源还可以包括一个或一个以上的直流或交流电源、再充电装置、电源故障检测电路、电源转换器或者逆变器、电源状态指示器等任意组件。所述计算机设备3还可以包括多种传感器、蓝牙模块、Wi-Fi模块等,在此不再赘述。In some embodiments, the at least one communication bus 33 is configured to implement connection communication between the memory 31 and the at least one processor 32 and the like. Although not shown, the computer device 3 may also include a power supply (such as a battery) that supplies power to various components. Preferably, the power supply may be logically connected to the at least one processor 32 through a power management device, thereby implementing the power management device. Manage functions such as charging, discharging, and power consumption management. The power supply may also include one or more DC or AC power supplies, recharging devices, power failure detection circuits, power converters or inverters, power status indicators and other arbitrary components. The computer device 3 may also include a variety of sensors, Bluetooth modules, Wi-Fi modules, etc., which will not be described again here.
上述以软件功能模块的形式实现的集成的单元,可以存储在一个计算机可读取存储介质中。上述软件功能模块存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,计算机设备,或者网络设备等)或处理器(processor)执行本申请各个实施例所述方法的部分。The above-mentioned integrated units implemented in the form of software function modules can be stored in a computer-readable storage medium. The above-mentioned software function modules are stored in a storage medium and include a number of instructions to cause a computer device (which can be a personal computer, computer device, or network device, etc.) or processor to execute the methods described in various embodiments of this application. part.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of modules is only a logical function division, and there may be other division methods in actual implementation.
所述作为分离部件说明的模块可以是或者也可以不是物理上分开的,作为模块显示的部件可以是或者也可以不是物理单元,既可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, and may be located in one place, or may be distributed to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
本申请中的实施例中所使用的术语只是为了描述特定实施例的目的,而并非旨在作为对本申请的限制。如在本申请的说明书和所附权利要求书中所使用的那样,单数表达形式“一个”、“一种”、“所述”、“上述”、“该”和“这一”旨在也包括复数表达形式,除非其上下文中明确地有相反指示。还应当理解,本申请中使用的术语“和/或”是指包含一个或多个所列出项目的任何或所有可能组合。术语“第一”、“第二”仅用于描述目的,而不能理解为暗示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征,在本申请实施例的描述中,除非另有说明,“多个”的含义是两个或两个以上。The terminology used in the embodiments of the present application is for the purpose of describing specific embodiments only and is not intended to be limiting of the present application. As used in the specification and appended claims of this application, the singular expressions "a", "an", "said", "above", "the" and "the" are intended to also Plural expressions are included unless the context clearly indicates otherwise. It will also be understood that the term "and/or" as used in this application is meant to encompass any and all possible combinations of one or more of the listed items. The terms “first” and “second” are used for descriptive purposes only and shall not be understood as implying or implying relative importance or implicitly specifying the quantity of indicated technical features. Therefore, the features defined as “first” and “second” may explicitly or implicitly include one or more of the features. In the description of the embodiments of this application, unless otherwise specified, “plurality” The meaning is two or more.
以上内容,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以权利要求的保护范围为准。The above contents are only specific embodiments of the present application, but the protection scope of the present application is not limited thereto. Any person familiar with the technical field can easily think of changes or replacements within the technical scope disclosed in the present application, and should are covered by the protection scope of this application. Therefore, the protection scope of this application should be subject to the protection scope of the claims.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202311010275.9ACN117076170A (en) | 2023-08-10 | 2023-08-10 | Hard disk data processing method, device, computer equipment and storage medium |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202311010275.9ACN117076170A (en) | 2023-08-10 | 2023-08-10 | Hard disk data processing method, device, computer equipment and storage medium |
| Publication Number | Publication Date |
|---|---|
| CN117076170Atrue CN117076170A (en) | 2023-11-17 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202311010275.9AWithdrawnCN117076170A (en) | 2023-08-10 | 2023-08-10 | Hard disk data processing method, device, computer equipment and storage medium |
| Country | Link |
|---|---|
| CN (1) | CN117076170A (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN117785565A (en)* | 2024-02-23 | 2024-03-29 | 深圳市创世飞达科技有限公司 | Solid state storage hard disk data recovery method and solid state hard disk |
| CN120491908A (en)* | 2025-07-16 | 2025-08-15 | 苏州元脑智能科技有限公司 | Hard disk management method, electronic device, storage medium and program product |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN117785565A (en)* | 2024-02-23 | 2024-03-29 | 深圳市创世飞达科技有限公司 | Solid state storage hard disk data recovery method and solid state hard disk |
| CN117785565B (en)* | 2024-02-23 | 2024-05-03 | 深圳市创世飞达科技有限公司 | Solid state storage hard disk data recovery method and solid state hard disk |
| CN120491908A (en)* | 2025-07-16 | 2025-08-15 | 苏州元脑智能科技有限公司 | Hard disk management method, electronic device, storage medium and program product |
| Publication | Publication Date | Title |
|---|---|---|
| JP6437656B2 (en) | Storage device, storage system, and storage system control method | |
| US10552272B2 (en) | Maintaining high availability during N-node failover | |
| US8645750B2 (en) | Computer system and control method for allocation of logical resources to virtual storage areas | |
| US8200999B2 (en) | Selective power reduction of memory hardware | |
| JP5402693B2 (en) | Disk array device control method and disk array device | |
| JP6051228B2 (en) | Computer system, storage management computer, and storage management method | |
| JP5427011B2 (en) | Virtual hard disk management server, management method, and management program | |
| US7814351B2 (en) | Power management in a storage array | |
| JP5186367B2 (en) | Memory migration system and method | |
| JP6331773B2 (en) | Storage control device and storage control program | |
| US8677167B2 (en) | Storage apparatus and power control method | |
| EP2413245A1 (en) | Storage system provided with a plurality of flash packages | |
| US20150039837A1 (en) | System and method for tiered caching and storage allocation | |
| WO2015114643A1 (en) | Data storage system rebuild | |
| CA2893286A1 (en) | Data storage method and storage device | |
| CN110780811B (en) | Data protection method, device and storage medium | |
| US20100100677A1 (en) | Power and performance management using MAIDx and adaptive data placement | |
| US10234929B2 (en) | Storage system and control apparatus | |
| CN111240903A (en) | Data recovery method and related equipment | |
| CN118251651A (en) | Dynamic repartition of memory physical address mapping | |
| CN113655963B (en) | Data storage system, method and computer equipment based on memory bridging | |
| CN117076170A (en) | Hard disk data processing method, device, computer equipment and storage medium | |
| CN109558068B (en) | Data migration method and migration system | |
| CN104460938B (en) | System-wide power conservation method and system using memory cache | |
| US12346570B2 (en) | Data regeneration and storage in a raid storage system |
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| WW01 | Invention patent application withdrawn after publication | Application publication date:20231117 | |
| WW01 | Invention patent application withdrawn after publication |