Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the invention. It will be apparent, however, to one skilled in the art that the present invention may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present invention with unnecessary detail.
In order to make the objects, technical solutions and advantages of the present invention more apparent, the following description is made by way of specific embodiments with reference to the accompanying drawings.
The terms referred to in this application will first be introduced and explained:
the U bit of the server cabinet is used for storing the server, and the U is a unit for representing the external size of the server and is an abbreviation of unit.
In this application embodiment, power module can install in the server rack, power module is last can include a plurality of and rack U bit one-to-one's identification element, carry out the sign through identification element to the distribution U bit of target server or retrieve the U bit, can help the operation and maintenance personnel to seek and find the exact server rack U bit when target server prepares to put on the shelf, put off the shelf or migrate, and instruct the power supply subunit of server rack U bit for the operation and maintenance personnel, and can prevent that the operation and maintenance personnel from inserting wrong power or mistake from pulling out the power of other servers, can effectively promote work efficiency and avoid operation and maintenance personnel maloperation.
Referring to fig. 1, it shows a flowchart of an implementation of the method for managing U bits of the server rack according to the embodiment of the present invention, which is detailed as follows:
step 101, acquiring the information of the upper and lower shelves of the target server.
102, if the information of getting on and off shelves shows that the target server is ready to get on shelves, acquiring the occupation information of the U bit of the cabinet, distributing the U bit for the target server based on the occupation information of the U bit of the cabinet, and controlling the identification unit to identify the distributed U bit of the target server.
In the embodiment of the invention, when the information of going to the shelf and going to the shelf shows that the target server is ready to go to the shelf, the occupation information of all U bits of the cabinet of the server is obtained, the most appropriate U bit of the cabinet can be found for the target server based on the occupation information of the U bits of the cabinet, and the target server is allocated to the U bit of the cabinet, namely, the incidence relation between the target server and the U bit of the cabinet is established.
On the power supply module, an identification unit can be arranged at each power supply electronic unit position corresponding to the U bit of the cabinet, after the most appropriate U bit of the cabinet is distributed to the target server, the identification unit can be controlled to identify the distributed U bit of the target server, the identification unit can comprise LED indicating lamps, and each LED indicating lamp can be provided with multiple colors and flashing frequency (or flashing modes) and is used for indicating different states.
In the embodiment of the invention, after the most appropriate cabinet U bit is allocated to the target server, the LED indicator lamp of the power supply electronic unit corresponding to the cabinet U bit can be controlled to flash to indicate the operation and maintenance personnel to find the allocated U bit of the target server, and after the server is put on shelf, the LED indicator lamp is controlled to be normally on to indicate that the cabinet U bit is occupied.
And 103, if the information of going up and down shelves shows that the target server is ready to go down shelves, determining cabinet U bit information occupied by the target server based on a preset association rule, recovering the cabinet U bit occupied by the target server, and controlling an identification unit to identify the recovered cabinet U bit.
In the embodiment of the invention, when the shelf loading and unloading information shows that the target server is ready for shelf unloading, the cabinet U bit information occupied by the target server can be determined according to the preset incidence relation between the server and the cabinet U bit, and the cabinet U bit occupied by the target server is recovered, namely the incidence relation between the target server and the cabinet U bit occupied by the target server is removed. After the cabinet U bit occupied by the target server is recovered, the LED indicator lamp of the power supply electronic unit corresponding to the cabinet U bit can be controlled to be turned off to indicate that the U bit is already unoccupied.
Optionally, in the above embodiment, the power supply module may further include an electronic tag, and the electronic tag corresponds to the U bit of the cabinet one to one.
An electronic tag (RFID, Radio Frequency Identification), also called a Radio Frequency tag, may mark the U bit of the server cabinet and store the server information.
In general, in order to facilitate management, U bits of each server cabinet need to be marked, in the prior art, U-bit bars are generally adopted for implementation, the U-bit bars exist in an external mode, and electronic tags can be arranged on the U-bit bars to respectively correspond to the U bits of the respective cabinets.
Correspondingly, referring to fig. 2, after the step 102, the method may further include:
and step 1021, acquiring the target server information.
In the embodiment of the present invention, the target server information may include the number, model, size, power distribution requirement information, and the like of the target server.
And step 1022, acquiring the electronic tag information corresponding to the allocated U bit.
In the embodiment of the present invention, the electronic tag information may include a serial number and a size of the U bit of the cabinet, and power supply capability information of the power supply electronic unit corresponding to the U bit of the cabinet.
And step 1023, judging whether the allocated U bit is matched with the target server or not based on the target server information and the electronic tag information.
In the embodiment of the invention, after the most appropriate cabinet U bit is allocated to the target server, whether the allocated U bit is matched with the target server or not can be identified through the target server information and the electronic tag information, and secondary confirmation is carried out.
Optionally, referring to fig. 3, after the step 102, the method may further include:
and 1025, acquiring the information of the first power supply module.
And step 1026, judging whether the target server is successfully put on shelf or not based on the first power supply module information.
Optionally, referring to fig. 4, after the step 103, the method may further include:
and step 1031, obtaining second power supply module information.
And 1032, judging whether the target server is successfully off-shelf based on the second power supply module information.
In the embodiment of the invention, the power supply module information can comprise information such as current, voltage, power and the like of each power supply subunit of the power supply module, and recheck confirmation can be carried out by acquiring the power supply module information, whether the target server is correctly connected or disconnected with the power supply subunit corresponding to the U bit is detected, and whether the target server is successfully put on or taken off shelves is judged.
For example: after the step 103, by detecting the current of each power supply subunit of the power supply module, when the detected current value of the power supply subunit of the U bit corresponding to the target server is shown as 0, it indicates that the rack removal of the target server is successful, and when the detected current value of the power supply subunit of the U bit corresponding to the target server is not 0, it indicates that the rack removal of the target server is failed.
Optionally, in step 101, allocating U bits to the target server based on the occupancy information of the U bits of the rack may include:
and determining the U bit of the cabinet with the occupation information displayed as unoccupied as a first distribution U bit.
And acquiring power supply capacity information of the power supply electronic unit corresponding to each cabinet U bit in the first distribution U bit.
And acquiring power demand information of the target server, and distributing U bits for the target server based on the matching degree of the power demand information and the power supply capacity information.
In the embodiment of the invention, the most appropriate power supply subunit can be allocated to the target server by acquiring the power supply capacity information of the power supply subunit corresponding to each cabinet U bit in the first allocated U bit and the power demand information of the target server, that is, the power supply subunit closest to the power demand information of the target server is found for the target server under the condition of meeting the power demand of the target server, so that the utilization rate of the power supply module can be effectively improved.
Optionally, in step 102, the preset association rule may include a correspondence between a server number and a number of a U bit of the cabinet occupied by the server.
Correspondingly, determining the cabinet U bit information occupied by the target server based on the preset association rule may include:
and acquiring the number information of the target server.
And determining the number of the U bit of the cabinet occupied by the target server according to the number information of the target server and a preset association rule.
In the embodiment of the present invention, the numbering of the U bits of the cabinet, that is, the information of the U bits of the cabinet, further includes, after the U bits are allocated to the target server, numbering the target server and the U bits of the cabinet occupied by the target server, and establishing a unique association relationship between the target server and the U bits of the cabinet occupied by the target server through the numbering.
The information of the U bit of the cabinet occupied by the target server can be quickly searched according to the serial number of the target server, or the information of the corresponding server can be quickly searched according to the serial number of the target U bit.
According to the invention, the most appropriate cabinet U bit can be distributed to the target server according to the cabinet U bit occupation information when the target server is ready to put on the shelf, the cabinet U bit occupied by the target server is recovered according to the preset association rule when the target server is ready to put off the shelf, the identification is carried out through the identification unit arranged on the power supply module, and the secondary confirmation is automatically carried out after the target server is put on the shelf or put off the shelf, so that the problems of low efficiency and easy error when an operation and maintenance person manually operates the target server to put on the shelf, put off the shelf or move the server cabinet are solved.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
The following are embodiments of the system of the invention, and for details not described in detail therein, reference may be made to the corresponding method embodiments described above.
Fig. 5 shows a schematic structural diagram of a U-bit management system of a server rack provided in an embodiment of the present invention, and for convenience of description, only parts related to the embodiment of the present invention are shown, which are detailed as follows:
the server cabinet U-bit management system is applied to a server and a server cabinet, the server cabinet comprises a cabinet U bit and a power supply module, the power supply module comprises an identification unit, and the identification unit corresponds to the cabinet U bit one to one.
As shown in fig. 5, the server cabinet U-place management system 5 includes: a first acquisition module 51 and a control module 52.
The first obtaining module 51 is configured to obtain the shelf information of the target server.
And the control module 52 is configured to, when the shelf loading and unloading information shows that the target server is ready for shelf loading, obtain occupation information of the U bit of the cabinet, allocate the U bit to the target server based on the occupation information of the U bit of the cabinet, and control the identification unit to identify the allocated U bit of the target server.
Wherein, allocating the U bit for the target server based on the occupation information of the cabinet U bit may include:
and determining the U bit of the cabinet with the occupation information displayed as unoccupied as a first distribution U bit.
And acquiring power supply capacity information of the power supply electronic unit corresponding to each cabinet U bit in the first distribution U bit.
And acquiring power demand information of the target server, and distributing U bits for the target server based on the matching degree of the power demand information and the power supply capacity information.
The control module 52 is further configured to, when the shelf information shows that the target server is ready to be off shelf, determine information of the cabinet U bit occupied by the target server based on a preset association rule, recover the cabinet U bit occupied by the target server, and control the identification unit to identify the recovered cabinet U bit.
The preset association rule may include a correspondence between a server number and a cabinet U-bit number occupied by the server.
Correspondingly, determining the cabinet U bit information occupied by the target server based on the preset association rule may include:
and acquiring the number information of the target server.
And determining the number of the U bit of the cabinet occupied by the target server according to the number information of the target server and a preset association rule.
Optionally, the power supply module further includes an electronic tag, and the electronic tag corresponds to the U-bit of the cabinet one to one.
Correspondingly, the server cabinet U-bit management system may further include:
and a second obtaining module 53, configured to obtain the target server information and the electronic tag information corresponding to the allocated U bit.
And a first judging module 54, configured to judge whether the allocated U bit matches the target server based on the target server information and the electronic tag information.
Optionally, the server rack U-bit management system may further include:
and a third obtaining module 55, configured to obtain the first power supply module information and the second power supply module information.
And the second judging module 56 is used for judging whether the target server is successfully put on shelf or not based on the first power supply module information and judging whether the target server is successfully put off shelf or not based on the second power supply module information.
Fig. 6 is a schematic diagram of an electronic device provided in an embodiment of the present invention. As shown in fig. 6, the electronic apparatus 6 of this embodiment includes: a processor 61, a memory 62 and a computer program 63 stored in the memory 62 and executable on the processor 61. When the processor 61 executes the computer program 63, the steps in each of the above embodiments of the server rack U bit management method are implemented, for example, steps 101 to 103 shown in fig. 1, steps 101 to 1023 shown in fig. 2, steps 101 to 1026 shown in fig. 3, and steps 101 to 1032 shown in fig. 4. Alternatively, the functions of the modules in the above-described system embodiments, for example, the functions of the modules 51 to 52 shown in fig. 5, are implemented when the processor 61 executes the computer program 63.
Illustratively, the computer program 63 may be divided into one or more modules, which are stored in the memory 62 and executed by the processor 61 to accomplish the present invention. One or more of the modules may be a series of computer program instruction segments capable of performing certain functions, which are used to describe the execution of the computer program 63 in the electronic device 6. For example, the computer program 63 may be divided into a first acquisition module, a control module. The specific functions of each module are as follows:
the first acquisition module is used for acquiring the information of getting on and off shelves of the target server.
And the control module is used for acquiring the occupation information of the U bit of the cabinet when the information of the upper rack and the lower rack shows that the target server is ready to be put on the rack, distributing the U bit for the target server based on the occupation information of the U bit of the cabinet, and controlling the identification unit to identify the distributed U bit of the target server.
The control module is further used for determining cabinet U bit information occupied by the target server based on a preset association rule when the information of going to the shelf and going to the shelf shows that the target server is ready to go to the shelf, recovering the cabinet U bit occupied by the target server, and controlling the identification unit to identify the recovered cabinet U bit.
The electronic device 6 may be a desktop computer, a notebook, a palm computer, a cloud server, or other computing devices. The electronic device 6 may include, but is not limited to, a processor 61, a memory 62. Those skilled in the art will appreciate that fig. 6 is merely an example of the electronic device 6, and does not constitute a limitation of the electronic device 6, and may include more or less components than those shown, or combine certain components, or different components, e.g., the electronic device 6 may also include input-output devices, network access devices, buses, etc.
The Processor 61 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The storage 62 may be an internal storage unit of the electronic device 6, such as a hard disk or a memory of the electronic device 6. The memory 62 may also be an external storage device of the electronic device 6, such as a plug-in hard disk provided on the electronic device 6, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like. Further, the memory 62 may also include both an internal storage unit of the electronic device 6 and an external storage device. The memory 62 is used to store computer programs and other programs and data required by the electronic device. The memory 62 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the system is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative modules and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus/terminal and method may be implemented in other ways. For example, the above-described apparatus/terminal embodiments are merely illustrative, and for example, a division of modules or units is only one logical division, and an actual implementation may have another division, for example, a plurality of modules or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or modules, and may be in an electrical, mechanical or other form.
Units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit. The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow in the method according to the embodiments of the present invention may also be implemented by a computer program to instruct related hardware, where the computer program may be stored in a computer readable storage medium, and when the computer program is executed by a processor, the computer program may implement the steps of the embodiments of the method. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer readable medium may include: any entity or device capable of carrying computer program code, recording medium, U.S. disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution media, and the like. It should be noted that the computer readable medium may include any suitable increase or decrease as required by legislation and patent practice in the jurisdiction, for example, in some jurisdictions, computer readable media may not include electrical carrier signals and telecommunications signals in accordance with legislation and patent practice. The above examples are only for illustrating the technical solutions of the present invention, and are not limited thereto. Although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: modifications of the technical solutions described in the embodiments or equivalent replacements of some technical features may still be made. Such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.