CN104881375A - Power-down data protection method and device of storage system - Google Patents

Power-down data protection method and device of storage system Download PDF

Info

Publication number
CN104881375A
CN104881375A CN201410233630.3A CN201410233630A CN104881375A CN 104881375 A CN104881375 A CN 104881375A CN 201410233630 A CN201410233630 A CN 201410233630A CN 104881375 A CN104881375 A CN 104881375A
Authority
CN
China
Prior art keywords
storage system
power
power supply
volatile memory
memory medium
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
CN201410233630.3A
Other languages
Chinese (zh)
Other versions
CN104881375B (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.)
Beijing TEAMSUN Software Technology Co., Ltd.
Original Assignee
陈杰
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 陈杰 filed Critical 陈杰
Priority to CN201410233630.3A priority Critical patent/CN104881375B/en
Publication of CN104881375A publication Critical patent/CN104881375A/en
Application granted granted Critical
Publication of CN104881375B publication Critical patent/CN104881375B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a power-down data protection method and device of a storage system. The method includes the steps of detecting whether power-down occurs in the storage system occurs in real time; if yes, controlling a power supply of the storage system to switch from a main supply to a standby supply; controlling effective data, located in a cache of the storage system, to be all stored to a nonvolatile memory medium. After the power-down of the storage system is detected, the standby supply is used to power the storage system, and the effective data in the cache of the storage system is controlled and all stored to the nonvolatile memory medium; thus, security and persistence of the effective data in the cache is guaranteed. The standby supply is a power type battery low in cost; the problem that the existing storage system power-down data protection mode has high software and hardware costs is effectively solved.

Description

Storage system power-down data protection method and apparatus
Technical field
The present invention relates to Computer Storage field, particularly relate to a kind of storage system power-down data protection method and apparatus.
Background technology
Along with the arrival of large data age, the demand data amount of enterprise is increasing, more and more higher to the security requirement of data.Generally, the flow process of storage system preservation data is: first data write internal memory, become system cache, and then write hard disk from internal memory.Internal memory due to buffer memory place is a kind of volatile storage medium, data is being write in the process of hard disk by internal memory, if the unexpected power down of system, all data also not writing hard disk in internal memory will be lost.Valid data write hard disk in internal memory when unexpected power-down conditions occurs, must save, ensures the safety of data by storage system.
At present, the data cut-off protection of storage system is mainly adopted in two ways: Yi Zhongwei, and built-in BBU (Battery Backup Unit: under normal circumstances, storage system is by primary power PSU (Power Supply Unit) power supply; When after the unexpected power down of system, BBU powers to storage system) Save to RAM mode: provide buffer memory to power a period of time during power-off, ensure that the data in buffer memory can not be lost.But which needs storage system to recover normal power supply before BBU power drain, otherwise; loss of data still cannot be avoided, and its guard time is limited, and along with cell degradation; the available guard time scaled-back of battery, the security of the guarantee data that cannot put things right once and for all.
Another kind is, the Save to Disk mode of built-in BBU: provide controller minimum system to power during power-off, and minimum system completes the data cached work copied in non-volatile memory medium; After external power source recovers, the data of preservation copy back in internal memory by system again from non-volatile memory medium.
The Save to Disk mode of built-in BBU generally includes: standard Save to Disk mode and customization Saveto Disk mode; Wherein, although customization Save to Disk mode can ensure data persistence, software cost and hardware cost higher, be not suitable for extensive use.
And although standard Save to Disk mode software cost is lower, data, just can persistence once write non-volatile memory medium.But to battery energy density and power density requirements relatively high, general capacity type battery cannot meet the demands.
Summary of the invention
Based on this, be necessary, for existing storage system power-down data protection mode software cost and the higher problem of hardware cost, to provide a kind of storage system power-down data protection method and apparatus.
For realizing a kind of storage system power-down data protection method that the object of the invention provides, comprise the steps:
Whether real-time detection storage system there is power loss event;
When described power loss event occurs described storage system, the power supply controlling described storage system switches to standby power supply by primary power;
The valid data controlled in described storage system in buffer memory are all stored to non-volatile memory medium;
Wherein, described standby power supply is power-type electrokinetic cell.
Wherein in an embodiment, the interface of described non-volatile memory medium is PCI-E interface, SATA interface or SAS interface.
Wherein in an embodiment, the valid data in the described storage system of described control in buffer memory are all stored to non-volatile memory medium, comprise the steps:
Control described valid data and be stored to described non-volatile memory medium;
Detect described valid data and whether be all stored to described non-volatile memory medium;
When described valid data are not all stored to described non-volatile memory medium, continue to control described valid data and be stored to described non-volatile memory medium, until described valid data are all stored to described non-volatile memory medium.
Wherein in an embodiment, the valid data in the described storage system of described control in buffer memory are all stored to non-volatile memory medium, also comprise the steps:
When described valid data are all stored to described non-volatile memory medium, power loss event generation label is set, and closes described storage system Preset Time;
After Preset Time described in the described storage system of closedown, the described power supply controlling described storage system switches to described primary power by described standby power supply.
As a kind of embodiment, the valid data in the described storage system of described control in buffer memory are all stored to non-volatile memory medium, also comprise the steps:
Detect described primary power and whether recover normal;
When described primary power does not recover normal, close described storage system;
When described primary power recovers normal, whether effectively detect described power loss event generation label;
When described power loss event generation label is effective, after control store to the described valid data of described non-volatile memory medium return to described buffer memory, controls described storage system and normally run;
When described power loss event generation tag deactivation, control described storage system and normally run.
Wherein in an embodiment, also comprise the steps:
The actual battery capacity of standby power supply described in Real-Time Monitoring;
When the ratio of the described actual battery capacity of described standby power supply and the rated cell capacity of described standby power supply is less than preset value, control described primary power, by charging circuit, charging is continued, until the ratio of described actual battery capacity and described rated cell capacity is 1 to described standby power supply.
Wherein in an embodiment, described when described power loss event occurs described storage system, the power supply controlling described storage system switches to standby power supply by primary power, comprises the steps:
When described power loss event occurs described storage system, close part of devices in described storage system;
The described power supply controlling described storage system switches to described standby power supply by described primary power.
Accordingly, for realizing above-mentioned storage system power-down data protection method, present invention also offers a kind of storage system power-down data protection device, comprising Power Management Unit and central processing unit, wherein:
Whether described Power Management Unit, there is power loss event for detecting storage system in real time; And when described power loss event occurs described storage system, the power supply controlling described storage system switches to standby power supply by primary power;
Described central processing unit, is all stored to non-volatile memory medium for the valid data controlled in described storage system in buffer memory;
Wherein, described standby power supply is power-type electrokinetic cell.
Wherein in an embodiment, also comprise platform controller, for connecting the PCI-E interface of described non-volatile memory medium, or the SATA interface of described non-volatile memory medium or the SAS interface of described non-volatile memory medium.
Wherein in an embodiment, described central processing unit comprises the first control module and first detection module, wherein:
Described first control module, is stored to described non-volatile memory medium for controlling described valid data;
Whether described first detection module, be all stored to described non-volatile memory medium for detecting described valid data;
Described first control module, also for when described valid data are not all stored to described non-volatile memory medium, continue to control described valid data and be stored to described non-volatile memory medium, until described valid data are all stored to described non-volatile memory medium.
As a kind of embodiment, described central processing unit also comprises and arranges module, and described Power Management Unit comprises the first control subelement, wherein:
Described module is set, for when described valid data are all stored to described non-volatile memory medium, power loss event generation label is set, and closes described storage system Preset Time;
Described first controls subelement, and for after Preset Time described in the described storage system of closedown, the described power supply controlling described storage system switches to described primary power by described standby power supply.
Preferably, described central processing unit also comprises the second detection module, the second control module, the 3rd detection module, the 3rd control module and the 4th control module, wherein:
Whether described second detection module, recover normal for detecting described primary power;
Described second control module, for when described primary power does not recover normal, closes described storage system;
Whether effective described 3rd detection module, for when described primary power recovers normal, detect described power loss event generation label;
Described 3rd control module, for when described power loss event generation label is effective, after control store to the described valid data of described non-volatile memory medium return to described buffer memory, controls described storage system and normally runs;
Described 4th control module, for when described power loss event generation tag deactivation, controls described storage system and normally runs.
Wherein in an embodiment, also comprise electric supply installation, described electric supply installation comprises supervisory circuit and charging circuit, wherein:
Described supervisory circuit, for the actual battery capacity of standby power supply described in Real-Time Monitoring;
Described Power Management Unit comprises the second control subelement:
Described second controls subelement, for when the ratio of the described actual battery capacity of described standby power supply and the rated cell capacity of described standby power supply is less than preset value, control described primary power, by described charging circuit, charging is continued, until the ratio of described actual battery capacity and described rated cell capacity is 1 to described standby power supply.
Wherein in an embodiment, described Power Management Unit also comprises the 3rd and controls subelement and the 4th control subelement, wherein:
Described 3rd controls subelement, for when described power loss event occurs described storage system, closes part of devices in described storage system;
Described 4th controls subelement, switches to described standby power supply for the described power supply controlling described storage system by described primary power.
Storage system power-down data protection method and apparatus provided by the invention, detect storage system in real time by Power Management Unit and whether power loss event occurs, when storage system generation power loss event being detected, the power supply of control store system switches to standby power supply by primary power, adopt standby power supply be storage system power time, valid data in control store system in buffer memory are all stored to non-volatile memory medium, ensure that security and the permanence of the valid data in buffer memory; Wherein, standby power supply is power-type electrokinetic cell, and the cost of power-type reserve battery is low, efficiently solves existing storage system power-down data protection mode software cost and the higher problem of hardware cost.
Accompanying drawing explanation
Fig. 1 is storage system power-down data protection method one specific embodiment process flow diagram;
Fig. 2 is another specific embodiment process flow diagram of storage system power-down data protection method;
Fig. 3 is storage system power-down data protection device one specific embodiment schematic diagram;
Fig. 4 is central processing unit schematic diagram in another specific embodiment of storage system power-down data protection device;
Fig. 5 is electric supply installation schematic diagram in the another specific embodiment of storage system power-down data protection device.
Embodiment
For making technical solution of the present invention clearly, below in conjunction with drawings and the specific embodiments, the present invention is described in further details.
See Fig. 1, as a specific embodiment of storage system power-down data protection method of the present invention, comprise the steps:
Step S100, detects storage system in real time and whether power loss event occurs.
Step S200, when storage system generation power loss event, the power supply of control store system switches to standby power supply by primary power.
Step S300, the valid data in control store system in buffer memory are all stored to non-volatile memory medium.
Wherein, standby power supply is power-type electrokinetic cell.
Storage system power-down data protection method of the present invention, whether power loss event is there is by detecting storage system in real time, when storage system generation power loss event being detected, the power supply of control store system switches to standby power supply by primary power, when adopting standby power supply to power to storage system, the valid data in control store system in buffer memory are all stored to non-volatile memory medium; It is by being all stored to non-volatile memory medium by the valid data in buffer memory; ensure that the security of data and permanent; and standby power supply is power-type electrokinetic cell; the cost of power-type electrokinetic cell is low; therefore, the software cost of existing storage system power-down data protection mode and all higher problem of hardware cost is efficiently solved.
Simultaneously, whether power loss event is there is by detecting storage system in real time, when storage system generation power loss event being detected, the power supply of control store system switches to standby power supply by primary power, standby power supply is adopted to power to storage system, ensure the normal operation of storage system, thus ensure that the security that the valid data in storage system in buffer memory store.
Further, adopt power-type electrokinetic cell as standby power supply, be convenient to be developed to standalone module, convenient upgrading and replacing; As: 18650 cylinder-type power batteries.Single-unit 18650 cylinder-type power battery can provide the discharge current up to 15C, and the maximum discharge current that 1C can only be provided of traditional battery; Meanwhile, 18650 cylinder-type power battery volumes are little, and cost is low, effectively can reduce the cost of storage system power-down data protection device.
More excellent, the interface of non-volatile memory medium is PCI Express (PCI-E) interface, Serial ATA (SATA, serial ATA) interface or SAS interface.Adopt PCI-E interface, SATA interface, or the non-volatile memory medium of SAS interface is as the storage medium of power-down data protection, on the one hand, PCI-E interface, the speed of SATA interface and SAS interface all quickly, as: PCI-E2.0 interface can provide the speed of 5Gbps, SATA3.0 interface can provide the speed of 6Gbps, and SAS3.0 interface provides the speed up to 12Gbps, compare traditional USB2.0 (480Mbps), USB3.0 (4.8Gbps), Class10SD Card (384Mbps) wants fast a lot, power down protection can be effectively reduced hold time, reduce the electric capacity of standby power supply, on the other hand, PCI-E interface, SATA interface and SAS interface all can directly and platform controller (Platform Controller Hub, PCH) connect, middle without the need to interface conversion circuit, thus reach the object simplifying hardware design.
Meanwhile, the non-volatile memory medium of PCI-E interface or SATA interface or SAS interface low in energy consumption, capacity is large, and volume is little, is easy to upgrading.
See Fig. 2, as another specific embodiment of storage system power-down data protection method of the present invention, step S300, the valid data in control store system in buffer memory are all stored to non-volatile memory medium, comprise the steps:
Step S310, controls valid data and is stored to non-volatile memory medium.
Step S320, detects valid data and whether is all stored to non-volatile memory medium; If so, then step S330 ' is performed, otherwise, perform step S310.
When valid data are not all stored to non-volatile memory medium, continue to control valid data and be stored to non-volatile memory medium, until valid data are all stored to non-volatile memory medium.
When controlling the valid data in buffer memory and being stored to non-volatile memory medium, whether all non-volatile memory medium is stored to by detecting valid data in real time, when detecting that the valid data in buffer memory are not all stored to non-volatile memory medium, then continue the valid data controlled in buffer memory and be stored to non-volatile memory medium, until the valid data in buffer memory are all stored to non-volatile memory medium, ensure that integrality and the correctness of valid data.
When the valid data in buffer memory are all stored to non-volatile memory medium, step S300, the valid data in control store system in buffer memory are all stored to non-volatile memory medium, also comprise the steps:
Step S330 ', arranges power loss event generation label, and closes storage system Preset Time.
Step S340 ', after closedown storage system Preset Time, the power supply of control store system switches to primary power by standby power supply.
At this, it should be noted that, the span of Preset Time is [30s, 600s].
See Fig. 2, as the another specific embodiment of storage system power-down data protection method of the present invention, step S300, the valid data in control store system in buffer memory are all stored to non-volatile memory medium, also comprise the steps:
Step S350 ', detects primary power and whether recovers normal, if so, then perform step S360 ', otherwise perform step S360 ' '.
Step S360 ' ', when primary power does not recover normal, closes storage system.
Step S360 ', when primary power recovers normal, whether effectively detect power loss event generation label, when power loss event generation tag deactivation, return and perform step S001, control store system is normally run.
Step S370 ', when power loss event generation label is effective, after control store to the valid data of non-volatile memory medium return to buffer memory, return and perform step S001, control store system is normally run.
Step S001, control store system is normally run.
Preferably, as a kind of embodiment of storage system power-down data protection method of the present invention, also comprise the steps:
Step S100 ', the actual battery capacity of Real-Time Monitoring standby power supply.
Step S200 ', when the ratio of the actual battery capacity of standby power supply and the rated cell capacity of standby power supply is less than preset value, control primary power, by charging circuit, charging is continued, until the ratio of actual battery capacity and rated cell capacity is 1 to standby power supply.
It is by the actual battery capacity of Real-Time Monitoring standby power supply, when the ratio of the actual battery capacity of standby power supply and the rated cell capacity of this standby power supply is less than preset value, (span of preset value can be set to [0.1, 0.4] time), namely when the actual battery off-capacity of the standby power supply monitored is to support process storage system generation power loss event, as: when the ratio of the actual battery capacity of standby power supply and the rated cell capacity of this standby power supply is less than 0.3, now the actual battery off-capacity of standby power supply is to support process storage system generation power loss event, then control primary power, by charging circuit, charging is continued to standby power supply, until the actual battery capacity of standby power supply and the ratio of rated cell capacity are 1, ensure that when storage system generation power loss event, after the power supply of storage system switches to standby power supply by primary power, normally can carry out the storage of valid data, thus ensure that security and the validity of valid data.
See Fig. 2, wherein in an embodiment, step S200, when storage system generation power loss event, the power supply of control store system switches to standby power supply by primary power, comprises the steps:
Step S210, when storage system generation power loss event, closes part of devices in storage system.
Step S220, the power supply of control store system switches to standby power supply by primary power.
When storage system generation power loss event being detected, first part of devices in storage system is closed, only need ensure that the device being stored to non-volatile memory medium for the valid data controlled in buffer memory in storage system is in opening, reduce the power consumption of storage system on the one hand, also save cost of development simultaneously.
As another embodiment of storage system power-down data protection method of the present invention, also comprise the steps:
Step S200 ', when power loss event does not occur storage system, control store system is normally run.
Accordingly; based on same inventive concept; for realizing any one storage system power-down data protection method above-mentioned; present invention also offers a kind of storage system power-down data protection device; due to the principle of work of storage system power-down data protection device provided by the invention and storage system power-down data protection Method And Principle of the present invention same or similar; therefore repeat part, repeat no more.
See Fig. 3, as a specific embodiment of storage system power-down data protection device 300 provided by the invention, comprise Power Management Unit 310 and central processing unit 320, wherein:
Whether Power Management Unit 310, there is power loss event for detecting storage system in real time; And when storage system generation power loss event, the power supply of control store system switches to standby power supply 340 by primary power 330.
Central processing unit 320, is all stored to non-volatile memory medium 360 for the valid data in buffer memory 350 in control store system.
Wherein, standby power supply 340 is power-type electrokinetic cell.
Preferably; as a kind of embodiment of storage system power-down data protection device 300 provided by the invention; also comprise platform controller 370; for connecting the PCI-E interface of non-volatile memory medium 360, or the SATA interface of non-volatile memory medium 360 or the SAS interface of non-volatile memory medium 360.
Non-volatile memory medium 360 is passed through high-speed serial bus carry at platform controller 370, realize the PCI-E interface with non-volatile memory medium 360, or the SAS interface of the SATA interface of non-volatile memory medium 360 or non-volatile memory medium 360 connects, effectively improve the memory rate of valid data, the valid data shortened in buffer memory 350 are stored to the time of non-volatile memory medium 360, decrease cost.
See Fig. 4, as another specific embodiment of storage system power-down data protection device 300 provided by the invention, central processing unit 320 comprises the first control module 321 and first detection module 322, wherein:
First control module 321, is stored to non-volatile memory medium 360 for controlling valid data.
Whether first detection module 322, be all stored to non-volatile memory medium 360 for detecting valid data.
First control module 321, also for when valid data are not all stored to non-volatile memory medium 360, continues to control valid data and is stored to non-volatile memory medium 360, until valid data are all stored to non-volatile memory medium 360.
Whether non-volatile memory medium 360 is all stored to by the valid data in the first detection module 322 in central processing unit 320 in real time detection buffer memory 350; ensure that integrality and the accuracy of the valid data being stored to non-volatile memory medium 360, improve the reliability of storage system power-down data protection device 300 provided by the invention.
In an embodiment of storage system power-down data protection device 300 provided by the invention, central processing unit 320 also comprises and arranges module 323, and Power Management Unit 310 comprises the first control subelement (not shown), wherein:
Module 323 is set, for when valid data are all stored to non-volatile memory medium 360, power loss event generation label are set, and close storage system Preset Time.
First controls subelement, and for after closedown storage system Preset Time, the power supply of control store system switches to primary power 330 by standby power supply 340.
Preferably, central processing unit 320 also comprises the second detection module 324, second control module 325, the 3rd detection module 326, the 3rd control module 327 and the 4th control module 328, wherein:
Whether the second detection module 324, recover normal for detecting primary power 330.
Second control module 325, for when primary power 330 does not recover normal, closes storage system.
Whether effective 3rd detection module 326, for when primary power 330 recovers normal, detect power loss event generation label.
3rd control module 327, for when power loss event generation label is effective, after control store to the valid data of non-volatile memory medium 360 return to buffer memory 350, control store system is normally run.
4th control module 328, for when power loss event generation tag deactivation, control store system is normally run.
Preferably, see Fig. 5, as the another specific embodiment of storage system power-down data protection device 300 provided by the invention, also comprise electric supply installation, electric supply installation comprises supervisory circuit 381 and charging circuit 382, wherein:
Supervisory circuit 381, for the actual battery capacity of Real-Time Monitoring standby power supply 340.
Power Management Unit 310 comprises the second control subelement (not shown):
Second controls subelement, for when the ratio of the actual battery capacity of standby power supply 340 and the rated cell capacity of standby power supply 340 is less than preset value, control primary power 330 and continue charging, until the ratio of actual battery capacity and rated cell capacity is 1 by charging circuit 382 pairs of standby power supplies 340.
Due to storage system normally run time, there is self discharge effect in the standby power supply 340 in electric supply installation, by arranging the actual battery capacity of supervisory circuit 381 Real-Time Monitoring standby power supply 340, guarantee that the actual battery capacity of standby power supply 340 can support process storage system generation power loss event, ensure that the reliability of storage system power-down data protection device 300; When supervisory circuit 381 monitors the actual battery off-capacity (namely the ratio of the actual battery capacity of standby power supply 340 and the rated cell capacity of this standby power supply 340 is less than preset value) of standby power supply 340, then Power Management Unit 310 starts charging circuit 382, after the voltage exported by primary power 330 by booster circuit 383 is raised, charge through overcharge circuit 382 pairs of standby power supplies 340, until the number percent of actual battery capacity and rated cell capacity is 100%.
Wherein, the actual battery capacity of standby power supply 340 is by storage system interface real time inspection.
In addition, what deserves to be explained is, charge and discharge protecting can also be carried out by arranging protection circuit 384 pairs of standby power supplies 340, ensure that the safe operation of storage system power-down data protection device 300 equally.
At this; it should be noted that; the design of electric supply installation: first; the size of valid data and the storage speed of non-volatile memory medium 360 of preservation is needed according to storage system; estimate the time of storage system preservation required for valid data, and then estimate the rated cell capacity of the standby power supply 340 that storage system power-down data protection needs.Such as, the total power consumption of storage system is 400W, the size of valid data is 128GB, select the Solid State Disk (SSD of SATA3.0 interface type, solid state hard disc) as non-volatile memory medium 360, its writing speed is 160MB/s, selects 4 pieces of SSD parallel memorizing, then the time required for being write completely by the valid data in buffer memory 350 in SSD is: 128000/4/160=200s.The rated cell capacity of the standby power supply 340 that storage system needs is 400*200/3600=22.2Wh, and power requirement is 400W.When selecting 18650 cylinder-type power batteries as standby power supply 340; rated cell capacity due to 18650 cylinder-type power batteries is 1500mAh; operating voltage is 3.6V; battery capacity under 20A discharge current is 4.9Wh; therefore, can select 4 and the battery core integrated mode of 2 strings, output power is 3.6*8*20=576W; rated cell capacity under 20A discharge current is 4.9*8=39.2Wh, meets the demand of the rated cell capacity of storage system power-down data protection needs.
Meanwhile, according to type design charging circuit 382 and the supervisory circuit 381 of selected standby power supply 340, wherein: supervisory circuit 381, for the actual battery capacity of Real-Time Monitoring standby power supply 340; Charging circuit 382, for when the actual battery off-capacity (namely the ratio of the actual battery capacity of standby power supply 340 and the rated cell capacity of this standby power supply 340 is less than preset value) of standby power supply 340, primary power 330 is charged by charging circuit 382 pairs of standby power supplies 340.Finally, assemble and the design cost of whole electric supply installation after testing at $ about 50, the size of the volume of electric supply installation and 6 pieces of 2.5 cun of SSD is close, significantly reduces the cost of storage system power-down protection apparatus 300.
What deserves to be explained is, Power Management Unit 310 also comprises the 3rd and controls subelement and the 4th control subelement (not shown), wherein:
3rd controls subelement, for when storage system generation power loss event, and part of devices in closedown storage system.
4th controls subelement, and the power supply for control store system switches to standby power supply 340 by primary power 330.
Storage system power-down data protection device provided by the invention, detect storage system in real time by Power Management Unit and whether power loss event occurs, when storage system generation power loss event being detected, the power supply of control store system switches to standby power supply by primary power, while employing standby power supply is powered to storage system, valid data in central processing unit control store system in buffer memory are all stored to non-volatile memory medium, ensure that permanence and the security of the valid data in buffer memory; Wherein, standby power supply is power-type electrokinetic cell, and the cost of power-type electrokinetic cell is low, thus efficiently solves the software cost of existing storage system power-down data protection device and all higher problem of hardware cost.
The above embodiment only have expressed several embodiment of the present invention, and it describes comparatively concrete and detailed, but therefore can not be interpreted as the restriction to the scope of the claims of the present invention.It should be pointed out that for the person of ordinary skill of the art, without departing from the inventive concept of the premise, can also make some distortion and improvement, these all belong to protection scope of the present invention.Therefore, the protection domain of patent of the present invention should be as the criterion with claims.

Claims (14)

1. a storage system power-down data protection method, is characterized in that, comprises the steps:
Whether real-time detection storage system there is power loss event;
When described power loss event occurs described storage system, the power supply controlling described storage system switches to standby power supply by primary power;
The valid data controlled in described storage system in buffer memory are all stored to non-volatile memory medium;
Wherein, described standby power supply is power-type electrokinetic cell.
2. storage system power-down data protection method according to claim 1, is characterized in that, the interface of described non-volatile memory medium is PCI-E interface, SATA interface or SAS interface.
3. storage system power-down data protection method according to claim 1, is characterized in that, the valid data in the described storage system of described control in buffer memory are all stored to non-volatile memory medium, comprise the steps:
Control described valid data and be stored to described non-volatile memory medium;
Detect described valid data and whether be all stored to described non-volatile memory medium;
When described valid data are not all stored to described non-volatile memory medium, continue to control described valid data and be stored to described non-volatile memory medium, until described valid data are all stored to described non-volatile memory medium.
4. storage system power-down data protection method according to claim 3, is characterized in that, the valid data in the described storage system of described control in buffer memory are all stored to non-volatile memory medium, also comprise the steps:
When described valid data are all stored to described non-volatile memory medium, power loss event generation label is set, and closes described storage system Preset Time;
After Preset Time described in the described storage system of closedown, the described power supply controlling described storage system switches to described primary power by described standby power supply.
5. storage system power-down data protection method according to claim 4, is characterized in that, the valid data in the described storage system of described control in buffer memory are all stored to non-volatile memory medium, also comprise the steps:
Detect described primary power and whether recover normal;
When described primary power does not recover normal, close described storage system;
When described primary power recovers normal, whether effectively detect described power loss event generation label;
When described power loss event generation label is effective, after control store to the described valid data of described non-volatile memory medium return to described buffer memory, controls described storage system and normally run;
When described power loss event generation tag deactivation, control described storage system and normally run.
6. storage system power-down data protection method according to claim 1, is characterized in that, also comprise the steps:
The actual battery capacity of standby power supply described in Real-Time Monitoring;
When the ratio of the described actual battery capacity of described standby power supply and the rated cell capacity of described standby power supply is less than preset value, control described primary power, by charging circuit, charging is continued, until the ratio of described actual battery capacity and described rated cell capacity is 1 to described standby power supply.
7. the storage system power-down data protection method according to any one of claim 1 to 6; it is characterized in that; described when described power loss event occurs described storage system, the power supply controlling described storage system switches to standby power supply by primary power, comprises the steps:
When described power loss event occurs described storage system, close part of devices in described storage system;
The described power supply controlling described storage system switches to described standby power supply by described primary power.
8. a storage system power-down data protection device, is characterized in that, comprises Power Management Unit and central processing unit, wherein:
Whether described Power Management Unit, there is power loss event for detecting storage system in real time; And when described power loss event occurs described storage system, the power supply controlling described storage system switches to standby power supply by primary power;
Described central processing unit, is all stored to non-volatile memory medium for the valid data controlled in described storage system in buffer memory;
Wherein, described standby power supply is power-type electrokinetic cell.
9. storage system power-down data protection device according to claim 8; it is characterized in that; also comprise platform controller; for connecting the PCI-E interface of described non-volatile memory medium, or the SATA interface of described non-volatile memory medium or the SAS interface of described non-volatile memory medium.
10. storage system power-down data protection device according to claim 8, it is characterized in that, described central processing unit comprises the first control module and first detection module, wherein:
Described first control module, is stored to described non-volatile memory medium for controlling described valid data;
Whether described first detection module, be all stored to described non-volatile memory medium for detecting described valid data;
Described first control module, also for when described valid data are not all stored to described non-volatile memory medium, continue to control described valid data and be stored to described non-volatile memory medium, until described valid data are all stored to described non-volatile memory medium.
11. storage system power-down data protection devices according to claim 10, is characterized in that, described central processing unit also comprises and arranges module, and described Power Management Unit comprises the first control subelement, wherein:
Described module is set, for when described valid data are all stored to described non-volatile memory medium, power loss event generation label is set, and closes described storage system Preset Time;
Described first controls subelement, and for after Preset Time described in the described storage system of closedown, the described power supply controlling described storage system switches to described primary power by described standby power supply.
12. storage system power-down data protection devices according to claim 11, is characterized in that, described central processing unit also comprises the second detection module, the second control module, the 3rd detection module, the 3rd control module and the 4th control module, wherein:
Whether described second detection module, recover normal for detecting described primary power;
Described second control module, for when described primary power does not recover normal, closes described storage system;
Whether effective described 3rd detection module, for when described primary power recovers normal, detect described power loss event generation label;
Described 3rd control module, for when described power loss event generation label is effective, after control store to the described valid data of described non-volatile memory medium return to described buffer memory, controls described storage system and normally runs;
Described 4th control module, for when described power loss event generation tag deactivation, controls described storage system and normally runs.
13. storage system power-down data protection devices according to claim 8, it is characterized in that, also comprise electric supply installation, described electric supply installation comprises supervisory circuit and charging circuit, wherein:
Described supervisory circuit, for the actual battery capacity of standby power supply described in Real-Time Monitoring;
Described Power Management Unit comprises the second control subelement:
Described second controls subelement, for when the ratio of the described actual battery capacity of described standby power supply and the rated cell capacity of described standby power supply is less than preset value, control described primary power, by described charging circuit, charging is continued, until the ratio of described actual battery capacity and described rated cell capacity is 1 to described standby power supply.
Storage system power-down data protection device described in 14. any one of according to Claim 8 to 13, is characterized in that, described Power Management Unit also comprises the 3rd and controls subelement and the 4th and control subelement, wherein:
Described 3rd controls subelement, for when described power loss event occurs described storage system, closes part of devices in described storage system;
Described 4th controls subelement, switches to described standby power supply for the described power supply controlling described storage system by described primary power.
CN201410233630.3A 2014-05-28 2014-05-28 Storage system power-down data protection method and apparatus Active CN104881375B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410233630.3A CN104881375B (en) 2014-05-28 2014-05-28 Storage system power-down data protection method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410233630.3A CN104881375B (en) 2014-05-28 2014-05-28 Storage system power-down data protection method and apparatus

Publications (2)

Publication Number Publication Date
CN104881375A true CN104881375A (en) 2015-09-02
CN104881375B CN104881375B (en) 2018-02-09

Family

ID=53948874

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410233630.3A Active CN104881375B (en) 2014-05-28 2014-05-28 Storage system power-down data protection method and apparatus

Country Status (1)

Country Link
CN (1) CN104881375B (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105224477A (en) * 2015-09-25 2016-01-06 浪潮电子信息产业股份有限公司 Data guard method after a kind of storage system powered-off fault
CN106356097A (en) * 2016-08-25 2017-01-25 浙江宇视科技有限公司 Protection method and device for preventing data loss
CN106569964A (en) * 2015-10-13 2017-04-19 中兴通讯股份有限公司 Power-off protection method, power-off protection device, power-off protection system and memory
CN106873504A (en) * 2015-10-20 2017-06-20 Ls 产电株式会社 Plc system
CN107085461A (en) * 2017-04-18 2017-08-22 深圳市同泰怡信息技术有限公司 Based on separate modular backup power supply module and its application method
CN107193694A (en) * 2017-05-27 2017-09-22 郑州云海信息技术有限公司 A kind of Novel storage system, storage method and device
CN107632922A (en) * 2017-09-29 2018-01-26 郑州云海信息技术有限公司 A kind of method and device of on-line monitoring BBU capacity
CN110806794A (en) * 2019-10-10 2020-02-18 浙江大华技术股份有限公司 Power-down protection method, system, computer device and medium for storage system
CN111192607A (en) * 2019-12-29 2020-05-22 浪潮(北京)电子信息产业有限公司 Power-down protection method and device for storage system and related components
CN111462870A (en) * 2020-05-14 2020-07-28 沈阳先进医疗设备技术孵化中心有限公司 Data processing system and method
CN114461547A (en) * 2021-12-29 2022-05-10 苏州浪潮智能科技有限公司 Storage system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5761406A (en) * 1992-07-31 1998-06-02 Fujitsu Limited Method of controlling data transfer and a safe shutdown in a hierarchical cache system during power cut-off
CN1450434A (en) * 2002-04-05 2003-10-22 三菱电机株式会社 Backup Memory control unit for reducing current consumption
CN101826060A (en) * 2010-05-24 2010-09-08 中兴通讯股份有限公司 Method and device for protecting power failure data of solid state disk
US20100302664A1 (en) * 2009-06-02 2010-12-02 Samsung Electronics Co., Ltd. Disk drive data storage systems and methods using backup power source charged by spindle motor
CN102385897A (en) * 2011-11-02 2012-03-21 成都市华为赛门铁克科技有限公司 Storage device and power supply method for storage device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5761406A (en) * 1992-07-31 1998-06-02 Fujitsu Limited Method of controlling data transfer and a safe shutdown in a hierarchical cache system during power cut-off
CN1450434A (en) * 2002-04-05 2003-10-22 三菱电机株式会社 Backup Memory control unit for reducing current consumption
US20100302664A1 (en) * 2009-06-02 2010-12-02 Samsung Electronics Co., Ltd. Disk drive data storage systems and methods using backup power source charged by spindle motor
CN101826060A (en) * 2010-05-24 2010-09-08 中兴通讯股份有限公司 Method and device for protecting power failure data of solid state disk
CN102385897A (en) * 2011-11-02 2012-03-21 成都市华为赛门铁克科技有限公司 Storage device and power supply method for storage device

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105224477A (en) * 2015-09-25 2016-01-06 浪潮电子信息产业股份有限公司 Data guard method after a kind of storage system powered-off fault
CN106569964A (en) * 2015-10-13 2017-04-19 中兴通讯股份有限公司 Power-off protection method, power-off protection device, power-off protection system and memory
CN106873504A (en) * 2015-10-20 2017-06-20 Ls 产电株式会社 Plc system
CN106356097B (en) * 2016-08-25 2020-02-14 浙江宇视科技有限公司 Protection method and device for preventing data loss
CN106356097A (en) * 2016-08-25 2017-01-25 浙江宇视科技有限公司 Protection method and device for preventing data loss
CN107085461A (en) * 2017-04-18 2017-08-22 深圳市同泰怡信息技术有限公司 Based on separate modular backup power supply module and its application method
CN107193694A (en) * 2017-05-27 2017-09-22 郑州云海信息技术有限公司 A kind of Novel storage system, storage method and device
CN107632922A (en) * 2017-09-29 2018-01-26 郑州云海信息技术有限公司 A kind of method and device of on-line monitoring BBU capacity
CN110806794A (en) * 2019-10-10 2020-02-18 浙江大华技术股份有限公司 Power-down protection method, system, computer device and medium for storage system
US11914441B2 (en) 2019-10-10 2024-02-27 Zhejiang Dahua Technology Co., Ltd. Systems and methods for power outage protection of storage device
CN111192607A (en) * 2019-12-29 2020-05-22 浪潮(北京)电子信息产业有限公司 Power-down protection method and device for storage system and related components
CN111192607B (en) * 2019-12-29 2022-07-15 浪潮(北京)电子信息产业有限公司 Power-down protection method and device for storage system and related components
CN111462870A (en) * 2020-05-14 2020-07-28 沈阳先进医疗设备技术孵化中心有限公司 Data processing system and method
CN114461547A (en) * 2021-12-29 2022-05-10 苏州浪潮智能科技有限公司 Storage system
CN114461547B (en) * 2021-12-29 2023-11-14 苏州浪潮智能科技有限公司 Storage system

Also Published As

Publication number Publication date
CN104881375B (en) 2018-02-09

Similar Documents

Publication Publication Date Title
CN104881375A (en) Power-down data protection method and device of storage system
US10599503B2 (en) Triggering power loss protection on solid-state storage devices
CN102156679B (en) PCIE interface-based solid state disk power-down protection method and device
CN103345189A (en) Controller and power fail safeguard method
CN102929805A (en) Power-down protection method for cache data in memory system
CN104571933B (en) Have the electronic installation and its corresponding control methods of solid-state storage element
CN105138432A (en) Solid state disk data fast backup method and system used under abnormal power failure
US9443591B2 (en) Storage device out-of-space handling
CN103019363A (en) Power supply device, storage system and power supply method
US11150714B2 (en) Storage device and method for powering storage device
CN101286086A (en) Hard disk power down protection method, device and hard disk, and hard disk power down protection system
CN101826060A (en) Method and device for protecting power failure data of solid state disk
CN202013570U (en) Power down protecting device for solid state disk based on PCIE (Peripheral Component Interface Express) interface
CN101656098A (en) Solid state hard disc, power supply management method thereof and terminal
CN101645027A (en) Object storage controller, powder-down protection device thereof and powder-down protection method thereof
CN102289414A (en) Memory data protection device and method
CN103399520B (en) For power failure data access method and the device of programmable logic controller system
CN201036001Y (en) Magnetic disk array device
CN107797899A (en) A kind of method of solid state hard disc data safety write-in
CN201788502U (en) Magnetic-disc caching data backup and recovery device for accidental power outage
CN105511978A (en) Power-down protection method and system for file system in recording equipment
CN104850182A (en) Circuit structure applied to embedded system and power-fail protection method
CN117055822B (en) NVME SSD Raid card board power-carrying system and control method
US9082472B2 (en) Back-up power management for efficient battery usage
CN102135921B (en) Protective circuit, protective method and software realizing method for portable terminal low-power system protection

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20180322

Address after: 100192 room A, room 10 A01, room A, No. 8, science and technology wealth center, Xue Qing Road, Haidian District, Beijing

Patentee after: Beijing TEAMSUN Software Technology Co., Ltd.

Address before: 310014 Oasis Garden 6, unit 1, unit 1101, Hangzhou City, Zhejiang Province, 1101

Patentee before: Chen Jie