CN108762995A - A kind of method and its device that detection service device hard disk is in place - Google Patents

A kind of method and its device that detection service device hard disk is in place Download PDF

Info

Publication number
CN108762995A
CN108762995A CN201810289731.0A CN201810289731A CN108762995A CN 108762995 A CN108762995 A CN 108762995A CN 201810289731 A CN201810289731 A CN 201810289731A CN 108762995 A CN108762995 A CN 108762995A
Authority
CN
China
Prior art keywords
hard disk
server
information
disk backboard
bmc
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
CN201810289731.0A
Other languages
Chinese (zh)
Other versions
CN108762995B (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

Classifications

    • G—PHYSICS
    • G06—COMPUTING OR CALCULATING; COUNTING
    • G06F—ELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00—Error detection; Error correction; Monitoring
    • G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2247—Verification or detection of system hardware configuration

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)
  • Debugging And Monitoring (AREA)

Abstract

本申请实施例提供一种检测服务器硬盘在位的方法,基本控制器BMC中包括现场可更换单元FRU,所述FRU中包括所述服务器中的硬盘背板信息,方法包括:BMC向所述服务器的所有硬盘背板发送广播信息,所述广播信息用于指示接收到该广播信息的硬盘背板返回响应数据;所BMC根据接收的M个硬盘背板中每个硬盘背板的地址和响应数据、以及所述服务器中的硬盘背板信息,确定服务器中存在N个硬盘,其中,N,M为正整数。因此,本申请实施例提供的方法能够通过在FRU中预先写入硬盘背板信息,节后硬盘背板相应的响应数据,判定硬盘背板是否存在,进而确定该硬盘背板上上的硬盘是否存在。本申请提供的方法能够有效避免由于干扰问题造成的BMC对硬盘背板误判的情况发生。

An embodiment of the present application provides a method for detecting the presence of a server hard disk. The basic controller BMC includes a field replaceable unit (FRU), and the FRU includes hard disk backplane information in the server. The method includes: sending the BMC to the server All the hard disk backplanes of the M hard disk backplanes send broadcast information, and the broadcast information is used to instruct the hard disk backplanes that receive the broadcast information to return response data; the BMC receives the address and response data of each hard disk backplane in the M hard disk backplanes , and the hard disk backplane information in the server, it is determined that there are N hard disks in the server, where N and M are positive integers. Therefore, the method provided by the embodiment of the present application can determine whether the hard disk backplane exists by pre-writing the hard disk backplane information in the FRU and the corresponding response data of the hard disk backplane after the festival, and then determine whether the hard disk on the hard disk backplane is exist. The method provided by the present application can effectively avoid the occurrence of the BMC misjudging the hard disk backplane caused by the interference problem.

Description

一种检测服务器硬盘在位的方法及其装置A method and device for detecting presence of server hard disk

技术领域technical field

本申请涉及服务器领域,并且更具体地,涉及一种检测服务器硬盘在位的方法及其装置。The present application relates to the field of servers, and more specifically, to a method and device for detecting the presence of a hard disk of a server.

背景技术Background technique

随着科技的不断发展,以互联网为依托的大数据、云计算、人工智能时代已经到来。互联网数据量出现猛烈增长,计算量及计算频率随之增大,数据中心服务器的数量也随之不断增加。数据中心服务器扩配的硬盘数量也会越来越多,相应的硬盘背板数量也随之增加。在资产管理的角度,需要基板控制器(Baseboard Management Controller,BMC)能够对服务器的硬盘背板进行实时资产管理。With the continuous development of science and technology, the era of big data, cloud computing and artificial intelligence based on the Internet has arrived. The amount of Internet data has increased dramatically, and the amount of calculation and frequency of calculation have increased accordingly, and the number of servers in the data center has also continued to increase. The number of hard disks for server expansion in the data center will also increase, and the number of corresponding hard disk backplanes will also increase accordingly. From the perspective of asset management, it is necessary for a baseboard controller (Baseboard Management Controller, BMC) to be able to perform real-time asset management on the hard disk backplane of the server.

服务器系统中,我们通常使用BMC来对服务器的资产进行管理,如硬盘背板信息、硬盘信息。BMC获取服务器中硬盘背板和硬盘信息通道目前采用内部整合电路(Inter-Integrated Circuit,I2C)信息来判定。具体做法为:不同的硬盘背板采用不用的地址,在I2C第四通道中,BMC把所有的硬盘背板地址列入广播的范围。BMC抓取硬盘背板信息时采用广播呼叫地址方式,挂载在第四通道上的所有硬盘背板均会与广播发出的地址进行匹配,然后进行响应。BMC判断广播地址收到响应,会返回数据信号,就会判定该硬盘背板存在,进而判定硬盘背板上的硬盘在位,而实际情况中,由于信号干扰的情况存在,会误判某个硬盘背板存在,进而误判硬盘在位。In server systems, we usually use BMC to manage server assets, such as hard disk backplane information and hard disk information. Currently, the BMC obtains the information channel of the hard disk backplane and hard disk in the server by using the internal integrated circuit (Inter-Integrated Circuit, I2C) information to determine. The specific method is: different hard disk backplanes use different addresses, and in the fourth channel of I2C, BMC includes all hard disk backplane addresses in the scope of broadcasting. When BMC captures hard disk backplane information, it adopts broadcast call address method, and all hard disk backplanes mounted on the fourth channel will match with the address sent by broadcast, and then respond. The BMC judges that the broadcast address receives a response, and will return a data signal, which will determine that the hard disk backplane exists, and then determine that the hard disk on the hard disk backplane is in place. In actual situations, due to signal interference, it will misjudge a certain disk. The hard disk backplane exists, and it is misjudged that the hard disk is in place.

因此,如何有效监测服务器上的硬盘在位是目前亟待解决的技术问题。Therefore, how to effectively monitor the presence of the hard disk on the server is a technical problem to be solved urgently at present.

发明内容Contents of the invention

本申请提供一种检测服务器硬盘在位的方法,能够有效监测服务器上的硬盘是否在位。The present application provides a method for detecting the presence of a server hard disk, which can effectively monitor whether the hard disk on the server is in place.

第一方面,提供一种检测服务器硬盘在位的方法,所述服务器的基本控制器BMC中包括现场可更换单元FRU,所述FRU中包括所述服务器中的硬盘背板信息,所述方法包括:所述BMC向所述服务器的所有硬盘背板发送广播信息,所述广播信息用于指示接收到该广播信息的硬盘背板返回响应数据;所述BMC根据接收的M个硬盘背板中每个硬盘背板的地址和响应数据、以及所述服务器中的硬盘背板信息,确定所述服务器中存在N个硬盘,其中,N,M为正整数。In the first aspect, a method for detecting the presence of a hard disk of a server is provided. The basic controller BMC of the server includes a field replaceable unit FRU, and the FRU includes hard disk backplane information in the server. The method includes : The BMC sends broadcast information to all hard disk backplanes of the server, and the broadcast information is used to instruct the hard disk backplanes that receive the broadcast information to return response data; The addresses and response data of the hard disk backplanes and the hard disk backplane information in the server determine that there are N hard disks in the server, where N and M are positive integers.

结合第一方面,在第一方面的第一种可能的实现方式中,当所述硬盘背板信息包括所述服务器中每个硬盘背板的标识信息时,所述BMC根据接收的M个硬盘背板中每个硬盘背板的地址和响应数据、以及所述服务器中的每个硬盘背板的标识信息,确定所述服务器中存在N个硬盘。With reference to the first aspect, in the 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 The address and response data of each hard disk backplane in the backplane, and the identification information of each hard disk backplane in the server determine that there are N hard disks in the server.

结合第一方面及其上述实现方式,在第一方面的第二种可能的实现方式中,当所述硬盘背板信息包括所述服务器中每个硬盘背板的数目信息时,所述BMC根据接收的M个硬盘背板中每个硬盘背板的地址和响应数据、以及所述服务器中的硬盘背板数目信息,确定所述服务器中存在N个硬盘。With reference to the first aspect and the above implementation manners, in a second possible implementation manner of the first aspect, when the hard disk backplane information includes the number information of each hard disk backplane in the server, the BMC according to The received address and response data of each of the M hard disk backplanes and the number information of the hard disk backplanes in the server determine that there are N hard disks in the server.

结合第一方面及其上述实现方式,在第一方面的第二种可能的实现方式中,所述方法还包括:更新所述FRU中包括的所述服务器中的硬盘背板信息。With reference to the first aspect and the foregoing implementation manners thereof, in a second possible implementation manner of the first aspect, the method further includes: updating hard disk backplane information in the server included in the FRU.

第二方面,提供一种基板控制器,所述基本控制器BMC中包括:现场可更换单元FRU,所述FRU用于存储所述服务器中的硬盘背板信息;发送单元,所述发送单元用于向所述服务器的所有硬盘背板发送广播信息,所述广播信息用于指示接收到该广播信息的硬盘背板返回响应数据;处理单元,所述处理单元用于根据接收的M个硬盘背板中每个硬盘背板的地址和响应数据、以及所述服务器中的硬盘背板信息,确定所述服务器中存在N个硬盘,其中,N,M为正整数。In a second aspect, a base controller is provided, the basic controller BMC includes: a field replaceable unit FRU, the FRU is used to store hard disk backplane information in the server; a sending unit, the sending unit uses Send broadcast information to all hard disk backboards of the server, the broadcast information is used to indicate that the hard disk backboards that have received the broadcast information return response data; the processing unit is configured to receive M hard disk backplanes according to the received broadcast information. The address and response data of each hard disk backplane in the board and the hard disk backplane information in the server determine that there are N hard disks in the server, where N and M are positive integers.

结合第二方面,在第二方面的第一种可能的实现方式中,当所述硬盘背板信息包括所述服务器中每个硬盘背板的标识信息时,所述处理单元用于根据接收的M个硬盘背板中每个硬盘背板的地址和响应数据、以及所述服务器中的每个硬盘背板的标识信息,确定所述服务器中存在N个硬盘。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 The 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 determine that there are N hard disks in the server.

结合第二方面及其上述实现方式,在第二方面的第二种可能的实现方式中,当所述硬盘背板信息包括所述服务器中每个硬盘背板的数目信息时,所述处理单元用于根据接收的M个硬盘背板中每个硬盘背板的地址和响应数据、以及所述服务器中的硬盘背板数目信息,确定所述服务器中存在N个硬盘。With reference to the second aspect and the above implementation manners, in a second possible implementation manner of the second aspect, when the hard disk backplane information includes the number information of each hard disk backplane in the server, the processing unit The method is used to determine that there are N hard disks 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.

结合第二方面及其上述实现方式,在第二方面的第三种可能的实现方式中,所述FRU单元还用于:更新所述服务器中的硬盘背板信息。With reference to the second aspect and the foregoing implementation manners thereof, in a third possible implementation manner of the second aspect, the FRU unit is further configured to: update hard disk backplane information in the server.

因此,本申请实施例提供的方法能够通过在FRU中预先写入硬盘背板信息,节后硬盘背板相应的响应数据,判定硬盘背板是否存在,进而确定该硬盘背板上的硬盘是否存在。本申请提供的方法能够有效避免由于干扰问题造成的BMC对硬盘背板误判的情况发生。Therefore, the method provided by the embodiment of the present application can determine whether the hard disk backplane exists by pre-writing the hard disk backplane information in the FRU, and the corresponding response data of the hard disk backplane after the festival, and then determine whether the hard disk on the hard disk backplane exists. . The method provided by the present application can effectively avoid the occurrence of the BMC misjudging the hard disk backplane caused by the interference problem.

附图说明Description of drawings

图1是本申请一个实施例的方法的示意性框图。Fig. 1 is a schematic block diagram of a method according to an embodiment of the present application.

图2是本申请另一实施例的方法的示意性流程图。Fig. 2 is a schematic flowchart of a method according to another embodiment of the present application.

图3是本申请一个实施例的装置的示意性结构框图。Fig. 3 is a schematic structural block diagram of a device according to an embodiment of the present application.

具体实施方式Detailed ways

下面将结合附图,对本申请中的技术方案进行描述。The technical solution in this application will be described below with reference to the accompanying drawings.

在实际的产品应用过程中,BMC获取服务器中硬盘背板和硬盘信息通道目前采用I2C信息来判定。举例来说,BMC内部设计了支持3个不同的背板,地址分别为0X20、0X22、0X24,而实际产品销售的配置中只搭载了0X20一个背板,当BMC在对0X20、0X22、0X24三个地址同时进行广播的时候,由于信号的干扰问题,在0X22、0X24两个地址后的Data数据位均被错误识别为有数据存在,因此BMC错误判定系统存在3个硬盘背板。In the actual product application process, BMC currently uses I2C information to determine the hard disk backplane and hard disk information channels in the server. For example, BMC internally designed to support 3 different backplanes, whose addresses are 0X20, 0X22, and 0X24, but the actual product sales configuration only carries one backplane of 0X20. When two addresses broadcast at the same time, due to the signal interference problem, the Data data bits after the two addresses 0X22 and 0X24 are all wrongly identified as having data, so the BMC wrongly judges that there are 3 hard disk backplanes in the system.

基于上述问题,本发明提出了一种检测服务器硬盘在位的方法,能够增加BMC读取硬盘背板信息稳定性。在当前BMC利用I2C的硬盘背板地址+数据响应信息来判定硬盘是否存在的设计存在误判情况下,利用BMC FRU信息,根据不同的配置类型,BMC在FRU中设置本配置硬盘背板的实际出货数量,从而避免了干扰问题造成的BMC对背板的误判现象。同时在后续的扩配中根据扩配背板数量刷新不同的FRU信息,即可实现BMC显示背板数量的更新。Based on the above problems, the present invention proposes a method for detecting the presence of a server hard disk, which can increase the stability of BMC reading information on the hard disk backplane. In the current design where the BMC uses the I2C hard disk backplane address + data response information to determine whether the hard disk exists, there is a misjudgment. Using the BMC FRU information, according to different configuration types, the BMC sets the actual configuration of the hard disk backplane in the FRU. Shipment quantity, thus avoiding the misjudgment of the backplane by BMC caused by the interference problem. At the same time, in the subsequent expansion, different FRU information is refreshed according to the number of expanded backplanes, and the number of BMC display backplanes can be updated.

图1示出了本申请一个实施例的方法的示意性框图,如图1所示,BMC中包括现场可更换单元FRU,所述FRU中包括所述服务器中的硬盘背板信息,包括:Fig. 1 shows a schematic block diagram of a method according to an embodiment of the present application. As shown in Fig. 1, a field replaceable unit FRU is included in the BMC, and the hard disk backplane information in the server is included in the FRU, including:

步骤110,所述BMC向所述服务器的所有硬盘背板发送广播信息,所述广播信息用于指示接收到该广播信息的硬盘背板返回响应数据。Step 110, the BMC sends broadcast information to all the hard disk backboards of the server, and the broadcast information is used to instruct the hard disk backboards that have received the broadcast information to return response data.

步骤120,所述BMC根据接收的M个硬盘背板中每个硬盘背板的地址和响应数据、以及所述服务器中的硬盘背板信息,确定所述服务器中存在N个硬盘,其中,N,M为正整数。Step 120, the BMC determines that there are N hard disks in the server according to the received address and response data of each of the M hard disk backplanes and the hard disk backplane information in the server, where N , M is a positive integer.

在系统规划阶段,规划硬盘背板支持数量,或规划存在哪些硬盘背板,这样就可以把硬盘背板的数量信息、硬盘背板的标识或者其他硬盘背板的信息写入现场可更换单元(Field Replace Unit,FRU)中。In the system planning stage, plan the supported number of hard disk backplanes, or plan which hard disk backplanes exist, so that the quantity 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 the field replaceable unit ( Field Replace Unit, FRU).

步骤120中,换种方式说,当BMC接收到一个硬盘背板相应的响应数据之后,还不能够确定该硬盘背板存在,只有当再根据FRU中包括的硬盘背板信息,才能够确定该硬盘背板存在,进而确定该硬盘背板上的硬盘在位。In step 120, in another way, after the BMC receives the corresponding response data of a hard disk backplane, it cannot determine the existence of the hard disk backplane. Only when the hard disk backplane information included in the FRU can it be determined. If the hard disk backplane exists, it is determined that the hard disks on the hard disk backplane are in place.

因此,本申请实施例提供的方法能够通过在FRU中预先写入硬盘背板信息,节后硬盘背板相应的响应数据,判定硬盘背板是否存在,进而确定该硬盘背板上的硬盘是否存在。本申请提供的方法能够有效避免由于干扰问题造成的BMC对硬盘背板误判的情况发生。Therefore, the method provided by the embodiment of the present application can determine whether the hard disk backplane exists by pre-writing the hard disk backplane information in the FRU, and the corresponding response data of the hard disk backplane after the festival, and then determine whether the hard disk on the hard disk backplane exists. . The method provided by the present application can effectively avoid the occurrence of the BMC misjudging the hard disk backplane caused by the interference problem.

可选地,作为本申请一个实施例,当所述硬盘背板信息包括所述服务器中每个硬盘背板的标识信息时,所述BMC根据接收的M个硬盘背板中每个硬盘背板的地址和响应数据、以及所述服务器中的每个硬盘背板的标识信息,确定所述服务器中存在N个硬盘。Optionally, as an embodiment of the present application, when the hard disk backplane information includes the identification information of each hard disk backplane in the server, the BMC The address and response data of the server and the identification information of each hard disk backplane in the server determine that there are N hard disks in the server.

也就是说,当FRU中预存了服务器上到底存在哪些硬盘背板存在,那么当BMC接收到M个硬盘背板的地址和相应的响应数据时,就会判断这M个硬盘背板实际存在哪些,并进一步确定存在的硬盘背板上的硬盘。That is to say, when the FRU pre-stores which hard disk backplanes exist on the server, then when the BMC receives the addresses of the M hard disk backplanes and the corresponding response data, it will judge which of the M hard disk backplanes actually exist. , and further determine the hard disks on the hard disk backplane.

可选地,作为本申请一个实施例,当所述硬盘背板信息包括所述服务器中每个硬盘背板的数目信息时,所述BMC根据接收的M个硬盘背板中每个硬盘背板的地址和响应数据、以及所述服务器中的硬盘背板数目信息,确定所述服务器中存在N个硬盘。Optionally, as an embodiment of the present application, when the hard disk backplane information includes the number information of each hard disk backplane in the server, the BMC The address and response data of the server, as well as the information on the number of hard disk backplanes in the server, determine that there are N hard disks in the server.

也就是说,当FRU中预存了服务器上存在硬盘背板的最大数量,那么当BMC接收到M个硬盘背板的地址和相应的响应数据时,就会根据硬盘背板的最大数量判断这M个硬盘背板实际存在哪些,并进一步确定存在的硬盘背板上的硬盘。That is to say, when the maximum number of hard disk backplanes on the server is pre-stored in the FRU, when the BMC receives the addresses of M hard disk backplanes and the corresponding response data, it will judge the number of M hard disk backplanes according to the maximum number of hard disk backplanes. Which ones actually exist on each hard disk backplane, and further determine the hard disks on the existing hard disk backplane.

可选地,作为本申请一个实施例,所述方法还包括:更新所述FRU中包括的所述服务器中的硬盘背板信息。Optionally, as an embodiment of the present application, the method further includes: updating hard disk backplane information in the server included in the FRU.

图2示出了本申请另一实施例的方法的示意性流程图。如图2所示,BMC向服务器上的硬盘背板发送广播消息,收到广播消息的硬盘背板将会返回响应数据,否则判断该硬盘背板不存在,硬盘背板上的硬盘也就不存在;当接收到硬盘背板的返回响应数据,且根据硬盘背板信息确定该硬盘背板存在时,则确定该硬盘背板上的硬盘也存在,否在该硬盘背板上的硬盘不存在。Fig. 2 shows a schematic flowchart of a method according to another embodiment of the present application. As shown in Figure 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 will return the response data, otherwise it is judged that the hard disk backplane does not exist, and the hard disk on the hard disk backplane will not exist. Exist; when the response data returned by the hard disk backplane is received, and the existence of the hard disk backplane is determined according to the information of the hard disk backplane, then it is determined that the hard disk on the hard disk backplane also exists, and whether the hard disk on the hard disk backplane does not exist .

举例来说,BMC内部设计了支持3个不同的背板,地址分别为0X20、0X22、0X24,而实际产品销售的配置中只搭载了0X20一个背板,例如FRU中存储的硬盘背板的数量为1,当BMC在对0X20、0X22、0X24三个地址同时进行广播的时候,由于信号的干扰问题,在0X22、0X24两个地址后的Data数据位均被错误识别为有数据存在,由于FRU中存在硬盘背板的数量为1,那么因此BMC判定系统存在1个硬盘背板0X20,并且该硬盘背板上的硬盘存在。For example, BMC internally designed to support 3 different backplanes, the addresses are 0X20, 0X22, 0X24, but the configuration of the actual product sales is only equipped with a backplane 0X20, such as the number of hard disk backplanes stored in FRU is 1, when the BMC broadcasts the three addresses 0X20, 0X22, and 0X24 at the same time, due to the signal interference problem, the Data data bits after the two addresses 0X22 and 0X24 are all misidentified as having data. The number of hard disk backplanes in the system is 1, so the BMC determines that there is one hard disk backplane 0X20 in the system, and the hard disks on the hard disk backplane exist.

图3示出了本申请另一实施例的装置的示意性框图,如图3所示,该装置300包括:Fig. 3 shows a schematic block diagram of a device according to another embodiment of the present application. As shown in Fig. 3, the device 300 includes:

现场可更换单元310,所述现场可更换单元310用于存储服务器中的硬盘背板信息。The field replaceable unit 310 is configured to store hard disk backplane information in the server.

发送单元320,所述发送单元320用于向所述服务器的所有硬盘背板发送广播信息,所述广播信息用于指示接收到该广播信息的硬盘背板返回响应数据。The sending unit 320 is configured to send broadcast information to all hard disk backboards of the server, where the broadcast information is used to instruct the hard disk backboards that receive the broadcast information to return response data.

处理单元330,所述处理单元330用于根据接收的M个硬盘背板中每个硬盘背板的地址和响应数据、以及所述服务器中的硬盘背板信息,确定所述服务器中存在N个硬盘,其中,N,M为正整数。A processing unit 330, configured to determine that there are N hard disk backplanes 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. Hard disk, where N and M are positive integers.

可选地,作为本申请一个实施例,当所述硬盘背板信息包括所述服务器中每个硬盘背板的标识信息时,所述处理单元330用于根据接收的M个硬盘背板中每个硬盘背板的地址和响应数据、以及所述服务器中的每个硬盘背板的标识信息,确定所述服务器中存在N个硬盘。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 The address and response data of each hard disk backplane, and the identification information of each hard disk backplane in the server, determine that there are N hard disks in the server.

可选地,作为本申请一个实施例,当所述硬盘背板信息包括所述服务器中每个硬盘背板的数目信息时,所述处理单元330用于根据接收的M个硬盘背板中每个硬盘背板的地址和响应数据、以及所述服务器中的硬盘背板数目信息,确定所述服务器中存在N个硬盘。Optionally, as an embodiment of the present application, when the hard disk backplane information includes the number information of each hard disk backplane in the server, the processing unit 330 is configured to The address and response data of the hard disk backplanes, and the number information of the hard disk backplanes in the server determine that there are N hard disks in the server.

可选地,作为本申请一个实施例,,所述现场可变更单元310还用于:更新所述服务器中的硬盘背板信息。Optionally, as an embodiment of the present application, the field changeable unit 310 is further configured to: update hard disk backplane information in the server.

因此,本申请实施例提供的装置能够通过在FRU中预先写入硬盘背板信息,节后硬盘背板相应的响应数据,判定硬盘背板是否存在,进而确定该硬盘背板上的硬盘是否存在。本申请提供的方法能够有效避免由于干扰问题造成的BMC对硬盘背板误判的情况发生。Therefore, the device provided by the embodiment of the present application can determine whether the hard disk backplane exists by pre-writing the hard disk backplane information in the FRU and the corresponding response data of the hard disk backplane after the festival, and then determine whether the hard disk on the hard disk backplane exists. . The method provided by the present application can effectively avoid the occurrence of the BMC misjudging the hard disk backplane caused by the interference problem.

本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Those skilled in the art can appreciate that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present invention.

所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the above-described system, device and unit can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here.

在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods may be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.

所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者第二设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。If the functions described above are realized in the form of software function units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a second device, etc.) execute all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program codes. .

以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应所述以权利要求的保护范围为准。The above is only a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Anyone skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the present invention. Should be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims (8)

1. a kind of method that detection service device hard disk is in place, which is characterized in that the basic controller BMC of the server includes Field Replaceable Unit FRU, the FRU include the hard disk backboard information in the server, the method includes:
The BMC sends broadcast message to all hard disk backboards of the server, and the broadcast message, which is used to indicate, to be received The hard disk backboard returning response data of the broadcast message;
The BMC is according to the address of each hard disk backboard and response data and the server in M hard disk backboard of reception In hard disk backboard information, determine that there are N number of hard disks in the server, wherein N, M are positive integer.
2. according to the method described in claim 1, it is characterized in that, when the hard disk backboard information include in the server it is every When the identification information of a hard disk backboard, the BMC is according to the address of each hard disk backboard and response in M hard disk backboard of reception The identification information of each hard disk backboard in data and the server determines that there are N number of hard disks in the server.
3. according to the method described in claim 1, it is characterized in that, when the hard disk backboard information include in the server it is every When the information of number of a hard disk backboard, the BMC is according to the address of each hard disk backboard and response in M hard disk backboard of reception Hard disk backboard information of number in data and the server determines that there are N number of hard disks in the server.
4. according to the method in any one of claims 1 to 3, which is characterized in that the method further includes:
Update the hard disk backboard information in the server that the FRU includes.
5. a kind of baseboard controller, which is characterized in that the basic controller BMC includes:
Field Replaceable Unit FRU, the FRU are used for the hard disk backboard information in storage server;
Transmission unit, the transmission unit are used to send broadcast message, the broadcast to all hard disk backboards of the server Information is used to indicate the hard disk backboard returning response data for receiving the broadcast message;
Processing unit, the processing unit are used for according to the address of each hard disk backboard and response in M hard disk backboard of reception Hard disk backboard information in data and the server determines that there are N number of hard disks in the server, wherein N, M are just Integer.
6. baseboard controller according to claim 5, which is characterized in that when the hard disk backboard information includes the service In device when the identification information of each hard disk backboard, the processing unit is used for according to each hard disk in M hard disk backboard of reception The identification information of each hard disk backboard in the address of backboard and response data and the server, determines the server In there are N number of hard disks.
7. baseboard controller according to claim 5, which is characterized in that when the hard disk backboard information includes the service In device when the information of number of each hard disk backboard, the processing unit is used for according to each hard disk in M hard disk backboard of reception Hard disk backboard information of number in the address of backboard and response data and the server determines that there are N in the server A hard disk.
8. baseboard controller according to any one of claims 5 to 7, which is characterized in that the FRU units are additionally operable to: Update the hard disk backboard information in the server.
CN201810289731.0A 2018-04-03 2018-04-03 A method and device for detecting the presence of a 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 A method and device for detecting the presence of a server hard disk

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810289731.0A CN108762995B (en) 2018-04-03 2018-04-03 A method and device for detecting the presence of a server hard disk

Publications (2)

Publication Number Publication Date
CN108762995A true CN108762995A (en) 2018-11-06
CN108762995B 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 A method and device for detecting the presence of a server hard disk

Country Status (1)

Country Link
CN (1) CN108762995B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109669828A (en) * 2018-12-21 2019-04-23 郑州云海信息技术有限公司 A kind of hard disk detection method and device
CN115599716A (en) * 2022-10-26 2023-01-13 浪潮商用机器有限公司(Cn) Method, device and equipment for identifying FRU in place and readable storage medium
CN116450421A (en) * 2022-01-05 2023-07-18 昆达电脑科技(昆山)有限公司 Detection method of adapter board
CN117499373A (en) * 2023-10-19 2024-02-02 杭州鸿钧微电子科技有限公司 Asset information management method, device, computer equipment and storage medium

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

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109669828A (en) * 2018-12-21 2019-04-23 郑州云海信息技术有限公司 A kind of hard disk detection method and device
CN109669828B (en) * 2018-12-21 2021-11-26 郑州云海信息技术有限公司 Hard disk detection method and device
CN116450421A (en) * 2022-01-05 2023-07-18 昆达电脑科技(昆山)有限公司 Detection method of adapter board
CN115599716A (en) * 2022-10-26 2023-01-13 浪潮商用机器有限公司(Cn) Method, device and equipment for identifying FRU in place and readable storage medium
CN117499373A (en) * 2023-10-19 2024-02-02 杭州鸿钧微电子科技有限公司 Asset information management method, device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN108762995B (en) 2021-08-20

Similar Documents

Publication Publication Date Title
CN113535474B (en) Method, system, medium and terminal for automatically repairing heterogeneous cloud storage cluster fault
EP3817333B1 (en) Method and system for processing requests in a consortium blockchain
US11086965B2 (en) Recording ledger data on a blockchain
US20120151282A1 (en) Managing apparatus, managing method
CN106572153A (en) Data storage method and device of cluster
US9355005B2 (en) Detection apparatus and detection method
CN107315825A (en) A kind of index upgrade system, method and device
CN104468399B (en) Data transmission method, device and server
CN108762995B (en) A method and device for detecting the presence of a server hard disk
CN107666493A (en) A kind of configuration method for database and its equipment
CN112954088A (en) Equipment address allocation method and equipment of CAN network and electronic equipment
CN103905441A (en) Data acquisition method and device
CN109039803A (en) A kind of method, system and the computer equipment of processing readjustment notification message
CN114185804A (en) Interface testing method and device and terminal equipment
CN106575414B (en) Contextual platform feature recommendation
CN103618786A (en) Playing error processing method and server
EP2913771A1 (en) Cluster license server
CN116582415A (en) A method and device for evaluating the health degree of network equipment
CN108429642A (en) A topology recognition method, system, device and computer storage medium
US11552840B2 (en) Intention-based device component tracking system
CN102063341A (en) high density server
CN110046167B (en) Data updating method and system
CN111615124B (en) Service detection method and device, electronic equipment and storage medium
CN118827481B (en) A method, device, and storage medium for calculating the online status of a device.
CN119690343B (en) Storage device control method and device, storage medium and electronic device

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