CN116166855A - Method and device for identifying serial numbers of hard disks - Google Patents
Method and device for identifying serial numbers of hard disks Download PDFInfo
- Publication number
- CN116166855A CN116166855A CN202310180456.XA CN202310180456A CN116166855A CN 116166855 A CN116166855 A CN 116166855A CN 202310180456 A CN202310180456 A CN 202310180456A CN 116166855 A CN116166855 A CN 116166855A
- Authority
- CN
- China
- Prior art keywords
- hard disk
- information
- connector
- address information
- target
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/903—Querying
- G06F16/90335—Query processing
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/901—Indexing; Data structures therefor; Storage structures
- G06F16/9017—Indexing; Data structures therefor; Storage structures using directory or table look-up
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- Computational Linguistics (AREA)
- Debugging And Monitoring (AREA)
Abstract
本申请实施例提供了一种硬盘序号识别方法,其中,该方法包括:获取查询信息,其中,查询信息至少包括目标中央处理器的目标地址信息;基于目标地址信息和连接关系表,确定目标中央处理器对应的目标硬盘的目标序号,其中,连接关系表是通过连接器预先对多个中央处理器的地址信息和多个硬盘的序号进行映射所得到的映射关系表,多个中央处理器部署于主板上,多个硬盘部署于背板上,主板和背板通过连接器连接。解决了相关技术中识别硬盘序号的灵活性差的问题。
An embodiment of the present application provides a hard disk serial number identification method, wherein the method includes: obtaining query information, wherein the query information includes at least target address information of the target central processing unit; based on the target address information and the connection relationship table, determine the The target serial number of the target hard disk corresponding to the processor, wherein the connection relationship table is a mapping relationship table obtained by mapping the address information of multiple CPUs and the serial numbers of multiple hard disks in advance through the connector. Multiple CPU deployment On the motherboard, multiple hard drives are deployed on the backplane, and the motherboard and the backplane are connected through connectors. The problem of poor flexibility in identifying the serial number of the hard disk in the related art is solved.
Description
技术领域technical field
本申请实施例涉及计算机领域,具体而言,涉及一种硬盘序号识别方法及装置。The embodiments of the present application relate to the field of computers, and in particular, to a method and device for identifying a hard disk serial number.
背景技术Background technique
硬盘通常会插到专门设计的硬盘背板上,硬盘背板与主板通过线缆连接,机箱的硬盘处会按照顺序刻上硬盘序号,服务器运维人员可以通过网络管理系统监控硬盘状态,如果某个硬盘出现故障,则可以通过硬盘序号快速定位故障硬盘,实施维修或替换,但是目前通常是按照固定的顺序来部署硬盘的,硬盘的位置无法改变,对应识别硬盘序号的过程单一,灵活性较差。Hard disks are usually plugged into specially designed hard disk backplanes. The hard disk backplanes are connected to the motherboard through cables. The hard disks in the chassis will be engraved with serial numbers in order. Server operation and maintenance personnel can monitor the status of hard disks through the network management system. If a hard disk fails, the hard disk serial number can be used to quickly locate the faulty hard disk and implement repair or replacement. However, at present, hard disks are usually deployed in a fixed order, and the location of the hard disk cannot be changed. The process of identifying the hard disk serial number is single and flexible. Difference.
针对s问题,目前没有有效的解决方案。There is currently no effective solution to the s problem.
发明内容Contents of the invention
本申请实施例提供了一种硬盘序号识别方法及装置,以至少解决相关技术中识别硬盘序号的灵活性差的问题。The embodiments of the present application provide a method and device for identifying a hard disk serial number, so as to at least solve the problem of poor flexibility in identifying the hard disk serial number in the related art.
根据本申请的一个实施例,提供了一种硬盘序号识别方法,包括:获取查询信息,其中,查询信息至少包括目标中央处理器的目标地址信息;基于目标地址信息和连接关系表,确定目标中央处理器对应的目标硬盘的目标序号,其中,连接关系表是通过连接器预先对多个中央处理器的地址信息和多个硬盘的序号进行映射所得到的映射关系表,多个中央处理器部署于主板上,多个硬盘部署于背板上,主板和背板通过连接器连接。According to an embodiment of the present application, a method for identifying a hard disk serial number is provided, including: obtaining query information, wherein the query information includes at least target address information of the target central processing unit; based on the target address information and the connection relationship table, determining the The target serial number of the target hard disk corresponding to the processor, wherein the connection relationship table is a mapping relationship table obtained by mapping the address information of multiple CPUs and the serial numbers of multiple hard disks in advance through the connector, and the deployment of multiple CPUs On the motherboard, multiple hard drives are deployed on the backplane, and the motherboard and the backplane are connected through connectors.
在一个示例性实施例中,该方法还包括:获取主板和背板的部署信息;通过连接器,基于部署信息对多个中央处理器配置地址信息,并对多个硬盘配置序号;基于部署信息、地址信息和序号,生成连接关系表。In an exemplary embodiment, the method further includes: acquiring the deployment information of the main board and the backplane; configuring address information for a plurality of central processing units based on the deployment information through a connector, and configuring serial numbers for a plurality of hard disks; , address information and serial number to generate a connection relationship table.
在一个示例性实施例中,连接器包括主连接器和背连接器,主连接器用于表征部署于主板上的连接器,背连接器用于表征部署于背板上的连接器,主连接器和背连接器通过线缆连接。In an exemplary embodiment, the connector includes a main connector and a back connector, the main connector is used to represent the connector deployed on the motherboard, and the back connector is used to represent the connector deployed on the backplane, the main connector and The rear connectors are connected by cables.
在一个示例性实施例中,地址信息包括:处理器地址和虚拟地址,通过连接器,基于部署信息对多个中央处理器配置地址信息,包括:获取部署信息中的多个中央处理器的第一配置信息和引脚信息;通过主连接器,基于第一配置信息对多个中央处理器配置处理器地址;通过主连接器,基于引脚信息对多个中央处理器配置虚拟地址。In an exemplary embodiment, the address information includes: a processor address and a virtual address, and configuring the address information for a plurality of central processors based on the deployment information through a connector includes: obtaining the first number of the plurality of central processors in the deployment information Configuration information and pin information; through the main connector, configure processor addresses for multiple CPUs based on the first configuration information; through the main connector, configure virtual addresses for multiple CPUs based on the pin information.
在一个示例性实施例中,通过连接器,基于部署信息对多个硬盘配置序号,包括:获取部署信息中硬盘的第二配置信息;通过背连接器基于第二配置信息,对多个硬盘配置序号。In an exemplary embodiment, configuring serial numbers for multiple hard disks based on deployment information through a connector includes: acquiring second configuration information of the hard disks in the deployment information; configuring the multiple hard disks based on the second configuration information through the rear connector serial number.
在一个示例性实施例中,基于部署信息、地址信息和序号,生成连接关系表,包括:通过连接器获取地址信息对应的硬盘接口协议,其中,硬盘接口协议与目标序号相对应;基于部署信息中的主板上多个元件的物理关系、地址信息和硬盘接口协议,生成连接关系表,其中,元件至少包括多个中央处理器,物理关系至少包括多个中央处理器的连接关系。In an exemplary embodiment, based on the deployment information, address information and serial number, generating a connection relationship table includes: obtaining a hard disk interface protocol corresponding to the address information through a connector, wherein the hard disk interface protocol corresponds to the target serial number; based on the deployment information The physical relationship, address information, and hard disk interface protocol of multiple components on the mainboard in the system generate a connection relationship table, wherein the components include at least a plurality of central processing units, and the physical relationship includes at least the connection relationship of multiple central processing units.
在一个示例性实施例中,通过连接器获取地址信息对应的硬盘接口协议,包括:通过连接器中的主连接器,获取地址信息对应的第一信号和第二信号,其中,第一信号包含地址信息对应的中央处理器的处理器地址,第二信号包含中央处理器的虚拟地址;通过连接器中的背连接器、第一信号和第二信号,获取硬盘接口协议。In an exemplary embodiment, obtaining the hard disk interface protocol corresponding to the address information through the connector includes: obtaining the first signal and the second signal corresponding to the address information through the main connector in the connector, wherein the first signal includes The processor address of the central processing unit corresponding to the address information, the second signal includes the virtual address of the central processing unit; the hard disk interface protocol is obtained through the back connector in the connector, the first signal and the second signal.
在一个示例性实施例中,基于部署信息中的主板上多个元件的物理关系、地址信息和硬盘接口协议,生成连接关系表,包括:响应于获取到第一信号、第二信号和硬盘接口协议,获取预设扩展芯片的多个信号传输通道的多个通道状态,其中,预设扩展芯片部署于背板上;在多个通道状态中存在传输状态的情况下,基于传输状态对应的信号传输通道,将第一信号、第二信号和接口协议传输至预设管理单元,其中,预设管理单元部署于主板上;通过预设管理单元对物理关系、第一信号、第二信号和硬盘接口协议进行映射处理,得到连接关系表。In an exemplary embodiment, based on the physical relationship, address information, and hard disk interface protocol of multiple components on the mainboard in the deployment information, a connection relationship table is generated, including: responding to obtaining the first signal, the second signal, and the hard disk interface Protocol, to obtain multiple channel states of multiple signal transmission channels of the preset expansion chip, wherein the preset expansion chip is deployed on the backplane; when there is a transmission state in the multiple channel states, based on the signal corresponding to the transmission state The transmission channel transmits the first signal, the second signal and the interface protocol to the preset management unit, wherein the preset management unit is deployed on the main board; the physical relationship, the first signal, the second signal and the hard disk are analyzed by the preset management unit The interface protocol is mapped, and the connection relationship table is obtained.
在一个示例性实施例中,该方法还包括:基于目标序号确定目标硬盘在背板上的位置;利用预设数码管芯片将位置转换为数码管控制命令,其中,预设数码管芯片部署于背板上;基于数码管控制命令,控制位置的数码管工作,其中,数码管部署于背板上。In an exemplary embodiment, the method further includes: determining the position of the target hard disk on the backplane based on the target serial number; using a preset digital tube chip to convert the position into a digital tube control command, wherein the preset digital tube chip is deployed on On the backboard; based on the nixie tube control command, the nixie tubes in the control position work, wherein the nixie tubes are deployed on the back board.
根据本申请的一个实施例,还提供了一种硬盘序号识别装置,包括:获取模块,用于获取查询信息,其中,查询信息至少包括目标中央处理器的目标地址信息;确定模块,用于基于目标地址信息和连接关系表,确定目标中央处理器对应的目标硬盘的目标序号,其中,连接关系表是通过连接器预先对多个中央处理器的地址信息和多个硬盘的序号进行映射所得到的映射关系表,多个中央处理器部署于主板上,多个硬盘部署于背板上,主板和背板通过连接器连接。According to an embodiment of the present application, there is also provided a device for identifying a hard disk serial number, including: an acquisition module, configured to acquire query information, wherein the query information includes at least target address information of the target central processing unit; a determination module, configured to The target address information and the connection relationship table determine the target serial number of the target hard disk corresponding to the target CPU, wherein the connection relationship table is obtained by mapping the address information of multiple central processors and the serial numbers of multiple hard disks in advance through the connector The mapping relationship table, multiple central processing units are deployed on the motherboard, multiple hard disks are deployed on the backplane, and the motherboard and the backplane are connected through connectors.
在一个示例性实施例中,该装置还包括:部署信息获取模块,用于获取主板和背板的部署信息;配置模块,用于通过连接器,基于部署信息对多个中央处理器配置地址信息,并对多个硬盘配置序号;生成模块,用于基于部署信息、地址信息和序号,生成连接关系表。In an exemplary embodiment, the device further includes: a deployment information acquisition module, configured to acquire the deployment information of the main board and the backplane; a configuration module, configured to configure address information for multiple central processing units based on the deployment information through a connector , and configure serial numbers for multiple hard disks; a generating module, configured to generate a connection relationship table based on deployment information, address information and serial numbers.
在一个示例性实施例中,连接器包括主连接器和背连接器,主连接器用于表征部署于主板上的连接器,背连接器用于表征部署于背板上的连接器,主连接器和背连接器通过线缆连接。In an exemplary embodiment, the connector includes a main connector and a back connector, the main connector is used to represent the connector deployed on the motherboard, and the back connector is used to represent the connector deployed on the backplane, the main connector and The rear connectors are connected by cables.
在一个示例性实施例中,地址信息包括:处理器地址和虚拟地址,通过连接器,配置模块包括:获取单元,用于获取部署信息中的多个中央处理器的第一配置信息和引脚信息;第一配置单元,用于通过主连接器,基于第一配置信息对多个中央处理器配置处理器地址;第二配置单元,用于通过主连接器,基于引脚信息对多个中央处理器配置虚拟地址。In an exemplary embodiment, the address information includes: processor address and virtual address, through the connector, the configuration module includes: an acquisition unit, configured to acquire the first configuration information and pins of multiple central processors in the deployment information information; the first configuration unit is used to configure processor addresses for multiple central processors based on the first configuration information through the main connector; the second configuration unit is used to configure processor addresses for multiple central processors based on pin information through the main connector The processor configures the virtual address.
在一个示例性实施例中,第二配置单元还用于:获取部署信息中硬盘的第二配置信息;通过背连接器基于第二配置信息,对多个硬盘配置序号。In an exemplary embodiment, the second configuration unit is further configured to: acquire second configuration information of the hard disk in the deployment information; configure serial numbers for the plurality of hard disks through the back connector based on the second configuration information.
在一个示例性实施例中,生成模块,包括:协议获取单元,用于通过连接器获取地址信息对应的硬盘接口协议,其中,硬盘接口协议与目标序号相对应;生成单元,用于基于部署信息中的主板上多个元件的物理关系、地址信息和硬盘接口协议,生成连接关系表,其中,元件至少包括多个中央处理器,物理关系至少包括多个中央处理器的连接关系。In an exemplary embodiment, the generation module includes: a protocol acquisition unit, configured to obtain a hard disk interface protocol corresponding to the address information through a connector, wherein the hard disk interface protocol corresponds to the target serial number; a generation unit, configured to The physical relationship, address information, and hard disk interface protocol of multiple components on the mainboard in the system generate a connection relationship table, wherein the components include at least a plurality of central processing units, and the physical relationship includes at least the connection relationship of multiple central processing units.
在一个示例性实施例中,协议获取模块包括:信号获取单元,用于通过连接器中的主连接器,获取地址信息对应的第一信号和第二信号,其中,第一信号包含地址信息对应的中央处理器的处理器地址,第二信号包含中央处理器的虚拟地址;协议获取单元通过连接器中的背连接器、第一信号和第二信号,获取硬盘接口协议。In an exemplary embodiment, the protocol acquisition module includes: a signal acquisition unit, configured to acquire the first signal and the second signal corresponding to the address information through the main connector in the connector, wherein the first signal includes a signal corresponding to the address information The processor address of the central processing unit, the second signal includes the virtual address of the central processing unit; the protocol obtaining unit obtains the hard disk interface protocol through the back connector in the connector, the first signal and the second signal.
在一个示例性实施例中,生成单元还用于:响应于获取到第一信号、第二信号和硬盘接口协议,获取预设扩展芯片的多个信号传输通道的多个通道状态,其中,预设扩展芯片部署于背板上;在多个通道状态中存在传输状态的情况下,基于传输状态对应的信号传输通道,将第一信号、第二信号和接口协议传输至预设管理单元,其中,预设管理单元部署于主板上;通过预设管理单元对物理关系、第一信号、第二信号和硬盘接口协议进行映射处理,得到连接关系表。In an exemplary embodiment, the generating unit is further configured to: acquire multiple channel states of multiple signal transmission channels of the preset expansion chip in response to acquiring the first signal, the second signal, and the hard disk interface protocol, wherein the preset It is assumed that the expansion chip is deployed on the backplane; in the case that there is a transmission state among the multiple channel states, based on the signal transmission channel corresponding to the transmission state, the first signal, the second signal and the interface protocol are transmitted to the preset management unit, wherein , the preset management unit is deployed on the main board; the physical relationship, the first signal, the second signal and the hard disk interface protocol are mapped by the preset management unit to obtain a connection relationship table.
在一个示例性实施例中,该装置还包括:位置确定单元,用于基于目标序号确定目标硬盘在背板上的位置;转换单元,用于利用预设数码管芯片将位置转换为数码管控制命令,其中,预设数码管芯片部署于背板上;控制单元,用于基于数码管控制命令,控制位置的数码管工作,其中,数码管部署于背板上。In an exemplary embodiment, the device further includes: a position determination unit, configured to determine the position of the target hard disk on the backplane based on the target serial number; a conversion unit, configured to convert the position into a digital tube control The command, wherein the preset nixie tube chip is deployed on the backboard; the control unit is used to control the position of the nixie tube based on the nixie tube control command, wherein the nixie tube is deployed on the backboard.
根据本申请的又一个实施例,还提供了一种计算机可读存储介质,计算机可读存储介质中存储有计算机程序,其中,计算机程序被设置为运行时执行上述任一项方法实施例中的步骤。According to yet another embodiment of the present application, a computer-readable storage medium is also provided, and a computer program is stored in the computer-readable storage medium, wherein the computer program is set to execute any one of the above-mentioned method embodiments when running. step.
根据本申请的又一个实施例,还提供了一种电子设备,包括存储器和处理器,存储器中存储有计算机程序,处理器被设置为运行计算机程序以执行上述任一项方法实施例中的步骤。According to yet another embodiment of the present application, there is also provided an electronic device, including a memory and a processor, where a computer program is stored in the memory, and the processor is configured to run the computer program to perform the steps in any one of the above method embodiments .
由于目前的硬盘序号识别系统的线缆是按照固定顺序连接的,硬盘无法替换、移动,灵活性差,因此,为了解决该问题,本申请提出通过获取查询信息,基于目标地址信息和连接关系表,确定目标中央处理器对应的目标硬盘的目标序号的方式,预先对多个中央处理器的地址信息和多个硬盘的序号进行映射,以得到连接关系表,使多个硬盘的顺序可以随时改变,从而避免固定顺序的连接方式导致的硬盘序号识别过程的灵活性差,进而解决了相关技术中识别硬盘序号的灵活性差的问题。Since the cables of the current hard disk serial number recognition system are connected in a fixed order, the hard disk cannot be replaced or moved, and the flexibility is poor. Therefore, in order to solve this problem, this application proposes to acquire query information based on the target address information and the connection relationship table. The method of determining the target serial number of the target hard disk corresponding to the target central processor is to map the address information of multiple central processors and the serial numbers of multiple hard disks in advance to obtain a connection relationship table, so that the order of multiple hard disks can be changed at any time. In this way, the poor flexibility of the identification process of the hard disk serial number caused by the connection mode of a fixed sequence is avoided, thereby solving the problem of poor flexibility in identifying the serial number of the hard disk in the related art.
附图说明Description of drawings
图1是根据本申请实施例的一种硬盘序号识别方法的移动终端的硬件结构框图;Fig. 1 is the block diagram of the hardware structure of the mobile terminal of a kind of hard disk serial number identification method according to the embodiment of the application;
图2是根据本申请实施例的一种硬盘序号识别方法的流程图;Fig. 2 is a flow chart of a method for identifying a hard disk serial number according to an embodiment of the present application;
图3是根据本申请实施例的一种主板背板连接关系的示意图;FIG. 3 is a schematic diagram of a connection relationship between a motherboard and a backplane according to an embodiment of the present application;
图4是根据本申请实施例的一种硬盘序号识别装置的结构框图。Fig. 4 is a structural block diagram of a device for identifying a hard disk serial number according to an embodiment of the present application.
具体实施方式Detailed ways
下文中将参考附图并结合实施例来详细说明本申请的实施例。Embodiments of the present application will be described in detail below with reference to the drawings and in combination with the embodiments.
需要说明的是,本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。It should be noted that the terms "first" and "second" in the description and claims of the present application and the above drawings are used to distinguish similar objects, but not necessarily used to describe a specific sequence or sequence.
本申请实施例中所提供的方法实施例可以在移动终端、计算机终端或者类似的运算装置中执行。以运行在移动终端上为例,图1是根据本申请实施例的一种硬盘序号识别方法的移动终端的硬件结构框图。如图1所示,移动终端可以包括一个或多个(图1中仅示出一个)处理器102(处理器102可以包括但不限于微处理器MCU或可编程逻辑器件FPGA等的处理装置)和用于存储数据的存储器104,其中,上述移动终端还可以包括用于通信功能的传输设备106以及输入输出设备108。本领域普通技术人员可以理解,图1所示的结构仅为示意,其并不对上述移动终端的结构造成限定。例如,移动终端还可包括比图1中所示更多或者更少的组件,或者具有与图1所示不同的配置。The method embodiments provided in the embodiments of the present application may be executed in mobile terminals, computer terminals or similar computing devices. Taking running on a mobile terminal as an example, FIG. 1 is a block diagram of a hardware structure of a mobile terminal according to a method for identifying a hard disk serial number according to an embodiment of the present application. As shown in Figure 1, the mobile terminal may include one or more (only one is shown in Figure 1) processors 102 (processors 102 may include but not limited to processing devices such as microprocessor MCU or programmable logic device FPGA, etc.) and a
存储器104可用于存储计算机程序,例如,应用软件的软件程序以及模块,如本申请实施例中的硬盘序号识别方法对应的计算机程序,处理器102通过运行存储在存储器104内的计算机程序,从而执行各种功能应用以及数据处理,即实现上述的方法。存储器104可包括高速随机存储器,还可包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器104可进一步包括相对于处理器102远程设置的存储器,这些远程存储器可以通过网络连接至移动终端。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The
传输设备106用于经由一个网络接收或者发送数据。上述的网络具体实例可包括移动终端的通信供应商提供的无线网络。在一个实例中,传输设备106包括一个网络适配器(Network Interface Controller,简称为NIC),其可通过基站与其他网络设备相连从而可与互联网进行通讯。在一个实例中,传输设备106可以为射频(Radio Frequency,简称为RF)模块,其用于通过无线方式与互联网进行通讯。
首先,在对本申请实施例进行描述的过程中出现的部分名词或术语适用于如下解释:First of all, some nouns or terms that appear during the description of the embodiments of the present application are applicable to the following explanations:
BMC:Baseboard Management Controller,基板管理控制器;BMC: Baseboard Management Controller, Baseboard Management Controller;
CPLD:Complex Programmable Logic Device,复杂可编程逻辑器件;CPLD: Complex Programmable Logic Device, complex programmable logic device;
BIOS:Basic Input Output System,基本输入输出系统;BIOS: Basic Input Output System, Basic Input Output System;
NVME:Non Volatile Memory Host Controller Interface Specification,非易失性内存主机控制器接口规范。NVME: Non Volatile Memory Host Controller Interface Specification, non-volatile memory host controller interface specification.
随着人工智能和大数据时代的到来,越来越多的数据需要快速传输处理,而NVME作为一种高速率、低延迟的存储协议应运而生,并得到越来越广泛的应用。在服务器领域,各式各样的服务器大多需要硬盘作为存储设备,服务器通常设计成2U、4U、6U的高度,所配置的硬盘数量也存在差异,例如12盘、24盘、36盘等。With the advent of the era of artificial intelligence and big data, more and more data needs to be transmitted and processed quickly. As a high-speed, low-latency storage protocol, NVME has emerged and has been more and more widely used. In the field of servers, most servers of all kinds require hard disks as storage devices. Servers are usually designed with a height of 2U, 4U, and 6U, and the number of hard disks configured is also different, such as 12 disks, 24 disks, and 36 disks.
而多个硬盘的序号主要是按顺序刻在硬盘机箱上,用于插接硬盘的背板与主板需按照特定的要求进行连接,例如:NVME硬盘序号与总线编号有关,总线编号小的对应硬盘序号小,而总线编号又与CPU的计算机端口有关,低端口对应总线编号小,故硬盘序号与CPU端口需要按照大小顺序连接,硬盘序号小的要接到CPU的低端口上,BIOS扫描CPU各端口下的设备,获取到硬盘信息,然后根据“低Port对应低硬盘序号”的原则确定硬盘序号;BIOS会将硬盘信息、序号发送给BMC,这样便可以在BIOS下以及BMC的网络管理系统中查看到硬盘的序号等相关信息,并实现与实际机箱丝印编号一一对应,确保某个硬盘出现问题时可以正确定位。The serial numbers of multiple hard disks are mainly engraved on the hard disk chassis in order, and the backplane and the motherboard used to insert the hard disks need to be connected according to specific requirements. The serial number is small, and the bus number is related to the computer port of the CPU. The low port corresponds to the small bus number, so the hard disk serial number and the CPU port need to be connected in order of size. The hard disk serial number is small to be connected to the low port of the CPU. The device under the port obtains the hard disk information, and then determines the hard disk serial number according to the principle of "low Port corresponds to low hard disk serial number". View related information such as the serial number of the hard disk, and realize a one-to-one correspondence with the silk screen number of the actual chassis, so as to ensure that a hard disk can be correctly located when a problem occurs.
但是这样的序号识别方法具有比较大的局限性,用于插硬盘的背板与主板连接的线缆需要按照固定顺序连接,不能随意更换线缆连接位置,缺乏灵活性,在线缆布局时可能会导致线缆超长,绕线困难,线缆交叉等问题,序号识别的灵活性差。However, this serial number identification method has relatively large limitations. The cables used to connect the backplane of the hard disk and the motherboard need to be connected in a fixed order, and the cable connection position cannot be changed arbitrarily, which lacks flexibility. It will lead to problems such as excessively long cables, difficult winding, cable crossing, etc., and the flexibility of serial number identification is poor.
实施例1Example 1
在本实施例中提供了一种运行于上述移动终端的硬盘序号识别方法,图2是根据本申请实施例的一种硬盘序号识别方法的流程图,如图2所示,该流程包括如下步骤:In this embodiment, a method for identifying a hard disk serial number running on the above-mentioned mobile terminal is provided. FIG. 2 is a flowchart of a method for identifying a hard disk serial number according to an embodiment of the present application. As shown in FIG. 2 , the process includes the following steps :
步骤S202,获取查询信息,其中,查询信息至少包括目标中央处理器的目标地址信息。Step S202, acquiring query information, wherein the query information includes at least target address information of the target CPU.
上述目标中央处理器可以是指部署在主板上的多个中央处理器中的任意一个,可以由用户选择;也可以是由硬盘序号识别系统从多个中央处理器中确定出的与硬盘状态异常,例如无法存储、无法读取的硬盘对用的中央处理器。需要说明的是,目标中央处理器的选取可以根据实际情况选取,在此不做限定。The above-mentioned target CPU can refer to any one of multiple CPUs deployed on the motherboard, which can be selected by the user; it can also be determined by the hard disk serial number identification system from multiple CPUs that are abnormal with the hard disk status. , such as a central processing unit for a hard disk that cannot be stored or read. It should be noted that the selection of the target central processing unit may be selected according to actual conditions, and is not limited here.
在本实施例的一种可选方案中,用户通过客户端,或者该硬盘序号识别系统进行自检时,是可以实时获取到中央处理器的状态的,而中央处理器可以实时的监测到硬盘的状态,因此,可以建立中央处理器和硬盘之间的映射关系,在识别目标硬盘的序号时,硬盘序号识别系统可以首先获取包含目标中央处理器的目标地址信息的查询信息,其中,目标中央处理器与目标硬盘对应。In an optional solution of this embodiment, when the user performs a self-check through the client or the hard disk serial number identification system, the state of the central processing unit can be obtained in real time, and the central processing unit can monitor the hard disk in real time. Therefore, the mapping relationship between the central processing unit and the hard disk can be established. When identifying the serial number of the target hard disk, the hard disk serial number recognition system can first obtain the query information containing the target address information of the target central processing unit, wherein the target central processing unit The processor corresponds to the target hard disk.
举例来说,在背板上会存在多个硬盘,而用户能够直接获取到的一般是每个硬盘的序号,无法获取到硬盘的具体作用,当用户想要对目标硬盘进行操作,例如更新维护用于存储指定应用数据的目标硬盘时,是不能直接通过序号来确定该目标硬盘的,此时,用户可以通过向硬盘序号识别系统发送包含目标中央处理器的目标地址信息的查询信息,硬盘序号识别系统在接收到查询信息后,再进行后续操作,例如根据查询信息查询目标硬盘的序号、位置等信息。For example, there will be multiple hard disks on the backplane, and the user can directly obtain the serial number of each hard disk, but cannot obtain the specific function of the hard disk. When the user wants to perform operations on the target hard disk, such as updating and maintaining When the target hard disk is used to store specified application data, the target hard disk cannot be determined directly through the serial number. At this time, the user can send query information including the target address information of the target CPU to the hard disk serial number identification system, and the hard disk serial number After receiving the query information, the identification system performs subsequent operations, such as querying the serial number and location of the target hard disk according to the query information.
步骤S204,基于目标地址信息和连接关系表,确定目标中央处理器对应的目标硬盘的目标序号。Step S204, based on the target address information and the connection relationship table, determine the target serial number of the target hard disk corresponding to the target CPU.
其中,连接关系表是通过连接器预先对多个中央处理器的地址信息和多个硬盘的序号进行映射所得到的映射关系表,多个中央处理器部署于主板上,多个硬盘部署于背板上,主板和背板通过连接器连接。Among them, the connection relationship table is a mapping relationship table obtained by mapping the address information of multiple CPUs and the serial numbers of multiple hard disks in advance through the connector. Multiple CPUs are deployed on the motherboard, and multiple hard disks are deployed on the back. On board, the motherboard and backplane are connected by connectors.
上述连接器可以是指用来传输主板和背板之间的数据、信号的设备,例如中央处理器输出的地址信息的信号,可以通过连接器输入值背板中,硬盘的序号可以通过连接器输入值主板的序号管理模块等。The above-mentioned connector can refer to the equipment used to transmit data and signals between the main board and the backplane, such as the signal of the address information output by the central processing unit, which can be input into the backplane through the connector, and the serial number of the hard disk can be passed through the connector. Enter the serial number of the main board, management module, etc.
在本实施例的一种可选方案中,考虑到连接关系表可以直观的表现出多个中央处理器和硬盘序号之间的映射关系,因此,硬盘序号识别系统在得到目标中央处理器的目标地址信息之后,可以快速的将目标地址信息输入值连接关系表中,以得到目标中央处理器对应的目标硬盘的目标序号。In an optional solution of this embodiment, considering that the connection relationship table can intuitively show the mapping relationship between multiple central processing units and hard disk serial numbers, the hard disk serial number recognition system obtains the target central processing unit After the address information, the target address information can be quickly input into the value connection relationship table to obtain the target serial number of the target hard disk corresponding to the target CPU.
在本实施例的一种可选方案中,考虑到一个中央处理器一般具有多个引脚,每个引脚都可以对应连接一个硬盘,因此,一般一个中央处理器可以同时对应多个硬盘,而为了避免硬盘中央处理器的负载压力过大,可以根据硬盘的数量,对应设置多个中央处理器,然后根据多个中央处理器的地址信息和多个硬盘的序号,映射生成上述的映射关系表。In an optional solution of this embodiment, considering that a central processing unit generally has multiple pins, and each pin can be connected to a corresponding hard disk, therefore, generally, a central processing unit can correspond to multiple hard disks at the same time, In order to avoid excessive load pressure on the CPU of the hard disk, multiple CPUs can be set correspondingly according to the number of hard disks, and then the above mapping relationship can be generated according to the address information of multiple CPUs and the serial numbers of multiple hard disks. surface.
在本实施例的一种可选方案中,为了提高确定目标硬盘的序号的位置,硬盘序号识别系统可以预先根据多个中央处理器的地址信息,以及多个硬盘的序号,生成上述的连接关系表。In an optional solution of this embodiment, in order to improve the position of determining the serial number of the target hard disk, the hard disk serial number identification system can generate the above-mentioned connection relationship in advance according to the address information of multiple central processing units and the serial numbers of multiple hard disks surface.
在本实施例的一种可选方案中,硬盘或者中央处理器的连接关系可以发生改变,在每次发生改变时,硬盘序号识别系统都可以重新根据改变后的结果,例如改变后的地址信息、改变后的序号等,重新生成新的连接关系表,从而避免无线序号误识别的情况。In an optional solution of this embodiment, the connection relationship of the hard disk or the central processing unit can be changed, and each time a change occurs, the hard disk serial number identification system can re-according to the changed result, such as the changed address information , the changed serial number, etc., and regenerate a new connection relationship table, so as to avoid the misidentification of the wireless serial number.
举例来说,若硬盘1初始时连接的是线缆1,是用来存储应用数据1的,但是用户当前想利用硬盘1来存储应用数据2,则此时可以将硬盘1连接至线缆2中,此时硬盘1的连接关系就发生了改变,对应的序号也会从1变成2,因此,此时硬盘序号识别系统可以根据新的序号生成新的连接关系表。For example, if
在本实施例的一种可选方案中,为了便于管理硬盘序号识别系统中的多个设备元件,例如上述的多个中央处理器和多个硬盘,可以将多个中央处理器部署在主板中,将多个硬盘部署在背板中,主板和背板通过连接器连接,以方便多个设备元件输出的信号的传输。In an optional solution of this embodiment, in order to facilitate the management of multiple device components in the hard disk serial number identification system, such as the above-mentioned multiple central processing units and multiple hard drives, multiple central processing units can be deployed in the motherboard , multiple hard disks are deployed in the backplane, and the mainboard and the backplane are connected through connectors to facilitate the transmission of signals output by multiple device components.
由于目前的硬盘序号识别系统的线缆是按照固定顺序连接的,硬盘无法替换、移动,灵活性差,因此,为了解决该问题,本申请提出通过获取查询信息,基于目标地址信息和连接关系表,确定目标中央处理器对应的目标硬盘的目标序号的方式,预先对多个中央处理器的地址信息和多个硬盘的序号进行映射,以得到连接关系表,使多个硬盘的顺序可以随时改变,从而避免固定顺序的连接方式导致的硬盘序号识别过程的灵活性差,进而解决了相关技术中识别硬盘序号的灵活性差的问题。Since the cables of the current hard disk serial number recognition system are connected in a fixed order, the hard disk cannot be replaced or moved, and the flexibility is poor. Therefore, in order to solve this problem, this application proposes to acquire query information based on the target address information and the connection relationship table. The method of determining the target serial number of the target hard disk corresponding to the target central processor is to map the address information of multiple central processors and the serial numbers of multiple hard disks in advance to obtain a connection relationship table, so that the order of multiple hard disks can be changed at any time. In this way, the poor flexibility of the identification process of the hard disk serial number caused by the connection mode of a fixed sequence is avoided, thereby solving the problem of poor flexibility in identifying the serial number of the hard disk in the related art.
在一个示例性实施例中,该方法还包括:获取主板和背板的部署信息;通过连接器,基于部署信息对多个中央处理器配置地址信息,并对多个硬盘配置序号;基于部署信息、地址信息和序号,生成连接关系表。In an exemplary embodiment, the method further includes: acquiring the deployment information of the main board and the backplane; configuring address information for a plurality of central processing units based on the deployment information through a connector, and configuring serial numbers for a plurality of hard disks; , address information and serial number to generate a connection relationship table.
上述部署信息可以是指主板和背板中,多个设备元件的信息,例如部署位置、部署时间、优先级等,需要说明的是,这些仅作示例性展示,不做具体限定。The above deployment information may refer to the information of multiple device components in the main board and the backplane, such as deployment location, deployment time, priority, etc. It should be noted that these are only for exemplary display and not specifically limited.
在本实施例的一种可选方案中,由于不同的中央处理器所连接的对象、监测的硬盘不同,为了避免随意的对中央处理器配置地址信息和硬盘x序号,会与多个中央处理器和多个硬盘的实际部署情况不符,导致生成的连接关系表混乱,因此,硬盘序号识别系统可以根据上述的部署信息,对多个中央处理器配置地址信息,对多个硬盘配置序号,同时考虑到主板和背板是通过连接器连接的,即中央处理器和硬盘之间的信号传输是通过连接器传输的,所以可以通过连接器来配置上述的地址信息和硬盘序号。In an optional solution of this embodiment, since the objects connected to different central processing units and the hard disks monitored are different, in order to avoid arbitrarily configuring the address information and hard disk x serial number for the central processing unit, multiple central processing units The actual deployment of multiple hard disks and hard disks does not match, resulting in confusion in the generated connection relationship table. Therefore, the hard disk serial number identification system can configure address information for multiple CPUs and serial numbers for multiple hard disks according to the above deployment information. Simultaneously Considering that the mainboard and the backplane are connected through a connector, that is, the signal transmission between the CPU and the hard disk is transmitted through the connector, so the above address information and hard disk serial number can be configured through the connector.
在本实施例的一种可选方案中,上述的地址信息可以以二进制的形式表示。In an optional solution of this embodiment, the above address information may be expressed in binary form.
例如,利用根据部署信息中多个中央处理器的部署位置、多个硬盘的部署位置,从左到右从00开始依次配置地址信息。For example, according to the deployment positions of multiple CPUs and multiple hard disks in the deployment information, the address information is sequentially configured starting from 00 from left to right.
表1Table 1
表1是根据本申请实施例的一种处理器地址信息表,如表1所示,可以利用二进制01作为CPU0的处理器地址,可以利用二进制01作为CPU1的处理器地址。Table 1 is a processor address information table according to the embodiment of the present application. As shown in Table 1, binary 01 can be used as the processor address of CPU0, and binary 01 can be used as the processor address of CPU1.
在本实施例的一种可选方案中,在得到多个中央处理器对应的多个地址信息,以及多个硬盘对应的多个序号之后,可以利用部署信息、多个地址信息和多个硬盘序号,来生成上述的连接关系表,具体生成过程在下文中展示。In an optional solution of this embodiment, after obtaining multiple address information corresponding to multiple CPUs and multiple serial numbers corresponding to multiple hard disks, the deployment information, multiple address information, and multiple hard disks can be used to serial number to generate the above-mentioned connection relationship table, and the specific generation process is shown below.
在一个示例性实施例中,连接器包括主连接器和背连接器,主连接器用于表征部署于主板上的连接器,背连接器用于表征部署于背板上的连接器,主连接器和背连接器通过线缆连接。In an exemplary embodiment, the connector includes a main connector and a back connector, the main connector is used to represent the connector deployed on the motherboard, and the back connector is used to represent the connector deployed on the backplane, the main connector and The rear connectors are connected by cables.
为了便于用户对主板和背板中的设备元件进行操纵,例如拆除背板中的硬盘1,可以将主板和背板分开设置,其中连接的连机器也可以对应拆分成两部分,与主板连接的可以作为主连接器,与背板连接的可以作为背连接器,主连接器和背连接器之间可以通过线缆连接。In order to facilitate the user to manipulate the equipment components in the main board and the back board, for example, remove the
在一个示例性实施例中,地址信息包括:处理器地址和虚拟地址,通过连接器,基于部署信息对多个中央处理器配置地址信息,包括:获取部署信息中的多个中央处理器的第一配置信息和引脚信息;通过主连接器,基于第一配置信息对多个中央处理器配置处理器地址;通过主连接器,基于引脚信息对多个中央处理器配置虚拟地址。In an exemplary embodiment, the address information includes: a processor address and a virtual address, and configuring the address information for a plurality of central processors based on the deployment information through a connector includes: obtaining the first number of the plurality of central processors in the deployment information Configuration information and pin information; through the main connector, configure processor addresses for multiple CPUs based on the first configuration information; through the main connector, configure virtual addresses for multiple CPUs based on the pin information.
上述处理器地址可以是指中央处理器主体对应的地址信息,上述虚拟地址可以是指中央处理器的引脚对应的地址信息。The above-mentioned processor address may refer to address information corresponding to the main body of the central processing unit, and the above-mentioned virtual address may refer to address information corresponding to pins of the central processing unit.
上述第一配置信息可以是指中央处理器的部署位置、部署顺序、优先级等信息,上述的引脚信息可以是指中央处理器的引脚与其他设备元件的连接关系、连接时间等信息。需要说明的是,上述仅是示例性展示,不做具体限定。The above-mentioned first configuration information may refer to information such as the deployment location, deployment order, and priority of the central processing unit, and the above-mentioned pin information may refer to information such as the connection relationship and connection time between the pins of the central processing unit and other device components. It should be noted that, the foregoing is only an exemplary display, and is not specifically limited.
在本实施例的一种可选方案中,如前述所示,考虑到一个中央处理器的多个引脚可能会对应多个硬盘,因此,为了提高识别出的硬盘序号的准确率,在对中央处理器配置地址信息时,可以额外对中央处理器的引脚也配置地址信息。In an optional solution of this embodiment, as mentioned above, considering that multiple pins of a central processing unit may correspond to multiple hard disks, therefore, in order to improve the accuracy of the identified hard disk serial number, in the When the central processing unit configures the address information, the pins of the central processing unit may additionally be configured with address information.
具体的,可以首先从部署信息中筛选出中央处理器主体对应的第一配置信息,以及中央处理器引脚对应的引脚信息,然后通过主连接器,根据第一配置信息对多个中央处理器的主体配置处理器地址信息,根据引脚信息对多个中央处理器的引脚配置虚拟地址信息。Specifically, the first configuration information corresponding to the main body of the CPU and the pin information corresponding to the pins of the CPU can be screened out from the deployment information, and then the multiple CPUs can be processed according to the first configuration information through the main connector. The main body of the processor is configured with processor address information, and virtual address information is configured for pins of multiple CPUs according to the pin information.
举例来说,若中央处理器1的部署位置是多个中央处理器的最左侧,有4各引脚,引脚连接关系是从左侧的引脚逆时针依次连接的,则此时可以将中央处理器1的处理器地址信息配置为00,虚拟地址从左侧的引脚逆时针依次是000、001、002、003。For example, if the deployment position of
表2Table 2
表2是根据本申请实施例的一种虚拟地址信息表,如表2所示,可以利用二进制0001作为端口A的虚拟地址,利用二进制0010作为端口B的虚拟地址,利用二进制0011作为端口C的虚拟地址,以此类推。Table 2 is a virtual address information table according to the embodiment of the present application. As shown in Table 2, binary 0001 can be used as the virtual address of port A, binary 0010 can be used as the virtual address of port B, and binary 0011 can be used as the virtual address of port C. virtual address, and so on.
在一个示例性实施例中,通过连接器,基于部署信息对多个硬盘配置序号,包括:获取部署信息中硬盘的第二配置信息;通过背连接器基于第二配置信息,对多个硬盘配置序号。In an exemplary embodiment, configuring serial numbers for multiple hard disks based on deployment information through a connector includes: acquiring second configuration information of the hard disks in the deployment information; configuring the multiple hard disks based on the second configuration information through the rear connector serial number.
上述第二配置信息可以包括但不限于:硬盘的部署位置、部署时间、应用功能等信息。The above-mentioned second configuration information may include but not limited to: information such as the deployment location of the hard disk, the deployment time, and the application function.
在本实施例的一种可选方案中,硬盘识别系统可以自动的基于第二配置信息,通过背连接器对多个硬盘配置序号,也可以由用户自行对多个硬盘的序号进行配置,然后由硬盘识别系统获取配置号的序号。In an optional solution of this embodiment, the hard disk identification system can automatically configure the serial numbers of multiple hard disks through the back connector based on the second configuration information, or the user can configure the serial numbers of multiple hard disks by himself, and then The serial number of the configuration number is obtained by the hard disk identification system.
在一个示例性实施例中,基于部署信息、地址信息和序号,生成连接关系表,包括:通过连接器获取地址信息对应的硬盘接口协议,其中,硬盘接口协议与目标序号相对应;基于部署信息中的主板上多个元件的物理关系、地址信息和硬盘接口协议,生成连接关系表,其中,元件至少包括多个中央处理器,物理关系至少包括多个中央处理器的连接关系。In an exemplary embodiment, based on the deployment information, address information and serial number, generating a connection relationship table includes: obtaining a hard disk interface protocol corresponding to the address information through a connector, wherein the hard disk interface protocol corresponds to the target serial number; based on the deployment information The physical relationship, address information, and hard disk interface protocol of multiple components on the mainboard in the system generate a connection relationship table, wherein the components include at least a plurality of central processing units, and the physical relationship includes at least the connection relationship of multiple central processing units.
上述硬盘接口协议可以是指中央处理器在监测连接的硬盘时使用到的协议,一般一个硬盘接口协议对应一个硬盘序号。The above-mentioned hard disk interface protocol may refer to the protocol used by the central processing unit when monitoring the connected hard disk. Generally, one hard disk interface protocol corresponds to one hard disk serial number.
上述多个元件的物理关系可以包括但不限于:多个中央处理器的连接关系,不同设备元件之间的连接顺序、连接对象、组件大小等信息,上述物理关系可以由主板中的基本输入输出系统BIOS模块获取。The physical relationship of the above-mentioned multiple components may include but not limited to: the connection relationship of multiple central processing units, the connection sequence, connection objects, component sizes and other information between different equipment components. The above-mentioned physical relationship can be determined by the basic input and output Obtain the system BIOS module.
在本实施例的一种可选方案中,硬盘序号识别系统可以通过连接器获取到地址信息对应的硬盘接口协议,并利用地址信息和硬盘接口协议,直接生成上述的连接关系表,但是考虑到硬盘除了会受到中央处理器的监测,还可能会受到其他设备,例如存储芯片的影响,因此,在生成连接关系表时,还可以引入上述的物理关系,以提高生成的关系联系表的准确度。In an optional solution of this embodiment, the hard disk serial number recognition system can obtain the hard disk interface protocol corresponding to the address information through the connector, and use the address information and the hard disk interface protocol to directly generate the above-mentioned connection relationship table, but considering In addition to being monitored by the central processing unit, the hard disk may also be affected by other devices, such as memory chips. Therefore, when generating the connection relationship table, the above-mentioned physical relationship can also be introduced to improve the accuracy of the generated relationship table. .
在一个示例性实施例中,通过连接器获取地址信息对应的硬盘接口协议,包括:通过连接器中的主连接器,获取地址信息对应的第一信号和第二信号,其中,第一信号包含地址信息对应的中央处理器的处理器地址,第二信号包含中央处理器的虚拟地址;通过连接器中的背连接器、第一信号和第二信号,获取硬盘接口协议。In an exemplary embodiment, obtaining the hard disk interface protocol corresponding to the address information through the connector includes: obtaining the first signal and the second signal corresponding to the address information through the main connector in the connector, wherein the first signal includes The processor address of the central processing unit corresponding to the address information, the second signal includes the virtual address of the central processing unit; the hard disk interface protocol is obtained through the back connector in the connector, the first signal and the second signal.
上述第一信号可以是指处理器地址信息对应的信号,第二信号可以是指虚拟地址对应的信号。The foregoing first signal may refer to a signal corresponding to processor address information, and the second signal may refer to a signal corresponding to a virtual address.
在本实施例的一种可选方案中,当硬盘序号识别系统通过主连接器对中央处理器配置地址信息之后,可以将根据配置完成的地址信息生成上述的第一信号和第二信号,并通过主连接器和背连接器之间的线缆,将第一信号和第二信号传输至背连接器中,此时背连接器可以根据第一信号、第二信号来确定当前接收到的地址信息的来源。In an optional solution of this embodiment, after the hard disk serial number identification system configures address information for the central processing unit through the main connector, it can generate the above-mentioned first signal and second signal according to the configured address information, and Through the cable between the main connector and the back connector, the first signal and the second signal are transmitted to the back connector. At this time, the back connector can determine the currently received address according to the first signal and the second signal source of information.
在本实施例的一种可选方案中,在得到第一信号和第二信号之后,可以利用背连接器、第一信号和第二信号,来获取对应的硬盘接口协议。In an optional solution of this embodiment, after the first signal and the second signal are obtained, the corresponding hard disk interface protocol may be obtained by using the back connector, the first signal and the second signal.
举例来说,在获取到第一信号和第二信号之后,硬盘序号识别系统可以根据这两个信号生成一个协议查询指令,并将该协议查询指令发送至背板中,判断当前是否存在响应该协议查询指令的硬盘接口,基于对应的接口协议,若存在,则可以确定该接口协议为上述的硬盘协议;若不存在,则可以确定该地址信息没有对应的硬盘,不将该地址信息添加至连接关系表中。For example, after obtaining the first signal and the second signal, the hard disk serial number identification system can generate a protocol query command according to these two signals, and send the protocol query command to the backplane to determine whether there is currently a corresponding The hard disk interface of the protocol query command is based on the corresponding interface protocol. If it exists, it can be determined that the interface protocol is the above-mentioned hard disk protocol; if it does not exist, it can be determined that the address information does not have a corresponding hard disk, and the address information will not be added to in the connection table.
在一个示例性实施例中,基于部署信息中的主板上多个元件的物理关系、地址信息和硬盘接口协议,生成连接关系表,包括:响应于获取到第一信号、第二信号和硬盘接口协议,获取预设扩展芯片的多个信号传输通道的多个通道状态,其中,预设扩展芯片部署于背板上;在多个通道状态中存在传输状态的情况下,基于传输状态对应的信号传输通道,将第一信号、第二信号和接口协议传输至预设管理单元,其中,预设管理单元部署于主板上;通过预设管理单元对物理关系、第一信号、第二信号和硬盘接口协议进行映射处理,得到连接关系表。In an exemplary embodiment, based on the physical relationship, address information, and hard disk interface protocol of multiple components on the mainboard in the deployment information, a connection relationship table is generated, including: responding to obtaining the first signal, the second signal, and the hard disk interface Protocol, to obtain multiple channel states of multiple signal transmission channels of the preset expansion chip, wherein the preset expansion chip is deployed on the backplane; when there is a transmission state in the multiple channel states, based on the signal corresponding to the transmission state The transmission channel transmits the first signal, the second signal and the interface protocol to the preset management unit, wherein the preset management unit is deployed on the main board; the physical relationship, the first signal, the second signal and the hard disk are analyzed by the preset management unit The interface protocol is mapped, and the connection relationship table is obtained.
上述预设扩展芯片部署在背板中,可以是指用来传输信号、数据的芯片。上述预设管理单元部署在主板中,可以是指用来生成、更新连接关系表的单元。The aforementioned preset expansion chip is deployed in the backplane, which may refer to a chip used to transmit signals and data. The aforementioned preset management unit is deployed on the mainboard, and may refer to a unit used to generate and update a connection relationship table.
在本实施例的一种可选方案中,可以对预设扩展芯片设置多个信号传输通道,当预设扩展芯片接收到上述的第一信号、第二信号、硬盘接口协议之后,可以实时获取多个信号传输通道的传输状态,例如带宽使用率是否适中,待传输的数据量是否较大等,然后从多个信号传输接口中确定出能够传输信号、数据的通道,即上述处于传输状态的通道,例如带宽使用率较低的通道,并利用该通道,通过连接器将上述的第一信号、第二信号、硬盘接口协议等数据传输至预设管理单元中,由预设管理单元对物理关系、第一信号、第二信号和硬盘接口协议等信息进行映射处理,得到连接关系表。In an optional solution of this embodiment, multiple signal transmission channels can be set for the preset expansion chip, and after the preset expansion chip receives the above-mentioned first signal, second signal, and hard disk interface protocol, it can obtain the The transmission status of multiple signal transmission channels, such as whether the bandwidth utilization rate is moderate, whether the amount of data to be transmitted is large, etc., and then determine the channels that can transmit signals and data from multiple signal transmission interfaces, that is, the above-mentioned channels in the transmission state channel, such as a channel with a low bandwidth utilization rate, and use this channel to transmit the above-mentioned first signal, second signal, hard disk interface protocol and other data to the preset management unit through the connector, and the preset management unit will control the physical relationship, the first signal, the second signal and the hard disk interface protocol and other information are mapped to obtain a connection relationship table.
表3table 3
上述表3是本申请实施例示出的一种连接关系表的示意图,如表3所示,处理器地址信息为00、虚拟地址信息为0001的硬盘接口协议可以是NVEM0/NVME1;处理器地址信息为00、虚拟地址信息为0010的硬盘接口协议可以是NVEM2/NVME3;处理器地址信息为00、虚拟地址信息为0011的硬盘接口协议不存在;处理器地址信息为01、虚拟地址信息为0001的硬盘接口协议可以是NVEM4/NVME5;处理器地址信息为01、虚拟地址信息为0010的硬盘接口协议可以是NVEM6/NVME7;处理器地址信息为01、虚拟地址信息为0011的硬盘接口协议不存在。The above table 3 is a schematic diagram of a connection relationship table shown in the embodiment of the present application. As shown in table 3, the hard disk interface protocol whose processor address information is 00 and virtual address information is 0001 can be NVEM0/NVME1; the processor address information The hard disk interface protocol with 00 and virtual address information of 0010 can be NVEM2/NVME3; the hard disk interface protocol with processor address information of 00 and virtual address information of 0011 does not exist; the processor address information of 01 and virtual address information of 0001 The hard disk interface protocol can be NVEM4/NVME5; the hard disk interface protocol with processor address information 01 and virtual address information 0010 can be NVEM6/NVME7; the hard disk interface protocol with processor address information 01 and virtual address information 0011 does not exist.
由于硬盘接口协议与硬盘序号是对应的,因此根据该硬盘接口协议便可以确定出目标硬盘的目标序号。Since the hard disk interface protocol corresponds to the serial number of the hard disk, the target serial number of the target hard disk can be determined according to the hard disk interface protocol.
在一个示例性实施例中,该方法还包括:基于目标序号确定目标硬盘在背板上的位置;利用预设数码管芯片将位置转换为数码管控制命令,其中,预设数码管芯片部署于背板上;基于数码管控制命令,控制位置的数码管工作,其中,数码管部署于背板上。In an exemplary embodiment, the method further includes: determining the position of the target hard disk on the backplane based on the target serial number; using a preset digital tube chip to convert the position into a digital tube control command, wherein the preset digital tube chip is deployed on On the backboard; based on the nixie tube control command, the nixie tubes in the control position work, wherein the nixie tubes are deployed on the back board.
上述预设数码管芯片可以是指用来控制数码管显示,以表现硬盘在显示场景中的位置的芯片。The aforementioned preset digital tube chip may refer to a chip used to control the display of the digital tube to represent the position of the hard disk in the display scene.
上述数码管可以是指部署在硬盘上的数码管,也可以是指部署在硬盘外的,能够显示序号大小的数码管。The above-mentioned nixie tubes may refer to the nixie tubes deployed on the hard disk, or may refer to the nixie tubes deployed outside the hard disk and capable of displaying the size of the serial number.
在本实施例的一种可选方案中,为了方便用户寻找目标硬盘在显示场景中的位置,可以对每个硬盘对应设置一个或多个数码管,或者在硬盘集合外设置多个数码管。In an optional solution of this embodiment, in order to facilitate the user to find the position of the target hard disk in the display scene, one or more digital tubes can be set corresponding to each hard disk, or multiple digital tubes can be set outside the hard disk set.
在本实施例的一种可选方案中,当硬盘序号识别系统确定出目标硬盘的目标序号之后,可以先根据该目标序号确定出目标硬盘在背板中的部署位置,然后利用预设数码管芯片根据该部署位置对应生成数码管控制命令,基于该数码管控制命令控制对应的数码管工作。In an optional solution of this embodiment, after the hard disk serial number identification system determines the target serial number of the target hard disk, it can first determine the deployment position of the target hard disk in the backplane according to the target serial number, and then use the preset digital tube The chip generates a nixie tube control command according to the deployment position, and controls the corresponding nixie tube to work based on the nixie tube control command.
例如,数码管控制命令可以直接是使数码管按照预设方式亮起,例如常亮、闪烁、变色等,从而使用户能够开苏确定目标硬盘的位置,具体方式根据实际情况设置,在此不做限定。For example, the nixie tube control command can directly cause the nixie tube to light up according to the preset mode, such as constant light, blinking, color change, etc., so that the user can open and determine the location of the target hard disk. The specific way is set according to the actual situation. Do limited.
为了方便理解上述方案,图3是根据本申请实施例的一种主板背板连接关系的示意图,如图3所示,上半部分代表的是主板,在主板中部署的多个设备元件可以包括多个CPU,BMC模块,BIOS模块,以及主连接器J1、J2、J3、J4、J5。下半部分代表的是背板,在背板中部署的多个设备元件可以包括多个硬盘设备,I2CI/O扩展芯片,数码管控制芯片,多个数码管LED(Light Emitting Diode,发光二极管),以及背连接器J6、J7、J8、J9、J10。主板和背板之间通过线缆连接。In order to facilitate the understanding of the above solution, Fig. 3 is a schematic diagram of the connection relationship of the mainboard backplane according to the embodiment of the present application. As shown in Fig. 3, the upper part represents the mainboard, and multiple device elements deployed on the mainboard may include Multiple CPUs, BMC modules, BIOS modules, and main connectors J1, J2, J3, J4, J5. The lower part represents the backplane. The multiple device components deployed in the backplane can include multiple hard disk devices, I2CI/O expansion chips, digital tube control chips, and multiple digital tube LEDs (Light Emitting Diode, light emitting diode) , and back connectors J6, J7, J8, J9, J10. The mainboard and the backplane are connected by cables.
其中,BIOS模块可以获取主板中多个元件的物理关系、部署信息,主连接器可以根据部署信息配置CPU的处理器地址信息和虚拟地址信息,并将这两个地址信息对应的第一信号和第二信号,通过线缆传输至背连接器中,背连接器获取多个硬盘的序号,以及响应第一信号和第二信号的硬盘接口协议,并将第一信号、第二信号、硬盘接口协议等信息传输至I2CI/O扩展芯片中,扩展芯片根据多个信号传输通道的状态传输这些信息至BMC模块中,BMC模块根据第一信号、第二信号、硬盘接口协议,以及多个元件的物理关系,生成连接关系表。为了提高确定目标序号的效率,BMC模块在生成连接关系表后,还可以将连接关系表同步至BIOS模块中。Among them, the BIOS module can obtain the physical relationship and deployment information of multiple components in the motherboard, and the main connector can configure the processor address information and virtual address information of the CPU according to the deployment information, and connect the first signal and the virtual address information corresponding to the two address information. The second signal is transmitted to the back connector through the cable, and the back connector obtains the serial numbers of a plurality of hard disks, and the hard disk interface protocol responding to the first signal and the second signal, and transmits the first signal, the second signal, and the hard disk interface The protocol and other information are transmitted to the I2CI/O expansion chip, and the expansion chip transmits these information to the BMC module according to the status of multiple signal transmission channels. Physical relationship, generate a connection relationship table. In order to improve the efficiency of determining the target serial number, after the BMC module generates the connection relationship table, it can also synchronize the connection relationship table to the BIOS module.
当BMC模块接收到查询指令时,可以根据查询指令中中央处理器的地址信息,即处理器地址信息和虚拟地址信息,结合连接关系表确定出目标硬盘的目标序号。同时BMC模块可以将该目标序号发送至数码管控制芯片中,数码管控制芯片根据目标序号生成数码管控制指令,部署于目标硬盘上的数码管可以根据该控制指令显示。When the BMC module receives the query command, it can determine the target serial number of the target hard disk according to the address information of the central processing unit in the query command, that is, the processor address information and virtual address information, combined with the connection relationship table. At the same time, the BMC module can send the target serial number to the digital tube control chip, and the digital tube control chip generates a digital tube control command according to the target serial number, and the digital tube deployed on the target hard disk can be displayed according to the control command.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本申请各个实施例的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is better implementation. Based on such an understanding, the technical solution of the present application can be embodied in the form of a software product in essence or the part that contributes to the prior art, and the computer software product is stored in a storage medium (such as ROM/RAM, disk, CD) contains several instructions to make a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) execute the method of each embodiment of the present application.
实施例2Example 2
在本实施例中还提供了一种硬盘序号识别装置,该装置用于实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。In this embodiment, a hard disk serial number identification device is also provided, which is used to implement the above embodiments and preferred implementation modes, and what has been explained will not be repeated here. As used below, the term "module" may be a combination of software and/or hardware that realizes a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementations in hardware, or a combination of software and hardware are also possible and contemplated.
图4是根据本申请实施例的一种硬盘序号识别装置的结构框图,如图4所示,该装置包括:获取模块402,用于获取查询信息,其中,查询信息至少包括目标中央处理器的目标地址信息;确定模块404,用于基于目标地址信息和连接关系表,确定目标中央处理器对应的目标硬盘的目标序号,其中,连接关系表是通过连接器预先对多个中央处理器的地址信息和多个硬盘的序号进行映射所得到的映射关系表,多个中央处理器部署于主板上,多个硬盘部署于背板上,主板和背板通过连接器连接。Fig. 4 is a structural block diagram of a device for identifying a hard disk serial number according to an embodiment of the present application. As shown in Fig. 4 , the device includes: an acquisition module 402 configured to acquire query information, wherein the query information includes at least the target CPU Target address information: Determining module 404, for determining the target sequence number of the target hard disk corresponding to the target central processor based on the target address information and the connection relationship table, wherein the connection relationship table is the address of multiple central processors in advance through the connector In the mapping relationship table obtained by mapping the information and the serial numbers of multiple hard disks, multiple central processing units are deployed on the motherboard, multiple hard disks are deployed on the backplane, and the motherboard and the backplane are connected through connectors.
在一个示例性实施例中,该装置还包括:部署信息获取模块,用于获取主板和背板的部署信息;配置模块,用于通过连接器,基于部署信息对多个中央处理器配置地址信息,并对多个硬盘配置序号;生成模块,用于基于部署信息、地址信息和序号,生成连接关系表。In an exemplary embodiment, the device further includes: a deployment information acquisition module, configured to acquire the deployment information of the main board and the backplane; a configuration module, configured to configure address information for multiple central processing units based on the deployment information through a connector , and configure serial numbers for multiple hard disks; a generating module, configured to generate a connection relationship table based on deployment information, address information and serial numbers.
在一个示例性实施例中,连接器包括主连接器和背连接器,主连接器用于表征部署于主板上的连接器,背连接器用于表征部署于背板上的连接器,主连接器和背连接器通过线缆连接。In an exemplary embodiment, the connector includes a main connector and a back connector, the main connector is used to represent the connector deployed on the motherboard, and the back connector is used to represent the connector deployed on the backplane, the main connector and The rear connectors are connected by cables.
在一个示例性实施例中,地址信息包括:处理器地址和虚拟地址,通过连接器,配置模块包括:获取单元,用于获取部署信息中的多个中央处理器的第一配置信息和引脚信息;第一配置单元,用于通过主连接器,基于第一配置信息对多个中央处理器配置处理器地址;第二配置单元,用于通过主连接器,基于引脚信息对多个中央处理器配置虚拟地址。In an exemplary embodiment, the address information includes: processor address and virtual address, through the connector, the configuration module includes: an acquisition unit, configured to acquire the first configuration information and pins of multiple central processors in the deployment information information; the first configuration unit is used to configure processor addresses for multiple central processors based on the first configuration information through the main connector; the second configuration unit is used to configure processor addresses for multiple central processors based on pin information through the main connector The processor configures the virtual address.
在一个示例性实施例中,第二配置单元还用于:获取部署信息中硬盘的第二配置信息;通过背连接器基于第二配置信息,对多个硬盘配置序号。In an exemplary embodiment, the second configuration unit is further configured to: acquire second configuration information of the hard disk in the deployment information; configure serial numbers for the plurality of hard disks through the back connector based on the second configuration information.
在一个示例性实施例中,生成模块,包括:协议获取单元,用于通过连接器获取地址信息对应的硬盘接口协议,其中,硬盘接口协议与目标序号相对应;生成单元,用于基于部署信息中的主板上多个元件的物理关系、地址信息和硬盘接口协议,生成连接关系表,其中,元件至少包括多个中央处理器,物理关系至少包括多个中央处理器的连接关系。In an exemplary embodiment, the generation module includes: a protocol acquisition unit, configured to obtain a hard disk interface protocol corresponding to the address information through a connector, wherein the hard disk interface protocol corresponds to the target serial number; a generation unit, configured to The physical relationship, address information, and hard disk interface protocol of multiple components on the mainboard in the system generate a connection relationship table, wherein the components include at least a plurality of central processing units, and the physical relationship includes at least the connection relationship of multiple central processing units.
在一个示例性实施例中,协议获取模块包括:信号获取单元,用于通过连接器中的主连接器,获取地址信息对应的第一信号和第二信号,其中,第一信号包含地址信息对应的中央处理器的处理器地址,第二信号包含中央处理器的虚拟地址;协议获取单元通过连接器中的背连接器、第一信号和第二信号,获取硬盘接口协议。In an exemplary embodiment, the protocol acquisition module includes: a signal acquisition unit, configured to acquire the first signal and the second signal corresponding to the address information through the main connector in the connector, wherein the first signal includes a signal corresponding to the address information The processor address of the central processing unit, the second signal includes the virtual address of the central processing unit; the protocol obtaining unit obtains the hard disk interface protocol through the back connector in the connector, the first signal and the second signal.
在一个示例性实施例中,生成单元还用于:响应于获取到第一信号、第二信号和硬盘接口协议,获取预设扩展芯片的多个信号传输通道的多个通道状态,其中,预设扩展芯片部署于背板上;在多个通道状态中存在传输状态的情况下,基于传输状态对应的信号传输通道,将第一信号、第二信号和接口协议传输至预设管理单元,其中,预设管理单元部署于主板上;通过预设管理单元对物理关系、第一信号、第二信号和硬盘接口协议进行映射处理,得到连接关系表。In an exemplary embodiment, the generating unit is further configured to: acquire multiple channel states of multiple signal transmission channels of the preset expansion chip in response to acquiring the first signal, the second signal, and the hard disk interface protocol, wherein the preset It is assumed that the expansion chip is deployed on the backplane; in the case that there is a transmission state among the multiple channel states, based on the signal transmission channel corresponding to the transmission state, the first signal, the second signal and the interface protocol are transmitted to the preset management unit, wherein , the preset management unit is deployed on the main board; the physical relationship, the first signal, the second signal and the hard disk interface protocol are mapped by the preset management unit to obtain a connection relationship table.
在一个示例性实施例中,该装置还包括:位置确定单元,用于基于目标序号确定目标硬盘在背板上的位置;转换单元,用于利用预设数码管芯片将位置转换为数码管控制命令,其中,预设数码管芯片部署于背板上;控制单元,用于基于数码管控制命令,控制位置的数码管工作,其中,数码管部署于背板上。In an exemplary embodiment, the device further includes: a position determination unit, configured to determine the position of the target hard disk on the backplane based on the target serial number; a conversion unit, configured to convert the position into a digital tube control The command, wherein the preset nixie tube chip is deployed on the backboard; the control unit is used to control the position of the nixie tube based on the nixie tube control command, wherein the nixie tube is deployed on the backboard.
需要说明的是,上述各个模块是可以通过软件或硬件来实现的,对于后者,可以通过以下方式实现,但不限于此:上述模块均位于同一处理器中;或者,上述各个模块以任意组合的形式分别位于不同的处理器中。It should be noted that the above-mentioned modules can be realized by software or hardware. For the latter, it can be realized by the following methods, but not limited to this: the above-mentioned modules are all located in the same processor; or, the above-mentioned modules can be combined in any combination The forms of are located in different processors.
实施例3Example 3
本申请的实施例还提供了一种计算机可读存储介质,该计算机可读存储介质中存储有计算机程序,其中,该计算机程序被设置为运行时执行上述任一项方法实施例中的步骤。Embodiments of the present application also provide a computer-readable storage medium, in which a computer program is stored, wherein the computer program is set to execute the steps in any one of the above method embodiments when running.
在一个示例性实施例中,上述计算机可读存储介质可以包括但不限于:U盘、只读存储器(Read-Only Memory,简称为ROM)、随机存取存储器(Random Access Memory,简称为RAM)、移动硬盘、磁碟或者光盘等各种可以存储计算机程序的介质。In an exemplary embodiment, the above-mentioned computer-readable storage medium may include but not limited to: U disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM) , mobile hard disk, magnetic disk or optical disk and other media that can store computer programs.
实施例4Example 4
本申请的实施例还提供了一种电子设备,包括存储器和处理器,该存储器中存储有计算机程序,该处理器被设置为运行计算机程序以执行上述任一项方法实施例中的步骤。An embodiment of the present application also provides an electronic device, including a memory and a processor, where a computer program is stored in the memory, and the processor is configured to run the computer program to perform the steps in any one of the above method embodiments.
在一个示例性实施例中,上述电子设备还可以包括传输设备以及输入输出设备,其中,该传输设备和上述处理器连接,该输入输出设备和上述处理器连接。In an exemplary embodiment, the electronic device may further include a transmission device and an input and output device, wherein the transmission device is connected to the processor, and the input and output device is connected to the processor.
本实施例中的具体示例可以参考上述实施例及示例性实施方式中所描述的示例,本实施例在此不再赘述。For specific examples in this embodiment, reference may be made to the examples described in the foregoing embodiments and exemplary implementation manners, and details will not be repeated here in this embodiment.
显然,本领域的技术人员应该明白,上述的本申请的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本申请不限制于任何特定的硬件和软件结合。Obviously, those skilled in the art should understand that each module or each step of the above-mentioned application can be realized by a general-purpose computing device, and they can be concentrated on a single computing device, or distributed in a network composed of multiple computing devices In fact, they can be implemented in program code executable by a computing device, and thus, they can be stored in a storage device to be executed by a computing device, and in some cases, can be executed in an order different from that shown here. Or described steps, or they are fabricated into individual integrated circuit modules, or multiple modules or steps among them are fabricated into a single integrated circuit module for implementation. As such, the present application is not limited to any specific combination of hardware and software.
以上仅为本申请的优选实施例而已,并不用于限制本申请,对于本领域的技术人员来说,本申请可以有各种更改和变化。凡在本申请的原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。The above are only preferred embodiments of the present application, and are not intended to limit the present application. For those skilled in the art, there may be various modifications and changes in the present application. Any modifications, equivalent replacements, improvements, etc. made within the principles of this application shall be included within the scope of protection of this application.
Claims (12)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202310180456.XA CN116166855B (en) | 2023-02-28 | 2023-02-28 | Hard disk serial number identification method and device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202310180456.XA CN116166855B (en) | 2023-02-28 | 2023-02-28 | Hard disk serial number identification method and device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN116166855A true CN116166855A (en) | 2023-05-26 |
| CN116166855B CN116166855B (en) | 2025-12-05 |
Family
ID=86421736
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202310180456.XA Active CN116166855B (en) | 2023-02-28 | 2023-02-28 | Hard disk serial number identification method and device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN116166855B (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN117472289A (en) * | 2023-12-27 | 2024-01-30 | 苏州元脑智能科技有限公司 | Storage configuration adjustment method, device, system, equipment and medium of server |
| CN120723849A (en) * | 2025-09-01 | 2025-09-30 | 浪潮电子信息产业股份有限公司 | Hard disk sequence identification method, electronic equipment and server |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20050022201A1 (en) * | 2003-07-01 | 2005-01-27 | Hitachi, Ltd. | Method for allocating storage regions and performance guarantee method based on hints, storage device and management program |
| CN106815154A (en) * | 2017-01-16 | 2017-06-09 | 联想(北京)有限公司 | A kind of method and device of the mark for recognizing hard disk |
| CN111475431A (en) * | 2020-04-01 | 2020-07-31 | 苏州浪潮智能科技有限公司 | A mainboard, backplane, identification system and identification method |
| CN112506817A (en) * | 2020-12-04 | 2021-03-16 | 苏州浪潮智能科技有限公司 | Method and equipment for controlling hard disk backboard LED |
| CN113360437A (en) * | 2021-04-21 | 2021-09-07 | 山东英信计算机技术有限公司 | Disk sequence adjusting device, method, equipment and storage medium of hard disk |
| CN113760667A (en) * | 2021-08-25 | 2021-12-07 | 联想(北京)有限公司 | Hard disk management method and device, readable storage medium and electronic equipment |
-
2023
- 2023-02-28 CN CN202310180456.XA patent/CN116166855B/en active Active
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20050022201A1 (en) * | 2003-07-01 | 2005-01-27 | Hitachi, Ltd. | Method for allocating storage regions and performance guarantee method based on hints, storage device and management program |
| CN106815154A (en) * | 2017-01-16 | 2017-06-09 | 联想(北京)有限公司 | A kind of method and device of the mark for recognizing hard disk |
| CN111475431A (en) * | 2020-04-01 | 2020-07-31 | 苏州浪潮智能科技有限公司 | A mainboard, backplane, identification system and identification method |
| CN112506817A (en) * | 2020-12-04 | 2021-03-16 | 苏州浪潮智能科技有限公司 | Method and equipment for controlling hard disk backboard LED |
| CN113360437A (en) * | 2021-04-21 | 2021-09-07 | 山东英信计算机技术有限公司 | Disk sequence adjusting device, method, equipment and storage medium of hard disk |
| CN113760667A (en) * | 2021-08-25 | 2021-12-07 | 联想(北京)有限公司 | Hard disk management method and device, readable storage medium and electronic equipment |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN117472289A (en) * | 2023-12-27 | 2024-01-30 | 苏州元脑智能科技有限公司 | Storage configuration adjustment method, device, system, equipment and medium of server |
| CN117472289B (en) * | 2023-12-27 | 2024-03-15 | 苏州元脑智能科技有限公司 | Storage configuration adjustment method, device, system, equipment and medium of server |
| CN120723849A (en) * | 2025-09-01 | 2025-09-30 | 浪潮电子信息产业股份有限公司 | Hard disk sequence identification method, electronic equipment and server |
Also Published As
| Publication number | Publication date |
|---|---|
| CN116166855B (en) | 2025-12-05 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US10880163B2 (en) | System and method for hardware management and configuration in a datacenter using augmented reality and available sensor data | |
| CN104202194B (en) | The collocation method and device of PCIe topologys | |
| US20200250863A1 (en) | System and Method for Wiring Management of Multi-chassis Systems in a Datacenter using Augmented Reality and Available Sensor Data | |
| US9619243B2 (en) | Synchronous BMC configuration and operation within cluster of BMC | |
| US9367510B2 (en) | Backplane controller for handling two SES sidebands using one SMBUS controller and handler controls blinking of LEDs of drives installed on backplane | |
| US20200252302A1 (en) | System and Method for Remote Hardware Support Using Augmented Reality and Available Sensor Data | |
| US10783109B2 (en) | Device management messaging protocol proxy | |
| US10699668B1 (en) | Configurable video redirection in a data center | |
| CN111581050B (en) | Cabinet, cabinet monitoring system and monitoring method | |
| CN116166855A (en) | Method and device for identifying serial numbers of hard disks | |
| US20190392148A1 (en) | Validation of installation of removeable computer hardware components | |
| CN118427020A (en) | Hardware equipment management method, device, BMC, storage medium and program product | |
| CN119200761A (en) | A server equipment location positioning method, device, server and medium | |
| CN115905083A (en) | Hard disk lighting device, method, system, computer equipment and storage medium | |
| CN120523525A (en) | A PCIe resource dynamic configuration method and device | |
| CN102479140A (en) | Computer system and hard disk state display method thereof | |
| CN117667818B (en) | Signal transmission structure, server and signal transmission method | |
| US10810150B1 (en) | Configuration of a solid-state drive dock having local and network interfaces | |
| US11307871B2 (en) | Systems and methods for monitoring and validating server configurations | |
| CN115551272B (en) | Server management method, device and cabinet | |
| CN118093031A (en) | A wiring inspection method, device, equipment and machine-readable storage medium | |
| CN119556776A (en) | Server fan control method and device, storage medium and electronic device | |
| CN116955264A (en) | Communication connection establishment method and device, storage medium and electronic equipment | |
| US20130144457A1 (en) | Server system for updating heat dissipation solution | |
| US6941451B2 (en) | Management subsystem and method for discovering management device functions |
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 | ||
| CB02 | Change of applicant information |
Country or region after: China Address after: 215000 Building 9, No.1 guanpu Road, Guoxiang street, Wuzhong Economic Development Zone, Suzhou City, Jiangsu Province Applicant after: Suzhou Yuannao Intelligent Technology Co.,Ltd. Address before: 215000 Building 9, No.1 guanpu Road, Guoxiang street, Wuzhong Economic Development Zone, Suzhou City, Jiangsu Province Applicant before: SUZHOU LANGCHAO INTELLIGENT TECHNOLOGY Co.,Ltd. Country or region before: China |
|
| CB02 | Change of applicant information | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |