Summary of the invention
Embodiments provide a kind of method managing slot number, it is intended under the highly dense deployment scenario of server,
Reduce the pin foot number of Node Slot adapter, to reduce node deployment pressure, solve Differentiated Services device node
Groove position problem.
First aspect, a kind of method based on micro server system management slot number, described system includes multiple
Node, management control bus I2C and logical block device, and each node correspondence connects an I2C interface,
Described logical block device is connected with described I2C, it is characterised in that described method includes:
Described logical block device obtains the slot number of node and connects the I2C interface identifier of described node;
Slot number according to described node and the relation list of described interface identifier generation slot number, described relation
List includes described slot number and the one-to-one relationship of described interface identifier.
In conjunction with first aspect, in the first possible implementation of first aspect, described method also includes:
Being grouped the plurality of node, 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 first possible implementation of first aspect, the realization that the second in first aspect is possible
In mode, described method also includes:
Being grouped the logical block device of all groups, the logical block device of each group all has a logic
Unit component is for generating the relation list of the slot number of corresponding group.
Second aspect, a kind of logical block device, described logical block device includes:
Acquiring unit, obtains the slot number of node and connects the I2C interface identifier of described node;
Slot number according to described node and the relation list of described interface identifier generation slot number, described relation
List includes described slot number and the one-to-one relationship of described interface identifier.
In conjunction with second aspect, in the first possible implementation of second aspect, described logical block device
Part also includes grouped element, described grouped element specifically for:
Being grouped the plurality of node, 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 first possible implementation of second aspect, the realization that the second in second aspect is possible
In mode, described grouped element is additionally operable to:
Being grouped the logical block device of all groups, the logical block device of each group all has a logic
Unit component is for generating the relation list of the slot number of corresponding group.
The third aspect, a kind of micro server system, described system includes that multiple node, management control bus I2C
And logical block device, each node correspondence connects an I2C interface, described logical block device and institute
State I2C to be connected;
Described logical block device, for obtaining the slot number of node and connecting the I2C interface mark of described node
Know;Slot number according to described node and the relation list of described interface identifier generation slot number, described relation
List includes described slot number and the one-to-one relationship of described interface identifier.
In conjunction with the third aspect, in the first possible implementation of the third aspect, described logical block device
Part is additionally operable to:
Being grouped the plurality of node, 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 first possible implementation of the third aspect, the realization that the second in the third aspect is possible
In mode, described logical block device is additionally operable to:
Being grouped the logical block device of all groups, the logical block device of each group all has a logic
Unit component is for generating the relation list of the slot number of corresponding group.
The first possible implementation or the second of the third aspect in conjunction with the third aspect or the third aspect
Plant possible implementation, in the third possible implementation of the third aspect,
Described system also includes that baseboard management controller, described baseboard management controller are used for:
Store described relation list, and present to user.
The embodiment of the present invention provides a kind of method based on micro server system management slot number, and described method is led to
Cross described logical block device obtain the slot number of node and connect the I2C interface identifier of described node;According to
The slot number of described node and described interface identifier generate the relation list of slot number, and described relation list includes
Described slot number and the one-to-one relationship of described interface identifier, utilize I2C to realize the slot number management of node,
Without other slot position connector pins, simplify groove position management implementation, reduce the pipe of Node Slot adapter
Foot number, thus realize under the highly dense deployment scenario of server, reduce the pin foot number of Node Slot adapter,
To reduce node deployment pressure, solve the groove position problem of Differentiated Services device node.
Detailed description of the invention
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 carried out clearly
Chu, be fully described by, it is clear that described embodiment be only a part of embodiment of the present invention rather than
Whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art are not making creation
The every other embodiment obtained under property work premise, broadly falls into the scope of protection of the invention.
It is the structure chart of a kind of micro server system that the embodiment of the present invention provides with reference to Fig. 1, Fig. 1.Described system
System includes that multiple node, management control bus I2C and logical block device, and each node correspondence connects one
Individual I2C interface, described logical block device is connected with described I2C;
Connect as it is shown in figure 1, node 1 and management control bus (Inter-Integrated Circuit, I2C) 1,
Node 2 and I2C2 connects, and node 3 and I2C3 connects, and the rest may be inferred, and node n and I2Cn connects, institute
State logical block device and described I2C1, I2C2, I2C3 ... I2Cn connects.
Described logical block device, for obtaining the slot number of node and connecting the I2C interface mark of described node
Know;Slot number according to described node and the relation list of described interface identifier generation slot number, described relation
List includes described slot number and the one-to-one relationship of described interface identifier.
Concrete, the slot number of described logical block device generation node 1 and the relation list of I2C1, node
The slot number of 2 and the relation list of I2C2, the rest may be inferred, the slot number of node n and the relation list of I2Cn.
It is that a kind of of embodiment of the present invention offer manages slot number based on micro server system with reference to Fig. 2, Fig. 2
Method flow diagram.As in figure 2 it is shown,
Step 201, described logical block device obtains the slot number of node and connects the I2C interface of described node
Mark;
Concrete, each node all has the slot number (Slot Indentify, SLOT ID) being pre-configured with, and
The I2C that each node connects all has unique interface identifier (port number).Described logical block device
Connected by I2C and described node, read the slot number that described node is corresponding, and read the described node of connection
I2C interface identifier.
It is the structure chart of the intra-node that the embodiment of the present invention provides with reference to Fig. 3, Fig. 3.As it is shown on figure 3, joint
Point is internal is connected to EEPROM (Electrically Erasable I2C
Programmable Read to Only Memory, E2PROM), sensor (Sensor), input and output
Interface Expanding chip (Input Output IO expander), it is achieved to electronic tag, voltage/temperature detecting,
The single board edition identifier (Board ID) of generation BOM identifier (BOM the ID)/veneer of veneer
Etc. management.
Step 202, described logical block device generates groove according to slot number and the described interface identifier of described node
The relation list of item, described relation list includes that the one_to_one corresponding of described slot number and described interface identifier closes
System.
Alternatively, described method also includes:
Being grouped the plurality of node, the node of each group all has a logical block device for generating
The relation list of the slot number of corresponding group.
Concrete, it is the structure of the another kind of micro server system that the embodiment of the present invention provides with reference to Fig. 4, Fig. 4
Figure.As shown in Figure 4, total m logical block device, each logical block device manages n respectively
Node.Such as, logical block device 1 manages node 1 to n, and for generating the slot number of node 1 to n
Relation list;Logical block device 2 manages node n+1 to 2n, and is used for generating node n+1 to 2n
The relation list of slot number, the rest may be inferred, and logical block device m is used for managing node (m-1) * n+1
Relation list to the slot number of m*n.
Described method also includes:
Being grouped the logical block device of all groups, the logical block device of each group all has a logic
Unit component is for generating the relation list of the slot number of corresponding group.
Concrete, it is the structure of the another kind of micro server system that the embodiment of the present invention provides with reference to Fig. 5, Fig. 5
Figure.Logical block device K is for managing logical block device 1 to m, and logical block device K is to logic
Unit component 1 to m is numbered, and logical block device 1 to m manages node.Logical block device 1 is managed
Reason node 1 to n, and for generating the relation list of the slot number of node 1 to n;Logical block device 2 is managed
Reason 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 used for managing the relation list of the slot number of node (m-1) * n+1 to m*n.
The embodiment of the present invention provides a kind of method based on micro server system management slot number, and described method is led to
Cross described logical block device obtain the slot number of node and connect the I2C interface identifier of described node;According to
The slot number of described node and described interface identifier generate the relation list of slot number, and described relation list includes
Described slot number and the one-to-one relationship of described interface identifier, utilize I2C to realize the slot number management of node,
Without other slot position connector pins, simplify groove position management implementation, reduce the pipe of Node Slot adapter
Foot number, thus realize under the highly dense deployment scenario of server, reduce the pin foot number of Node Slot adapter,
To reduce node deployment pressure, solve the groove position problem of Differentiated Services device node.
It is the structure drawing of device of a kind of logical block device that the embodiment of the present invention provides with reference to Fig. 6, Fig. 6.As
Shown in Fig. 6, described logical block device includes:
Acquiring unit 601, for obtaining the slot number of node and connecting the I2C interface identifier of described node;
Concrete, each node all has the slot number (Slot Indentify, SLOT ID) being pre-configured with, and
The I2C that each node connects all has unique interface identifier (port number).Described logical block device
Connected by I2C and described node, read the slot number that described node is corresponding, and read the described node of connection
I2C interface identifier.
Signal generating unit 602, generates the pass of slot number for the slot number according to described node and described interface identifier
Series of tables, described relation list includes described slot number and the one-to-one relationship of described interface identifier.
Alternatively, described logical block device also includes that grouped element 603, described grouped element 603 are specifically used
In:
Being grouped the plurality of node, 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 the description of Fig. 4, do not repeat them here.
Alternatively, described grouped element is additionally operable to:
Being grouped the logical block device of all groups, the logical block device of each group all has a logic
Unit component is for generating the relation list of the slot number of corresponding group.
Concrete, with reference to the description of Fig. 5, do not repeat them here.
The embodiment of the present invention provides a kind of logical block device, and described device is obtained by described logical block device
Take the slot number of node and connect the I2C interface identifier of described node;Slot number according to described node and institute
Stating interface identifier and generate the relation list of slot number, described relation list includes described slot number and described interface
The one-to-one relationship of mark, utilizes I2C to realize the slot number management of node, it is not necessary to other slot position connectors
Pin, simplifies groove position management implementation, reduces the number of pins of Node Slot adapter, thus realize
Under the highly dense deployment scenario of server, reduce the pin foot number of Node Slot adapter, to reduce node deployment pressure
Power, solves the groove position problem of Differentiated Services device node.
It is the structure chart of the another kind of micro server system that the embodiment of the present invention provides with reference to Fig. 7, Fig. 7.Such as figure
Shown in 7, total m logical block device, each logical block device manages n node respectively.Ratio
As, logical block device 1 manages node 1 to n, and for generating the pass series of the slot number of node 1 to n
Table;Logical block device 2 manages node n+1 to 2n, and for generating the slot number of node n+1 to 2n
Relation list, the rest may be inferred, and logical block device m is used for managing the groove of node (m-1) * n+1 to m*n
The relation list of item, BMC is for being numbered management logical block device 1 to m, it is achieved slot number
Partition management.
It is the structure chart of the another kind of micro server system that the embodiment of the present invention provides with reference to Fig. 8, Fig. 8.Such as figure
Shown in 8, logical block device K is for managing logical block device 1 to m, logical block device K pair
Logical block device 1 to m is numbered, and logical block device 1 to m manages node.Logical block device
1 management node 1 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, class according to this
Pushing away, logical block device m is used for managing the relation list of the slot number of node (m-1) * n+1 to m*n,
BMC obtains the slot number of each node by management logical block device K.
Fig. 9 is the structure drawing of device of a kind of logical block device that the embodiment of the present invention provides.With reference to Fig. 9, figure
9 is a kind of logical block device 900 that the embodiment of the present invention provides, and the specific embodiment of the invention is not to described
Implementing of logical block device limits.Described logical block device 900 includes:
Processor (8processor) 901, communication interface (Communications Interface) 902, memorizer
(memory) 903, bus 904.
Processor 901, communication interface 902, memorizer 903 completes mutual communication by bus 904.
Communication interface 902, for communicating with other equipment;
Processor 901, is used for performing program.
Specifically, program can include that program code, described program code include computer-managed instruction.
Processor 901 is probably a central processing unit (central processing unit, CPU), or
It is specific integrated circuit ASIC (Application Specific Integrated Circuit), or is configured
Become to implement one or more integrated circuits of the embodiment of the present invention.
Memorizer 903, is used for storing program.Memorizer 903 can be volatile memory (volatile
Memory), such as random access memory (random-access memory, RAM), or non-easily
The property lost memorizer (non-volatile memory), such as 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).The programmed instruction that processor 901 stores according to memorizer 903, execution following methods:
Described logical block device obtains the slot number of node and connects the I2C interface identifier of described node;
Slot number according to described node and the relation list of described interface identifier generation slot number, described relation
List includes described slot number and the one-to-one relationship of described interface identifier;
Described method also includes:
Being grouped the plurality of node, 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 includes:
Being grouped the logical block device of all groups, the logical block device of each group all has a logic
Unit component is 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 is obtained by described logical block device
Take the slot number of node and connect the I2C interface identifier of described node;Slot number according to described node and institute
Stating interface identifier and generate the relation list of slot number, described relation list includes described slot number and described interface
The one-to-one relationship of mark, utilizes I2C to realize the slot number management of node, it is not necessary to other slot position connectors
Pin, simplifies groove position management implementation, reduces the number of pins of Node Slot adapter, thus realize
Under the highly dense deployment scenario of server, reduce the pin foot number of Node Slot adapter, to reduce node deployment pressure
Power, solves the groove position problem of Differentiated Services device node.
It is the structure chart of a kind of micro server system that the embodiment of the present invention provides with reference to Figure 10, Figure 10.Such as figure
Shown in 10, described system includes node, up bus interface module, and described node includes that transmitting terminal first enters elder generation
Go out unit, receiving terminal FIFO unit, register cell, I2C controller unit, described register cell
Depositor is controlled including I2C port-mark depositor, Read-write Catrol depositor, status register, reading length
Deng.
Described up bus interface module mainly realizes patrolling with the Interface Controller of up logic module or BMC
Volume.Described transmitting terminal FIFO unit, receiving terminal FIFO unit are mainly responsible for the number sending and accepting
According to storage.I2C port identification depositor in described register cell connects with logical internal I2C for identifying
Mouth port numbers one to one;I2C controller unit, mainly realizes the control logic of I2C interface.
The embodiment of the present invention provides a kind of micro server system, and described system is obtained by described logical block device
Take the slot number of node and connect the I2C interface identifier of described node;Slot number according to described node and institute
Stating interface identifier and generate the relation list of slot number, described relation list includes described slot number and described interface
The one-to-one relationship of mark, utilizes I2C to realize the slot number management of node, it is not necessary to other slot position connectors
Pin, simplifies groove position management implementation, reduces the number of pins of Node Slot adapter, thus realize
Under the highly dense deployment scenario of server, reduce the pin foot number of Node Slot adapter, to reduce node deployment pressure
Power, solves the groove position problem of Differentiated Services device node.
The above, the only present invention preferably detailed description of the invention, but protection scope of the present invention not office
Being limited to this, any those familiar with the art, can be easily in the technical scope that the invention discloses
The change expected or replacement, all should contain within protection scope of the present invention.Therefore, the protection of the present invention
Scope should be as the criterion with scope of the claims.