Summary of the invention
The embodiment of the present invention provides a kind of method of managing slot number, is intended under the highly dense deployment scenario of server, reduces the pin pin number of Node Slot connector, to reduce node deployment pressure, solves the groove position problem of Differentiated Services device node.
First aspect, a kind of method based on microserver system management slot number, described system comprises a plurality of nodes, management control bus I2C and logical block device, an I2C interface of the corresponding connection of each node, described logical block device is connected with described I2C, it is characterized in that, described method comprises:
Described logical block device obtains the slot number and the I2C interface identifier that is connected described node of node;
According to the relation list of the slot number of described node and described interface identifier generation slot number, described relation list comprises the one-to-one relationship of described slot number and described interface identifier.
In conjunction with first aspect, in the possible implementation of the first of first aspect, described method also comprises:
Described a plurality of nodes are divided into groups, and the node of each group all has a logical block device for generating the relation list of the slot number of corresponding group.
In conjunction with the possible implementation of the first of first aspect, in the possible implementation of the second of first aspect, described method also comprises:
Logical block device to all groups divides into groups, and the logical block device of each group all has a logical block device for generating the relation list of the slot number of corresponding group.
Second aspect, a kind of logical block device, described logical block device comprises:
Acquiring unit, obtains the slot number and the I2C interface identifier that is connected described node of node;
According to the relation list of the slot number of described node and described interface identifier generation slot number, described relation list comprises the one-to-one relationship of described slot number and described interface identifier.
In conjunction with second aspect, in the possible implementation of the first of second aspect, described logical block device also comprises grouped element, described grouped element specifically for:
Described a plurality of nodes are divided into groups, and the node of each group all has a logical block device for generating the relation list of the slot number of corresponding group.
In conjunction with the possible implementation of the first of second aspect, in the possible implementation of the second of second aspect, described grouped element also for:
Logical block device to all groups divides into groups, and the logical block device of each group all has a logical block device for generating the relation list of the slot number of corresponding group.
The third aspect, a kind of microserver system, described system comprises a plurality of nodes, management control bus I2C and logical block device, an I2C interface of the corresponding connection of each node, described logical block device is connected with described I2C;
Described logical block device, for obtaining the slot number and the I2C interface identifier that is connected described node of node; According to the relation list of the slot number of described node and described interface identifier generation slot number, described relation list comprises the one-to-one relationship of described slot number and described interface identifier.
In conjunction with the third aspect, in the possible implementation of the first of the third aspect, described logical block device also for:
Described a plurality of nodes are divided into groups, and the node of each group all has a logical block device for generating the relation list of the slot number of corresponding group.
In conjunction with the possible implementation of the first of the third aspect, in the possible implementation of the second of the third aspect, described logical block device also for:
Logical block device to all groups divides into groups, and the logical block device of each group all has a logical block device for generating the relation list of the slot number of corresponding group.
In conjunction with the possible implementation of the second of the possible implementation of the first of the third aspect or the third aspect or the third aspect, in the third possible implementation of the third aspect,
Described system also comprises baseboard management controller, and described baseboard management controller is used for:
Store described managing listings, and present to user.
The embodiment of the present invention provides a kind of method based on microserver system management slot number, and described method is obtained the slot number and the I2C interface identifier that is connected described node of node by described logical block device; According to the relation list of the slot number of described node and described interface identifier generation slot number, described relation list comprises the one-to-one relationship of described slot number and described interface identifier, utilize I2C to realize the slot number management of node, without other slot position connector pins, simplified groove position management implementation, reduce the number of pins of Node Slot connector, thereby realize under the highly dense deployment scenario of server, reduce the pin pin number of Node Slot connector, to reduce node deployment pressure, solve the groove position problem of Differentiated Services device node.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
With reference to figure 1, Fig. 1 is the structural drawing of a kind of microserver system of providing of the embodiment of the present invention.Described system comprises a plurality of nodes, management control bus I2C and logical block device, an I2C interface of the corresponding connection of each node, and described logical block device is connected with described I2C;
As shown in Figure 1, node 1 and management control bus (Inter-Integrated Circuit, I2C) 1 connect, node 2 is connected with I2C2, and node 3 is connected with I2C3, and the rest may be inferred, node n is connected with I2Cn, described logical block device and described I2C1, I2C2, I2C3 ... I2Cn connects.
Described logical block device, for obtaining the slot number and the I2C interface identifier that is connected described node of node; According to the relation list of the slot number of described node and described interface identifier generation slot number, described relation list comprises the one-to-one relationship of described slot number and described interface identifier.
Concrete, the slot number of described logical block device generation node 1 and the relation list of I2C1, the slot number of node 2 and the relation list of I2C2, the rest may be inferred, the slot number of node n and the relation list of I2Cn.
With reference to figure 2, Fig. 2 is a kind of method flow diagram based on microserver system management slot number that the embodiment of the present invention provides.As shown in Figure 2,
Step 201, described logical block device obtains the slot number and the I2C interface identifier that is connected described node of node;
Concrete, each node all has pre-configured slot number (Slot Indentify, SLOT ID), and the I2C being connected with each node all has unique interface identifier (port number).Described logical block device is connected with described node by I2C, reads the slot number that described node is corresponding, and reads the I2C interface identifier that connects described node.
With reference to figure 3, Fig. 3 is the structural drawing of the intra-node that provides of the embodiment of the present invention.As shown in Figure 3, intra-node is connected to EEPROM (Electrically Erasable Programmable Read Only Memo) (Electrically Erasable Programmable Read to Only Memory I2C, E2PROM), sensor (Sensor), IO interface extended chip (Input Output IO expander), realize the management to single board edition identifier (Board ID) of generation Bill of Material (BOM) identifier (BOM the ID)/veneer of electronic tag, voltage/temperature detecting, veneer etc.
Step 202, described logical block device generates the relation list of slot number according to the slot number of described node and described interface identifier, and described relation list comprises the one-to-one relationship of described slot number and described interface identifier.
Alternatively, described method also comprises:
Described a plurality of nodes are divided into groups, and the node of each group all has a logical block device for generating the relation list of the slot number of corresponding group.
Concrete, with reference to figure 4, Fig. 4 is the structural drawing of the another kind of microserver system that provides of the embodiment of the present invention.As shown in Figure 4, total m logical block device, each logical block device is managed respectively n node.Such as, logical block device 1 management node 1 is to n, and for generating the relation list of the slot number of node 1 to n; Logical block device 2 management node n+1 to 2n, and for generating the relation list of the slot number of node n+1 to 2n, the rest may be inferred, logical block device m is for the relation list of the slot number of management node (m-1) * n+1 to m*n.
Described method also comprises:
Logical block device to all groups divides into groups, and the logical block device of each group all has a logical block device for generating the relation list of the slot number of corresponding group.
Concrete, with reference to figure 5, Fig. 5 is the structural drawing of the another kind of microserver system that provides of the embodiment of the present invention.Logical block device K is used for management logic unit component 1 to m, and logical block device K is numbered logical block device 1 to m, logical block device 1 to m management node.Logical block device 1 management node 1 is to n, and for generating the relation list of the slot number of node 1 to n; Logical block device 2 management node n+1 to 2n, and for generating the relation list of the slot number of node n+1 to 2n, the rest may be inferred, logical block device m is for the relation list of the slot number of management node (m-1) * n+1 to m*n.
The embodiment of the present invention provides a kind of method based on microserver system management slot number, and described method is obtained the slot number and the I2C interface identifier that is connected described node of node by described logical block device; According to the relation list of the slot number of described node and described interface identifier generation slot number, described relation list comprises the one-to-one relationship of described slot number and described interface identifier, utilize I2C to realize the slot number management of node, without other slot position connector pins, simplified groove position management implementation, reduce the number of pins of Node Slot connector, thereby realize under the highly dense deployment scenario of server, reduce the pin pin number of Node Slot connector, to reduce node deployment pressure, solve the groove position problem of Differentiated Services device node.
With reference to figure 6, Fig. 6 is the structure drawing of device of a kind of logical block device of providing of the embodiment of the present invention.As shown in Figure 6, described logical block device comprises:
Acquiring unit 601, for obtaining the slot number and the I2C interface identifier that is connected described node of node;
Concrete, each node all has pre-configured slot number (Slot Indentify, SLOT ID), and the I2C being connected with each node all has unique interface identifier (port number).Described logical block device is connected with described node by I2C, reads the slot number that described node is corresponding, and reads the I2C interface identifier that connects described node.
Generation unit 602, for generate the relation list of slot number according to the slot number of described node and described interface identifier, described relation list comprises the one-to-one relationship of described slot number and described interface identifier.
Alternatively, described logical block device also comprises grouped element 603, described grouped element 603 specifically for:
Described a plurality of nodes are divided into groups, and the node of each group all has a logical block device for generating the relation list of the slot number of corresponding group.
Concrete, the description with reference to figure 4, does not repeat them here.
Alternatively, described grouped element also for:
Logical block device to all groups divides into groups, and the logical block device of each group all has a logical block device for generating the relation list of the slot number of corresponding group.
Concrete, the description with reference to figure 5, does not repeat them here.
The embodiment of the present invention provides a kind of logical block device, and described device obtains the slot number and the I2C interface identifier that is connected described node of node by described logical block device; According to the relation list of the slot number of described node and described interface identifier generation slot number, described relation list comprises the one-to-one relationship of described slot number and described interface identifier, utilize I2C to realize the slot number management of node, without other slot position connector pins, simplified groove position management implementation, reduce the number of pins of Node Slot connector, thereby realize under the highly dense deployment scenario of server, reduce the pin pin number of Node Slot connector, to reduce node deployment pressure, solve the groove position problem of Differentiated Services device node.
With reference to figure 7, Fig. 7 is the structural drawing of the another kind of microserver system that provides of the embodiment of the present invention.As shown in Figure 7, total m logical block device, each logical block device is managed respectively n node.Such as, logical block device 1 management node 1 is to n, and for generating the relation list of the slot number of node 1 to n; Logical block device 2 management node n+1 to 2n, and for generating the relation list of the slot number of node n+1 to 2n, the rest may be inferred, logical block device m is for the relation list of the slot number of management node (m-1) * n+1 to m*n, BMC, for management logic unit component 1 to m is numbered, realizes the partition management of slot number.
With reference to figure 8, Fig. 8 is the structural drawing of the another kind of microserver system that provides of the embodiment of the present invention.As shown in Figure 8, logical block device K is for management logic unit component 1 to m, and logical block device K is numbered logical block device 1 to m, logical block device 1 to m management node.Logical block device 1 management node 1 is to n, and for generating the relation list of the slot number of node 1 to n; Logical block device 2 management node n+1 to 2n, and for generating the relation list of the slot number of node n+1 to 2n, the rest may be inferred, logical block device m is for the relation list of the slot number of management node (m-1) * n+1 to m*n, and BMC obtains the slot number of each node by management logic unit component K.
Fig. 9 is the structure drawing of device of a kind of logical block device of providing of the embodiment of the present invention.With reference to figure 9, Fig. 9 is a kind of logical block device 900 that the embodiment of the present invention provides, and the specific embodiment of the invention does not limit the specific implementation of described logical block device.Described logical block device 900 comprises:
Processor (8processor) 901, communication interface (Communications Interface) 902, storer (memory) 903, bus 904.
Processor 901, communication interface 902, storer 903 completes mutual communication by bus 904.
Communication interface 902, for communicating with other equipment;
Processor 901, for executive routine.
Particularly, program can comprise program code, and described program code comprises computer-managed instruction.
Processor 901 may be a central processing unit (central processing unit, CPU), or be configured to implement one or more integrated circuit of the embodiment of the present invention or specific integrated circuit ASIC(Application Specific Integrated Circuit).
Storer 903, for storage program.Storer 903 can be volatile memory (volatile memory), random access memory (random-access memory for example, RAM), or nonvolatile memory (non-volatile memory), for example ROM (read-only memory) (read-only memory, ROM), flash memory (flash memory), hard disk (hard disk drive, HDD) or solid state hard disc (solid-state drive, SSD).Processor 901, according to the programmed instruction of storer 903 storages, is carried out following methods:
Described logical block device obtains the slot number and the I2C interface identifier that is connected described node of node;
According to the relation list of the slot number of described node and described interface identifier generation slot number, described relation list comprises the one-to-one relationship of described slot number and described interface identifier;
Described method also comprises:
Described a plurality of nodes are divided into groups, and the node of each group all has a logical block device for generating the relation list of the slot number of corresponding group.
Described method also comprises:
Logical block device to all groups divides into groups, and the logical block device of each group all has a logical block device for generating the relation list of the slot number of corresponding group.
The embodiment of the present invention provides a kind of logical block device, and described device obtains the slot number and the I2C interface identifier that is connected described node of node by described logical block device; According to the relation list of the slot number of described node and described interface identifier generation slot number, described relation list comprises the one-to-one relationship of described slot number and described interface identifier, utilize I2C to realize the slot number management of node, without other slot position connector pins, simplified groove position management implementation, reduce the number of pins of Node Slot connector, thereby realize under the highly dense deployment scenario of server, reduce the pin pin number of Node Slot connector, to reduce node deployment pressure, solve the groove position problem of Differentiated Services device node.
With reference to Figure 10, Figure 10 is the structural drawing of a kind of microserver system of providing of the embodiment of the present invention.As shown in figure 10, described system comprises node, up bus interface module, described node comprises transmitting terminal first-in first-out unit, receiving end first-in first-out unit, register cell, I2C controller unit, and described register cell comprises I2C port-mark register, read-write control register, status register, reads length control register etc.
Described up bus interface module is mainly realized the interface control logic with up logic module or BMC.The data storage that sends and accept is mainly responsible in described transmitting terminal first-in first-out unit, receiving end first-in first-out unit.I2C port identification register in described register cell is for the inner I2C interface of identification and logic port numbers one to one; I2C controller unit, mainly realizes the steering logic of I2C interface.
The embodiment of the present invention provides a kind of microserver system, and described system is obtained the slot number and the I2C interface identifier that is connected described node of node by described logical block device; According to the relation list of the slot number of described node and described interface identifier generation slot number, described relation list comprises the one-to-one relationship of described slot number and described interface identifier, utilize I2C to realize the slot number management of node, without other slot position connector pins, simplified groove position management implementation, reduce the number of pins of Node Slot connector, thereby realize under the highly dense deployment scenario of server, reduce the pin pin number of Node Slot connector, to reduce node deployment pressure, solve the groove position problem of Differentiated Services device node.
The above; be only the present invention's embodiment preferably, but protection scope of the present invention is not limited to this, is anyly familiar with in technical scope that those skilled in the art disclose in the present invention; the variation that can expect easily or replacement, within all should being encompassed in protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection domain of claim.