Unlock instant, AI-driven research and patent intelligence for your innovation.

Method and device for protecting cached data

A technology for caching data and caching, applied in the field of storage, can solve the problems of inability to refresh data to disk and loss of cached data, and achieve the effect of enhancing robustness and protecting cached data.

Active Publication Date: 2021-06-29
MACROSAN TECH
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] In view of this, the present application provides a method and device for protecting cached data, so as to solve the problem of restarting and recovering the storage device in the event of a double-point failure, and the two failure controllers cannot refresh the data in the cache to the disk, causing the cached data to fail. missing problem

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for protecting cached data
  • Method and device for protecting cached data
  • Method and device for protecting cached data

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0017] Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with aspects of the present application as recited in the appended claims.

[0018] The terminology used in this application is for the purpose of describing particular embodiments only, and is not intended to limit the application. As used in this application and the appended claims, the singular forms "a", "the", and "the" are intended to include the plural forms as well, unless the context clearly dictates otherwise. It should also be understood that the term...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The present application provides a method and device for protecting cached data. The method includes: when a double-point failure is detected, control the first controller to restart, and keep supplying power to the second controller; Copy the data in the cache of the second controller to the cache of the first controller, and obtain the magic word in the cache of the first controller; if the obtained magic word is consistent with the preset magic word, it is determined that the copied data is complete and valid, An LU mapping linked list is established according to the data, and dirty data in the data is flushed to the disk according to the LU mapping linked list. In this application, one controller is restarted and the other controller is not powered off to ensure that the data in the cache will not be lost. The data in the cache of the unpowered controller is copied to the cache of the restarted controller to ensure that the two controllers fail The data that has not been flushed to the disk before is not lost, and then the LU mapping linked list is established to flush the data to the disk to achieve the purpose of cache data protection.

Description

technical field [0001] The present application relates to the field of storage technologies, and in particular to a method and device for protecting cached data. Background technique [0002] At present, dual-controller storage devices are more and more widely used. After one controller fails, the other controller can take over the business to ensure the continuity of the business, so that the storage system has higher reliability. Usually, in order to ensure data consistency in the caches of the two controllers, the two controllers have corresponding cache mirrors, and the write command will write to the cache of the other controller while writing to the cache of the other controller. In addition, in order to avoid the loss of data in the cache after the storage device is shut down or restarted, the data in the cache (that is, dirty data) will be refreshed to the disk when the storage device is shut down or restarted, and when one of the controllers fails, Since the data i...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F11/14
CPCG06F11/1423
Inventor 李丰王婵娟
Owner MACROSAN TECH