CN105630708B - Hard disk data protection method and computer memory system - Google Patents

Hard disk data protection method and computer memory system Download PDF

Info

Publication number
CN105630708B
CN105630708B CN201511003029.6A CN201511003029A CN105630708B CN 105630708 B CN105630708 B CN 105630708B CN 201511003029 A CN201511003029 A CN 201511003029A CN 105630708 B CN105630708 B CN 105630708B
Authority
CN
China
Prior art keywords
hard disk
data
power supply
data buffer
power
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
Application number
CN201511003029.6A
Other languages
Chinese (zh)
Other versions
CN105630708A (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.)
Feiyinuo Technology Co ltd
Original Assignee
Vinno Technology Suzhou Co Ltd
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 Vinno Technology Suzhou Co Ltd filed Critical Vinno Technology Suzhou Co Ltd
Priority to CN201511003029.6A priority Critical patent/CN105630708B/en
Publication of CN105630708A publication Critical patent/CN105630708A/en
Application granted granted Critical
Publication of CN105630708B publication Critical patent/CN105630708B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/16Protection against loss of memory contents

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Power Sources (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

The present invention provides a kind of hard disk data protection method, includes the following steps:When monitoring working power power-off, preset data buffer by judge the hard disk last time operate whether be registration table the last one data, if, entire registry data is operated to the hard disk, if not, entire registry data of the pre- backup in the data buffer is directed into the hard disk, and by the data manipulation of the registration table to the hard disk;Judge whether the last item order of the data buffer caching is complete again, and decides whether that the data manipulation that will be buffered in the data buffer hiccup to the hard disk, so operates, can protect hard disc data integrality, while also improving the safety of system;, can be by judging the operation of the hard disk at this time for when the working power powers off suddenly the present invention also provides a kind of computer memory system, and corresponding operation data is provided, the stability of system has been effectively ensured.

Description

Hard disk data protection method and computer memory system
Technical field
The present invention relates to the hard disk data protection methods and meter under a kind of computer realm more particularly to a kind of instant power-down Calculation machine storage system.
Background technology
The mass-memory unit that active computer uses is generally mechanical hard disk or solid state disk.Mechanical hard disk uses machine Tool flabellum stores data, uses mechanical head read or write-in data;Solid state disk uses flash memory as storage medium, uses electronics Addressing system reads and writees data.During computer use, it is likely that encounter the unexpected power down of power supply or crash and close by force The situation of machine so that the unexpected power down of hard disk.Mechanical hard disk has many protections to arrange the mechanical device of hard disc data and hard disk itself Apply, but in unexpected power down present hard discs all only have magnetic head reset mechanical protection measures, for data itself have no ability into Row protection.Solid state disk itself also has certain protection mechanism, such as carries out bad block analysis to hard disk, the means such as Backup Data, but In system power failure, data manipulation may be read and write and proceed to half, or imperfect, the Wu Fabao to the read-write operation of system file Card system executes the order of hard disk operation, can not ensure the integrality and reliability of data.
In view of this, on it is necessary to provide a kind of improved hard disk data protection methods and computer memory system to solve State problem.
Invention content
Avoid that hard disc data is imperfect in the case of instant power-down or system cannot be just the purpose of the present invention is to provide one kind The method and computer memory system often to work.
For achieving the above object, the present invention provides a kind of hard disk data protection method, include the following steps:
M1, when monitor working power power-off when, preset data buffer judge the hard disk last time operation Whether be registration table data;
If so, executing M2;
If it is not, executing M3;
M2, judged by the data buffer hard disk last time operation whether be to registration table the last one The operation of data;
If so, operating entire registry data to the hard disk;
If it is not, entire registry data of the pre- backup in the data buffer is directed into the hard disk, and by institute The data manipulation of registration table is stated to the hard disk;
M3, judge whether the last item order of the data buffer caching is complete;
If so, the data manipulation in the data buffer will be buffered in the hard disk;
If it is not, abandoning the operational order, the operation is not executed.
To achieve the above object, the present invention provides a kind of computer memory system, including CPU module and the CPU module The hard disk of electric connection, and be the working power of hard disk power supply, further include:On off operating mode for monitoring power supply Monitor, for the hard disk power supply emergency service power supply and data buffer, when the monitor monitors the work When making power cut-off, the monitor sends status command to the data buffer, and triggers inside the data buffer Control module, the control module controls the data buffer and judges the number currently operated to the last time of the hard disk According to type and the integrality of order, and select corresponding operation to the hard disk.
As a further improvement on the present invention, the data buffer at least cache a complete CPU operation data and Order, and back up entire registry data after system is switched on every time.
As a further improvement on the present invention, the working power is powered by the first power supply circuit for the hard disk, institute It states emergency service power supply to power for the hard disk by the second power supply circuit, first power supply circuit and the second power supply circuit phase Mutually in parallel and respectively described power supply circuit two branches, be additionally provided in the conjunction branch of the power supply circuit with the working power and The circuit switch that emergency service power supply is electrically connected.
As a further improvement on the present invention, pass through the first control electricity between the working power and the circuit switch Road concatenates, and the working power between the data buffer by second control circuit by being concatenated, the first control electricity Road and second control circuit is parallel with one another and two branches of respectively control circuit, be additionally provided in the conjunction branch of the control circuit with The monitor that the data buffer and circuit switch are electrically connected.
As a further improvement on the present invention, when the monitor monitor working power power-off when, the monitor to The circuit switch sends the order for switching the power supply circuit.
As a further improvement on the present invention, the emergency service power supply is the hard disk local power.
As a further improvement on the present invention, the working power can give the emergency service by emergency supply circuit Power supply energy storage.
As a further improvement on the present invention, the CPU module includes CPU, south bridge module and north bridge module, the south bridge It is electrically connected by hdd data bus between module and the data buffer.
The beneficial effects of the invention are as follows:The present invention discloses one kind under power-down conditions, protects data in the hard disk complete Property and provide system stability method and computer memory system, by judge the currently performed operation data type of hard disk with And the integrality of order, and control data buffer and corresponding operation is executed to the hard disk, hard disc data can be protected complete Also the safety of system is improved while property.
In addition, the present invention also provides a kind of computer memory system, by the way that data buffer is arranged, for caching at least one The complete operational order of item and data, and the data of entire registration table are backed up in each system boot, for working as the work When making power supply and powering off suddenly, caching need to execute the stability that system has been effectively ensured to the registry data of the hard disk.
Furthermore the present invention also provides a kind of emergency service power supplys of only hard disk local power, can overcome common answer Anxious power supply for whole system due to powering, and the disadvantage for causing electric quantity consumption too fast.
Description of the drawings
Fig. 1 is the structure composition figure of computer memory system of the present invention.
Fig. 2 is hard disk data protection method flow chart of the present invention.
Specific implementation mode
Hereinafter, the present invention will be described in detail with reference to various embodiments shown in the accompanying drawings, below preferably for the present invention one Embodiment.
Shown in Figure 1, the present invention relates to a kind of computer memory systems 100, including CPU module 10 and the CPU The hard disk of the electric connection of module 10, the working power for hard disk power supply, the off-position for monitoring the working power Monitor, for the hard disk power supply emergency service power supply, circuit switch and data buffer.
The CPU module 10 includes CPU, south bridge module and north bridge module, the south bridge module and the data buffer Between be electrically connected by hdd data bus 11.
The working power is powered by the first power supply circuit 12 for the hard disk, and the emergency service power supply passes through second Power supply circuit 13 is hard disk power supply, and first power supply circuit, 12 and second power supply circuit 13 is parallel with one another and respectively institute State two branches of power supply circuit, the circuit switch be set to the hard disk power supply circuit conjunction branch it is upper and respectively with the work Power supply and emergency service power supply are electrically connected, for when the monitoring module monitors are powered off to the working power, switching It powers to the emergency service power supply for the hard disk.The emergency service power supply is only the hard disk local power, Neng Gouke Common emergency service power supply is taken due to powering for whole system, and the disadvantage for causing electric quantity consumption too fast.The working power The emergency service power supply energy storage can be given by emergency supply circuit 16.
It is concatenated by first control circuit 14 between the working power and the circuit switch, the working power is logical It crosses between the data buffer and is concatenated by second control circuit 15, the first control circuit 14 and second control circuit 15 Parallel with one another and respectively control circuit two branches, the monitor be arranged the control circuit conjunction branch on, and with institute It states data buffer and circuit switch is electrically connected, for being powered off to the working power when the monitoring module monitors When, the power-down state instruction of the working power is respectively sent to the circuit switch and data buffer.
The data buffer is used at least cache a complete CPU operation data and order, and each in system Entire registry data is backed up after booting, when the monitor monitors working power power-off, the monitor is to the number Power-down state instruction is sent according to buffer, and triggers the control module inside the data buffer, the control module passes through The integrality for judging the data type and institute's cache command to the operation of the last time of the hard disk at this time, it is slow to control the data Storage executes corresponding operation to the hard disk.In the present embodiment, the data buffer executes corresponding operation to write Operation.
At this point, the monitor also sends the order switched to the power supply circuit to the circuit switch so that institute Emergency service power supply is stated to be powered the hard disk.
Shown in Figure 2, the present invention also provides a kind of hard disk data protection methods, include the following steps:
M1, power down shape is sent when the monitor monitors that the working power powers off, and to the data buffer State instructs, the control module inside the data buffer judge at this time to the last time operation data of the hard disk whether be The data of registration table;
If so, executing M2;
If it is not, executing M3;
M2, by the data buffer judge to the operation of the last time of the hard disk whether be to registration table last The operation of a data.Since registration table is made of multiple complete operation datas, if only one of operation data is carried out Operation can cause whole system that cannot normally start to the hard disk when being switched on next time;
If so, operating entire registry data to the hard disk;
If it is not, entire registry data of the backup in the data buffer is directed into the hard disk, and will be described The data manipulation of registration table is to the hard disk;
M3, judge whether the last item operational order of the data buffer caching is complete;
If so, the data manipulation in the data buffer will be buffered in the hard disk;
If it is not, abandoning the operational order, the operation is not executed, to achieve the purpose that the protection hard disc data integrality.
In conclusion the present invention discloses one kind under power-down conditions, protects data integrity in the hard disk and system is provided The method and computer memory system for stability of uniting, by first judging the currently performed operation data type of hard disk and order Integrality, and control data buffer and corresponding operation is executed to the hard disk, while hard disc data integrality can be protected Also the safety of system is improved.
In addition, the present invention also provides a kind of computer memory system, by the way that data buffer is arranged, for caching at least one The complete operational order of item and data, and the data of entire registration table are backed up in each system boot, for working as the work When making power supply and powering off suddenly, caching need to execute the stability that system has been effectively ensured to the registry data of the hard disk.
Furthermore the present invention also provides a kind of emergency service power supplys of only hard disk local power, can overcome common answer Anxious power supply for whole system due to powering, and the disadvantage for causing electric quantity consumption too fast.
It should be appreciated that although this specification is described in terms of embodiments, but not each embodiment only includes one A independent technical solution, this description of the specification is merely for the sake of clarity, and those skilled in the art should will say As a whole, the technical solution in each embodiment may also be suitably combined to form those skilled in the art can for bright book With the other embodiment of understanding.
The series of detailed descriptions listed above only for the present invention feasible embodiment specifically Bright, they are all without departing from equivalent implementations made by technical spirit of the present invention not to limit the scope of the invention Or change should all be included in the protection scope of the present invention.

Claims (9)

1. a kind of hard disk data protection method, which is characterized in that include the following steps:
M1, when monitor working power power-off when, preset data buffer judge the hard disk last time operation whether For the data of registration table;
If so, executing M2;
If it is not, executing M3;
M2, judge whether the last time operation of the hard disk is to the last one data of registration table by the data buffer Operation;
If so, operating entire registry data to the hard disk;
If it is not, entire registry data of the pre- backup in the data buffer is directed into the hard disk, and by the note The data manipulation of volume table is to the hard disk;
M3, judge whether the last item order of the data buffer caching is complete;
If so, the data manipulation in the data buffer will be buffered in the hard disk;
If it is not, abandoning the operational order, the operation is not executed.
2. a kind of computer memory system, including CPU module, the hard disk with CPU module electric connection, and be described hard The working power of disk power supply, which is characterized in that further include:The monitor of on off operating mode for monitoring power supply is described The emergency service power supply and data buffer of hard disk power supply, when the monitor monitors the working power power-off, institute It states monitor and sends status command to the data buffer, and trigger the control module inside the data buffer, it is described Control module controls the data buffer and judges the data type currently operated to the last time of the hard disk and order Integrality, and select corresponding operation to the hard disk.
3. computer memory system according to claim 2, it is characterised in that:The data buffer at least caches one Complete CPU operation data and order, and back up entire registry data after system is switched on every time.
4. computer memory system according to claim 2, it is characterised in that:The working power passes through the first power supply electricity Road powers for the hard disk, and the emergency service power supply is powered by the second power supply circuit for the hard disk, first power supply Circuit and the second power supply circuit is parallel with one another and two branches of respectively described power supply circuit, in the conjunction branch of the power supply circuit also Equipped with the circuit switch being electrically connected with the working power and emergency service power supply.
5. computer memory system according to claim 4, it is characterised in that:The working power switches with the circuit It is concatenated by first control circuit between device, the working power between the data buffer by passing through second control circuit Concatenation, the first control circuit and second control circuit is parallel with one another and two branches of respectively control circuit, the control It is additionally provided with the monitor being electrically connected with the data buffer and circuit switch in the conjunction branch of circuit.
6. computer memory system according to claim 4, it is characterised in that:When the monitor monitors working power When power-off, the monitor sends the order for switching the power supply circuit to the circuit switch.
7. computer memory system according to claim 2, it is characterised in that:The emergency service power supply is the hard disk Local power.
8. computer memory system according to claim 2, it is characterised in that:The working power can be supplied by emergent Circuit gives the emergency service power supply energy storage.
9. computer memory system according to claim 2, it is characterised in that:The CPU module includes CPU, south bridge mould Block and north bridge module are electrically connected between the south bridge module and the data buffer by hdd data bus.
CN201511003029.6A 2015-12-28 2015-12-28 Hard disk data protection method and computer memory system Active CN105630708B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201511003029.6A CN105630708B (en) 2015-12-28 2015-12-28 Hard disk data protection method and computer memory system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201511003029.6A CN105630708B (en) 2015-12-28 2015-12-28 Hard disk data protection method and computer memory system

Publications (2)

Publication Number Publication Date
CN105630708A CN105630708A (en) 2016-06-01
CN105630708B true CN105630708B (en) 2018-09-21

Family

ID=56045675

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201511003029.6A Active CN105630708B (en) 2015-12-28 2015-12-28 Hard disk data protection method and computer memory system

Country Status (1)

Country Link
CN (1) CN105630708B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101593082A (en) * 2008-05-26 2009-12-02 联想(北京)有限公司 A kind of device of managing power supply circuit of memory equipment, method and computing machine
CN101630293A (en) * 2009-07-23 2010-01-20 成都市华为赛门铁克科技有限公司 Data protection method, power-fail protection device and storage device
CN102077193A (en) * 2008-06-27 2011-05-25 微软公司 Cluster shared volumes
CN102929805A (en) * 2012-10-19 2013-02-13 浪潮电子信息产业股份有限公司 Power-down protection method for cache data in memory system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101593082A (en) * 2008-05-26 2009-12-02 联想(北京)有限公司 A kind of device of managing power supply circuit of memory equipment, method and computing machine
CN102077193A (en) * 2008-06-27 2011-05-25 微软公司 Cluster shared volumes
CN101630293A (en) * 2009-07-23 2010-01-20 成都市华为赛门铁克科技有限公司 Data protection method, power-fail protection device and storage device
CN102929805A (en) * 2012-10-19 2013-02-13 浪潮电子信息产业股份有限公司 Power-down protection method for cache data in memory system

Also Published As

Publication number Publication date
CN105630708A (en) 2016-06-01

Similar Documents

Publication Publication Date Title
CN103049070B (en) Data cached power-off protection method and computer equipment
US9886200B2 (en) Concurrent upgrade and backup of non-volatile memory
CN101465164B (en) Method, device and system for obliterating data
CN103345189B (en) A kind of controller and a kind of power-off protection method
CN104881375B (en) Storage system power-down data protection method and apparatus
JP2004508633A5 (en)
CN103729220A (en) Method and device for restoring BIOS (basic input output system) ROM (read only memory) by aid of EC (electronically controllable) ROM
CN103632705A (en) Solid-state storage array capable of destructing data
CN106356097A (en) Protection method and device for preventing data loss
CN104751062B (en) A kind of method and device improving operating system reliability
CN101977179A (en) Dual-network dual-system computer communication method
CN107122035A (en) A kind of method for managing power supply, apparatus and system
CN103870367A (en) SAS (Serial Attached SCSI (small computer system interface)) expander automatic switching system and method
CN108874312B (en) Data storage method and storage device
CN102722389A (en) Electronic device and starting system thereof
CN107247647A (en) BBU working state detecting methods and system in a kind of storage system
CN105512579A (en) Disk array capable of supporting logic destroy and physical destroy
CN105630708B (en) Hard disk data protection method and computer memory system
CN105354164A (en) Method and system for hot swapping of Multi-Host module of server
US20040250149A1 (en) Safe power-off system and method thereof
TWI470411B (en) Independent drive power control
US9298635B2 (en) Storage device and rebuild process method for storage device
CN105184195A (en) Design method of multi-hard disc sub-time destroying
CN203950299U (en) Hard disk firmware repair system
US20050125586A1 (en) Alternate non-volatile memory for robust I/O

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 215123 5th floor, building a, 4th floor, building C, No. 27, Xinfa Road, Suzhou Industrial Park, Jiangsu Province

Patentee after: Feiyinuo Technology Co.,Ltd.

Address before: 215123 5th floor, building a, 4th floor, building C, No. 27, Xinfa Road, Suzhou Industrial Park, Jiangsu Province

Patentee before: Feiyinuo Technology (Suzhou) Co.,Ltd.

CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 215123 5th floor, building a, 4th floor, building C, No. 27, Xinfa Road, Suzhou Industrial Park, Jiangsu Province

Patentee after: Feiyinuo Technology (Suzhou) Co.,Ltd.

Address before: 215123 unit 501, building C8, bio nano Park, No. 218, Xinghu street, industrial park, Suzhou, Jiangsu Province

Patentee before: VINNO TECHNOLOGY (SUZHOU) Co.,Ltd.