The invention relates to the storage technical field, in particular to a method and a device for synchronous caching in a dual control storage system. The invention discloses a method for synchronization of cache, including default cache third party in the double control storage system; monitoring and control system in double storage controller judgment whether the downtime, if one party controller downtime, enable third party cache; if not, continue to monitor; third party cache synchronization with the normal controller cache. Device, the invention also discloses a synchronous cache including a preset module, used to preset third party cache in the dual control storage system; judging module for monitoring controller for determining the dual control of the storage system is down, if one party controller downtime, enable third party cache; if not, continue to monitor the synchronization module; for the third party, and the normal controller to synchronize the cache cache. The invention can preset third party caching mechanism to achieve improved dual control storage system a controller down another controller cache off faults.
【技术实现步骤摘要】
一种同步缓存的方法及装置
本专利技术涉及存储的
,特别是涉及双控制存储系统中同步缓存的方法及装置。
技术介绍
在从事存储的研究设计和测试当中,渐渐地意识到双控制存储系统中,当有一个控制器宕机后,另一个控制器的缓存将会关闭,这样读写数据将会直接从后端硬盘中读取,对性能影响很大。鉴于此,需要一种新的策略来改进上述双控制一个控制器宕机而强制将另一个控制器缓存关闭的缺点。
技术实现思路
本专利技术目的是提供一种同步缓存的方法及装置,本专利技术通过预设第三方缓存机制,实现改进双控制存储系统一个控制器宕机而强制将另一个控制器缓存关闭的缺点。为了实现上述目的,本专利技术采用以下的技术方案:一种同步缓存的方法,包括以下步骤:在双控制存储系统中预设第三方缓存;监测判断双控制存储系统中的控制器是否宕机,若一方控制器宕机,则启用第三方缓存;若否,继续监测;第三方缓存与正常控制器同步缓存。进一步的,第三方缓存与正常控制器同步缓存之后,还包括,修复宕机的控制器,恢复后的控制器重新启动。进一步的,在修复宕机的控制器,修复后的控制器重新启动之后,第三方缓存将缓存数据同步给修复后的控制器的缓存。进一步的,在修复宕机的控制器,修复后的控制器重新启动之后,在第三方缓存将缓存数据同步给修复后的控制器的缓存之后,还包括,同步缓存完成后,第三方缓存下线。进一步的,所述第三方缓存只在其中一个控制器宕机的情况下,被另一个控制器识别并启用;其它情况下不启用。进一步的,所述第三方缓存是指SSD盘、Flash卡或磁盘阵列中的一块磁盘。进一步的,所述第三方缓存容量不小于单个控制器的总容量。进一步的,第三方缓 ...
【技术保护点】
一种同步缓存的方法,其特征在于,包括:在双控制存储系统中预设第三方缓存;监测判断双控制存储系统中的控制器是否宕机,若一方控制器宕机,则启用第三方缓存;若否,继续监测;第三方缓存与正常控制器同步缓存。
【技术特征摘要】
1.一种同步缓存的方法,其特征在于,包括:在双控制存储系统中预设第三方缓存;监测判断双控制存储系统中的控制器是否宕机,若一方控制器宕机,则启用第三方缓存;若否,继续监测;第三方缓存与正常控制器同步缓存。2.根据权利要求1所述的一种同步缓存的方法,其特征在于,在第三方缓存与正常控制器同步缓存之后,还包括,修复宕机的控制器,修复后的控制器重新启动。3.根据权利要求2所述的一种同步缓存的方法,其特征在于,在修复宕机的控制器,修复后的控制器重新启动之后,还包括,第三方缓存将缓存数据同步给修复后的控制器的缓存。4.根据权利要求3所述的一种同步缓存的方法,其特征在于,在第三方缓存将缓存数据同步给修复后的控制器的缓存之后,还包括,同步缓存完成后,第三方缓存下线。5.根据权利要求1所述的一种同步缓存的方法,其特征在于,所述第三方缓存只在其中一个控制器宕机的情况下,被另一个控制器识别并启用;其它情况下不启用。6.根据权利要求1所述的一种同步缓存的...
【专利技术属性】
技术研发人员:谭世伟,黄臣,方磊,于建彬,
申请(专利权)人:郑州云海信息技术有限公司,
类型:发明
国别省市:河南,41
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。