CN104881375B - Storage system power-down data protection method and apparatus - Google Patents
Storage system power-down data protection method and apparatus Download PDFInfo
- Publication number
- CN104881375B CN104881375B CN201410233630.3A CN201410233630A CN104881375B CN 104881375 B CN104881375 B CN 104881375B CN 201410233630 A CN201410233630 A CN 201410233630A CN 104881375 B CN104881375 B CN 104881375B
- Authority
- CN
- China
- Prior art keywords
- storage system
- power
- power supply
- stand
- volatile memory
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 24
- 230000015654 memory Effects 0.000 claims abstract description 91
- 238000001514 detection method Methods 0.000 claims abstract description 26
- 238000012545 processing Methods 0.000 claims description 19
- 238000009434 installation Methods 0.000 claims description 11
- 230000009849 deactivation Effects 0.000 claims description 6
- 230000005611 electricity Effects 0.000 claims description 5
- 238000012544 monitoring process Methods 0.000 claims description 5
- 238000013461 design Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 2
- 230000002688 persistence Effects 0.000 description 2
- 239000007787 solid Substances 0.000 description 2
- 230000003466 anti-cipated effect Effects 0.000 description 1
- 230000015556 catabolic process Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000006731 degradation reaction Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000005265 energy consumption Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000007689 inspection Methods 0.000 description 1
- 230000002045 lasting effect Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000004321 preservation Methods 0.000 description 1
- 238000011897 real-time detection Methods 0.000 description 1
- 238000011084 recovery Methods 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
Landscapes
- Charge And Discharge Circuits For Batteries Or The Like (AREA)
Abstract
The invention discloses a kind of storage system power-down data protection method and apparatus, wherein method comprises the following steps:Whether detection storage system occurs power loss event in real time;When power loss event occurs for storage system, the power supply of storage system is controlled to switch to stand-by power supply by main power source;Valid data in being cached in control storage system are all stored to non-volatile memory medium.When it is by detecting that power loss event occurs for storage system, use stand-by power supply to be powered for storage system, and control the valid data in being cached in storage system all to store to non-volatile memory medium, ensure that the security and permanence of the valid data in caching;Wherein, stand-by power supply is power-type electrokinetic cell, and the cost of power-type electrokinetic cell is low, the problem of efficiently solving existing storage system power-down data protection mode software cost and higher hardware cost.
Description
Technical field
The present invention relates to computer field of storage, more particularly to a kind of storage system power-down data protection method and dress
Put.
Background technology
With the arrival in big data epoch, the demand data amount of enterprise is increasing, and the security requirement to data is more next
It is higher.Typically, the flow of storage system preservation data is:Data write internal memory first, become system cache, then again from internal memory
Write in hard disk.Because the internal memory where caching is a kind of volatile storage medium, hard disk is being write data into by internal memory
During, if the unexpected power down of system, all data of hard disk are had not been written in internal memory to lose.Storage system must be taken notice of
When outer power-down conditions occur, the valid data write-in hard disk in internal memory is saved, ensures the safety of data.
At present, the data cut-off protection of storage system mainly uses two ways:One kind is built-in BBU (Battery
Backup Unit:Under normal circumstances, storage system is powered by main power source PSU (Power Supply Unit);When system is anticipated
After outer power down, BBU give storage system power supply) Save to RAM modes:Caching power supply a period of time is provided during power-off, ensured
Data in caching will not lose.It is no but which needs storage system to recover normal power supply before BBU power drains
Then, loss of data is still unavoidable from, and its guard time is limited, and with cell degradation, the available guard time of battery
Scaled-back, the security for the guarantee data that can not be put things right once and for all.
Another kind is built-in BBU Save to Disk modes:The power supply of controller minimum system is provided during power-off, it is minimum
System is completed the data cached work copied in non-volatile memory medium;After external power source recovers, system will preserve again
Data copied back from non-volatile memory medium in internal memory.
Built-in BBU Save to Disk modes generally include:Standard Save to Disk modes and customization Save to
Disk modes;Wherein, although customization Save to Disk modes can ensure data persistence, software cost and hardware
Cost is higher, is not suitable for large-scale use.
And although standard Save to Disk mode software costs are relatively low, data once write non-volatile memory medium,
Can persistence.But it is of a relatively high to battery energy density and power density requirements, in general capacity type battery can not expire
Foot requires.
The content of the invention
Based on this, it is necessary to higher for existing storage system power-down data protection mode software cost and hardware cost
The problem of, there is provided a kind of storage system power-down data protection method and apparatus.
To realize a kind of storage system power-down data protection method of the object of the invention offer, comprise the following steps:
Whether detection storage system occurs power loss event in real time;
When the power loss event occurs for the storage system, the power supply of the storage system is controlled to be cut by main power source
Shift to stand-by power supply;
The valid data in being cached in the storage system are controlled all to store to non-volatile memory medium;
Wherein, the stand-by power supply is power-type electrokinetic cell.
In one of the embodiments, the interface of the non-volatile memory medium be PCI-E interface, SATA interface or
SAS interfaces.
In one of the embodiments, the valid data in being cached in the control storage system are all stored to non-
Volatile storage medium, comprise the following steps:
The valid data are controlled to store to the non-volatile memory medium;
Detect whether the valid data are all stored to the non-volatile memory medium;
When the valid data are not stored all to the non-volatile memory medium, continue to control the valid data
Store to the non-volatile memory medium, until the valid data are all stored to the non-volatile memory medium.
In one of the embodiments, the valid data in being cached in the control storage system are all stored to non-
Volatile storage medium, also comprise the following steps:
When the valid data are all stored to the non-volatile memory medium, set power loss event that label occurs,
And close the storage system preset time;
After preset time described in the storage system is closed, the power supply of the storage system is controlled by institute
State stand-by power supply and switch to the main power source.
As a kind of embodiment, the valid data in being cached in the control storage system are all stored to non-
Volatile storage medium, also comprise the following steps:
Detect whether the main power source recovers normal;
When the main power source does not recover normal, the storage system is closed;
When the main power source recovers normal, whether effective the power loss event generation label is detected;
When the power loss event occur label it is effective when, control store to the non-volatile memory medium it is described effectively
After data recovery to the caching, the storage system normal operation is controlled;
When tag deactivation occurs for the power loss event, the storage system normal operation is controlled.
In one of the embodiments, also comprise the following steps:
The actual battery capacity of the stand-by power supply is monitored in real time;
When the actual battery capacity and the ratio of the rated cell capacity of the stand-by power supply of the stand-by power supply are small
When preset value, the main power source is controlled persistently to be charged to the stand-by power supply by charging circuit, until the actual battery
Capacity and the ratio of the rated cell capacity are 1.
In one of the embodiments, it is described when the power loss event occurs for the storage system, control the storage
The power supply of system switches to stand-by power supply by main power source, comprises the following steps:
When the power loss event occurs for the storage system, part of devices in the storage system is closed;
The power supply of the storage system is controlled to switch to the stand-by power supply by the main power source.
Accordingly, to realize above-mentioned storage system power-down data protection method, present invention also offers a kind of storage system
Power-down data protection device, including PMU and central processing unit, wherein:
The PMU, for detecting whether storage system occurs power loss event in real time;And when the storage is
When the power loss event occurs for system, the power supply of the storage system is controlled to switch to stand-by power supply by main power source;
The central processing unit, for controlling the valid data in being cached in the storage system all to store to non-volatile
Property storage medium;
Wherein, the stand-by power supply is power-type electrokinetic cell.
In one of the embodiments, in addition to platform controller, for connecting the non-volatile memory medium
PCI-E interface, or the SAS interfaces of the SATA interface of the non-volatile memory medium or the non-volatile memory medium.
In one of the embodiments, the central processing unit includes the first control module and first detection module, wherein:
First control module, for controlling the valid data to store to the non-volatile memory medium;
The first detection module, it is situated between for detecting the valid data and whether all storing to the non-volatile memories
Matter;
First control module, it is additionally operable to when the valid data are not stored all to the non-volatile memory medium
When, continue to control the valid data to store to the non-volatile memory medium, until the valid data all store to
The non-volatile memory medium.
As a kind of embodiment, the central processing unit also includes setup module, and the PMU includes
First control subelement, wherein:
The setup module, for when the valid data are all stored to the non-volatile memory medium, setting
Label occurs for power loss event, and closes the storage system preset time;
The first control subelement, for after preset time described in the storage system is closed, being deposited described in control
The power supply of storage system switches to the main power source by the stand-by power supply.
Preferably, the central processing unit also includes the second detection module, the second control module, the 3rd detection module, the
Three control modules and the 4th control module, wherein:
Second detection module, for detecting whether the main power source recovers normal;
Second control module, for when the main power source does not recover normal, closing the storage system;
3rd detection module, for when the main power source recovers normal, detecting the power loss event and label occurring
It is whether effective;
3rd control module, for when power loss event generation label is effective, control to be stored to described non-easy
The valid data of the property lost storage medium recover to the caching, control the storage system normal operation;
4th control module, for when tag deactivation occurs for the power loss event, controlling the storage system just
Often operation.
In one of the embodiments, in addition to electric supply installation, the electric supply installation include supervisory circuit and charging circuit,
Wherein:
The supervisory circuit, for monitoring the actual battery capacity of the stand-by power supply in real time;
The PMU includes the second control subelement:
The second control subelement, for the actual battery capacity when the stand-by power supply and the stand-by power supply
The ratio of rated cell capacity when being less than preset value, control the main power source by the charging circuit to the stand-by power supply
Lasting charging, until the actual battery capacity and the ratio of the rated cell capacity are 1.
In one of the embodiments, the PMU also includes the 3rd control subelement and the 4th control is single
Member, wherein:
The 3rd control subelement, for when the power loss event occurs for the storage system, closing the storage
Part of devices in system;
The 4th control subelement, for controlling the power supply of the storage system to be switched by the main power source
To the stand-by power supply.
Storage system power-down data protection method and apparatus provided by the invention, are detected and deposited in real time by PMU
Whether storage system occurs power loss event, when detecting that power loss event occurs for storage system, controls the power supply of storage system
Stand-by power supply is switched to by main power source, when using stand-by power supply to be powered for storage system, controlled in being cached in storage system
Valid data are all stored to non-volatile memory medium, ensure that the security and permanence of the valid data in caching;Its
In, stand-by power supply is power-type electrokinetic cell, and the cost of power-type reserve battery is low, efficiently solves existing storage system and falls
The problem of electric data protection mode software cost and higher hardware cost.
Brief description of the drawings
Fig. 1 is the specific embodiment flow chart of storage system power-down data protection method one;
Fig. 2 is storage system power-down data protection method another specific embodiment flow chart;
Fig. 3 is the specific embodiment schematic diagram of storage system power-down data protection device one;
Fig. 4 is central processing unit schematic diagram in storage system power-down data protection device another specific embodiment;
Fig. 5 is electric supply installation schematic diagram in storage system power-down data protection device still another embodiment.
Embodiment
To make technical solution of the present invention clearer, the present invention is done below in conjunction with drawings and the specific embodiments further in detail
Describe in detail bright.
Referring to Fig. 1, as a specific embodiment of storage system power-down data protection method of the present invention, including walk as follows
Suddenly:
Step S100, detect whether storage system occurs power loss event in real time.
Step S200, when power loss event occurs for storage system, the power supply of storage system is controlled to be switched by main power source
To stand-by power supply.
Step S300, the valid data in being cached in storage system are controlled all to store to non-volatile memory medium.
Wherein, stand-by power supply is power-type electrokinetic cell.
Storage system power-down data protection method of the present invention, by detecting whether storage system occurs power loss event in real time,
When detecting that power loss event occurs for storage system, the power supply of storage system is controlled to switch to stand-by power supply by main power source,
When being powered using stand-by power supply to storage system, the valid data in being cached in storage system are controlled all to store to non-volatile
Property storage medium;It ensure that the peace of data by the way that the valid data in caching are all stored to non-volatile memory medium
Full property and permanent, and stand-by power supply is power-type electrokinetic cell, and the cost of power-type electrokinetic cell is low, therefore, effectively
Solve the problems, such as that software cost and the hardware cost of existing storage system power-down data protection mode are higher.
Meanwhile by detecting whether storage system occurs power loss event in real time, when detect storage system occur power down thing
During part, control the power supply of storage system to switch to stand-by power supply by main power source, storage system powered using stand-by power supply,
Ensure the normal operation of storage system, so as to ensure that the security of the valid data storage in being cached in storage system.
Also, stand-by power supply is used as using power-type electrokinetic cell, is easy to exploitation into standalone module, convenient upgrading with more
Change;Such as:18650 cylinder-type power batteries.The cylinder-type power battery of single-unit 18650 can provide up to 15C discharge current, and
Traditional battery maximum can only provide 1C discharge current;Meanwhile 18650 cylinder-type power battery small volumes, cost is low, can
Effectively 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 interfaces.It is situated between using the non-volatile memories of PCI-E interface, SATA interface or SAS interfaces
Storage medium of the matter as power-down data protection, on the one hand, the speed of PCI-E interface, SATA interface and SAS interfaces is very
It hurry up, such as:PCI-E2.0 interfaces can provide 5Gbps speed, and SATA3.0 interfaces can provide 6Gbps speed, and SAS3.0
Interface provides the speed for being up to 12Gbps, compares traditional USB2.0 (480Mbps), USB3.0 (4.8Gbps), Class10SD
Card (384Mbps) will be many soon, can effectively reduce power down protection and hold time, reduce the capacitance of stand-by power supply;Separately
On the one hand, PCI-E interface, SATA interface and SAS interfaces can directly with platform controller (Platform Controller
Hub, PCH) connection, centre is without interface conversion circuit, so as to reach the purpose of simplified hardware design.
Meanwhile PCI-E interface or the non-volatile memory medium of SATA interface or SAS interfaces is low in energy consumption, capacity is big,
Small volume, it is easily scalable.
Referring to Fig. 2, as the another specific embodiment of storage system power-down data protection method of the present invention, step S300,
Valid data in being cached in control storage system are all stored to non-volatile memory medium, are comprised the following steps:
Step S310, control valid data are stored to non-volatile memory medium.
Whether step S320, detection valid data are all stored to non-volatile memory medium;If so, then perform step
S330 ', otherwise, perform step S310.
When valid data are not stored all to non-volatile memory medium, continue to control valid data to store to non-volatile
Property storage medium, until valid data are all stored to non-volatile memory medium.
When the valid data during control caches are stored to non-volatile memory medium, it is by detecting valid data in real time
No whole is stored to non-volatile memory medium, when detect caching in valid data do not store all to non-volatile memories
During medium, then the valid data continued in control caching are stored to non-volatile memory medium, until the valid data in caching
All store to non-volatile memory medium, ensure that the integrality and correctness of valid data.
When the valid data in caching are all stored to non-volatile memory medium, step S300, storage system is controlled
Valid data in middle caching are all stored to non-volatile memory medium, are also comprised the following steps:
Step S330 ', set power loss event that label occurs, and close storage system preset time.
Step S340 ', after storage system preset time is closed, the power supply of storage system is controlled by stand-by power supply
Switch to main power source.
Here, it should be noted that the span of preset time is [30s, 600s].
Referring to Fig. 2, as the still another embodiment of storage system power-down data protection method of the present invention, step S300,
Valid data in being cached in control storage system are all stored to non-volatile memory medium, are also comprised the following steps:
Whether step S350 ', detection main power source recover normal, if so, then performing step S360 ', otherwise perform step
S360’’。
Step S360 ' ', when main power source does not recover normal, close storage system.
Step S360 ', when main power source recovers normal, whether detection power loss event generation label is effective, works as power loss event
During generation tag deactivation, return and perform step S001, control storage system normal operation.
Step S370 ', when power loss event generation label is effective, control is stored to the significant figure of non-volatile memory medium
After extremely caching is recovered, return and perform step S001, control storage system normal operation.
Step S001, control storage system normal operation.
Preferably, a kind of embodiment as storage system power-down data protection method of the present invention, in addition to it is as follows
Step:
Step S100 ', the actual battery capacity of stand-by power supply is monitored in real time.
Step S200 ', when the actual battery capacity of stand-by power supply and the ratio of rated cell capacity of stand-by power supply are less than
During preset value, control main power source is persistently charged by charging circuit to stand-by power supply, until actual battery capacity and nominal cell
The ratio of capacity is 1.
Its actual battery capacity by monitoring stand-by power supply in real time, when actual battery capacity and this of stand-by power supply are standby
When the ratio of the rated cell capacity of power supply is less than preset value (span of preset value may be configured as [0.1,0.4]), that is, work as
The actual battery off-capacity of the stand-by power supply monitored is to support storage system of processing that power loss event occurs, such as:It is standby
When the ratio of the actual battery capacity of power supply and the rated cell capacity of the stand-by power supply is less than 0.3, the now reality of stand-by power supply
Border battery capacity is not enough to support and handles a storage system generation power loss event, then controls main power source by charging circuit to standby
Persistently charged with power supply, until the actual battery capacity of stand-by power supply and the ratio of rated cell capacity are 1, ensure that when storage
When power loss event occurs for system, after the power supply of storage system switches to stand-by power supply by main power source, it can be normally carried out
The storage of data is imitated, so as to ensure that the security of valid data and validity.
Referring to Fig. 2, in one of the embodiments, step S200, when power loss event occurs for storage system, control stores
The power supply of system switches to stand-by power supply by main power source, comprises the following steps:
Step S210, when power loss event occurs for storage system, close part of devices in storage system.
Step S220, the power supply of storage system is controlled to switch to stand-by power supply by main power source.
When detecting that power loss event occurs for storage system, part of devices in storage system is first shut off, only need to ensure to deposit
The valid data being used in storage system in control caching, which are stored to the device of non-volatile memory medium, is in opening,
On the one hand the power consumption of storage system is reduced, while also saves development cost.
As another embodiment of storage system power-down data protection method of the present invention, also comprise the following steps:
Step S200 ', when power loss event does not occur for storage system, control storage system normal operation.
Accordingly, based on same inventive concept, to realize any of the above-described kind of storage system power-down data protection method, this hair
It is bright to additionally provide a kind of storage system power-down data protection device, because storage system power-down data protection provided by the invention fills
The operation principle put and storage system power-down data protection Method And Principle of the present invention are same or similar, therefore repeat part, no longer
Repeat.
Referring to Fig. 3, as a specific embodiment of storage system power-down data protection device 300 provided by the invention, bag
PMU 310 and central processing unit 320 are included, wherein:
PMU 310, for detecting whether storage system occurs power loss event in real time;And work as storage system
During power loss event, the power supply of storage system is controlled to switch to stand-by power supply 340 by main power source 330.
Central processing unit 320, for controlling the valid data in storage system in caching 350 all to store to non-volatile
Storage medium 360.
Wherein, stand-by power supply 340 is power-type electrokinetic cell.
Preferably, a kind of embodiment as storage system power-down data protection device 300 provided by the invention, also
Including platform controller 370, for connecting the PCI-E interface of non-volatile memory medium 360, or non-volatile memory medium
360 SATA interface or the SAS interfaces of non-volatile memory medium 360.
By non-volatile memory medium 360 by high-speed serial bus carry in platform controller 370, realize with it is non-volatile
The PCI-E interface of property storage medium 360, or the SATA interface or non-volatile memory medium of non-volatile memory medium 360
360 SAS interfaces connection, effectively increases the memory rates of valid data, shorten the valid data in caching 350 store to
The time of non-volatile memory medium 360, reduce cost.
Referring to Fig. 4, as the another specific embodiment of storage system power-down data protection device 300 provided by the invention,
Central processing unit 320 includes the first control module 321 and first detection module 322, wherein:
First control module 321, for controlling valid data to store to non-volatile memory medium 360.
First detection module 322, for detecting whether valid data are all stored to non-volatile memory medium 360.
First control module 321, it is additionally operable to when valid data are not stored to non-volatile memory medium 360 all, after
Continuous control valid data are stored to non-volatile memory medium 360, are situated between until valid data are all stored to non-volatile memories
Matter 360.
It is whether complete by the valid data in the first detection module 322 in central processing unit 320 in real time detection caching 350
Portion stores the integrality that to non-volatile memory medium 360, ensure that the valid data stored to non-volatile memory medium 360
And accuracy, improve the reliability of storage system power-down data protection device 300 provided by the invention.
In one embodiment of storage system power-down data protection device 300 provided by the invention, central processing unit 320
Also including setup module 323, PMU 310 includes the first control subelement (not shown), wherein:
Setup module 323, for when valid data are all stored to non-volatile memory medium 360, setting power down thing
Label occurs for part, and closes storage system preset time.
First control subelement, for after storage system preset time is closed, controlling the power supply of storage system
Main power source 330 is switched to by stand-by power supply 340.
Preferably, central processing unit 320 also includes the second detection module 324, the second control module the 325, the 3rd detection mould
Block 326, the 3rd control module 327 and the 4th control module 328, wherein:
Second detection module 324, for detecting whether main power source 330 recovers normal.
Second control module 325, for when main power source 330 does not recover normal, closing storage system.
3rd detection module 326, for when main power source 330 recovers normal, detection power loss event to occur whether label has
Effect.
3rd control module 327, for when power loss event generation label is effective, control, which is stored to non-volatile memories, to be situated between
The valid data of matter 360 recover to caching 350, control storage system normal operation.
4th control module 328, for when tag deactivation occurs for power loss event, controlling storage system normal operation.
Preferably, referring to Fig. 5, as the another specific of storage system power-down data protection device 300 provided by the invention
Embodiment, in addition to electric supply installation, electric supply installation include supervisory circuit 381 and charging circuit 382, wherein:
Supervisory circuit 381, for monitoring the actual battery capacity of stand-by power supply 340 in real time.
PMU 310 includes the second control subelement (not shown):
Second control subelement, the nominal cell for actual battery capacity and stand-by power supply 340 when stand-by power supply 340
When the ratio of capacity is less than preset value, control main power source 330 is persistently charged by charging circuit 382 to stand-by power supply 340, until
Actual battery capacity and the ratio of rated cell capacity are 1.
During due to storage system normal operation, there is self discharge effect in the stand-by power supply 340 in electric supply installation, pass through setting
Supervisory circuit 381 monitors the actual battery capacity of stand-by power supply 340 in real time, it is ensured that the actual battery capacity energy of stand-by power supply 340
Enough supports handle a storage system and power loss event occur, and ensure that the reliability of storage system power-down data protection device 300;
When supervisory circuit 381 monitors actual battery off-capacity (the i.e. actual battery capacity of stand-by power supply 340 of stand-by power supply 340
It is less than preset value with the ratio of the rated cell capacity of the stand-by power supply 340) when, then PMU 310 starts charging electricity
Road 382, after the voltage rise for being exported main power source 330 by booster circuit 383, through overcharge circuit 382 to stand-by power supply
340 are charged, until actual battery capacity and the percentage of rated cell capacity are 100%.
Wherein, the actual battery capacity of stand-by power supply 340 can pass through storage system interface real time inspection.
In addition, what deserves to be explained is, can also be by setting protection circuit 384 to carry out discharge and recharge guarantor to stand-by power supply 340
Shield, equally ensure that the safe operation of storage system power-down data protection device 300.
Here, the it should be noted that design of electric supply installation:First, the valid data preserved are needed according to storage system
Size and non-volatile memory medium 360 storage speed, estimate storage system preserve valid data required for time,
And then estimate the rated cell capacity of the stand-by power supply 340 of storage system power-down data protection needs.For example, storage system
Total power consumption is 400W, and the size of valid data is 128GB, from SATA3.0 interface types Solid State Disk (SSD,
Solid state hard disc) non-volatile memory medium 360 is used as, its writing speed is 160MB/s, from 4 pieces of SSD parallel memorizings,
Time required for then the valid data cached in 350 are completely written in SSD is:128000/4/160=200s.Storage system
The rated cell capacity for the stand-by power supply 340 that system needs is 400*200/3600=22.2Wh, power requirement 400W.Work as selection
When 18650 cylinder-type power batteries are as stand-by power supply 340, because the rated cell capacity of 18650 cylinder-type power batteries is
1500mAh, operating voltage 3.6V, the battery capacity under 20A discharge currents are 4.9Wh, therefore, the electricity of 4 and 2 strings can be selected
Core integrated mode, the rated cell capacity under power output 3.6*8*20=576W, 20A discharge current is 4.9*8=
39.2Wh, meet the demand of the rated cell capacity of storage system power-down data protection needs.
Meanwhile charging circuit 382 and supervisory circuit 381 are designed according to the type of selected stand-by power supply 340, wherein:Prison
Circuit 381 is controlled, for monitoring the actual battery capacity of stand-by power supply 340 in real time;Charging circuit 382, for when stand-by power supply 340
Actual battery off-capacity (the i.e. rated cell capacity of the actual battery capacity of stand-by power supply 340 and the stand-by power supply 340
Ratio is less than preset value) when, main power source 330 is charged by charging circuit 382 to stand-by power supply 340.Finally, after assembling and test
Whole electric supply installation design cost in $ 50 or so, the volume of electric supply installation is closely sized to 6 pieces of 2.5 cun of SSD's, hence it is evident that
The cost for reducing storage system power-down protection apparatus 300.
What deserves to be explained is PMU 310 also includes the 3rd control subelement and the 4th control subelement (does not show
Go out), wherein:
3rd control subelement, for when power loss event occurs for storage system, closing part of devices in storage system.
4th control subelement, for controlling the power supply of storage system to switch to stand-by power supply by main power source 330
340。
Storage system power-down data protection device provided by the invention, storage system is detected by PMU in real time
Whether power loss event occurs, when detecting that power loss event occurs for storage system, control the power supply of storage system by main electricity
Source switches to stand-by power supply, while being powered using stand-by power supply to storage system, in central processing unit control storage system
Valid data in caching are all stored to non-volatile memory medium, ensure that the permanence and peace of the valid data in caching
Quan Xing;Wherein, stand-by power supply is power-type electrokinetic cell, and the cost of power-type electrokinetic cell is low, existing so as to efficiently solve
The problem of software cost and higher hardware cost of some storage system power-down data protection devices.
Embodiment described above only expresses the several embodiments of the present invention, and its description is more specific and detailed, but simultaneously
Therefore the limitation to the scope of the claims of the present invention can not be interpreted as.It should be pointed out that for one of ordinary skill in the art
For, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to the guarantor of the present invention
Protect scope.Therefore, the protection domain of patent of the present invention should be determined by the appended claims.
Claims (10)
- A kind of 1. storage system power-down data protection method, it is characterised in that comprise the following steps:Whether detection storage system occurs power loss event in real time;When the power loss event occurs for the storage system, the power supply of the storage system is controlled to be switched to by main power source Stand-by power supply;The valid data in being cached in the storage system are controlled all to store to non-volatile memory medium;Wherein, the stand-by power supply is power-type electrokinetic cell;Valid data in being cached in the control storage system are all stored to non-volatile memory medium, including as follows Step:The valid data are controlled to store to the non-volatile memory medium;Detect whether the valid data are all stored to the non-volatile memory medium;When the valid data are not stored all to the non-volatile memory medium, continue to control the valid data to store To the non-volatile memory medium, until the valid data are all stored to the non-volatile memory medium;When the valid data are all stored to the non-volatile memory medium, set power loss event that label occurs, and close Close the storage system preset time;After preset time described in the storage system is closed, the power supply of the storage system is controlled by described standby With switching power supply to the main power source;Wherein, the preset time be being needed to wait for when switching to the main power source by the stand-by power supply of pre-setting when Between.
- 2. storage system power-down data protection method according to claim 1, it is characterised in that the non-volatile memories The interface of medium is PCI-E interface, SATA interface or SAS interfaces.
- 3. storage system power-down data protection method according to claim 1, it is characterised in that the control storage Valid data in being cached in system are all stored to non-volatile memory medium, are also comprised the following steps:Detect whether the main power source recovers normal;When the main power source does not recover normal, the storage system is closed;When the main power source recovers normal, whether effective the power loss event generation label is detected;When power loss event generation label is effective, control is stored to the valid data of the non-volatile memory medium Recover to the caching, control the storage system normal operation;When tag deactivation occurs for the power loss event, the storage system normal operation is controlled.
- 4. storage system power-down data protection method according to claim 1, it is characterised in that also comprise the following steps:The actual battery capacity of the stand-by power supply is monitored in real time;When the actual battery capacity of the stand-by power supply and the ratio of the rated cell capacity of the stand-by power supply are less than in advance If during value, the main power source is controlled persistently to be charged to the stand-by power supply by charging circuit, until the actual battery capacity Ratio with the rated cell capacity is 1.
- 5. the storage system power-down data protection method according to any one of Claims 1-4, it is characterised in that described to work as When the power loss event occurs for the storage system, the power supply of the storage system is controlled to switch to standby electricity by main power source Source, comprise the following steps:When the power loss event occurs for the storage system, part of devices in the storage system is closed;The power supply of the storage system is controlled to switch to the stand-by power supply by the main power source.
- A kind of 6. storage system power-down data protection device, it is characterised in that including PMU and central processing unit, its In:The PMU, for detecting whether storage system occurs power loss event in real time;And when the storage system is sent out During the raw power loss event, the power supply of the storage system is controlled to switch to stand-by power supply by main power source;The central processing unit, deposited for controlling the valid data in being cached in the storage system all to store to non-volatile Storage media;Wherein, the stand-by power supply is power-type electrokinetic cell;The central processing unit includes the first control module and first detection module, wherein:First control module, for controlling the valid data to store to the non-volatile memory medium;The first detection module, for detecting whether the valid data are all stored to the non-volatile memory medium;First control module, it is additionally operable to when the valid data are not stored all to the non-volatile memory medium, Continue to control the valid data to store to the non-volatile memory medium, until the valid data are all stored to described Non-volatile memory medium;The central processing unit also includes setup module, and the PMU includes the first control subelement, wherein:The setup module, for when the valid data are all stored to the non-volatile memory medium, setting power down Label occurs for event, and closes the storage system preset time;The first control subelement, for after preset time described in the storage system is closed, controlling the storage system The power supply of system switches to the main power source by the stand-by power supply;Wherein, the preset time is that what is pre-set switched to the time of the main power source by the stand-by power supply.
- 7. storage system power-down data protection device according to claim 6, it is characterised in that also including platform courses Device, for connecting the PCI-E interface of the non-volatile memory medium, or the SATA interface of the non-volatile memory medium, Or the SAS interfaces of the non-volatile memory medium.
- 8. storage system power-down data protection device according to claim 6, it is characterised in that the central processing unit is also Including the second detection module, the second control module, the 3rd detection module, the 3rd control module and the 4th control module, wherein:Second detection module, for detecting whether the main power source recovers normal;Second control module, for when the main power source does not recover normal, closing the storage system;3rd detection module, for when the main power source recovers normal, detecting label occurs for the power loss event whether Effectively;3rd control module, for when power loss event generation label is effective, control to be stored to described non-volatile The valid data of storage medium recover to the caching, control the storage system normal operation;4th control module, for when tag deactivation occurs for the power loss event, controlling the storage system normally to transport OK.
- 9. storage system power-down data protection device according to claim 8, it is characterised in that also including electric supply installation, The electric supply installation includes supervisory circuit and charging circuit, wherein:The supervisory circuit, for monitoring the actual battery capacity of the stand-by power supply in real time;The PMU includes the second control subelement:The second control subelement, the volume for the actual battery capacity and the stand-by power supply when the stand-by power supply When determining the ratio of battery capacity and being less than preset value, the main power source is controlled to continue by the charging circuit to the stand-by power supply Charging, until the actual battery capacity and the ratio of the rated cell capacity are 1.
- 10. the storage system power-down data protection device according to any one of claim 6 to 9, it is characterised in that the electricity Source control unit also includes the 3rd control subelement and the 4th control subelement, wherein:The 3rd control subelement, for when the power loss event occurs for the storage system, closing the storage system Middle part of devices;The 4th control subelement, for controlling the power supply of the storage system to switch to institute by the main power source State stand-by power supply.
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 CN104881375A (en) | 2015-09-02 |
| CN104881375B true 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) |
Families Citing this family (13)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105224477A (en) * | 2015-09-25 | 2016-01-06 | 浪潮电子信息产业股份有限公司 | Data protection method for storage system after abnormal power failure |
| CN106569964A (en) * | 2015-10-13 | 2017-04-19 | 中兴通讯股份有限公司 | Power-off protection method, power-off protection device, power-off protection system and memory |
| KR101778375B1 (en) * | 2015-10-20 | 2017-09-14 | 엘에스산전 주식회사 | Plc system |
| CN106356097B (en) * | 2016-08-25 | 2020-02-14 | 浙江宇视科技有限公司 | 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 |
| CN111192607B (en) * | 2019-12-29 | 2022-07-15 | 浪潮(北京)电子信息产业有限公司 | A storage system power failure protection method, device and related components |
| CN111462870A (en) * | 2020-05-14 | 2020-07-28 | 沈阳先进医疗设备技术孵化中心有限公司 | Data processing system and method |
| CN114461547B (en) * | 2021-12-29 | 2023-11-14 | 苏州浪潮智能科技有限公司 | Storage system |
| CN114625430B (en) * | 2022-02-21 | 2024-10-25 | 深圳宏芯宇电子股份有限公司 | System starting method, terminal device and computer readable storage medium |
| CN119472963B (en) * | 2025-01-15 | 2025-07-25 | 柏科数据技术(深圳)股份有限公司 | Power-down protection method, device and storage system |
Citations (4)
| 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 |
| CN102385897A (en) * | 2011-11-02 | 2012-03-21 | 成都市华为赛门铁克科技有限公司 | Storage device and power supply method for storage device |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR20100130006A (en) * | 2009-06-02 | 2010-12-10 | 삼성전자주식회사 | Sudden power off control device and method and data storage system using same |
-
2014
- 2014-05-28 CN CN201410233630.3A patent/CN104881375B/en active Active
Patent Citations (4)
| 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 |
| CN102385897A (en) * | 2011-11-02 | 2012-03-21 | 成都市华为赛门铁克科技有限公司 | Storage device and power supply method for storage device |
Also Published As
| Publication number | Publication date |
|---|---|
| CN104881375A (en) | 2015-09-02 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN104881375B (en) | Storage system power-down data protection method and apparatus | |
| US10599503B2 (en) | Triggering power loss protection on solid-state storage devices | |
| CN105556416B (en) | Power outage protection and recovery utilizing low power states in data storage devices/systems | |
| CN108491058A (en) | A kind of the powered-off fault data guard method and device of Nonvolatile memory | |
| CN103995578B (en) | A kind of device driver with data continuous-mode | |
| CN101477482B (en) | Method for recovering flash memory data at power-off of built-in Linux system | |
| CN101645027A (en) | Object storage controller, powder-down protection device thereof and powder-down protection method thereof | |
| KR102329762B1 (en) | Electronic system with memory data protection mechanism and method of operation thereof | |
| CN108733537A (en) | Method and apparatus for intelligent standby capacitor management | |
| CN105630700B (en) | A kind of storage system and reading/writing method with secondary cache structure | |
| CN102929805A (en) | Power-down protection method for cache data in memory system | |
| CN105138432A (en) | Solid state disk data fast backup method and system used under abnormal power failure | |
| CN101826060A (en) | Method and device for protecting power failure data of solid state disk | |
| CN117055822B (en) | NVME SSD Raid card board power-carrying system and control method | |
| CN102289414A (en) | Memory data protection device and method | |
| CN111737053A (en) | A non-volatile processor backup method and system based on instruction analysis | |
| CN103399520B (en) | For power failure data access method and the device of programmable logic controller system | |
| CN105474182A (en) | Storage device supporting periodic writes while in a low power mode for an electronic device | |
| CN102541247A (en) | System on chip and resting and arousing method thereof | |
| CN105511978A (en) | Power-down protection method and system for file system in recording equipment | |
| CN103093157A (en) | Method of permanent protection of cache data of serial attached scsi (SAS) redundant array of independent disks (RAID) card | |
| US9082472B2 (en) | Back-up power management for efficient battery usage | |
| CN201788502U (en) | Magnetic-disc caching data backup and recovery device for accidental power outage | |
| CN101131862B (en) | A kind of space non-volatile memory | |
| CN105630699B (en) | A kind of solid state hard disk and read-write cache management method using MRAM |
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 |
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 |
|
| TR01 | Transfer of patent right |