CN103455448A - Shake resisting method and system for server - Google Patents

Shake resisting method and system for server Download PDF

Info

Publication number
CN103455448A
CN103455448A CN2012101719709A CN201210171970A CN103455448A CN 103455448 A CN103455448 A CN 103455448A CN 2012101719709 A CN2012101719709 A CN 2012101719709A CN 201210171970 A CN201210171970 A CN 201210171970A CN 103455448 A CN103455448 A CN 103455448A
Authority
CN
China
Prior art keywords
server
shockproofness
motion sensor
data
module
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.)
Pending
Application number
CN2012101719709A
Other languages
Chinese (zh)
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.)
Hongfujin Precision Industry Shenzhen Co Ltd
Hon Hai Precision Industry Co Ltd
Original Assignee
Hongfujin Precision Industry Shenzhen Co Ltd
Hon Hai Precision Industry 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 Hongfujin Precision Industry Shenzhen Co Ltd, Hon Hai Precision Industry Co Ltd filed Critical Hongfujin Precision Industry Shenzhen Co Ltd
Priority to CN2012101719709A priority Critical patent/CN103455448A/en
Publication of CN103455448A publication Critical patent/CN103455448A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Power Sources (AREA)

Abstract

The invention provides a shake resisting method and system for a server. The method includes that a motion sensor detects motion of the server in real time and generates a log to record shake strength data; when the motion sensor detects that the server shakes, operation of a common hard disk is stopped; the motion sensor judges whether the server continues shaking; when the motion sensor judges that the server stops shaking, operation of the common hard disk is restored; when the motion sensor judges that the server continues shaking and the shake strength of the server is larger than the preset value of the shake strength, data in the common hard disk is stored in a solid state hard disk in a backup mode; a base plate management controller is triggered to transmit interrupt control signals in a server system to a basic input output system (BIOS); the BIOS starts dormant program to enable the server system to be dormant; in a preset time period, when the motion sensor detects that the server does not shake, the BIOS starts awaking program to awake the server system. The data is stored on the solid state hard disk in a backup mode during severe shake, the problem that the server system shuts down abnormally due to shake is solved, and data loss is prevented.

Description

Server shock prevention method and system
Technical field
The present invention relates to a kind of shock prevention method and system, relate in particular to a kind of server shock prevention method and system.
Background technology
Development along with modern technologies, a lot of environment have had higher requirement to the maneuverability of server, require it to there is high mobility, for example, container data center (Containerized Data Center, CDC) be exactly to produce under this overall situation, and obtain using more and more widely, briefly, container data center is exactly that original data center that is located at machine room is arranged in a large container, the container the inside is divided into the two large divisions, one is the electrical source of power part, another one is frame, the above places a lot of rack-mount servers.Such container data center often can be used together with haulage vehicle; to reach the effect that container data center can mobile operating; but in transportation, the server of container data center can rock under situation in jumbo often; may cause server hard disc and related hardware impaired or cause abnormal shutdown because the power supply supply is unstable; make data damage, and want restoring data need to spend a large amount of cost of client.
Summary of the invention
The invention provides a kind of server shock prevention method, the method comprises: the detecting step, and the motion event of motion sensor detecting real-time server, and the shockproofness data are recorded in the generation server system journal; Pause step, when motion sensor detects the server vibrations, suspend the common hard disc running; The first determining step, judge whether server continues vibrations, is, enters the second determining step, otherwise, the first recovering step; The first recovering step, first recovers the running of module recovery common hard disc; The second determining step, when the shockproofness data according to recording in described system log, judge whether the current server shockproofness is greater than predefined shockproofness preset value, is, enters backup-step, otherwise, return to the first determining step; Backup-step, deposit the data in common hard disc for quick time and backup to solid state hard disc; Trigger step, the triggering baseboard management controller interrupts control signal by South Bridge chip by server system and reaches BIOS; Sleep step, BIOS starts the dormancy program makes server system enter dormant state; Wake-up step, when within the pre-set time period, when motion sensor does not read the server vibrations, BIOS starts wake up procedure wake servers system.
The present invention also provides a kind of server anti-shock system, comprising: suspend module, when when motion sensor, detecting the motion event of server, suspend common hard disc and turn round; Whether the first judge module, continue vibrations for judging server; First recovers module, for when the judgement server does not continue to shake, recovers the common hard disc running; The second judge module, for when the judgement server continues vibrations, according to the shockproofness data that record in described system log, judge whether the current server shockproofness is greater than predefined shockproofness preset value; Described the first judge module, also, for when judgement server shockproofness, being not more than predefined shockproofness preset value, judge whether server continues vibrations; Backup module, for depositing the data of common hard disc for quick time and backup to solid state hard disc when judgement server shockproofness being greater than predefined shockproofness preset value; Trigger module, send server system interruption control signal for triggering baseboard management controller to BIOS, and after BIOS receives this server system interruption control signal, startup dormancy program makes server system enter dormant state; Described trigger module, also for working as within the predefined time period, when motion sensor does not detect the server vibrations, trigger baseboard management controller and send server system interruption control signal to BIOS, BIOS receives that this server system interrupts starting wake up procedure wake servers system after control signal.
The present invention reads server system shockproofness data in real time by shock sensor, when vibrations are violent, data in common hard disc are backuped to SSD, and make the server system dormancy, thereby prevent server system because vibrations or the abnormal shutdown that causes of other event and obliterated data.
The accompanying drawing explanation
Fig. 1 is the running environment figure of the better embodiment of server anti-shock system of the present invention.
Fig. 2 is the functional block diagram of the better embodiment of server anti-shock system of the present invention.
Fig. 3 is the process flow diagram of the better embodiment of server shock prevention method of the present invention.
The main element symbol description
Server 1
The server anti-shock system 10
Microprocessor 12
Storer 14
Baseboard management controller 16
South Bridge chip 18
BIOS 20
Motion sensor 22
Suspend module 100
Backup module 102
Trigger module 104
Preserve module 106
First recovers module 108
Second recovers module 110
The first judge module 112
The second judge module 114
The 3rd judge module 116
Following embodiment further illustrates the present invention in connection with above-mentioned accompanying drawing.
Embodiment
As shown in Figure 1, be the running environment schematic diagram of server anti-shock system of the present invention preferred embodiment.This server anti-shock system 10 operates on server 1, and this server 1 comprises microprocessor 12, storer 14, baseboard management controller 16, South Bridge chip 18, BIOS 20, the motion sensor (motion sensor) 22 of baseboard management controller 16.In addition, book server 1 adopts the hard disk of two kinds of specifications, and system disk adopts SSD, and what data storing was used is the hard disk of general type.Described SSD(Solid State Disk), the hard disk made from solid-state electronic storage chip array, by control module and storage unit (DRAM or FLASH chip) two parts, formed, storage unit is responsible for storing data, control module is responsible for reading, data writing, has speed fast, durable shockproof, noiselessness, the advantage such as lightweight.Described server can be container data center (Containerized Data Center, CDC) server.
Whether described server anti-shock system 10 is for by motion sensor 22 detecting real-time server systems, unexpected shock event occurring, shock event comprises rocks or collides, and when vibrations are serious, be that shockproofness is while being greater than predefined preset value, the data of common hard disc is passed to the SSD hard disk as backup, and make system enter dormant state, avoid the accident of data to lose.
Described baseboard management controller 16 (Baseboard Management Controller, BMC) be a special chip, it supports the IPMI standard of industry standard, and baseboard management controller also records Sensor Events, maintenance sensor data recording in System Event Log.The communication that described South Bridge chip 18 is responsible between the I/O bus, as pci bus, USB, LAN, ATA, SATA, Audio Controller, keyboard controller, real-time clock controller, Advanced Program Zoom etc., in present embodiment, South Bridge chip 18 is mainly used in interruption control signal that transmission sensor sends to BIOS 20.
Described BIOS 20(Basic Input Output System) literally rear Chinese is exactly " Basic Input or Output System (BIOS) ".It is one group of program be cured on computer motherboard on a rom chip, self-check program and system self-triggered program after the program of the most important basic input and output of its in store computing machine, system configuration information, start.Its major function provides the bottom, the most direct hardware setting and control for computing machine.In present embodiment, the program that BIOS 20 is mainly used in by being located thereon makes server system enter dormant state under certain condition or server system is waken up from dormant state.
Described motion sensor 22 is in baseboard management controller 16, and it can be detected the exercise parameter (comprising speed, frequency, acceleration etc.) of server 1 and convert output signal to.Be mainly used in detecting the vibrations of server in present embodiment and read vibration data.
Described server anti-shock system 10 is stored in the storer 14 of baseboard management controller 16.In the present embodiment, described server anti-shock system 10 can be divided into one or more modules, described one or more module is stored in the storer of baseboard management controller 16 and is configured to and carried out by the microprocessor 12 of baseboard management controller 16, to complete the present invention.For example, consult shown in Fig. 2, described server anti-shock system 10 is divided into time-out module 100, backup module 102, trigger module 104, preserves module 106, the first recovery module 108, the second recovery module 110, the first judge module 112, the second judge module 114, the 3rd judge module 116, the alleged module of the present invention has been the program segment of a specific function, than program, be more suitable in describing the implementation of software in server 1, the description of consulting Fig. 3 about the function of each module.
As shown in Figure 3, be the preferred embodiment process flow diagram of server shock prevention method of the present invention.
Step S200, the motion event of motion sensor 22 detecting real-time servers 1 (as rock or collide), and generation system log recording shockproofness data.Described shockproofness data can be vibration frequency or velocity of vibration or oscillatory acceleration.
Step S202, when motion sensor 22 detects the server vibrations, suspend module 100 and suspend the common hard disc running, avoids this hard disk corruptions.
Step S204, according to the shockproofness data of the system log of described generation record, the first judge module 112 judge whether server shakes, if server shakes, enters step S208, otherwise, enter step S206.
Step S206, first recovers module 108 recovers the common hard disc running.
Step S208, according to described shockproofness data, the second judge module 114 judges whether the current server shockproofness is greater than predefined shockproofness preset value, if be greater than described preset value, enters step S210, otherwise, return to step S204.
Step S210 backup module 102 returns the data in the general type hard disk to deposit fast and backups in solid-state hard disk SSD.In this step, described server shockproofness is greater than the situation that predefined shockproofness preset value comprises to be had: lasting appearance is rocked strongly, likely jeopardizes whole server system.
Step S212, trigger module 104 triggering baseboard management controllers 16 interrupt control signal by South Bridge chip 18 by server system and reach BIOS 20.
Step S214, after preservation module 106 duty that server system is current is kept in server 1 system journal, BIOS 20 starts the dormancy programs makes system enter dormant state.After system enters dormant state, because the data of system all are stored in solid-state hard disk SSD, so even if, because earthquake or other event that can not expect cause the electric power system outage, data can not lost.
Step S216, the 3rd judge module 116 judgements are within the predefined time period, and whether motion sensor 22 detects server 1 also in vibrations, if so, continues judgement, otherwise, enter step S218.
Step S218, trigger module 104 triggers baseboard management controller 16 and sends server system interruption control signal by South Bridge chip 18 to BIOS 20, BIOS 20 starts wake up procedure wake servers system, second recovers module 110 returns to server system to be kept at the server system duty in server 1 system journal before, now, must again not start shooting and system initialization, significantly reduce Resume service device system again and move the needed time.
Above embodiment is only unrestricted in order to technical scheme of the present invention to be described, although with reference to preferred embodiment, the present invention is had been described in detail, those of ordinary skill in the art is to be understood that, can modify or be equal to replacement technical scheme of the present invention, and not break away from the spirit and scope of technical solution of the present invention.

Claims (8)

1. a server shock prevention method, be applied on server, and this server adopts the hard disk of solid state hard disc and general type, it is characterized in that, the method comprises:
The detecting step, the motion event of motion sensor detecting real-time server, and the shockproofness data are recorded in the generation server system journal;
Pause step, when motion sensor detects the server vibrations, suspend the common hard disc running;
The first determining step, judge whether server continues vibrations, is to enter the second determining step, otherwise, enter the first recovering step;
The first recovering step, recover the common hard disc running;
The second determining step, according to the shockproofness data that record in described system log, judge whether the current server shockproofness is greater than predefined shockproofness preset value, is to enter backup-step, otherwise return to the first determining step;
Backup-step, deposit the data in common hard disc for quick time and backup to solid state hard disc;
Trigger step, the triggering baseboard management controller interrupts control signal by South Bridge chip by server system and reaches BIOS;
Sleep step, BIOS starts the dormancy program makes server system enter dormant state;
Wake-up step, when within the pre-set time period, when motion sensor does not detect the server vibrations, BIOS starts wake up procedure wake servers system.
2. server shock prevention method according to claim 1, is characterized in that, the method also comprised before sleep step:
Preserve step, system work at present state is kept in system log.
3. server shock prevention method according to claim 2, is characterized in that, the method also comprises after wake-up step:
The second recovering step, be kept at the duty in system log before server system is returned to.
4. server shock prevention method according to claim 1, is characterized in that, the data about the system shockproofness that described motion sensor reads are velocity of vibration or vibration frequency or oscillatory acceleration.
5. a server anti-shock system, operate on server, and this server adopts the hard disk of solid state hard disc and general type, it is characterized in that, this system comprises:
Suspend module, when when motion sensor, detecting the motion event of server, suspend common hard disc and turn round;
Whether the first judge module, continue vibrations for judging server;
First recovers module, for when server does not continue to shake, recovers the common hard disc running;
The second judge module, for when server continues vibrations, according to the shockproofness data that record in system log, judge whether the current server shockproofness is greater than predefined shockproofness preset value;
Described the first judge module, also for when the server shockproofness, being not more than predefined shockproofness preset value, judge whether server continues vibrations;
Backup module, for when the server shockproofness is greater than predefined shockproofness preset value, deposits the data in common hard disc for quick time and backup to solid state hard disc;
Trigger module, send server system interruption control signal for triggering baseboard management controller to BIOS, and after BIOS receives this server system interruption control signal, startup dormancy program makes server system enter dormant state;
Described trigger module, also for working as within the predefined time period, when motion sensor does not detect the server vibrations, trigger baseboard management controller and send server system interruption control signal to BIOS, BIOS receives that this server system interrupts starting wake up procedure wake servers system after control signal.
6. server anti-shock system according to claim 5, is characterized in that, this system also comprises:
Preserve module, for before the server system dormancy, system work at present state being kept to system log.
7. server anti-shock system according to claim 6, is characterized in that, this system also comprises:
Second recovers module, for after server system is waken up, before server system is returned to, is kept at the duty in system log.
8. server anti-shock system according to claim 5, is characterized in that, the data about the server shockproofness that described in this system, motion sensor reads are velocity of vibration or vibration frequency or oscillatory acceleration.
CN2012101719709A 2012-05-30 2012-05-30 Shake resisting method and system for server Pending CN103455448A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2012101719709A CN103455448A (en) 2012-05-30 2012-05-30 Shake resisting method and system for server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2012101719709A CN103455448A (en) 2012-05-30 2012-05-30 Shake resisting method and system for server

Publications (1)

Publication Number Publication Date
CN103455448A true CN103455448A (en) 2013-12-18

Family

ID=49737839

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2012101719709A Pending CN103455448A (en) 2012-05-30 2012-05-30 Shake resisting method and system for server

Country Status (1)

Country Link
CN (1) CN103455448A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105511972A (en) * 2014-09-26 2016-04-20 联想(北京)有限公司 Method for reducing faults of independent redundant disk array
CN109213634A (en) * 2018-08-28 2019-01-15 郑州云海信息技术有限公司 A kind of data guard method of server, system, equipment and storage medium
CN112269598A (en) * 2020-10-16 2021-01-26 苏州浪潮智能科技有限公司 Server starting control method and system, electronic equipment and storage medium
CN113434204A (en) * 2021-07-13 2021-09-24 深圳市智微智能科技股份有限公司 Computer control device and method
CN114356043A (en) * 2021-11-27 2022-04-15 杭州云豆豆智能科技有限公司 Hard disk anti-vibration control method, device and system and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7694188B2 (en) * 2007-02-05 2010-04-06 Microsoft Corporation Disk failure prevention and error correction
US20110238887A1 (en) * 2010-03-24 2011-09-29 Apple Inc. Hybrid-device storage based on environmental state
CN102411531A (en) * 2011-12-31 2012-04-11 曙光信息产业股份有限公司 Device for monitoring components in server

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7694188B2 (en) * 2007-02-05 2010-04-06 Microsoft Corporation Disk failure prevention and error correction
US20110238887A1 (en) * 2010-03-24 2011-09-29 Apple Inc. Hybrid-device storage based on environmental state
CN102411531A (en) * 2011-12-31 2012-04-11 曙光信息产业股份有限公司 Device for monitoring components in server

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105511972A (en) * 2014-09-26 2016-04-20 联想(北京)有限公司 Method for reducing faults of independent redundant disk array
CN105511972B (en) * 2014-09-26 2018-12-14 联想(北京)有限公司 A method of reducing raid-array failure
CN109213634A (en) * 2018-08-28 2019-01-15 郑州云海信息技术有限公司 A kind of data guard method of server, system, equipment and storage medium
CN112269598A (en) * 2020-10-16 2021-01-26 苏州浪潮智能科技有限公司 Server starting control method and system, electronic equipment and storage medium
CN113434204A (en) * 2021-07-13 2021-09-24 深圳市智微智能科技股份有限公司 Computer control device and method
CN114356043A (en) * 2021-11-27 2022-04-15 杭州云豆豆智能科技有限公司 Hard disk anti-vibration control method, device and system and storage medium

Similar Documents

Publication Publication Date Title
US6948008B2 (en) System with redundant central management controllers
CN106557145A (en) Circuit breaking protective system and its method
US20150278046A1 (en) Methods and systems to hot-swap a virtual machine
US8479049B2 (en) Electronic device and method for detecting power failure type
CN103455448A (en) Shake resisting method and system for server
WO2016078202A1 (en) Power failure protection method and solid state drive
US8909952B2 (en) Power supply apparatus of computer system and method for controlling power sequence thereof
CN103577298A (en) Baseboard management controller monitoring system and method
CN102375767A (en) Computer restart testing system and method
US20140032978A1 (en) Server and method of monitoring baseboard management controller
WO2022111048A1 (en) Power supply control method and apparatus, and server and non-volatile storage medium
TW202137034A (en) Method and system for automatic detection and alert of changes of computing device components
CN108983922A (en) Working frequency adjusting method, device and server
CN102915260B (en) The method that solid state hard disc is fault-tolerant and solid state hard disc thereof
JP2021077270A (en) Information processing apparatus and control method
WO2022267345A1 (en) Chassis intrusion state detection device and method, and edge server
CN109445561B (en) Power failure protection system and method applied to server and server
CN102929761B (en) A kind of system and method for tackling collapsibility mistake
CN1641573A (en) Method and device for realizing rapid start
US11552840B2 (en) Intention-based device component tracking system
TW201348949A (en) System and method for server anti-vibration
CN104020963A (en) Method and device for preventing misjudgment of hard disk read-write errors
CN101630278A (en) Method for recording crash abnormal information of electronic device and electronic device
US9047072B2 (en) System and method for managing power supply units
CN113900855B (en) Active hot start method, system and device for abnormal state of switch

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20131218