The embodiment of this application provides a method for detecting the server hard disk in place. The basic controller BMC includes a field replaceable unit FRU, which includes the hard disk backplane information of the server. The method includes: BMC sends broadcast information to all the hard disk backplanes of the server, and the broadcast information is used to indicate reception. The response data is returned to the hard disk backplane of the broadcast information; the BMC determines that there are N hard disks in the server according to the address and response data of each hard disk backplane in the received M hard disk backplanes and the hard disk backplane information in the server, where N and M are positive integers. Therefore, the method provided in the embodiment of this application can determine whether the hard disk backplane exists or not by pre-writing the hard disk backplane information in FRU and corresponding response data of the rear hard disk backplane, and then determine whether the hard disk on the hard disk backplane exists. The method provided in this application can effectively avoid BMC misjudgment of hard disk backplane caused by interference problems.
【技术实现步骤摘要】
一种检测服务器硬盘在位的方法及其装置
本申请涉及服务器领域,并且更具体地,涉及一种检测服务器硬盘在位的方法及其装置。
技术介绍
随着科技的不断发展,以互联网为依托的大数据、云计算、人工智能时代已经到来。互联网数据量出现猛烈增长,计算量及计算频率随之增大,数据中心服务器的数量也随之不断增加。数据中心服务器扩配的硬盘数量也会越来越多,相应的硬盘背板数量也随之增加。在资产管理的角度,需要基板控制器(BaseboardManagementController,BMC)能够对服务器的硬盘背板进行实时资产管理。服务器系统中,我们通常使用BMC来对服务器的资产进行管理,如硬盘背板信息、硬盘信息。BMC获取服务器中硬盘背板和硬盘信息通道目前采用内部整合电路(Inter-IntegratedCircuit,I2C)信息来判定。具体做法为:不同的硬盘背板采用不用的地址,在I2C第四通道中,BMC把所有的硬盘背板地址列入广播的范围。BMC抓取硬盘背板信息时采用广播呼叫地址方式,挂载在第四通道上的所有硬盘背板均会与广播发出的地址进行匹配,然后进行响应。BMC判断广播地址收到响应,会返回数据信号,就会判定该硬盘背板存在,进而判定硬盘背板上的硬盘在位,而实际情况中,由于信号干扰的情况存在,会误判某个硬盘背板存在,进而误判硬盘在位。因此,如何有效监测服务器上的硬盘在位是目前亟待解决的技术问题。
技术实现思路
本申请提供一种检测服务器硬盘在位的方法,能够有效监测服务器上的硬盘是否在位。第一方面,提供一种检测服务器硬盘在位的方法,所述服务器的基本控制器BMC中包括现场可更换单元FRU,所述FR ...
【技术保护点】
1.一种检测服务器硬盘在位的方法,其特征在于,所述服务器的基本控制器BMC中包括现场可更换单元FRU,所述FRU中包括所述服务器中的硬盘背板信息,所述方法包括:所述BMC向所述服务器的所有硬盘背板发送广播信息,所述广播信息用于指示接收到该广播信息的硬盘背板返回响应数据;所述BMC根据接收的M个硬盘背板中每个硬盘背板的地址和响应数据、以及所述服务器中的硬盘背板信息,确定所述服务器中存在N个硬盘,其中,N,M为正整数。
【技术特征摘要】
1.一种检测服务器硬盘在位的方法,其特征在于,所述服务器的基本控制器BMC中包括现场可更换单元FRU,所述FRU中包括所述服务器中的硬盘背板信息,所述方法包括:所述BMC向所述服务器的所有硬盘背板发送广播信息,所述广播信息用于指示接收到该广播信息的硬盘背板返回响应数据;所述BMC根据接收的M个硬盘背板中每个硬盘背板的地址和响应数据、以及所述服务器中的硬盘背板信息,确定所述服务器中存在N个硬盘,其中,N,M为正整数。2.根据权利要求1所述的方法,其特征在于,当所述硬盘背板信息包括所述服务器中每个硬盘背板的标识信息时,所述BMC根据接收的M个硬盘背板中每个硬盘背板的地址和响应数据、以及所述服务器中的每个硬盘背板的标识信息,确定所述服务器中存在N个硬盘。3.根据权利要求1所述的方法,其特征在于,当所述硬盘背板信息包括所述服务器中每个硬盘背板的数目信息时,所述BMC根据接收的M个硬盘背板中每个硬盘背板的地址和响应数据、以及所述服务器中的硬盘背板数目信息,确定所述服务器中存在N个硬盘。4.根据权利要求1至3中任一项所述的方法,其特征在于,所述方法还包括:更新所述FRU中包括的所述服务器中的硬盘背板信息。5.一...
【专利技术属性】
技术研发人员:张锋,
申请(专利权)人:郑州云海信息技术有限公司,
类型:发明
国别省市:河南,41
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。