CN106649168A - Method for judging whether hot swap happens or not - Google Patents

Method for judging whether hot swap happens or not Download PDF

Info

Publication number
CN106649168A
CN106649168A CN201510733279.9A CN201510733279A CN106649168A CN 106649168 A CN106649168 A CN 106649168A CN 201510733279 A CN201510733279 A CN 201510733279A CN 106649168 A CN106649168 A CN 106649168A
Authority
CN
China
Prior art keywords
control module
hot plug
stage
judging whether
value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201510733279.9A
Other languages
Chinese (zh)
Other versions
CN106649168B (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.)
Mitac Computer Shunde Ltd
Shencloud Technology Co Ltd
Original Assignee
Mitac Computer Shunde Ltd
Shencloud Technology 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 Mitac Computer Shunde Ltd, Shencloud Technology Co Ltd filed Critical Mitac Computer Shunde Ltd
Priority to CN201510733279.9A priority Critical patent/CN106649168B/en
Publication of CN106649168A publication Critical patent/CN106649168A/en
Application granted granted Critical
Publication of CN106649168B publication Critical patent/CN106649168B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/40Bus structure
    • G06F13/4063Device-to-bus coupling
    • G06F13/4068Electrical coupling
    • G06F13/4081Live connection to bus, e.g. hot-plugging

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a method for judging whether hot swap happens or not. The method is executed by a computer system which comprises a first control module and a second control module. The first control module is powered on and started to enter an initial stage, each control module respectively outputs a state signal to another control module, wherein the state signal indicates to be under one of the initial stage and a stable stage; the first control module judges whether the second control module is under the initial stage or the stable stage or not according to the state signal; and if a detection result shows that the second control module is under the stable stage, the first control module judges that an own hot swap operation happens. The method has the efficacy that whether the hot swap operation happens or not can be judged on the own so as to conveniently assuredly reflect an own situation to a monitoring host.

Description

The method for judging whether hot plug
Technical field
The invention relates to a kind of electronics numerical digit data processing method, particularly relates to a kind of method for judging whether and hot plug occurring.
Background technology
Currently used for the cabinet of computer system(Enclosure), such as boundling magnetic disc(Just A Bunch Of Disks, JBOD)In, including plural hard disk, and the plural control module for electrically connecting the hard disk such as this.The control module such as this electrically connects a monitoring host computer, such as server, and supports such as tandem attachment minicom interface(Serial Attached Small Computer System Interface, SAS), and by the cabinet state for being received, such as shell temperature, rotation speed of the fan, hardware configuration is sent to the monitoring host computer.
The control module such as this supports " hot plug ", that is, allow the control module that single failure is removed in the case of powered, and inserts normally to replace, and does not interrupt the overall store-service of boundling magnetic disc.However, the monitoring host computer is via the running for accessing the control module such as this and when obtaining cabinet state, Jing cannot often learn that the control module of failure and the control module replaced occurred hot plug to correspond to the information for updating control module(Such as sequence number, item number etc.), so that the functioning condition of the control module such as this cannot be really monitored, and its cabinet state for being transmitted.
The content of the invention
It is an object of the invention to provide a kind of method for judging whether hot plug.
The present invention judges whether the method that hot plug occurs, and is performed by a computer system, and the computer system includes one first control module and one second control module, and this judges whether that the method that hot plug occurs includes a step(A), a step(B), a step(E), and a step(G).
The step(A)It is the first control module electrifying startup, and enters a starting stage.
The step(B)It is that each control module each exports status signal of the instruction in one of starting stage and stabilization sub stage to another control module.
The step(E)It is that first control module judges second control module in starting stage or stabilization sub stage according to the status signal.
The step(G)If being step(E)Judge to be in the stabilization sub stage, then first control module judges itself hot plug operations.
Effect of the present invention be each control module when electrifying startup, when judging that is, according to the status signal, whether self judgment occurred the hot plug operations, so that self-condition to be informed monitoring host computer really without configuration processor replacement.
【Description of the drawings】
Fig. 1 is a system block diagrams, illustrates the computer system of the present invention;And
Fig. 2 is a flow chart, illustrates the embodiment of the method that the present invention judges whether hot plug.
【Specific embodiment】
Refering to Fig. 1, the present invention judges whether that the method that hot plug occurs is performed by a computer system 1, and the computer system 1 includes a monitoring host computer 11, and a cabinet(Enclosure)12.The monitoring host computer 11 can be server or computer;The cabinet 12 includes a storage module 15 with multiple hard disks 151, and one first control module 13, one second control module 14 for being electrically connected the monitoring host computer 11 and the storage module 15.
Each control module 13,14 utilizes universal input output connecting pin(General-Purpose Input/Output pins, GPIO pins)Electrically connect with another control module 14,13, and with one electrically connect the storage module 15 and have monitoring and, process and judgement etc. function expansion unit(Expander)131st, 141, and an electrical connection expansion unit 131,141 and stores a plug flag(SWAP flag)133rd, 143 and one configuration processor 134,144 flash memory 132,142.Wherein, the expansion unit 131,141 of each control module 13,14 can support tandem attachment minicom interface(Serial Attached Small Computer System Interface, SAS), and the plug flag 133,143 stored by the flash memory 132,142 of each control module 13,14 is default does not plug indicated value, such as logical zero in one, controlled can be transformed into a plug indicated value, such as logic 1.
In the present embodiment, first control module 13, second control module 14 are all an input/output module(Input/Output Module, IOM), and redundant each other(Redundant)And when 1 starting up of the computer system, both expansion units 131, the expansion unit 141 were operated respectively in the starting stage, a wherein control module can be determined as main control module using its expansion unit, another control module can then be determined as slave module, and each change operates in the stabilization sub stage after decision.The state of the cabinet is monitored using its expansion unit as the control module of main control module, the output voltage that for example controls the power supply unit of the cabinet, the rotation speed of the fan for controlling the cabinet, the temperature monitored in the cabinet, and the operating state of the hard disk such as this is monitored, and data on hard disc is transmitted to respond inquiry of the monitoring host computer etc..Then can be when original main control module cannot be operated as the control module of slave module, such as system switches to new main control module when machine, damage or generation hot plug.But the emphasis of decision further about main control module and slave module or handover mechanism and non-invention is located, no longer explain in this more.
Refering to Fig. 2, the present invention described below judges whether each step for the method that hot plug occurs.
First, in step, the electrifying startup of the first control module 13, and it is initial to enter one(initial)Stage.
In stepb, each output one indicates the status signal for being in one of starting stage and stabilization sub stage to another control module 14,13 to each control module 13,14.Specifically, the expansion unit 131 of each first control module 13, the expansion unit 141 of second control module 14 all can operate stable in a starting stage and one(stable)The one of which in stage, and the expansion unit 131 of first control module 13, the expansion unit 141 of second control module 14 can will indicate the status signal in residing stage, via first control module 13, the respective universal input output connecting pin of second control module 14, export to second control module 14, first control module 13, to give the expansion unit 141, the expansion unit 131 is learnt and can be via the universal input output connecting pin, the status signal for indicating the residing stage is exported to another control module 14, 13, wherein, the status signal is to be converted in an initial logic value(Such as logical zero)And a stable logic value(Such as logic 1)One of both.
In step C, the expansion unit 131 of first control module 13 determines whether that a configuration processor resets(reset).In the present embodiment, first control module 13 according to its expansion unit 131 buffer(It is not shown)The configuration processor reset value for being recorded is reset determining whether the configuration processor.If the determination result is YES, i.e., into step D, if judged result is no, that is, step E is entered.
In step D, if the judged result in step C is yes, the expansion unit 131 of first control module 13 is judged as that the configuration processor occurs to be reset.In this it should be noted that, because the expansion unit 131 of first control module 13 and the expansion unit 141 of second control module 14 are when the configuration processor resets, the starting stage can all be operated in, thus can with occur power supply reset cause turn back on startup or with occur itself hot plug operations cause the situation of starting up cannot be distinguished from, therefore, by judging whether that the configuration processor occurs to be reset in step C, the expansion unit 131 for being avoided that first control module 13 makes erroneous judgement.
In step E, if the judged result in step C is no, the then expansion unit 131 of first control module 13, it is the whichever of the initial logic value or the stable logic value according to residing for the status signal from the expansion unit 141 of second control module 14 judging the expansion unit 141 of second control module 14 in the starting stage or the stabilization sub stage.
In step F, if judging to be in the starting stage in step E, first control module 13 is judged as that one is relevant to the power supply replacement for re-powering startup.
In step G, if the expansion unit 131 of first control module 13 judges that the status signal is in the stable logic value in step E, the expansion unit 141 of second control module 14 is then judged in the stabilization sub stage, and judge that the expansion unit 141 of second control module 14 occurs itself hot plug operations.
In steph, the plug flag stored by the flash memory 131 is not plugged indicated value and is for conversion into the plug indicated value by the expansion unit 131 of first control module 13 from this.
In step I, the expansion unit 131 of first control module 13 sends the notification signal of the configuration of an instruction one change, and instruction configuration change can be relevant to or uncorrelated in itself hot plug operations.
In step J, the expansion unit 131 of first control module 13 enters a stabilization sub stage.
In step K, the monitoring host computer 11 receives the notification signal of the expansion unit 131 from first control module 13, and transmits the request signal of inquiry configuration change.What here to be supplemented is, although the monitoring host computer 11 can send out the request signal when notification signal that the generation configuration of first control module 13 changes is received, but when the monitoring host computer 11 does not receive the notification signal, also can actively transmit the request signal periodically to obtain and monitor the function situation of first control module 13 and second control module 14.
In step L, the expansion unit 131 of first control module 13 receives the request signal, and the return signal of a plug indicated value with the plug flag is exported to the monitoring host computer 11, the situation that itself hot plug operations occurred is reflected into the monitoring host computer 11.
It is described herein to be, although the present embodiment be by taking first control module 13 as an example, when illustrating its electrifying startup, the method for judging whether hot plug, but second control module 14 also equally applicable this method, and not being limited described in the present embodiment.
In sum, the present invention judges whether the method that hot plug occurs by each control module 13,14 electrifying startups, and when entering the starting stage, first judge whether the situation reset through the configuration processor replacement, the power supply, if exclude being reset for configuration processor replacement, the power supply, whether the stabilization sub stage is according to the status signal of another control module 14,13, and whether energy self judgment there are itself hot plug operations, so that self-condition to be informed monitoring host computer 11 really, therefore the purpose of the present invention can be reached really.
The foregoing is only presently preferred embodiments of the present invention, it is impossible to which the practical range of the present invention is limited with this, the simple, equivalence changes made according to scope of the present invention patent and patent specification content generally and modification are all still covered by the present invention within the scope of the patent.

Claims (8)

1. it is a kind of judge whether occur hot plug method, it is characterised in that:The method includes that one first control module and the computer system of one second control module are performed by one, and including:
(A)The first control module electrifying startup, and enter a starting stage;
(B)Each control module each exports status signal of the instruction in one of starting stage and stabilization sub stage to another control module;
(E)First control module judges second control module in starting stage or stabilization sub stage according to the status signal;And
(G)If step(E)Judge to be in the stabilization sub stage, then first control module judges itself hot plug operations.
2. according to the method for judging whether hot plug described in claim 1, it is characterised in that:This first and second control module be electrically connected to each other with a universal input output connecting pin respectively, and in step(B)In, this first and second control module via the respective universal input output connecting pin, status signal output in residing stage will be indicated.
3. according to the method for judging whether hot plug described in claim 1, it is characterised in that:The status signal is converted in an initial logic value and a stable logic value one of both, and in the step(E)In, first control module according to be residing for the status signal initial logic value or stable logic value whichever come judge second control module it is residing be starting stage or stabilization sub stage.
4. according to the method for judging whether hot plug described in claim 1, it is characterised in that:The method also includes:
(F)If step(E)Judge to be in the starting stage, then first control module is judged as that one is relevant to the power supply replacement for re-powering startup.
5. according to the method for judging whether hot plug described in claim 1, it is characterised in that:It is each this first and second control module there is respectively the flash memory of the default plug flag that indicated value is not plugged in of a storage one, also include:
(H)First control module converts the indicated value that do not plug of the plug flag and plugs indicated value into one;
(I)In response to the plug indicated value, first control module sends the notification signal of the configuration of an instruction one change, and instruction configuration change can be relevant to or uncorrelated in itself hot plug operations;And
(J)First control module enters a stabilization sub stage.
6. according to the method for judging whether hot plug described in claim 5, it is characterised in that:The computer system further include an electrical connection this etc. control module monitoring host computer, and also include:
(K)The monitoring host computer receives the notification signal from first control module, and sends the request signal of inquiry configuration change;And
(L)First control module receives the request signal, and sends a return signal with the plug flag target value to the monitoring host computer.
7. according to the method for judging whether hot plug described in claim 1, it is characterised in that:The method is additionally included in the step(B)With the step(E)Between the step of(C):
(C)First control module determines whether that a configuration processor resets.
8. according to the method for judging whether hot plug described in claim 7, it is characterised in that:It is each this first and second control module have one to be used to record the expansion unit of the configuration processor reset value respectively, and in the step(C)In, first control module configuration processor reset value that it is recorded according to the expansion unit is reset determining whether the configuration processor.
CN201510733279.9A 2015-10-29 2015-10-29 Judge whether the method for generation hot plug Active CN106649168B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510733279.9A CN106649168B (en) 2015-10-29 2015-10-29 Judge whether the method for generation hot plug

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510733279.9A CN106649168B (en) 2015-10-29 2015-10-29 Judge whether the method for generation hot plug

Publications (2)

Publication Number Publication Date
CN106649168A true CN106649168A (en) 2017-05-10
CN106649168B CN106649168B (en) 2019-11-26

Family

ID=58810637

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510733279.9A Active CN106649168B (en) 2015-10-29 2015-10-29 Judge whether the method for generation hot plug

Country Status (1)

Country Link
CN (1) CN106649168B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1494228A (en) * 2002-11-02 2004-05-05 华为技术有限公司 Method of realizing single plate main and ready change over and its circuit
CN1756377A (en) * 2004-09-28 2006-04-05 华为技术有限公司 Method for detecting single board fault
US7155552B1 (en) * 2004-09-27 2006-12-26 Emc Corporation Apparatus and method for highly available module insertion
CN101009684A (en) * 2007-01-29 2007-08-01 杭州华为三康技术有限公司 Monitoring device and method for single-board operation state in the distributed system
US20070271404A1 (en) * 2006-05-16 2007-11-22 Sun Microsystems, Inc. Realtime multithreaded hot-plug control
CN103399254A (en) * 2013-08-21 2013-11-20 迈普通信技术股份有限公司 Board in-situ detection method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1494228A (en) * 2002-11-02 2004-05-05 华为技术有限公司 Method of realizing single plate main and ready change over and its circuit
US7155552B1 (en) * 2004-09-27 2006-12-26 Emc Corporation Apparatus and method for highly available module insertion
CN1756377A (en) * 2004-09-28 2006-04-05 华为技术有限公司 Method for detecting single board fault
US20070271404A1 (en) * 2006-05-16 2007-11-22 Sun Microsystems, Inc. Realtime multithreaded hot-plug control
CN101009684A (en) * 2007-01-29 2007-08-01 杭州华为三康技术有限公司 Monitoring device and method for single-board operation state in the distributed system
CN103399254A (en) * 2013-08-21 2013-11-20 迈普通信技术股份有限公司 Board in-situ detection method and device

Also Published As

Publication number Publication date
CN106649168B (en) 2019-11-26

Similar Documents

Publication Publication Date Title
CN108206763B (en) Method and apparatus for data recovery during switch replacement
US7917664B2 (en) Storage apparatus, storage apparatus control method, and recording medium of storage apparatus control program
US20140122753A1 (en) Electronic Device, Management Method Thereof, and Rack Serving System
US7487372B2 (en) Remote power sensing for hard disk bridge controller
TW201812596A (en) Self-configuring baseboard management controller (BMC)
US10846159B2 (en) System and method for managing, resetting and diagnosing failures of a device management bus
CN110941323B (en) Computer implementation method, computing device and computer readable storage medium
CN103329106A (en) Detection and handling of ALUA preferences and state transitions by host
US20030041207A1 (en) Input/output controller, device identification method, and input/output control method
US10198307B2 (en) Techniques for dynamic selection of solutions to storage cluster system trouble events
US20150169221A1 (en) Information processing apparatus and method for monitoring the same
CN101339515A (en) Sensor process management methods and systems
US7254749B2 (en) System and method for storage of operational parameters on components
CN110985426B (en) Fan control system and method for PCIE Switch product
CN112667483B (en) Memory information reading device and method for server mainboard and server
US20130227341A1 (en) Sas host cache control
US20160073315A1 (en) Information processing apparatus, storage control apparatus, and information processing method
JP4500346B2 (en) Storage system
JP2002032324A (en) System for controlling pci bus device connection
CN106649168A (en) Method for judging whether hot swap happens or not
TW202020607A (en) Hard disk module and server system
JP7279351B2 (en) Verification device, verification method, program
CN111338911B (en) Server hard disk indicator lamp control system and control method thereof
US9246848B2 (en) Relay apparatus, storage system, and method of controlling relay apparatus
CN110321263B (en) Hard disk monitoring system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant