CN108762995B - Method and device for detecting in-place of server hard disk - Google Patents

Method and device for detecting in-place of server hard disk Download PDF

Info

Publication number
CN108762995B
CN108762995B CN201810289731.0A CN201810289731A CN108762995B CN 108762995 B CN108762995 B CN 108762995B CN 201810289731 A CN201810289731 A CN 201810289731A CN 108762995 B CN108762995 B CN 108762995B
Authority
CN
China
Prior art keywords
hard disk
server
information
backplane
backplanes
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
CN201810289731.0A
Other languages
Chinese (zh)
Other versions
CN108762995A (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.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information 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 Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201810289731.0A priority Critical patent/CN108762995B/en
Publication of CN108762995A publication Critical patent/CN108762995A/en
Application granted granted Critical
Publication of CN108762995B publication Critical patent/CN108762995B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/2247Verification or detection of system hardware configuration

Abstract

The embodiment of the application provides a method for detecting in-place of a server hard disk, a baseboard controller (BMC) comprises a Field Replaceable Unit (FRU), the FRU comprises hard disk backboard information in the server, and the method comprises the following steps: the BMC sends broadcast information to all hard disk backplanes of the server, wherein the broadcast information is used for indicating the hard disk backplanes receiving the broadcast information to return response data; the BMC determines that N hard disks exist in the server according to the received address and response data of each hard disk backboard in the M hard disk backboards and the hard disk backboard information in the server, wherein N and M are positive integers. Therefore, the method provided by the embodiment of the application can judge whether the hard disk backboard exists or not by writing the information of the hard disk backboard in the FRU in advance and saving the corresponding response data of the hard disk backboard, and further determine whether the hard disk on the hard disk backboard exists or not. The method provided by the application can effectively avoid the situation that the BMC misjudges the hard disk backboard caused by the interference problem.

Description

Method and device for detecting in-place of server hard disk
Technical Field
The present application relates to the field of servers, and more particularly, to a method and an apparatus for detecting presence of a server hard disk.
Background
With the continuous development of science and technology, the era of big data, cloud computing and artificial intelligence based on the internet has come. The data volume of the internet is increased dramatically, the calculation amount and the calculation frequency are increased, and the number of data center servers is increased continuously. The number of hard disks expanded by the data center server is increased, and the number of corresponding hard disk backplanes is increased. From the perspective of asset Management, a Baseboard Management Controller (BMC) is required to be able to perform real-time asset Management on a hard disk backplane of a server.
In a server system, the BMC is generally used to manage assets of the server, such as hard disk backplane information and hard disk information. The BMC obtains the hard disk backplane and the hard disk information channel in the server, and currently, determines the hard disk backplane and the hard disk information channel by using Inter-Integrated Circuit (I2C) information. The specific method comprises the following steps: different hard disk backplanes adopt different addresses, and in the fourth channel of I2C, the BMC lists all hard disk backplane addresses in the broadcast range. When the BMC captures the information of the hard disk back plates, a broadcast call address mode is adopted, all the hard disk back plates mounted on the fourth channel can be matched with addresses sent by broadcast, and then response is carried out. The BMC judges that the broadcast address receives the response and returns a data signal, judges that the hard disk backboard exists and further judges that the hard disk on the hard disk backboard is in place, and in an actual situation, judges that a certain hard disk backboard exists by mistake and further judges that the hard disk is in place due to the existence of signal interference.
Therefore, how to effectively monitor the in-place of the hard disk on the server is a technical problem to be solved urgently at present.
Disclosure of Invention
The application provides a method for detecting the in-place of a server hard disk, which can effectively monitor whether the hard disk on the server is in place.
In a first aspect, a method for detecting that a server hard disk is in place is provided, where a baseboard controller BMC of the server includes a field replaceable unit FRU, and the FRU includes information about a hard disk backplane in the server, and the method includes: the BMC sends broadcast information to all hard disk backplanes of the server, wherein the broadcast information is used for indicating the hard disk backplanes receiving the broadcast information to return response data; the BMC determines that N hard disks exist in the server according to the received address and response data of each hard disk backboard in the M hard disk backboards and the hard disk backboard information in the server, wherein N and M are positive integers.
With reference to the first aspect, in a first possible implementation manner of the first aspect, when the hard disk backplane information includes identification information of each hard disk backplane in the server, the BMC determines that N hard disks exist in the server according to the received address and response data of each hard disk backplane in the M hard disk backplanes and the identification information of each hard disk backplane in the server.
With reference to the first aspect and the foregoing implementation manner, in a second possible implementation manner of the first aspect, when the hard disk backplane information includes number information of each hard disk backplane in the server, the BMC determines that N hard disks exist in the server according to the received address and response data of each hard disk backplane in the M hard disk backplanes and the number information of the hard disk backplanes in the server.
With reference to the first aspect and the foregoing implementation manner of the first aspect, in a second possible implementation manner of the first aspect, the method further includes: and updating the hard disk backboard information in the server included in the FRU.
In a second aspect, a substrate controller is provided, in which the substrate controller BMC includes: the Field Replaceable Unit (FRU) is used for storing hard disk backboard information in the server; the sending unit is used for sending broadcast information to all hard disk backplanes of the server, and the broadcast information is used for indicating the hard disk backplanes receiving the broadcast information to return response data; the processing unit is used for determining that N hard disks exist in the server according to the received address and response data of each hard disk backboard in the M hard disk backboards and the hard disk backboard information in the server, wherein N and M are positive integers.
With reference to the second aspect, in a first possible implementation manner of the second aspect, when the hard disk backplane information includes identification information of each hard disk backplane in the server, the processing unit is configured to determine that N hard disks exist in the server according to the received address and response data of each hard disk backplane in the M hard disk backplanes and the identification information of each hard disk backplane in the server.
With reference to the second aspect and the foregoing implementation manner, in a second possible implementation manner of the second aspect, when the hard disk backplane information includes number information of each hard disk backplane in the server, the processing unit is configured to determine that N hard disks exist in the server according to the received address and response data of each hard disk backplane in the M hard disk backplanes and the number information of the hard disk backplanes in the server.
With reference to the second aspect and the foregoing implementation manner of the second aspect, in a third possible implementation manner of the second aspect, the FRU unit is further configured to: and updating the hard disk backboard information in the server.
Therefore, the method provided by the embodiment of the application can judge whether the hard disk backboard exists or not by writing the information of the hard disk backboard in the FRU in advance and saving the corresponding response data of the hard disk backboard, and further determine whether the hard disk exists on the hard disk backboard. The method provided by the application can effectively avoid the situation that the BMC misjudges the hard disk backboard caused by the interference problem.
Drawings
FIG. 1 is a schematic block diagram of a method of one embodiment of the present application.
Fig. 2 is a schematic flow chart of a method of another embodiment of the present application.
Fig. 3 is a schematic block diagram of an apparatus according to an embodiment of the present application.
Detailed Description
The technical solution in the present application will be described below with reference to the accompanying drawings.
In the actual product application process, the BMC acquires the hard disk backplane and the hard disk information channel in the server and judges by using I2C information at present. For example, the BMC is designed to support 3 different backplanes with addresses of 0X20, 0X22, and 0X24, but only 0X20 is installed in the configuration of actual product sales, and when the BMC broadcasts three addresses of 0X20, 0X22, and 0X24 at the same time, Data bits after two addresses of 0X22 and 0X24 are both recognized as Data due to signal interference, so the BMC error determination system has 3 hard disk backplanes.
Based on the problems, the invention provides a method for detecting the in-place of a server hard disk, which can increase the stability of reading the information of a hard disk backboard by a BMC. Under the condition that the current BMC judges whether the design of the hard disk exists by using the address of the hard disk backboard of I2C and the data response information, the BMC sets the actual shipment quantity of the configured hard disk backboard in the FRU by using the information of the BMC FRU according to different configuration types, so that the misjudgment phenomenon of the backboard by the BMC caused by the interference problem is avoided. Meanwhile, different FRU information is refreshed according to the number of the expanded backplates in subsequent expansion, and the update of the number of the display backplates of the BMC can be realized.
Fig. 1 is a schematic block diagram illustrating a method according to an embodiment of the present application, and as shown in fig. 1, a BMC includes a field replaceable unit FRU, where the FRU includes information about a hard disk backplane in the server, including:
step 110, the BMC sends broadcast information to all hard disk backplanes of the server, where the broadcast information is used to indicate that the hard disk backplane receiving the broadcast information returns response data.
And step 120, the BMC determines that N hard disks exist in the server according to the received address and response data of each hard disk backplane in the M hard disk backplanes and the hard disk backplane information in the server, wherein N and M are positive integers.
In a system planning stage, the number of hard disk backplanes supported is planned, or the number of the existing hard disk backplanes is planned, so that the number information of the hard disk backplanes, the identification of the hard disk backplanes or the information of other hard disk backplanes can be written into a Field Replaceable Unit (FRU).
In step 120, in another way, after the BMC receives the response data corresponding to one hard disk backplane, it cannot determine that the hard disk backplane exists, and only when the response data is received according to the hard disk backplane information included in the FRU, it can determine that the hard disk backplane exists, and thus determine that the hard disk on the hard disk backplane is in place.
Therefore, the method provided by the embodiment of the application can judge whether the hard disk backboard exists or not by writing the information of the hard disk backboard in the FRU in advance and saving the corresponding response data of the hard disk backboard, and further determine whether the hard disk exists on the hard disk backboard. The method provided by the application can effectively avoid the situation that the BMC misjudges the hard disk backboard caused by the interference problem.
Optionally, as an embodiment of the present application, when the hard disk backplane information includes identification information of each hard disk backplane in the server, the BMC determines that N hard disks exist in the server according to the received address and response data of each hard disk backplane in the M hard disk backplanes and the identification information of each hard disk backplane in the server.
That is to say, when the FRU prestores which hard disk backplanes exist on the server at all, when the BMC receives the addresses of the M hard disk backplanes and the corresponding response data, it will determine which of the M hard disk backplanes actually exist, and further determine the hard disks on the existing hard disk backplanes.
Optionally, as an embodiment of the present application, when the hard disk backplane information includes number information of each hard disk backplane in the server, the BMC determines that N hard disks exist in the server according to the received address and response data of each hard disk backplane in the M hard disk backplanes and the number information of the hard disk backplanes in the server.
That is, when the FRU prestores the maximum number of the hard disk backplates existing on the server, when the BMC receives the addresses of the M hard disk backplates and the corresponding response data, it will determine which of the M hard disk backplates actually exist according to the maximum number of the hard disk backplates, and further determine the hard disk on the existing hard disk backplates.
Optionally, as an embodiment of the present application, the method further includes: and updating the hard disk backboard information in the server included in the FRU.
Fig. 2 shows a schematic flow chart of a method of another embodiment of the present application. As shown in fig. 2, the BMC sends a broadcast message to the hard disk backplane on the server, and the hard disk backplane that receives the broadcast message returns response data, otherwise, it is determined that the hard disk backplane does not exist, and the hard disk on the hard disk backplane does not exist; and when the returned response data of the hard disk backboard is received and the existence of the hard disk backboard is determined according to the hard disk backboard information, determining that the hard disk on the hard disk backboard also exists or not.
For example, the BMC is designed to support 3 different backplanes, the addresses of the backplanes are 0X20, 0X22, and 0X24, and only 0X20 is installed in the configuration for actual product sales, for example, the number of hard disk backplanes stored in the FRU is 1, when the BMC broadcasts three addresses of 0X20, 0X22, and 0X24 at the same time, Data bits after two addresses of 0X22 and 0X24 are both identified by error as having Data due to the interference problem of signals, and since the number of hard disk backplanes in the FRU is 1, the BMC determines that the system has 1 hard disk backplane 0X20 and the hard disk on the hard disk backplane exists.
Fig. 3 shows a schematic block diagram of an apparatus according to another embodiment of the present application, and as shown in fig. 3, the apparatus 300 includes:
a field replaceable unit 310, the field replaceable unit 310 being configured to store hard disk backplane information in the server.
A sending unit 320, where the sending unit 320 is configured to send broadcast information to all hard disk backplanes of the server, and the broadcast information is used to indicate that the hard disk backplane receiving the broadcast information returns response data.
And the processing unit 330 is configured to determine that N hard disks exist in the server according to the received address and response data of each hard disk backplane in the M hard disk backplanes and the hard disk backplane information in the server, where N and M are positive integers.
Optionally, as an embodiment of the present application, when the hard disk backplane information includes identification information of each hard disk backplane in the server, the processing unit 330 is configured to determine that N hard disks exist in the server according to the received address and response data of each hard disk backplane in the M hard disk backplanes and the identification information of each hard disk backplane in the server.
Optionally, as an embodiment of the present application, when the hard disk backplane information includes number information of each hard disk backplane in the server, the processing unit 330 is configured to determine that N hard disks exist in the server according to the received address and response data of each hard disk backplane in the M hard disk backplanes and the number information of the hard disk backplanes in the server.
Optionally, as an embodiment of the present application, the field replaceable unit 310 is further configured to: and updating the hard disk backboard information in the server.
Therefore, the device provided by the embodiment of the application can determine whether the hard disk backboard exists or not by writing the information of the hard disk backboard in the FRU in advance and saving the corresponding response data of the hard disk backboard, and further determine whether the hard disk exists on the hard disk backboard or not. The method provided by the application can effectively avoid the situation that the BMC misjudges the hard disk backboard caused by the interference problem.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a second device) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (8)

1. A method for detecting the in-place of a server hard disk is characterized in that a baseboard controller (BMC) of the server comprises a Field Replaceable Unit (FRU), the FRU comprises hard disk backboard information in the server, and the method comprises the following steps:
the BMC sends broadcast information to all hard disk backplanes of the server, wherein the broadcast information is used for indicating the hard disk backplanes receiving the broadcast information to return response data;
the BMC determines that N hard disks exist in the server according to the received address and response data of each hard disk backboard in the M hard disk backboards and the hard disk backboard information in the server, wherein N and M are positive integers.
2. The method of claim 1, wherein when the hard disk backplane information comprises identification information of each hard disk backplane in the server, the BMC determines that N hard disks exist in the server according to the received address and response data of each hard disk backplane in the M hard disk backplanes and the identification information of each hard disk backplane in the server.
3. The method of claim 1, wherein when the hard disk backplane information comprises number information of each hard disk backplane in the server, the BMC determines that N hard disks exist in the server according to the received address and response data of each hard disk backplane in the M hard disk backplanes and the number information of the hard disk backplanes in the server.
4. The method according to any one of claims 1 to 3, further comprising: and updating the hard disk backboard information in the server included in the FRU.
5. A substrate controller BMC comprising:
the system comprises a Field Replaceable Unit (FRU), a server and a control unit (CPU), wherein the FRU is used for storing hard disk backboard information in the server;
the sending unit is used for sending broadcast information to all hard disk backplanes of the server, and the broadcast information is used for indicating the hard disk backplanes receiving the broadcast information to return response data;
the processing unit is used for determining that N hard disks exist in the server according to the received address and response data of each hard disk backboard in the M hard disk backboards and the hard disk backboard information in the server, wherein N and M are positive integers.
6. The substrate controller according to claim 5, wherein when the hard disk backplane information includes identification information of each hard disk backplane in the server, the processing unit is configured to determine that N hard disks exist in the server according to the received address and response data of each hard disk backplane in the M hard disk backplanes and the identification information of each hard disk backplane in the server.
7. The substrate controller according to claim 5, wherein when the hard disk backplane information includes number information of each hard disk backplane in the server, the processing unit is configured to determine that N hard disks exist in the server according to the received address and response data of each hard disk backplane in the M hard disk backplanes and the number information of the hard disk backplanes in the server.
8. The substrate controller of any of claims 5-7, wherein the FRU unit is further to: and updating the hard disk backboard information in the server.
CN201810289731.0A 2018-04-03 2018-04-03 Method and device for detecting in-place of server hard disk Active CN108762995B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810289731.0A CN108762995B (en) 2018-04-03 2018-04-03 Method and device for detecting in-place of server hard disk

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810289731.0A CN108762995B (en) 2018-04-03 2018-04-03 Method and device for detecting in-place of server hard disk

Publications (2)

Publication Number Publication Date
CN108762995A CN108762995A (en) 2018-11-06
CN108762995B true CN108762995B (en) 2021-08-20

Family

ID=63981018

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810289731.0A Active CN108762995B (en) 2018-04-03 2018-04-03 Method and device for detecting in-place of server hard disk

Country Status (1)

Country Link
CN (1) CN108762995B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109669828B (en) * 2018-12-21 2021-11-26 郑州云海信息技术有限公司 Hard disk detection method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1912641A (en) * 2006-08-24 2007-02-14 华为技术有限公司 Method and system for detecting single-plate on position
WO2012041683A1 (en) * 2010-09-30 2012-04-05 International Business Machines Corporation Server management using baseboard management controller to establish wireless network
CN104063296A (en) * 2014-06-30 2014-09-24 华为技术有限公司 Veneer in-place state detection method and device
CN105357267A (en) * 2015-09-30 2016-02-24 浪潮集团有限公司 Method, device and system for obtaining server information
CN107729220A (en) * 2017-09-27 2018-02-23 郑州云海信息技术有限公司 A kind of design method for realizing more NVMe hard disk backboards lightings

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1912641A (en) * 2006-08-24 2007-02-14 华为技术有限公司 Method and system for detecting single-plate on position
WO2012041683A1 (en) * 2010-09-30 2012-04-05 International Business Machines Corporation Server management using baseboard management controller to establish wireless network
CN104063296A (en) * 2014-06-30 2014-09-24 华为技术有限公司 Veneer in-place state detection method and device
CN105357267A (en) * 2015-09-30 2016-02-24 浪潮集团有限公司 Method, device and system for obtaining server information
CN107729220A (en) * 2017-09-27 2018-02-23 郑州云海信息技术有限公司 A kind of design method for realizing more NVMe hard disk backboards lightings

Also Published As

Publication number Publication date
CN108762995A (en) 2018-11-06

Similar Documents

Publication Publication Date Title
CN105144074B (en) It is stored using the block of hybrid memory device
CN110399267B (en) PCIE (peripheral component interface express) equipment monitoring method, system and equipment of server and readable storage medium
CN107005438A (en) Non-intrusion type dynamically scalable network load generation
US20090024764A1 (en) Tracking The Physical Location Of A Server In A Data Center
CN110113393B (en) Message pushing method and device, electronic equipment and medium
CN106649145B (en) Method and system for updating cache strategy in self-adaption mode
US20070073907A1 (en) Device, method and computer program product readable medium for determining the identity of a component
US9355005B2 (en) Detection apparatus and detection method
CN105190525A (en) Management of access to a hybrid drive in power saving mode
CN106575414B (en) Contextual platform feature recommendation
CN103905441A (en) Data acquisition method and device
CN108762995B (en) Method and device for detecting in-place of server hard disk
CN115129257A (en) Data reading and writing method, electronic equipment and computer readable storage medium
CN113064919B (en) Data processing method, data storage system, computer device and storage medium
US20150039718A1 (en) Sharing local cache from a failover node
CN110008758A (en) ID obtaining method and device, electronic equipment and storage medium
CN111193804B (en) Distributed storage method and device, network node and storage medium
WO2021137768A1 (en) Method, apparatus and device for consuming messages based on message queue
CN112131478A (en) Transaction detection method and device
CN116126613A (en) Position detection method and device of PCIe (peripheral component interconnect express) equipment, electronic equipment and storage medium
CN111400056A (en) Message queue-based message transmission method, device and equipment
CN112286909B (en) Execution state determining method, device, server and storage medium
US20210083931A1 (en) Intention-based device component tracking system
CN110046167B (en) Data updating method and system
US10310948B2 (en) Evaluation of risk of data loss and backup procedures

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