The invention discloses a disk data protection method. The method of the invention includes receiving a disk operation request, request the statistics sector access heat; when requesting access to the hot sector heat requirements, does not exist to generate requests for copies of copies of the sector and disk free space free space is greater than a pre-determined threshold value; consistent data in read and write operation request and request copies of the sector sector the choice of one sector to operate, preferably from the current position of the sector head operation. When the selected sector the latest data both in operation. When a hot sector or its copy fails, the failure sector is restored with data from its mirrored sector. The present invention by the number of write to reduce the probability of failure of the sector to reduce the hot sector read, the invention ensures the reliability of the hot sector data, at the same time in response to application request, return from the head more recent data, provides more reading and writing performance.
【技术实现步骤摘要】
本专利技术属于计算机存储
,具体涉及一种为防止由磁盘或磁盘阵列中扇区 失效导致数据丢失而提供的磁盘数据保护方法。
技术介绍
随着硬盘价格的不断下滑,2TB的大容量硬盘已经日渐普及。然而,大容量的硬盘 的使用会带来可靠性方面问题,因为由于工艺原因,每个硬盘都存在一定的误码率,当误码 率为固定值的情况下,单盘容量加大时,硬盘发生潜在扇区失效的概率也会增加。在采用磁 盘阵列RAID技术的存储系统中出现磁盘故障时,RAID的重建线程被调用。但是当重建过程 中出现扇区失效或者潜在数据腐化故障时,某些数据块不能成功恢复,因此发生数据丢失。为了防止这种情况的出现,研究者们提出了磁盘扫描技术来探测扇区失效,提 出了磁盘内冗余技术来恢复由于扇区失效导致的数据丢失(具体参见A. Dholakia et al. Analysis of a New Intra-Disk Redundancy Scheme forHigh-Rellability RAID Storage Systems in the Presence of Unrecoverable Errors. IBM Research Report RZ 3652, March 16,2006).磁盘扫描技术利用介质扫描和数据扫描来检测存储系统中的潜在 扇区错误和无征兆数据腐化等磁盘错误。而磁盘内冗余技术则把RAID中的每个条带单元 分成几个段,每个段中一部分空间用于存储正常的数据,另外一部分空间存储用于奇偶校 验的冗余数据。当发生扇区失效时,即可利用冗余数据来进行恢复。该方案大大提高了存储系统的可靠性。但是这种方 ...
【技术保护点】
一种磁盘数据保护方法,其特征在于,该方法包含以下步骤:(1)接收磁盘操作请求,统计请求扇区的访问热度;(2)判断请求扇区的访问热度是否达到热点要求,是,则进入步骤(3);否,则转入步骤(6);(3)判断请求扇区是否存在副本,是,则转入步骤(5);否,则进入步骤(4);(4)判断磁盘空闲空间是否大于预先设定的空闲空间阈值,是,则生成请求扇区的副本,进入步骤(5);否,则转入步骤(6);(5)判断请求扇区和请求扇区的副本这两个扇区的数据是否一致,是,则选择两个扇区中的任意一个扇区进行操作,然后转入步骤(7);否,则选择两个扇区中数据最新的扇区进行操作,然后转入步骤(7);(6)操作请求扇区;(7)本次磁盘操作结束;(8)重复执行步骤(1)-(7),直至磁盘停止运行。
【技术特征摘要】
【专利技术属性】
技术研发人员:周可,刘军平,庞丽萍,雷栋梁,刘进,
申请(专利权)人:华中科技大学,
类型:发明
国别省市:83
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。