[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN1991776A - Method for protecting cached data of a storage system - Google Patents

Method for protecting cached data of a storage system Download PDF

Info

Publication number
CN1991776A
CN1991776A CNA2005100488054A CN200510048805A CN1991776A CN 1991776 A CN1991776 A CN 1991776A CN A2005100488054 A CNA2005100488054 A CN A2005100488054A CN 200510048805 A CN200510048805 A CN 200510048805A CN 1991776 A CN1991776 A CN 1991776A
Authority
CN
China
Prior art keywords
storage system
data
disk cache
storage
information
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.)
Granted
Application number
CNA2005100488054A
Other languages
Chinese (zh)
Other versions
CN100426246C (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.)
Ningbo Cas Message Technology Applied Research Institute
Original Assignee
Inventec Corp
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 Inventec Corp filed Critical Inventec Corp
Priority to CNB2005100488054A priority Critical patent/CN100426246C/en
Publication of CN1991776A publication Critical patent/CN1991776A/en
Application granted granted Critical
Publication of CN100426246C publication Critical patent/CN100426246C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Memory System Of A Hierarchy Structure (AREA)

Abstract

A method for protecting data cached in a storage system is used for protecting the cached data of a first storage system and a second storage system which are connected with each other and have a battery power supply function. When the first storage system and the second storage system operate normally, the data of the cache of the other side are mutually backed up. When any storage system is abnormally powered off, the other normally working storage system takes over the storage equipment of the abnormal storage system, protects the data of the cache of the other storage system through the battery power supply function, and continuously backs up the data of the cache of the other storage system after the abnormal storage system is restarted, so that the data of the cache of the storage system can be comprehensively protected, and the reliability of the storage system is improved.

Description

The Data Protection method of the high-speed cache of storage system
Technical field
The present invention relates to a kind of data guard method, particularly a kind of Data Protection method of high-speed cache of storage system.
Background technology
In the epoch of this information explosion, a large amount of fresh information technology continue to bring out.And ever-increasing storage demand makes the development of memory device and memory technology advance by leaps and bounds, and occupies critical role in infotech.Therefore, (Storage Area Network SAN) obtains broad development for Network storage technology, especially storage area network.
Storage area network is the network that is different from regional network or wide area network.Some are connected to the storage resources of server in order to interconnect for it, and the high transfer rate between internal storage device (Gigabits/sec), enhanced scalability and high reliability are its notable features.Except that hardware, storage area network also has special software in order to system is managed, monitors and disposes.
In the storage system of storage area network, in order to improve system effectiveness, adopt the mode of a kind of disk cache (Disk Cache), write back formula (Write-back) high-speed cache, promptly, when equipment is carried out write operation, the data that needs are write are in the position of random access memory, size, the device name that data need write and think promptly that the location records of this equipment back user in disk cache write operation finishes, task by the special read-write equipment of system is in due course then, regularly or when the system random access memory source is not enough finish the write operation that is stored in the disk cache, but the data in the disk cache continue to keep; When equipment is carried out read operation, judge whether store the data that need read in the disk cache,, then directly read earlier if having.Otherwise, add disk cache from the access arrangement reading of data and with data.In order to improve the read-write efficiency to block equipment, the driving of block equipment (Driver) has all adopted some to improve the method for read-write efficiencies, as the elevator algorithm, in advance read algorithm, postpone to write algorithm etc.
Each description entry of disk cache description entry in the operating system of storage system (Disk Cache Item) is represented a physical memory page (Page) or block (Block).In storage system, disk cache is described item size and is fixed, and its sequence number can be calculated by formula (disk cache is in the position of random access memory)/(size of disk cache).
Use writes back the mode of formula high-speed cache, makes to exist in the storage system to write disk cache but the data of write storage device not also.If storage system is cut off the power supply at this moment, the data in the disk cache can be lost.
Therefore, in order to improve the reliability of storage area network, known technology provides the solution of some BatteryBacked RAM, but these methods are relatively independent, and is limited to the protection of storage system.
Summary of the invention
In order to solve problem and the defective in the above-mentioned known technology; the object of the present invention is to provide a kind of Data Protection method of high-speed cache of storage system, in order to the data of the high-speed cache of protecting interconnective first storage system with powered battery (Battery Backed) function and second storage system.
The Data Protection method of the high-speed cache of a kind of storage system provided by the present invention comprises following steps: detect the running status of first storage system, and keep a reserve area in the random access memory of second storage system; Judge whether first storage system cuts off the power supply; Move just often when first storage system, monitor operation the disk cache of first storage system, and according to operating in the data of storing or deleting the disk cache of corresponding first storage system in second storage system; When first storage system is cut off the power supply, data write storage device with the storage of the disk cache of second storage system, and take over the memory device of first storage system, the data of the disk cache of first storage system of second storage system storage are write the memory device of first storage system, the servo function of first storage system is provided by second storage system; Whether detect first storage system starts; When first storage system restarts, stop to provide the servo function of first storage system, the data that the needs of the disk cache of second storage system storage are write the memory device of first storage system write the memory device of first storage system; Second storage system stops to take over the memory device of first storage system, and the data of the disk cache of second storage system storage are write the memory device of second storage system, removes the reserve area canned data; When first storage system does not restart, monitor operation to the disk cache of second storage system, and according to the information that operates in the corresponding disk cache description entry of reserve area storage or deletion; Whether detect second storage system cuts off the power supply; When second storage system is cut off the power supply, provide power supply for the random access memory of second storage system by the powered battery function; When second storage system restarts, read the information of the disk cache description entry of reserve area storage, keep the data of the random access memory storage of correspondence position according to information; And after second storage system starts, read the information of the high-speed cache description entry of reserve area storage, the data of the random access memory storage of correspondence position are write the memory device of correspondence according to information.
For the data of the high-speed cache of protecting second storage system effectively, the present invention also further comprises following steps: detect the running status of second storage system, and keep a reserve area in the random access memory of first storage system; Judge whether second storage system cuts off the power supply; Move just often when second storage system, monitor operation the disk cache of second storage system, and according to operating in the data of storing or deleting the disk cache of corresponding second storage system in first storage system; When second storage system is cut off the power supply, data write storage device with the storage of the disk cache of first storage system, and take over the memory device of second storage system, the data of the disk cache of second storage system of first storage system storage are write the memory device of second storage system, the servo function of second storage system is provided by first storage system; Whether detect second storage system starts; When second storage system restarts, stop to provide the servo function of second storage system, the data that the needs of the disk cache of first storage system storage are write the memory device of second storage system write the memory device of second storage system; First storage system stops to take over the memory device of second storage system, and the data of the disk cache of first storage system storage are write the memory device of first storage system, removes the reserve area canned data; When second storage system does not restart, monitor operation to the disk cache of first storage system, and according to the information that operates in the corresponding disk cache description entry of reserve area storage or deletion; Whether detect first storage system cuts off the power supply; When first storage system is cut off the power supply, provide power supply for the random access memory of first storage system by the powered battery function; When first storage system restarts, read the information of the disk cache description entry of reserve area storage, keep the data of the random access memory storage of correspondence position according to information; And after first storage system starts, read the information of the high-speed cache description entry of reserve area storage, the data of the random access memory storage of correspondence position are write the memory device of correspondence according to information.
The Data Protection method of the high-speed cache of storage system of the present invention, wherein also comprise following steps: when the data of write storage device are not written to memory device in the disk cache that monitors this first storage system, the sequence number of storing the disk cache description entry of these data is added into the removing tabulation that is created in this first storage system; When monitoring the user when storing data, read this removing tabulation to disk cache; When this removing list records has the sequence number of the disk cache description entry that needs deletion, send the delete command of the sequence number that comprises the disk cache description entry that needs delete to this second storage system to removing each sequence number in the tabulation; Receive and resolve this delete command, delete the data of the correspondence of this second storage system storage according to this delete command; According to the interpolation that monitors or upgrade that operation sends the sequence number that comprises data content, disk cache description entry, memory device that the disk cache description entry need write number and in the interpolation of the positional information of memory device or update command to this second storage system; And receive and resolve this interpolation or update command, in this second storage system, add or upgrade the data of correspondence according to this interpolation or update command.
The Data Protection method of the high-speed cache of storage system of the present invention, wherein also comprise following steps: when monitoring the user when storing data, with the sequence number of the disk cache description entry of storage data inlet sequence number as this reserve area to disk cache; Storage comprises memory device that data need write number and the information of data in the position of memory device enters the mouth to this; And when the data of write storage device are not written to memory device in monitoring disk cache,, remove this inlet canned data with the sequence number of the disk cache description entry of these data of storage inlet sequence number as this reserve area.
In sum; the invention has the advantages that the data of protecting the other side's high-speed cache between two storage systems mutually; and when arbitrary storage system generation abnormal power-down; the storage system of another operate as normal is taken over the memory device that unusual storage system takes place; and himself the data of high-speed cache of the powered battery function and protecting of the storage system by another operate as normal, greatly improve the reliability of storage system.
Description of drawings
Fig. 1 is the method flow diagram of data of the high-speed cache of protection first storage system of the present invention;
Fig. 2 is the method flow diagram of data of the high-speed cache of protection second storage system of the present invention;
Fig. 3 is the not processing flow chart of the data write storage device of write storage device that monitors in the disk cache of the present invention;
Fig. 4 stores the processing flow chart of data to disk cache for the user of monitoring of the present invention; And
Fig. 5 is a method flow diagram of storing or delete the information of disk cache description entry at reserve area of the present invention.
Wherein, description of reference numerals is as follows:
S100 detects the running status of first storage system, and keeps a reserve area in the random access memory of second storage system
Is S101 first storage system cut off the power supply?
S102 monitors the operation to the disk cache of first storage system, and according to operating in the data of storing or deleting the disk cache of corresponding first storage system in second storage system
S103 is with the data write storage device of the disk cache storage of second storage system, and take over the memory device of first storage system, the data of the disk cache of first storage system of second storage system storage are write the memory device of first storage system, the servo function of first storage system is provided by second storage system
Does S104 first storage system start?
S105 stops to provide the servo function of first storage system, and the data that the needs of the disk cache of second storage system storage are write the memory device of first storage system write the memory device of first storage system
S106 second storage system stops to take over the memory device of first storage system, and the data of the disk cache of second storage system storage are write the memory device of second storage system, removes the reserve area canned data
S107 monitors the operation to the disk cache of second storage system, and according to the information that operates in the corresponding disk cache description entry of reserve area storage or deletion
Is S108 second storage system cut off the power supply?
S109 provides power supply by the powered battery function for the random access memory of second storage system
When S110 restarts when second storage system, read the information of the disk cache description entry of reserve area storage, keep the data of the random access memory storage of correspondence position according to information
S111 reads the information of the high-speed cache description entry of reserve area storage after second storage system starts, the data of the random access memory storage of correspondence position are write the memory device of correspondence according to information
S200 detects the running status of second storage system, and keeps a reserve area in the random access memory of first storage system
Is S201 second storage system cut off the power supply?
S202 monitors the operation to the disk cache of second storage system, and according to operating in the data of storing or deleting the disk cache of corresponding second storage system in first storage system
S203 is with the data write storage device of the disk cache storage of first storage system, and take over the memory device of second storage system, the data of the disk cache of second storage system of first storage system storage are write the memory device of second storage system, the servo function of second storage system is provided by first storage system
Does S204 second storage system start?
S205 stops to provide the servo function of second storage system, and the data that the needs of the disk cache of first storage system storage are write the memory device of second storage system write the memory device of second storage system
S206 first storage system stops to take over the memory device of second storage system, and the data of the disk cache of first storage system storage are write the memory device of first storage system, removes the reserve area canned data
S207 monitors the operation to the disk cache of first storage system, and according to the information that operates in the corresponding disk cache description entry of reserve area storage or deletion
Is S208 first storage system cut off the power supply?
S209 provides power supply by the powered battery function for the random access memory of first storage system
When S210 restarts when first storage system, read the information of the disk cache description entry of reserve area storage, keep the data of the random access memory storage of correspondence position according to information
S211 reads the information of the high-speed cache description entry of reserve area storage after first storage system starts, the data of the random access memory storage of correspondence position are write the memory device of correspondence according to information
S300 is added into a removing tabulation that is created in first storage system with the sequence number of the disk cache description entry of these data of storage in monitoring disk cache not during the data write storage device of write storage device
S400 reads and removes tabulation when monitoring the user when storing data to disk cache
Does S410 record the sequence number of the disk cache description entry that needs deletion?
S420 sends delete command to the second storage system that comprises the sequence number of the disk cache description entry that needs delete to removing each sequence number in the tabulation
S430 second storage system receives and resolves this delete command, deletes the data of the correspondence of second storage system storage according to this delete command
S440 sends a sequence number that comprises data content, disk cache description entry, memory device that the disk cache description entry need write number according to the interpolation of monitoring or update command and in the interpolation or update command to the second storage system of the positional information of this memory device
S450 second storage system receives and resolves this interpolation or update command, adds or upgrade the data of correspondence in second storage system according to this interpolation or update command
S500 is when monitoring the user when storing data to disk cache, with the sequence number of the disk cache description entry of a storage data inlet sequence number as reserve area
One of S510 storage comprises memory device that data need write number and the information of data in the position of memory device so far enters the mouth
S520 is not when the data of write storage device are written to memory device in monitoring disk cache, with the sequence number of the disk cache description entry of these data of a storage inlet sequence number as reserve area, removes this inlet canned data
Embodiment
Below, part elaborates to better embodiment of the present invention in conjunction with the accompanying drawings.
Please refer to Fig. 1, Fig. 3, Fig. 4 and Fig. 5 now; Fig. 1 is the method flow diagram of data of the high-speed cache of protection first storage system of the present invention; Fig. 3 is the not processing flow chart of the data write storage device of write storage device that monitors in the disk cache of the present invention; Fig. 4 stores the processing flow chart of data to disk cache for the user of monitoring of the present invention, and Fig. 5 is a method flow diagram of storing or delete the information of disk cache description entry at reserve area of the present invention.
As shown in the figure, better embodiment of the present invention comprises following steps:
First storage system is two storage systems that are connected by the inner high speed network in the storage area network with second storage system.When first storage system and the startup of second storage system, be provided with in the basic input/output (BIOS) of second storage system about the parameter setting of random access memory self check data, and in the random access memory of second storage system, keep a reserve area with the random access memory storage that keeps second storage system.After first storage system and the startup of second storage system, second storage system receives the running status (S100) of heartbeat signal to detect first storage system that first storage system sends by the inner high speed network, judge first storage system cut off the power supply (S101)?
When first storage system is moved just often, first storage system monitoring user is to the operation of disk cache, and according to operating in the data (S102) of storing or deleting the disk cache of corresponding first storage system in second storage system, it also comprises following steps: not during the data write storage device of write storage device, the sequence number that first storage system will be stored the disk cache description entry of these data is added into removing tabulation (S300) (as shown in Figure 3) that is created in first storage system in monitoring disk cache.When monitoring the user when storing data to disk cache, read and remove (S400) (as shown in Figure 4) of tabulating, do you judge and remove the sequence number (S410) that tabulation records the disk cache description entry that needs deletion? if there is not record, then direct execution in step S440, otherwise, send delete command to the second storage system (S420) that comprises the sequence number of the disk cache description entry that needs delete to removing each sequence number in the tabulation.Second storage system receives and resolves this delete command, deletes the data (S430) of the correspondence of second storage system storage according to this delete command.Then, send a sequence number that comprises data content, disk cache description entry, memory device that the disk cache description entry need write number and disk cache description entry interpolation or update command to the second storage system (S440) according to the interpolation of monitoring or update command in the positional information of this memory device, second storage system receives and resolves this interpolation or update command, adds or upgrade the data (S470) of correspondence in second storage system according to this interpolation or update command.Simultaneously, second storage system always execution in step S101 so that first storage system in time handle when outage takes place.
When first storage system is cut off the power supply, at first,, and take over the memory device of first storage system with the data write storage device of second storage system disk cache storage.Then, the data of the disk cache of first storage system of second storage system storage are write the memory device of first storage system, the servo function (S103) of first storage system is provided by second storage system according to record.Simultaneously, does second storage system detect first storage system constantly and restarts (S104)?
When second storage system detect first the storage restart after, second storage system stops to provide the servo function of first storage system, and the data that the needs of the disk cache of second storage system storage are write the memory device of first storage system write the memory device (S105) of first storage system.Then, second storage system stops to take over the memory device of first storage system, the data of the disk cache of second storage system storage are write the memory device of second storage system, the space (S106) of removing the reserve area canned data and discharging the random access memory of second storage system.At this moment, first storage system and second storage system all enter normal operating condition, and second storage system continues execution in step S101.
When first storage system does not restart, second storage system monitoring user is to the operation of disk cache, and according to the information (S107) that operates in the corresponding disk cache description entry of reserve area storage or deletion, it also comprises following steps (as shown in Figure 5): when monitoring the user when storing data to disk cache, the sequence number of the disk cache description entry of storage data as one of reserve area inlet sequence number (S500), is stored one and comprised memory device that data need write number and the information of data in the position of memory device so far enter the mouth (S510).When the data of write storage device are not written to memory device in monitoring disk cache, the sequence number of the disk cache description entry of these data of storage as one of reserve area inlet sequence number, is removed this inlet canned data (S520).Simultaneously, does second storage system detect oneself cut off the power supply (S108) constantly? when second storage system is not cut off the power supply, continue execution in step S104.
When second storage system is cut off the power supply, provide power supply by the powered battery function for the random access memory of second storage system, to keep the data of random access memory storage.And for the CPU of second storage system provides the power supply of short period, to allow CPU finish the cached data of CPU synchronously to the task (S109) of the random access memory of second storage system.Fix a breakdown when restarting when second storage system, read the information of the disk cache description entry of reserve area storage, keep the data (S110) of the random access memory storage of correspondence position according to the information that reads.After second storage system restarts, read the information of the high-speed cache description entry of reserve area storage, the data of the random access memory storage of correspondence position are write the memory device (S111) of correspondence according to the information that reads.At this moment, second storage system enters normal operating condition, continues execution in step S104.
By foregoing description, the data of the disk cache of first storage system are backed up constantly by second storage system when its normal operation, and keep data consistency.And when outage took place first storage system, second storage system was taken over the memory device of first storage system, and the data of the disk cache of first storage system of its backup was write the memory device of first storage system.Simultaneously, second storage system is also protected the data of disk cache storage when it cuts off the power supply by the powered battery function of self.Therefore, the data that are positioned at the disk cache of first storage system of same storage area network and second storage system have obtained protection all sidedly.
Please refer to Fig. 2 now, this figure is the method flow diagram of data of the high-speed cache of protection second storage system of the present invention.According to better embodiment of the present invention, it further comprises following steps: first storage system is two storage systems that are connected by the inner high speed network in the storage area network with second storage system.When first storage system and the startup of second storage system, be provided with in the basic input/output (BIOS) of first storage system about the parameter setting of random access memory self check data, and in the random access memory of first storage system, keep a reserve area with the random access memory storage that keeps first storage system.After first storage system and the startup of second storage system, first storage system receives the running status (S200) of heartbeat signal to detect second storage system that second storage system sends by the inner high speed network, judge second storage system cut off the power supply (S201)?
When second storage system is moved just often, second storage system monitoring user is to the operation of disk cache, and according to operating in the data (S202) of storing or deleting the disk cache of corresponding second storage system in first storage system, the detailed realization flow of this step please refer to Fig. 3 and Fig. 4, does not repeat them here.
When second storage system is cut off the power supply, at first,, and take over the memory device of second storage system with the data write storage device of first storage system disk cache storage.Then, the data of the disk cache of second storage system of first storage system storage are write the memory device of second storage system, the servo function (S203) of second storage system is provided by first storage system according to record.Simultaneously, does first storage system detect second storage system constantly and restarts (S204)?
When first storage system detect second the storage restart after, first storage system stops to provide the servo function of second storage system, and the data that the needs of the disk cache of first storage system storage are write the memory device of second storage system write the memory device (S205) of second storage system.Then, first storage system stops to take over the memory device of second storage system, the data of the disk cache of first storage system storage are write the memory device of first storage system, the space (S206) of removing the reserve area canned data and discharging the random access memory of first storage system.At this moment, first storage system and second storage system all enter normal operating condition, and first storage system continues execution in step S201.
When second storage system does not restart, first storage system monitoring user is to the operation of disk cache, and according to the information (S107) that operates in the corresponding disk cache description entry of reserve area storage or deletion, the detailed realization flow of this step please refer to Fig. 5, does not repeat them here.Simultaneously, does first storage system detect oneself cut off the power supply (S208) constantly? when first storage system is not cut off the power supply, continue execution in step S204.
When first storage system is cut off the power supply, provide power supply by the powered battery function for the random access memory of first storage system, to keep the data of random access memory storage.And for the CPU of first storage system provides the power supply of short period, to allow CPU finish the cached data of CPU synchronously to the task (S209) of the random access memory of first storage system.Fix a breakdown when restarting when first storage system, read the information of the disk cache description entry of reserve area storage, keep the data (S110) of the random access memory storage of correspondence position according to the information that reads.After first storage system restarts, read the information of the high-speed cache description entry of reserve area storage, the data of the random access memory storage of correspondence position are write the memory device (S111) of correspondence according to the information that reads.At this moment, first storage system enters normal operating condition, continues execution in step S204.
By foregoing description, the data of the disk cache of second storage system are backed up constantly by first storage system when its normal operation, and keep data consistency.And when outage took place second storage system, first storage system was taken over the memory device of second storage system, and the data of the disk cache of second storage system of its backup was write the memory device of second storage system.Simultaneously, first storage system is also protected the data of disk cache storage when it cuts off the power supply by the powered battery function of self.Therefore, the data that are positioned at the disk cache of first storage system of same storage area network and second storage system have obtained protection all sidedly.
Though the present invention with aforesaid better embodiment openly as above, so it is not in order to limit the present invention.Those skilled in the art should recognize that change of being done and modification all belong in the scope of claims of the present invention under the situation of the scope and spirit of the present invention that do not break away from appending claims of the present invention and disclosed.Please refer to appending claims about the protection domain that the present invention defined.

Claims (4)

1、一种存储系统的高速缓存的数据的保护方法,用以保护相互连接的具有电池供电功能的第一存储系统和第二存储系统的高速缓存的数据,该方法包含以下步骤:1. A method for protecting the cached data of a storage system, used to protect the cached data of a first storage system and a second storage system connected to each other with a battery-powered function, the method comprising the following steps: (a)检测该第一存储系统的运行状态,在该第二存储系统的随机存取内存中保留保留区域;(a) detecting the running status of the first storage system, and reserving a reserved area in the random access memory of the second storage system; (b)监控对该第一存储系统的磁盘高速缓存的操作,并依照操作在该第二存储系统中存储或删除相应的该第一存储系统的磁盘高速缓存的数据;(b) monitoring the operation of the disk cache of the first storage system, and storing or deleting corresponding data of the disk cache of the first storage system in the second storage system according to the operation; (c)当该第一存储系统断电时,将该第二存储系统的磁盘高速缓存存储的数据写入存储设备,并接管该第一存储系统的存储设备,将该第二存储系统存储的该第一存储系统的磁盘高速缓存的数据写入该第一存储系统的存储设备,通过该第二存储系统提供该第一存储系统的伺服功能;(c) When the first storage system is powered off, write the data stored in the disk cache of the second storage system into the storage device, and take over the storage device of the first storage system, and store the data stored in the second storage system The data of the disk cache of the first storage system is written into the storage device of the first storage system, and the servo function of the first storage system is provided by the second storage system; (d)监控对该第二存储系统的磁盘高速缓存的操作,并依照操作在该保留区域存储或删除对应的磁盘高速缓存描述项的信息;(d) monitor the operation of the disk cache of the second storage system, and store or delete the information of the corresponding disk cache description item in the reserved area according to the operation; (e)当该第二存储系统断电时,通过电池供电功能为该第二存储系统的随机存取内存提供电源;(e) when the second storage system is powered off, provide power to the random access memory of the second storage system through the battery power supply function; (f)当该第二存储系统重新启动时,读取该保留区域存储的磁盘高速缓存描述项的信息,依照信息保留对应位置的随机存取内存存储的数据;(f) When the second storage system restarts, read the information of the disk cache description item stored in the reserved area, and reserve the data stored in the random access memory at the corresponding location according to the information; (g)当该第二存储系统启动后,读取该保留区域存储的磁盘高速缓存描述项的信息,依照信息将对应位置的随机存取内存存储的数据写入对应的存储设备;(g) After the second storage system is started, read the information of the disk cache description item stored in the reserved area, and write the data stored in the random access memory at the corresponding location into the corresponding storage device according to the information; (h)当该第一存储系统重新启动后,停止提供该第一存储系统的伺服功能,将该第二存储系统的磁盘高速缓存存储的需要写入该第一存储系统的存储设备的数据写入该第一存储系统的存储设备;以及(h) After the first storage system restarts, stop providing the servo function of the first storage system, and write the data stored in the disk cache of the second storage system that needs to be written into the storage device of the first storage system into the storage device of the first storage system; and (i)该第二存储系统停止接管该第一存储系统的存储设备,将该第二存储系统的磁盘高速缓存存储的数据写入该第二存储系统的存储设备,清除该保留区域存储的信息,并执行步骤(a)。(i) The second storage system stops taking over the storage device of the first storage system, writes the data stored in the disk cache of the second storage system into the storage device of the second storage system, and clears the information stored in the reserved area , and perform step (a). 2、如权利要求1所述的存储系统的高速缓存的数据的保护方法,其中进一步包含如下步骤:2. The method for protecting cached data of a storage system according to claim 1, further comprising the following steps: (a′)检测该第二存储系统的运行状态,在该第一存储系统的随机存取内存中保留一保留区域;(a') detecting the running status of the second storage system, and reserving a reserved area in the random access memory of the first storage system; (b′)监控对该第二存储系统的磁盘高速缓存的操作,并依照操作在该第一存储系统中存储或删除相应的该第二存储系统的磁盘高速缓存的数据;(b') monitoring the operation of the disk cache of the second storage system, and storing or deleting corresponding data of the disk cache of the second storage system in the first storage system according to the operation; (c′)当该第二存储系统断电时,将该第一存储系统的磁盘高速缓存存储的数据写入存储设备,并接管该第二存储系统的存储设备,将该第一存储系统存储的该第二存储系统的磁盘高速缓存的数据写入该第二存储系统的存储设备,通过该第一存储系统提供该第二存储系统的伺服功能;(c') When the second storage system is powered off, write the data stored in the disk cache of the first storage system into the storage device, and take over the storage device of the second storage system, and store the data in the first storage system Write the data of the disk cache of the second storage system into the storage device of the second storage system, and provide the servo function of the second storage system through the first storage system; (d′)监控对该第一存储系统的磁盘高速缓存的操作,并依照操作在该保留区域存储或删除对应的高速缓存描述项的信息;(d') monitor the operation of the disk cache of the first storage system, and store or delete the information of the corresponding cache description item in the reserved area according to the operation; (e′)当该第一存储系统断电时,通过电池供电功能为该第一存储系统的随机存取内存提供电源;(e') when the first storage system is powered off, providing power to the random access memory of the first storage system through the battery power supply function; (f′)当该第一存储系统重新启动时,读取该保留区域存储的磁盘高速缓存描述项的信息,依照信息保留对应位置的随机存取内存存储的数据;(f') When the first storage system restarts, read the information of the disk cache description item stored in the reserved area, and reserve the data stored in the random access memory at the corresponding location according to the information; (g′)当该第一存储系统启动后,读取该保留区域存储的磁盘高速缓存描述项的信息,依照信息将对应位置的随机存取内存存储的数据写入对应的存储设备;(g') After the first storage system is started, read the information of the disk cache description item stored in the reserved area, and write the data stored in the random access memory at the corresponding location into the corresponding storage device according to the information; (h′)当该第二存储系统重新启动后,停止提供该第二存储系统的伺服功能,将该第一存储系统的磁盘高速缓存存储的需要写入该第二存储系统的存储设备的数据写入该第二存储系统的存储设备;以及(h') After the second storage system restarts, stop providing the servo function of the second storage system, and store the data in the disk cache of the first storage system that needs to be written into the storage device of the second storage system writing to a storage device of the second storage system; and (i′)该第一存储系统停止接管该第二存储系统的存储设备,将该第一存储系统的磁盘高速缓存存储的数据写入该第一存储系统的存储设备,清除该保留区域存储的信息,并执行步骤(a′)。(i') The first storage system stops taking over the storage device of the second storage system, writes the data stored in the disk cache of the first storage system into the storage device of the first storage system, and clears the data stored in the reserved area information, and perform step (a'). 3、如权利要求1所述的存储系统的高速缓存的数据的保护方法,其中少骤(b)还包含以下步骤:3. The method for protecting the cached data of the storage system according to claim 1, wherein step (b) further comprises the following steps: 当监控到该第一存储系统的磁盘高速缓存中未写入存储设备的数据写入到存储设备时,将存储该数据的磁盘高速缓存描述项的序号添加至创建在该第一存储系统的清除列表;When it is monitored that the data that has not been written to the storage device in the disk cache of the first storage system is written to the storage device, the sequence number of the disk cache description item that stores the data is added to the clearing file created in the first storage system list; 当监控到使用者存储数据至磁盘高速缓存时,读取该清除列表;When it is monitored that the user stores data to the disk cache, read the clear list; 当该清除列表记录有需要删除的磁盘高速缓存描述项的序号时,对清除列表中的每个序号发送包含需要删除的磁盘高速缓存描述项的序号的删除命令至该第二存储系统;When the clear list records the serial number of the disk cache description item that needs to be deleted, send a delete command that includes the serial number of the disk cache description item that needs to be deleted to the second storage system for each serial number in the clear list; 接收并解析该删除命令,依照该删除命令删除该第二存储系统存储的对应的数据;receiving and parsing the delete command, and deleting the corresponding data stored in the second storage system according to the delete command; 依照监控到的添加或更新操作发送包含数据内容、磁盘高速缓存描述项的序号、磁盘高速缓存描述项需要写入的存储设备号以及在存储设备的位置信息的添加或更新命令至该第二存储系统;以及According to the monitored add or update operation, send an add or update command including data content, the serial number of the disk cache description item, the storage device number to be written into the disk cache description item, and the location information of the storage device to the second storage system; and 接收并解析该添加或更新命令,依照该添加或更新命令在该第二存储系统中添加或更新对应的数据。The add or update command is received and parsed, and corresponding data is added or updated in the second storage system according to the add or update command. 4、如权利要求1所述的存储系统的高速缓存的数据的保护方法,其中步骤(d)还包含以下步骤:4. The method for protecting cached data of a storage system according to claim 1, wherein step (d) further comprises the following steps: 当监控到使用者存储数据至磁盘高速缓存时,将存储数据的磁盘高速缓存描述项的序号作为该保留区域的入口序号;When it is monitored that the user stores data in the disk cache, the sequence number of the disk cache description item storing the data is used as the entry sequence number of the reserved area; 存储包含数据需要写入的存储设备号以及数据在存储设备的位置的信息至该入口;以及storing information including the number of the storage device to which data needs to be written and the location of the data in the storage device to the entry; and 当监控到磁盘高速缓存中未写入存储设备的数据写入到存储设备时,将存储该数据的磁盘高速缓存描述项的序号作为该保留区域的入口序号,清除该入口存储的信息。When it is monitored that data not written into the storage device in the disk cache is written into the storage device, the sequence number of the disk cache description item storing the data is used as the entry sequence number of the reserved area, and the information stored in the entry is cleared.
CNB2005100488054A 2005-12-28 2005-12-28 Method for protecting cached data of storage system Expired - Fee Related CN100426246C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2005100488054A CN100426246C (en) 2005-12-28 2005-12-28 Method for protecting cached data of storage system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2005100488054A CN100426246C (en) 2005-12-28 2005-12-28 Method for protecting cached data of storage system

Publications (2)

Publication Number Publication Date
CN1991776A true CN1991776A (en) 2007-07-04
CN100426246C CN100426246C (en) 2008-10-15

Family

ID=38214047

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2005100488054A Expired - Fee Related CN100426246C (en) 2005-12-28 2005-12-28 Method for protecting cached data of storage system

Country Status (1)

Country Link
CN (1) CN100426246C (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102541689A (en) * 2010-12-21 2012-07-04 微软公司 Protecting data during different connectivity states
WO2012155707A1 (en) * 2011-05-13 2012-11-22 Hangzhou H3C Technologies Co., Ltd. Preventing data loss during reboot and logical storage resource management device
CN103049407A (en) * 2012-12-27 2013-04-17 华为技术有限公司 System, device and method for data storage
CN103605753A (en) * 2013-11-22 2014-02-26 中国技术交易所有限公司 Centralized bidding system data storage system and method
CN104699579A (en) * 2015-03-20 2015-06-10 浪潮集团有限公司 Method for testing cache data protection function for system battery
US9229818B2 (en) 2011-07-20 2016-01-05 Microsoft Technology Licensing, Llc Adaptive retention for backup data
US9824091B2 (en) 2010-12-03 2017-11-21 Microsoft Technology Licensing, Llc File system backup using change journal
US9870379B2 (en) 2010-12-21 2018-01-16 Microsoft Technology Licensing, Llc Searching files

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5623625A (en) * 1995-09-13 1997-04-22 Compaq Computer Corporation Computer network server backup with posted write cache disk controllers
US5784548A (en) * 1996-03-08 1998-07-21 Mylex Corporation Modular mirrored cache memory battery backup system
US6438647B1 (en) * 2000-06-23 2002-08-20 International Business Machines Corporation Method and apparatus for providing battery-backed immediate write back cache for an array of disk drives in a computer system
US7100080B2 (en) * 2002-05-08 2006-08-29 Xiotech Corporation Write cache recovery after loss of power
US20040221117A1 (en) * 2003-05-02 2004-11-04 Shelor Charles F. Logic and method for reading data from cache

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9824091B2 (en) 2010-12-03 2017-11-21 Microsoft Technology Licensing, Llc File system backup using change journal
US10558617B2 (en) 2010-12-03 2020-02-11 Microsoft Technology Licensing, Llc File system backup using change journal
CN102541689B (en) * 2010-12-21 2015-07-15 微软技术许可有限责任公司 Protecting data during different connectivity states
CN102541689A (en) * 2010-12-21 2012-07-04 微软公司 Protecting data during different connectivity states
US9870379B2 (en) 2010-12-21 2018-01-16 Microsoft Technology Licensing, Llc Searching files
US11100063B2 (en) 2010-12-21 2021-08-24 Microsoft Technology Licensing, Llc Searching files
US8819372B2 (en) 2011-05-13 2014-08-26 Hangzhou H3C Technologies Co., Ltd. Preventing data loss during reboot and logical storage resource management device
WO2012155707A1 (en) * 2011-05-13 2012-11-22 Hangzhou H3C Technologies Co., Ltd. Preventing data loss during reboot and logical storage resource management device
US9229818B2 (en) 2011-07-20 2016-01-05 Microsoft Technology Licensing, Llc Adaptive retention for backup data
CN103049407B (en) * 2012-12-27 2016-07-13 华为技术有限公司 Date storage method, Apparatus and system
CN103049407A (en) * 2012-12-27 2013-04-17 华为技术有限公司 System, device and method for data storage
CN103605753A (en) * 2013-11-22 2014-02-26 中国技术交易所有限公司 Centralized bidding system data storage system and method
CN104699579A (en) * 2015-03-20 2015-06-10 浪潮集团有限公司 Method for testing cache data protection function for system battery

Also Published As

Publication number Publication date
CN100426246C (en) 2008-10-15

Similar Documents

Publication Publication Date Title
CN1234071C (en) Method and device for reliable fault transferring non-complete RAID disc writing
US8453000B2 (en) Method and system for reducing power consumption in an emergency shut-down situation
EP3229140B1 (en) Data processing device and data processing method
CN100346311C (en) Computer device , control method for conversion of system operating modes and power supply control method
CN1818877A (en) Method, system and article of manufacture for metadata replication and restoration
US10474618B2 (en) Debug data saving in host memory on PCIE solid state drive
US20090109823A1 (en) Local flash memory and remote server hybrid continuous data protection
CN1622008A (en) Disk array optimizing the drive operation time
CN105745624A (en) Virtual machine backup from storage snapshot
JP4903244B2 (en) Computer system and failure recovery method
WO2014004731A1 (en) Optimized context drop for a solid state drive (ssd)
CN1773470A (en) Library system, virtual library device, buffer restoration method, and machine-readable recording medium
CN1801096A (en) Method and system for implementing thread sleep in computer system
CN105917289A (en) Method for controlling memory array device to save more power and related device
US8019939B2 (en) Detecting data mining processes to increase caching efficiency
CN1991776A (en) Method for protecting cached data of a storage system
CN1920788A (en) Recovery method for computer system or data
KR101114125B1 (en) Nand Flash File System And Method For Initialization And Crash Recovery Thereof
US20080016274A1 (en) Method of protecting cache memory data in storage system
CN100339828C (en) Method and device for realizing rapid start
CN1991775A (en) Method for protecting cache data of storage system
CN1866205A (en) Smoothing updating method and apparatus for configuration information
CN1201191A (en) File system and file management method
US20090271648A1 (en) Information processing device, data writing method, and program for the same
US20120054524A1 (en) Method and system for reducing power consumption of peripherals in an emergency shut-down

Legal Events

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

Effective date of registration: 20191031

Address after: East area, 8th floor, No.19, Lane 299, Guanghua Road, Ningbo national high tech Zone, Ningbo City, Zhejiang Province

Patentee after: Ningbo cas message technology applied research institute

Address before: Taipei City, Taiwan, China

Patentee before: Yingda Co., Ltd.

TR01 Transfer of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20081015

Termination date: 20191228

CF01 Termination of patent right due to non-payment of annual fee