CN113254282A - Hard disk information detection method, system and storage medium before server startup - Google Patents

Hard disk information detection method, system and storage medium before server startup Download PDF

Info

Publication number
CN113254282A
CN113254282A CN202110525657.XA CN202110525657A CN113254282A CN 113254282 A CN113254282 A CN 113254282A CN 202110525657 A CN202110525657 A CN 202110525657A CN 113254282 A CN113254282 A CN 113254282A
Authority
CN
China
Prior art keywords
hard disk
server
information
band system
logic switch
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
CN202110525657.XA
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.)
Shandong Yingxin Computer Technology Co Ltd
Original Assignee
Shandong Yingxin Computer 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 Shandong Yingxin Computer Technology Co Ltd filed Critical Shandong Yingxin Computer Technology Co Ltd
Priority to CN202110525657.XA priority Critical patent/CN113254282A/en
Publication of CN113254282A publication Critical patent/CN113254282A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Power Sources (AREA)

Abstract

The invention relates to a method for detecting hard disk information before a server is started, which comprises the following steps: s1: a logic switch is added between the out-of-band system and the hard disk backboard; s2: the server is powered on and is not started, and standby voltage of the server is utilized to supply power to the out-of-band system, the hard disk backboard and the logic switch; s3: the logic switch is communicated with the SMBus, the out-of-band system reads the communication state of the SMBus and then directly communicates with the hard disk backboard, and hard disk information is collected and detected; s4: starting the server, disconnecting the connection state of the logic switch and the SMBus after the server is started, and finishing information collection and detection; the hard disk information is monitored and collected before the server is started, the hard disk abnormity is found and processed in advance, and the hard disk faults after the server is started are reduced.

Description

Hard disk information detection method, system and storage medium before server startup
Technical Field
The invention belongs to the technical field of server testing, and particularly relates to a method and a system for detecting hard disk information before a server is started and a storage medium.
Background
Nowadays, the data volume of the internet is rapidly increased, the calculation amount and the calculation frequency are increased, and the number of data center servers is also increased continuously. The demand for the server equipment is increased, the requirement for the performance of the server is higher, and the quantity of hard disks expanded and allocated by the server is increased along with the increasing powerful functions of the server products
At present, the collection and detection of hard disk information are realized by reading relevant information in a system under the condition that a server is powered on. Therefore, the out-of-band system can read the information of the hard disk from the in-band system only when the server is started, and the out-of-band system cannot detect the information and the state of the hard disk when the server is shut down; if the collection and detection of the hard disk information can be realized before the server is started, the advance prevention of the hard disk abnormity can be better realized.
In view of the above, the present invention provides a method, a system and a storage medium for detecting hard disk information before a server is powered on, so as to solve the defects and problems in the prior art.
Disclosure of Invention
The invention provides a method, a system and a storage medium for detecting hard disk information before starting a server, aiming at the defect that hard disk information detection cannot be carried out before the server is started and hard disk faults are easily caused in the operation process.
In order to achieve the purpose, the invention provides the following technical scheme:
in a first aspect, the present invention provides a method for detecting information of a hard disk before a server is powered on, the method comprising the following steps:
s1: a logic switch is added between the out-of-band system and the hard disk backboard, and the communication state control between the hard disk backboard and the SMBus is realized through the logic switch;
s2: the server is powered on and is not started, and standby voltage of the server is utilized to supply power to the out-of-band system, the hard disk backboard and the logic switch;
s3: the logic switch is communicated with the SMBus, the out-of-band system reads the communication state of the SMBus and then directly communicates with the hard disk backboard, and hard disk information is collected and detected;
s4: and starting the server, disconnecting the connection state of the logic switch and the SMBus after the server is started, and finishing information collection and detection.
Preferably, in step S2, a server battery is used to provide a server standby voltage to power the out-of-band system, the hard disk backplane, and the logic switch.
Preferably, the process of collecting the detected hard disk information in step S3 is as follows:
the first step is as follows: the out-of-band system sends broadcast information to the hard disk backboard;
the second step is that: the hard disk backboard responds after receiving the broadcast information, and replies the address of the hard disk backboard and response data of the broadcast information to the out-of-band system;
the third step: and the out-of-band system compares the response data to judge whether the hard disk information is abnormal or not, if the information is abnormal, the state of the hard disk is judged to be abnormal, and if the information is not abnormal, the state of the hard disk is judged to be normal.
Under the state that the logic switch is communicated with the SMBus, the out-of-band system is directly communicated with the hard disk backboard, hard disk information does not need to be detected and collected through the in-band system, the detection of the hard disk information can be realized before the server is started, and then whether the hard disk is abnormal or not is judged, and measures are taken in time.
Preferably, in the process of starting up the server in step S4, the out-of-band system communicates with the in-band system through the LPC bus to detect information related to the server start-up state; the starting process of the server is mastered in real time by detecting the relevant information of the starting state of the server, and the logic switch is timely disconnected from the SMBus after the starting is finished.
In a second aspect, the present invention provides a system for detecting information of a hard disk before a server is powered on, where the system includes:
the logic switch setting module: a logic switch is arranged between the out-of-band system and the hard disk backboard to realize the communication state control between the hard disk backboard and the SMBus;
a power supply module: the server is powered on and is not started, and standby voltage of the server is utilized to supply power to the out-of-band system, the hard disk backboard and the logic switch;
a communication establishment module: connecting the logic switch with the SMBus and marking the logic switch with a connected state;
hard disk information detection module: after the logic switch connection state is detected, the out-of-band system directly communicates with the hard disk backboard, and hard disk information is collected and detected.
A connection and disconnection module: after the computer is started, the connection state of the logic switch and the SMBus is disconnected, and the collection and detection of the hard disk information are completed
Preferably, the power supply module provides a standby voltage of the server by using a server battery, and supplies power to the out-of-band system, the hard disk backboard and the logic switch;
preferably, the hard disk information detection module includes:
an information transmitting unit: the out-of-band system sends broadcast information to the hard disk backboard;
an information response unit: the hard disk backboard responds after receiving the broadcast information, and replies the address of the hard disk backboard and response data of the broadcast information to the out-of-band system;
an abnormality determination unit: and the out-of-band system compares the response data to judge whether the hard disk information is abnormal or not, if the information is abnormal, the state of the hard disk is judged to be abnormal, and if the information is not abnormal, the state of the hard disk is judged to be normal.
Preferably, the connection and disconnection module is connected with a startup monitoring module, and the startup monitoring module monitors the startup state related information of the server; the startup monitoring module detects the startup state related information of the server, grasps the startup process of the server in real time, and starts working after the startup is completed by the connection and disconnection module.
In a third aspect, the present invention provides a computer storage medium having stored therein instructions that, when run on a computer, cause the computer to perform the above-described method.
In a fourth aspect, a terminal is provided, including:
a processor and a memory, wherein the memory is used for storing a computer program, and the processor is used for calling and running the computer program from the memory, so that the terminal executes the method.
The invention has the advantages that the hard disk information is collected and detected through the cooperative control of the logic switch, the out-of-band system and the hard disk backboard, the hard disk information and state data are processed, the monitoring and the collection of the hard disk information are realized before the server is started, the hard disk abnormity is found and processed in advance, the hard disk faults after the server is started are reduced, the server works effectively and the efficiency is improved.
Therefore, compared with the prior art, the invention has prominent substantive features and remarkable progress, and the beneficial effects of the implementation are also obvious.
Drawings
In order to more clearly illustrate the embodiments or technical solutions in the prior art of the present invention, the drawings used in the description of the embodiments or prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained based on these drawings without creative efforts.
Fig. 1 is a flowchart of a method for detecting hard disk information before a server is powered on according to embodiment 1 of the present invention.
Fig. 2 is a schematic block diagram of a hard disk information detection system before a server is powered on according to embodiment 2 of the present invention.
The system comprises a 1-logic switch setting module, a 2-power supply module, a 3-connection establishing module, a 4-hard disk information detection module, a 4.1-information sending unit, a 4.2-information response unit, a 4.3-abnormity judging unit, a 5-connection disconnection module and a 6-startup monitoring module.
Detailed Description
In order to make those skilled in the art better understand the technical solution of the present invention, the technical solution in the embodiment of the present invention will be clearly and completely described below with reference to the drawings in the embodiment of the present invention, and it is obvious that the described embodiment is only a part of the embodiment of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example 1:
as shown in fig. 1, the present embodiment provides a method for detecting hard disk information before a server is powered on, where the method includes the following steps:
s1: a logic switch is added between the out-of-band system and the hard disk backboard, and the communication state control between the hard disk backboard and the SMBus is realized through the logic switch;
s2: the server is powered on and is not started, and standby voltage of the server is utilized to supply power to the out-of-band system, the hard disk backboard and the logic switch;
the standby voltage of the server is provided by using a server battery, and the standby voltage supplies power to the out-of-band system, the hard disk backboard and the logic switch.
S3: the logic switch is communicated with the SMBus, the out-of-band system reads the communication state of the SMBus and then directly communicates with the hard disk backboard, and hard disk information is collected and detected;
the process of collecting the information of the detected hard disk is as follows:
the first step is as follows: the out-of-band system sends broadcast information to the hard disk backboard;
the second step is that: the hard disk backboard responds after receiving the broadcast information, and replies the address of the hard disk backboard and response data of the broadcast information to the out-of-band system;
the third step: and the out-of-band system compares the response data to judge whether the hard disk information is abnormal or not, if the information is abnormal, the state of the hard disk is judged to be abnormal, and if the information is not abnormal, the state of the hard disk is judged to be normal.
Under the state that the logic switch is communicated with the SMBus, the out-of-band system is directly communicated with the hard disk backboard, hard disk information does not need to be detected and collected through the in-band system, the detection of the hard disk information can be realized before the server is started, and then whether the hard disk is abnormal or not is judged, and measures are taken in time.
S4: and starting the server, disconnecting the connection state of the logic switch and the SMBus after the server is started, and finishing information collection and detection.
In the process of starting the server, the out-band system communicates with the in-band system through the LPC bus to detect the relevant information of the starting state of the server; the starting process of the server is mastered in real time by detecting the relevant information of the starting state of the server, and the logic switch is timely disconnected from the SMBus after the starting is finished.
Example 2:
as shown in fig. 2, the present embodiment provides a system for detecting hard disk information before a server is powered on, where the system includes:
logic switch setting module 1: a logic switch is arranged between the out-of-band system and the hard disk backboard to realize the communication state control between the hard disk backboard and the SMBus;
the power supply module 2: the server is powered on and is not started, and standby voltage of the server is utilized to supply power to the out-of-band system, the hard disk backboard and the logic switch;
the power supply module 2 provides standby voltage of the server by using a server battery and supplies power to the out-of-band system, the hard disk backboard and the logic switch;
the communication establishing module 3: connecting the logic switch with the SMBus and marking the logic switch with a connected state;
hard disk information detection module 4: after the logic switch connection state is detected, the out-of-band system directly communicates with the hard disk backboard, and hard disk information is collected and detected.
The hard disk information detection module 4 includes:
information sending unit 4.1: the out-of-band system sends broadcast information to the hard disk backboard;
information response unit 4.2: the hard disk backboard responds after receiving the broadcast information, and replies the address of the hard disk backboard and response data of the broadcast information to the out-of-band system;
abnormality determination unit 4.3: and the out-of-band system compares the response data to judge whether the hard disk information is abnormal or not, if the information is abnormal, the state of the hard disk is judged to be abnormal, and if the information is not abnormal, the state of the hard disk is judged to be normal.
The connection disconnection module 5: and after the computer is started, the connection state of the logic switch and the SMBus is disconnected, and the collection and detection of the hard disk information are completed.
The connection and disconnection module 5 is connected with a startup monitoring module 6, and the startup monitoring module 6 monitors the startup state related information of the server; the startup monitoring module 6 detects the startup state related information of the server, grasps the startup process of the server in real time, and starts working after the startup is completed by the connection and disconnection module 5.
Example 3:
the present embodiments provide a computer storage medium having stored therein instructions that, when run on a computer, cause the computer to perform the above-described method.
Example 4:
the present embodiment provides a terminal, including:
a processor and a memory, wherein the memory is used for storing a computer program, and the processor is used for calling and running the computer program from the memory, so that the terminal executes the method.
Although the present invention has been described in detail by referring to the drawings in connection with the preferred embodiments, the present invention is not limited thereto. Various equivalent modifications or substitutions can be made on the embodiments of the present invention by those skilled in the art without departing from the spirit and scope of the present invention, and these modifications or substitutions are within the scope of the present invention/any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (9)

1. A hard disk information detection method before a server is started is characterized by comprising the following steps:
s1: a logic switch is added between the out-of-band system and the hard disk backboard;
s2: the server is powered on and is not started, and standby voltage of the server is utilized to supply power to the out-of-band system, the hard disk backboard and the logic switch;
s3: the logic switch is communicated with the SMBus, the out-of-band system reads the communication state of the SMBus and then directly communicates with the hard disk backboard, and hard disk information is collected and detected;
s4: and starting the server, disconnecting the connection state of the logic switch and the SMBus after the server is started, and finishing information collection and detection.
2. The method as claimed in claim 1, wherein in step S2, the server battery is used to provide a server standby voltage to power an out-of-band system, a hard disk backplane, and a logic switch.
3. The method for detecting hard disk information before booting a server according to claim 2, wherein the process of collecting the detected hard disk information in step S3 is as follows:
the first step is as follows: the out-of-band system sends broadcast information to the hard disk backboard;
the second step is that: the hard disk backboard responds after receiving the broadcast information, and replies the address of the hard disk backboard and response data of the broadcast information to the out-of-band system;
the third step: and the out-of-band system compares the response data to judge whether the hard disk information is abnormal or not, if the information is abnormal, the state of the hard disk is judged to be abnormal, and if the information is not abnormal, the state of the hard disk is judged to be normal.
4. The method as claimed in claim 3, wherein in step S4, during the boot process of the server, the out-of-band system communicates with the in-band system via LPC bus to detect the information related to the boot state of the server.
5. A hard disk information detection system before a server is started is characterized by comprising:
the logic switch setting module: a logic switch is arranged between the out-of-band system and the hard disk backboard;
a power supply module: the server is powered on and is not started, and standby voltage of the server is utilized to supply power to the out-of-band system, the hard disk backboard and the logic switch;
a communication establishment module: connecting the logic switch with the SMBus and marking the logic switch with a connected state;
hard disk information detection module: after the communication state of the logic switch and the SMBus is detected, the out-of-band system directly communicates with the hard disk backboard, and hard disk information is collected and detected;
a connection and disconnection module: and after the computer is started, the connection state of the logic switch and the SMBus is disconnected, and the collection and detection of the hard disk information are completed.
6. The system of claim 5, wherein the power supply module provides a server standby voltage using a server battery to supply power to the out-of-band system, the hard disk backplane, and the logic switch.
7. The system of claim 6, wherein the hard disk information detection module comprises:
an information transmitting unit: the out-of-band system sends broadcast information to the hard disk backboard;
an information response unit: the hard disk backboard responds after receiving the broadcast information, and replies the address of the hard disk backboard and response data of the broadcast information to the out-of-band system;
an abnormality determination unit: and the out-of-band system compares the response data to judge whether the hard disk information is abnormal or not, if the information is abnormal, the state of the hard disk is judged to be abnormal, and if the information is not abnormal, the state of the hard disk is judged to be normal.
8. The system according to claim 7, wherein the connection and disconnection module is connected to a power-on monitoring module, and the power-on monitoring module monitors information related to a power-on state of the server.
9. A computer storage medium having stored therein instructions which, when run on a computer, cause the computer to perform the method of any of claims 1-4 above.
CN202110525657.XA 2021-05-14 2021-05-14 Hard disk information detection method, system and storage medium before server startup Pending CN113254282A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110525657.XA CN113254282A (en) 2021-05-14 2021-05-14 Hard disk information detection method, system and storage medium before server startup

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110525657.XA CN113254282A (en) 2021-05-14 2021-05-14 Hard disk information detection method, system and storage medium before server startup

Publications (1)

Publication Number Publication Date
CN113254282A true CN113254282A (en) 2021-08-13

Family

ID=77181877

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110525657.XA Pending CN113254282A (en) 2021-05-14 2021-05-14 Hard disk information detection method, system and storage medium before server startup

Country Status (1)

Country Link
CN (1) CN113254282A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102929752A (en) * 2012-09-13 2013-02-13 曙光信息产业(北京)有限公司 Method for detecting memory information of server before start-up
CN103678058A (en) * 2012-09-24 2014-03-26 鸿富锦精密工业(深圳)有限公司 Hardware detection system and method
CN106201758A (en) * 2016-07-15 2016-12-07 浪潮电子信息产业股份有限公司 The method and device that a kind of server node hard disk powers on
CN110718264A (en) * 2019-09-23 2020-01-21 深圳忆联信息系统有限公司 Method and device for testing information of solid state disk, computer equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102929752A (en) * 2012-09-13 2013-02-13 曙光信息产业(北京)有限公司 Method for detecting memory information of server before start-up
CN103678058A (en) * 2012-09-24 2014-03-26 鸿富锦精密工业(深圳)有限公司 Hardware detection system and method
CN106201758A (en) * 2016-07-15 2016-12-07 浪潮电子信息产业股份有限公司 The method and device that a kind of server node hard disk powers on
CN110718264A (en) * 2019-09-23 2020-01-21 深圳忆联信息系统有限公司 Method and device for testing information of solid state disk, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
CN111752776B (en) Cyclic power-on and power-off test method and system for server
CN102455950A (en) Firmware recovery system and method of base board management controller
CN106814324B (en) Method and device for monitoring the operating state of a battery pack
CN107729205B (en) Fault processing method and device for business system
CN111352779A (en) On-off test method of AC power supply of MOC card and related assembly
CN103477328A (en) Terminal device, control device, malfunction determination system, and method for determining malfunction
CN113746821A (en) Intelligent device control method and device, storage medium and electronic device
CN113608930B (en) System chip and electronic device
CN111880992B (en) Monitoring and maintaining method for controller state in storage device
CN113254282A (en) Hard disk information detection method, system and storage medium before server startup
CN109412819A (en) Method and device for warning device power down
CN111062503B (en) Power grid monitoring alarm processing method, system, terminal and storage medium
CN111488050B (en) Power supply monitoring method, system and server
CN113076210A (en) Server fault diagnosis result notification method, system, terminal and storage medium
CN110515757B (en) Information processing method, device, server and medium of distributed storage system
CN107179972A (en) For the method for calculation machine, microcontroller, test equipment and test system
CN103514086A (en) Extraction method and device for software error report
CN116149957A (en) Method for saving server power-on and power-off records through BMC
CN116339479A (en) Control method and device of server power supply, storage medium and electronic device
WO2019041685A1 (en) Apparatus unit control method, device and apparatus unit
CN114510374A (en) Automatic recovery system and method for peripheral mounting failure
CN116387652B (en) Online maintenance system and method for formation/capacity-division power supply equipment
CN111352789B (en) Alternating current circulation test method and device for server and storage medium
WO2024093035A1 (en) Master-slave linkage capacity expansion method and apparatus for mobile battery
CN118113563A (en) Management method and system for OCP network card

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210813