CN116701071A - Server power-on test method and device - Google Patents

Server power-on test method and device Download PDF

Info

Publication number
CN116701071A
CN116701071A CN202310429729.XA CN202310429729A CN116701071A CN 116701071 A CN116701071 A CN 116701071A CN 202310429729 A CN202310429729 A CN 202310429729A CN 116701071 A CN116701071 A CN 116701071A
Authority
CN
China
Prior art keywords
host
server
power
box
target server
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.)
Pending
Application number
CN202310429729.XA
Other languages
Chinese (zh)
Inventor
黄三保
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202310429729.XA priority Critical patent/CN116701071A/en
Publication of CN116701071A publication Critical patent/CN116701071A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • G06F11/221Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested to test buses, lines or interfaces, e.g. stuck-at or open line faults
    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE 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/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Power Sources (AREA)

Abstract

The invention provides a method and a device for power-on test of a server, wherein the method comprises the following steps: based on the power-on sequence between the HOST end and the BOX end of the target server, testing the HOST end and the BOX end of the target server, and determining a first test result of the target server, wherein the target server is a compound server comprising the HOST end and the BOX end; the target server is controlled to disconnect the HOST end from the BOX end, the HOST end is tested, and a second test result of the target server is determined; and determining a power-on result of the target server based on the first test result and the second test result. According to the method and the device for powering on the server, the HOST end and the BOX end of the target server are tested according to the powering-on sequence between the HOST end and the BOX end of the target server, so that an automatic testing process of the composite server is realized, and the testing efficiency of the composite machine type is improved.

Description

Server power-on test method and device
Technical Field
The invention relates to the technical field of servers, in particular to a method and a device for powering up a server.
Background
With the development of the server, a HOST-BOX composite server is gradually created, and the whole HOST-BOX composite server is divided into two parts, wherein one part is a HOST, namely a server HOST, and the other part is a BOX, namely a PCIE (peripheral component interconnect express, high-speed serial computer expansion bus standard) switch HOST. A hard disk or a display card can be installed in the BOX, and the device of the BOX can be provided for HOST to use when the device is connected to the HOST end counter card by using a cable. However, the HOST-BOX compound model has requirements on the power-on start-up sequence of the BOX end and the HOST end, and if the HOST end is started up before the BOX end is initialized, the HOST end cannot scan the BOX end equipment, and the BOX end equipment is unavailable.
The existing power-on test for the server is mainly the power-on test for the non-composite type server, and the power-on requirement for the composite type server is an important problem to be solved in the industry at present.
Disclosure of Invention
The invention provides a server power-on test method and device, which are used for solving the technical problem of power-on test of a compound machine type server in the prior art.
The invention provides a server power-on test method, which comprises the following steps:
based on the power-on sequence between an HOST end of a target server and a BOX end of the target server, testing the HOST end and the BOX end, and determining a first test result of the target server, wherein the target server is a compound server comprising the HOST end and the BOX end;
the target server is controlled to disconnect the HOST end from the BOX end, the HOST end is tested, and a second test result of the target server is determined;
and determining a power-on result of the target server based on the first test result and the second test result.
According to the server power-on method provided by the invention, based on the power-on sequence between the HOST end of the target server and the BOX end of the target server, the HOST end and the BOX end are tested, and the method comprises the following steps:
Controlling the BOX end to be electrified, and testing the BOX end based on whether the BOX end enters a starting state after being electrified;
and testing the HOST terminal based on the on-off state of the BOX terminal.
According to the method for powering on and off the server provided by the invention, the HOST end is tested based on controlling the on-off state of the BOX end, and the method comprises the following steps:
sending a shutdown instruction to the BOX end so that the BOX end enters a shutdown state after receiving the shutdown instruction;
controlling the HOST terminal to be electrified, and testing whether the HOST terminal is automatically started after being electrified;
and sending a starting command to the HOST end, and testing whether the HOST end executes starting operation based on the starting command.
According to the method for powering on and off the server provided by the invention, the HOST end is tested based on controlling the on-off state of the BOX end, and the method comprises the following steps:
controlling the BOX end to be electrified so as to enable the BOX end to enter a starting state after being electrified;
controlling the HOST terminal to be electrified, and testing whether the HOST terminal is automatically started after being electrified;
after the HOST end is electrified and is in a power-on state, a power-off instruction is sent to the HOST end so that the HOST end is in a power-off state;
And sending a starting-up instruction to the HOST end, and testing whether the HOST end executes starting-up operation based on the starting-up instruction.
The method for powering up the server provided by the invention further comprises the following steps:
traversing the power-on strategy of the HOST terminal, and testing the HOST terminal based on different power-on strategies.
According to the method for powering on the server, provided by the invention, the HOST end is tested, and the second test result of the target server is determined, which comprises the following steps:
controlling the HOST end to be electrified, and testing the accuracy of the electrified control of the HOST end;
and determining a second test result of the target server based on the accuracy.
According to the server power-on method provided by the invention, the method for controlling the target server to disconnect the HOST end from the BOX end comprises the following steps:
and controlling the target server to disable the slot of the high-speed serial computer expansion bus standard PCIe adapter card of which the HOST end is connected with the BOX end, and closing the power supply to the BOX end so as to disconnect the HOST end from the BOX end.
The invention also provides a device for powering on the server, which comprises:
The compound test module is used for testing the HOST end and the BOX end of the target server based on the power-on sequence between the HOST end and the BOX end of the target server, and determining a first test result of the target server, wherein the target server is a compound server comprising the HOST end and the BOX end;
the non-composite test module is used for controlling the target server to disconnect the HOST end from the BOX end, testing the HOST end and determining a second test result of the target server;
and the result determining module is used for determining the power-on result of the target server based on the first test result and the second test result.
The invention also provides an electronic device, which comprises a memory, a processor and a computer program stored in the memory and capable of running on the processor, wherein the processor realizes any server power-on method when executing the computer program.
The present invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements any of the server power-up methods described above.
According to the method and the device for powering on the server, the HOST end and the BOX end of the target server are tested according to the powering-on sequence between the HOST end and the BOX end of the target server, so that an automatic testing process of the composite server is realized, and the testing efficiency of the composite machine type is improved. Meanwhile, the target server is controlled to disconnect the HOST end from the BOX end, the HOST end is tested, and after the BOX end is disconnected, the test of the target server can be regarded as the test of a non-composite model, so that the test process of multiple model states of the target server is realized.
Drawings
In order to more clearly illustrate the invention or the technical solutions of the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described, it being obvious that the drawings in the description below are some embodiments of the invention and that other drawings can be obtained from them without inventive effort for a person skilled in the art.
FIG. 1 is a schematic flow chart of a server power-on test method provided by the invention;
FIG. 2 is a schematic diagram of a device structure of a server power-on test method according to the present invention;
FIG. 3 is a schematic diagram of a power-on test device of a server according to the present invention;
fig. 4 is a schematic structural diagram of an electronic device provided by the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
With the development of the server, a HOST-BOX compound server is gradually created, and the HOST-BOX compound server is wholly divided into two parts, wherein one part is a HOST end, namely a server HOST, and the other part is a BOX end, namely a PCIE switch HOST. A hard disk or a display card can be installed in the BOX end and connected to the HOST end re-timer card by using a cable, and then the device of the BOX end can be provided for the HOST end to use. However, the HOST-BOX compound machine type has requirements on the power-on start-up of the BOX end and the HOST end, and the power-on start-up of the HOST end is required to be performed firstly. If the HOST terminal is started before the BOX terminal, the HOST terminal cannot scan the BOX terminal equipment, and the BOX terminal equipment is not available.
The startup state of the server after power-off is controlled by the Chassis strategy of the BMC (Baseboard Management Controller ). The passis strategy can be divided into three types previous, always-on, always-off. The previous strategy is a state of the server before power failure, and the server can be restored to the state before power failure after power supply is restored; the always-on strategy is that the server is in a power-on state or a power-off state before power failure, and the server is changed into the power-on state after power restoration; the always-off strategy is that the server is in a power-on state or a power-off state before power failure, and the server is in the power-off state after power restoration and is not automatically started.
For the compound model server, the passis policy control of the BMC can not take effect on the HOST end server any more, otherwise, the HOST end is started before the BOX end, so that the HOST end cannot scan the BOX end equipment, and the BOX end equipment is not available. For the compound model, the HOST side BMC determines that the BOX is connected by determining that the re-timer card of the HOST side is in place and the cable is in place. The HOST terminal BMC monitors the starting state of the BOX terminal through the I2C link, and when the BOX terminal is monitored to be in the shutdown state, the BMC controls the HOST terminal to keep the shutdown state and does not respond to any starting instruction sent externally; when the BOX terminal is detected to be in a starting state, the BMC controls HOST to start or receives an external starting instruction to start;
The related method is mature for the power-on control test method of the non-composite model server, and is applied to research and development tests. However, there is no clear and mature method for power-on control verification of the compound machine type server.
In order to overcome the defects of the related method, the invention provides a server power-on test method, and fig. 1 is a schematic flow chart of the server power-on test method provided by the invention. Referring to fig. 1, the server power-on method provided by the present invention may include:
step 110, testing a HOST end and a BOX end of a target server based on a power-on sequence between the HOST end and the BOX end of the target server, and determining a first test result of the target server, wherein the target server is a compound server comprising the HOST end and the BOX end;
step 120, controlling the target server to disconnect the HOST end from the BOX end, testing the HOST end, and determining a second test result of the target server;
and step 130, determining a power-on result of the target server based on the first test result and the second test result.
The execution subject of the server power-on test method provided by the invention can be electronic equipment, a component in the electronic equipment, an integrated circuit or a chip. The electronic device may be a mobile electronic device or a non-mobile electronic device. By way of example, the mobile electronic device may be a cell phone, tablet, notebook, palmtop, ultra-mobile personal computer (ultra-mobile personal computer, UMPC), netbook or personal digital assistant (personal digital assistant, PDA), etc., and the non-mobile electronic device may be a server, network attached storage (Network Attached Storage, NAS) or personal computer (personal computer, PC), etc., the invention is not particularly limited.
The technical scheme of the invention is described in detail below by taking a computer to execute the server power-on test method provided by the invention as an example.
In step 110, based on the power-on sequence between the HOST end of the target server and the BOX end of the target server, the HOST end of the target server and the BOX end of the target server are tested, and a first test result of the target server is determined.
The HOST-BOX composite server is integrally divided into two parts, wherein one part is a HOST end, namely a server HOST, and the other part is a BOX end, namely a PCIE switch HOST. A hard disk or a display card can be installed in the BOX end and connected to the HOST end re-timer card by using a cable, so that equipment of the BOX end is provided for the HOST end to use.
The HOST-BOX compound server has requirements on the power-on start-up of the BOX end and the HOST end, and the power-on start-up of the BOX end is needed first, and then the power-on start-up of the HOST end is needed. If the HOST terminal is started before the BOX terminal, the HOST terminal cannot scan the BOX terminal equipment, and the BOX terminal equipment is not available. Therefore, the power-on sequence between the HOST end of the target server and the BOX end of the target server is a power-on sequence of powering on the BOX end of the target server first and then powering on the HOST end of the target server.
And respectively testing the HOST end of the target server and the BOX end of the target server in the power-on sequence between the HOST end of the target server and the BOX end of the target server, and determining a first test result of the target server.
The first test result of the target server comprises a test result of the HOST end of the target server and a test result of the BOX end of the target server.
Optionally, testing is performed on the HOST end of the target server and the BOX end of the target server, and the first test result of the target server is determined to be the test passing at the HOST end of the target server and the BOX end of the target server; and when the HOST end or the BOX end of the target server fails to pass the test, determining that the first test result of the target server is that the test fails.
In step 120, the target server is controlled to disconnect the HOST from the BOX end, so that the target server only includes the HOST end, and the HOST end is tested to determine a second test result of the target server.
The HOST-BOX composite server is integrally divided into two parts, wherein one part is a HOST end, namely a server HOST, and the other part is a BOX end, namely a PCIE switch HOST. The BOX end is connected to the HOST end re-timer card by using a cable, and can be based on the card slot corresponding to the re-timer card of the HOST end disabled, and power supply to the BOX end is closed, so that the HOST end and the BOX end of the target server are disconnected.
It will be appreciated that after controlling the target server to disconnect the HOST side from the BOX side, the target server may be considered as a non-compound server containing only the HOST side. That is, after the BOX end is disconnected, the target server may be regarded as a composite server to be converted into a non-composite server. After the BOX end is disconnected, the test of the state of the target server being the non-compound server can be realized.
After the control target server disconnects the HOST end from the BOX end, the HOST end is tested, and a testing method for the non-composite server in the related method can be used for realizing a testing process of the HOST end. For example, the HOST terminal is powered on for a plurality of times, and whether the corresponding power-on strategy is set or not is monitored after the HOST terminal is powered on.
And after testing the HOST end, determining a second test result of the target server. The second test result may include a HOST test passing and a HOST test failing.
In step 130, after determining a first test result of testing between the HOST end and the BOX end and a second test result of testing the HOST end after the BOX end is disconnected, a power-on test result of the target server is determined based on the obtained first test result and the second test result.
The method comprises the steps of determining that a first test result of a target server is test passing at an HOST end of the target server and a BOX end of the target server; and when the HOST end or the BOX end of the target server fails to pass the test, determining that the first test result of the target server is that the test fails. After the BOX end of the target server is disconnected, the HOST end is tested, and the determined second test result may include that the HOST end test passes and that the HOST end test fails.
After the first test result and the second test result are obtained, if the first test result and the second test result are both test passing, the power-on test result of the target server can be determined to be test passing. And when the first test result and the second test result contain that the test fails, determining that the power-on test result of the target server fails.
According to the server power-on test method provided by the embodiment of the invention, the HOST end and the BOX end of the target server are tested through the power-on sequence between the HOST end and the BOX end of the target server, so that the automatic test process of the composite server is realized, and the test efficiency of the composite machine type is improved. Meanwhile, the target server is controlled to disconnect the HOST end from the BOX end, the HOST end is tested, and after the BOX end is disconnected, the test of the target server can be regarded as the test of a non-composite model, so that the test process of multiple model states of the target server is realized.
In one embodiment, testing a HOST end of a target server and a BOX end of the target server based on a power-on sequence between the HOST end and the BOX end, includes: controlling the BOX end to be electrified, determining whether the BOX end enters a starting state after being electrified, and testing the BOX end; and testing the HOST terminal based on the on-off state of the BOX terminal.
The specific process for testing the HOST end and the BOX end in the power-on sequence between the HOST end of the target server and the target server is as follows: and controlling the BOX end to be electrified, and controlling the BOX end to be started based on an electrifying strategy by the BMC of the BOX end after the BOX end is electrified, so that the starting process of the BOX end is completed. After the BOX end is controlled to be powered on, based on the fact that whether the BOX end enters a starting state after being powered on or not is determined, the BOX end is tested, and whether starting is successfully started or not after the BOX end is powered on is tested.
After the test of the BOX end is completed, the HOST end is tested based on the on-off state of the BOX end. The HOST-BOX compound server has requirements on the power-on start-up of the BOX end and the HOST end, and the power-on start-up of the BOX end is needed first, and then the power-on start-up of the HOST end is needed.
Therefore, based on the on-off state of the control BOX end, the test on the HOST end may be: and controlling the BOX end to be powered off, and testing whether the HOST end is powered on or not after the BOX end is powered off.
According to the server power-on test method provided by the embodiment of the invention, the test process of the BOX end is realized by controlling the BOX end to power on and determining whether the BOX end enters the starting state after being powered on, and the HOST end is tested by controlling the starting state of the BOX end, so that the test process of the HOST end is realized.
In one embodiment, based on controlling the on-off state of the BOX end, testing the HOST end includes: sending a shutdown instruction to the BOX end so that the BOX end enters a shutdown state after receiving the shutdown instruction; controlling the HOST terminal to be electrified, and testing whether the HOST terminal is automatically started after being electrified; and sending a starting command to the HOST end, and testing whether the HOST end executes starting operation based on the starting command.
And sending a shutdown instruction to the BOX end, and entering a shutdown state after the BOX end receives the shutdown instruction. And after the BOX end enters a shutdown state, testing the HOST end.
And after the BOX terminal is in a shutdown state, controlling the HOST terminal to be electrified, and testing whether the HOST terminal is automatically started after the HOST terminal is electrified.
It can be appreciated that based on the power-on sequence of the HOST end and the BOX end, the BOX end needs to be powered on first, and then the HOST end needs to be powered on. When the BOX end is in a shutdown state, the HOST end cannot realize startup operation after being electrified. Therefore, after the BOX terminal is controlled to enter a shutdown state, the HOST terminal can be electrified, whether the HOST terminal is automatically started after the HOST terminal is electrified or not is tested, a transmitter instruction can be actively sent to the HOST terminal, and whether the HOST terminal performs starting operation based on the starting instruction or not is tested.
According to the server power-on test method provided by the embodiment of the invention, after the BOX end is controlled to enter the power-off state, the HOST end is electrified, whether the HOST end is automatically started after being electrified is tested, a transmitter instruction is actively sent to the HOST end, whether the HOST end executes the power-on operation based on the power-on instruction is tested, and the testing process of the HOST end is realized.
In one embodiment, based on controlling the on-off state of the BOX end, testing the HOST end includes: controlling the BOX end to be electrified so as to enable the BOX end to enter a starting state after being electrified; controlling the HOST terminal to be electrified, and testing whether the HOST terminal is automatically started after being electrified; after the HOST end is electrified and is in a power-on state, a power-off instruction is sent to the HOST end so that the HOST end is in a power-off state; and sending a starting-up instruction to the HOST end, and testing whether the HOST end executes starting-up operation based on the starting-up instruction.
When the HOST end is tested, the BOX end is controlled to be electrified, so that the BOX end enters a starting state after being electrified. And after the BOX terminal is started, testing the HOST terminal.
And controlling the HOST terminal to be electrified, and testing whether the HOST terminal is automatically started after the HOST terminal is electrified. It can be appreciated that based on the power-on sequence of the HOST end and the BOX end, the BOX end needs to be powered on first, and then the HOST end needs to be powered on. Because the BOX terminal is in the starting-up state, after the HOST terminal is powered on, the BMC of the HOST terminal judges that the BOX terminal is in the starting-up state and allows the HOST terminal to execute starting-up operation. Therefore, after the HOST terminal is powered on, whether the HOST terminal is automatically started or not can be tested.
After the HOST terminal is powered on and in a power-on state, a power-off instruction can be sent to the HOST terminal, and the HOST terminal is in the power-off state after receiving and executing the power-off instruction. And sending a starting-up instruction to the HOST end, and testing whether the HOST end executes starting-up operation based on the starting-up instruction.
It can be appreciated that based on the power-on sequence of the HOST end and the BOX end, the BOX end needs to be powered on first, and then the HOST end needs to be powered on. And after the BOX end is started and the HOST end is started, controlling the HOST end to be shut down, and after the HOST end is shut down, receiving a starting instruction, so that the starting operation is realized. And sending a starting-up instruction to the HOST terminal, and testing whether the HOST terminal executes starting-up operation based on the starting-up instruction or not, so that the HOST terminal can be tested.
According to the server power-on test method provided by the embodiment of the invention, the HOST terminal is controlled to be powered off after the BOX terminal is powered on. After the HOST terminal is turned off, a starting instruction is received, and starting operation is realized. And sending a starting-up instruction to the HOST terminal, and testing whether the HOST terminal executes starting-up operation based on the starting-up instruction or not, so as to realize the testing process of the HOST terminal.
In one embodiment, further comprising: traversing the power-on strategy of the HOST terminal, and testing the HOST terminal based on different power-on strategies.
When the HOST terminal is tested, the power-on strategy of the HOST terminal is traversed, and the HOST terminal is tested based on different power-on strategies. The power-on policy of the HOST terminal refers to the Chassis policy control of the BMC of the HOST terminal. The passis strategy can be divided into three types previous, always-on, always-off. The Previous policy is a state of the server before power failure, and the server can be restored to the state before power failure after power supply is restored; the always-on strategy is that the server is in a power-on state or a power-off state before power failure, and the server is changed into the power-on state after power restoration; the always-off strategy is that the server is in a power-on state or a power-off state before power failure, and the server is in the power-off state after power restoration and is not automatically started.
When the HOST terminal is tested, different power-on strategies are set in the BMC of the HOST terminal, and under the condition of the different power-on strategies, the HOST terminal is tested.
According to the server power-on method provided by the embodiment of the invention, the HOST terminal is tested by traversing the power-on strategy of the HOST terminal and based on different power-on strategies, so that the testing process of the HOST terminal under the premise of different power-on strategies is realized.
In one embodiment, testing the HOST end to determine a second test result of the target server includes: controlling the HOST end to be electrified, and testing the accuracy of the electrified control of the HOST end; and determining a second test result of the target server based on the accuracy.
After the BOX end is disconnected, the target server only comprising the HOST end can be tested according to the testing method of the non-composite server by considering the target server as the non-composite server in the power-on process of the target server.
In the process of testing the HOST end, controlling the HOST end to power on, and testing the accuracy of power-on control of the HOST end.
For example, the HOST terminal can be electrified for a plurality of times, whether the HOST terminal is automatically started or not after the HOST terminal is electrified is tested, and the accuracy of the power-on control of the HOST terminal is determined.
When determining the accuracy of the power-on control of the HOST end, the accuracy can be compared with a preset accuracy threshold, and the second test result of the target server is determined to be the passing or failing test.
According to the server power-on test method provided by the embodiment of the invention, the HOST end is controlled to be powered on in the process of testing the HOST end, and the accuracy of power-on control of the HOST end is tested, so that the determination of the second test result of the target server is realized.
In one embodiment, controlling the target server to disconnect the HOST end from the BOX end includes: and controlling the target server to disable the slot position of the PCIe adapter card of the HOST end connected with the BOX end, and closing the power supply to the BOX end so as to disconnect the HOST end from the BOX end.
And connecting the HOST end and the BOX end in the target server to a HOST end re-timer card through a cable.
Therefore, when the control target server disconnects the HOST end from the BOX end, the control target server can disable the slot of the PCIe adapter card connected with the BOX end by the HOST end, and close the power supply to the BOX end, so that the target server disconnects the HOST end from the BOX end. The slot of the PCIe transit card in the target server is the slot of the HOST end counter card.
According to the server power-on test method provided by the embodiment of the invention, the target server is controlled to disable the slot position of the PCIe adapter card with the HOST end connected with the BOX end, and the power supply to the BOX end is closed, so that the target server is disconnected with the HOST end, and a foundation is provided for the subsequent realization of the test of the HOST end alone.
The technical scheme provided by the invention is described below by taking a schematic device structure diagram of a server power-on test method provided by the invention as an example, and as shown in fig. 2, the device comprises: HOST end 210 of the target server, BOX end 220 of the target server, PDU module 230, and control machine 240.
The PDU module 230 is referred to as a power distribution unit (Power Distribution Unit), which is a device for managing and distributing power. HOST end 210 and BOX end 220 are connected through a re-timer card and a cable; HOST end 210, BOX end 220, controller 240, PDU module 230 are in the same local area network; the controller 240 monitors the startup states of the HOST end 210 and the BOX end 220 through BMCs of the HOST end 210 and the BOX end 220; PDU module 230 provides power to HOST side 210, BOX side 220 and controller 240; control engine 240 turns on or off power to HOST side 210 and BOX side 220 via control PDU module 230; the controller controls the disabling and enabling of HOST 210 to the re card PCIE slot of HOST 210.
HOST end 210 and BOX end 220 are normally connected, and BOX end 220 is controlled to start up HOST end 210 first and then start up, HOST end 210 identifies BOX end 220 after entering the system; setting the Chassis power-on strategy of HOST end 210 as any one of previous, always-off and always-on;
the control machine 240 controls the PDU module 230 to turn off the power supply to the HOST end 210 and the BOX end 220 to power off the HOST end 210 and the BOX end 220;
the controller 240 controls the PDU module 230 to turn on the power supply to the BOX end 220, firstly supplies power to the BOX end 220, monitors whether BMC of the BOX end 220 is activated, monitors the start-up state of the BOX end 220 through the BMC of the BOX end 220 after BMC of the BOX end 220 is activated, and remotely issues a shutdown instruction through the BMC of the BOX end 220 after the start-up of the BOX end 220 is detected, so that the BOX end 220 is in the shutdown state;
the controller 240 controls the PDU module 230 to turn on the power supply to the HOST end 210, to supply the power to the HOST end 210, and to monitor whether the BMC of the HOST end 210 is activated, and after the BMC of the HOST end 210 is monitored, the controller 240 monitors the power-on state of the HOST end 210 through the BMC of the HOST end 210 for 10 minutes, and records the time t 1;
the controller 240 issues a startup command through the BMC of the HOST end 210, checks the startup state of the HOST end 210 10s after the issue of the command, repeatedly executes 30 times, and records a startup state check log;
The control machine 240 controls the PDU module 230 to turn off the power supply to the HOST end 210 and the BOX end 220 to power off the HOST end 210 and the BOX end 220;
the control machine 240 controls the PDU module 230 to turn on the power supply to the BOX terminal 220, to supply power to the BOX terminal 220 first, and to monitor whether BMC of the BOX terminal 220 is activated or not, and to monitor the start-up state of the BOX terminal 220 after BMC of the BOX terminal 220 is activated;
when it is monitored that the BOX terminal 220 is turned on, the controller 240 controls the PDU module 230 to turn on the power supply to the HOST terminal 210, power the HOST terminal 210, monitor whether the BMC of the HOST terminal 210 is activated, and record the time t2 after it is monitored that the BMC of the HOST terminal 210 is activated; and continuously monitoring the starting-up state of HOST end 210, and recording time t3 after starting up;
after monitoring that HOST end 210 is powered on, the controller issues a power-off instruction to control HOST end 210 to be powered off through the BMC of HOST end 210. After monitoring that HOST end 210 is powered off, controller 240 controls BMC of HOST end 210 to issue a power-on command, and detects the power-on state of HOST end 210 after 10s, and repeats the operation for testing many times;
the above-described test steps are repeated by traversing the power-on policy of the pass at HOST end 210.
Fig. 3 is a schematic structural diagram of a server power-on testing device provided by the present invention, and as shown in fig. 3, the device includes a composite testing module 310, a non-composite testing module 320, and a result determining module 330.
And the compound test module 310 is configured to test the HOST end and the BOX end of the target server based on a power-on sequence between the HOST end and the BOX end of the target server, and determine a first test result of the target server, where the target server is a compound server including the HOST end and the BOX end.
The HOST-BOX composite server is integrally divided into two parts, wherein one part is a HOST end, namely a server HOST, and the other part is a BOX end, namely a PCIE switch HOST. A hard disk or a display card can be installed in the BOX end and connected to the HOST end re-timer card by using a cable, and then the device of the BOX end can be provided for the HOST end to use.
The HOST-BOX compound server has requirements on the power-on start-up of the BOX end and the HOST end, and the power-on start-up of the BOX end is needed first, and then the power-on start-up of the HOST end is needed. If the HOST terminal is started before the BOX terminal, the HOST terminal cannot scan the BOX terminal equipment, and the BOX terminal equipment is not available. Therefore, the power-on sequence between the HOST end of the target server and the BOX end of the target server is a power-on sequence of powering on the BOX end of the target server first and then powering on the HOST end of the target server.
And respectively testing the HOST end of the target server and the BOX end of the target server in the power-on sequence between the HOST end of the target server and the BOX end of the target server, and determining a first test result of the target server.
The first test result of the target server comprises a test result of the HOST end of the target server and a test result of the BOX end of the target server.
Optionally, testing is performed on the HOST end of the target server and the BOX end of the target server, and the first test result of the target server is determined to be the test passing at the HOST end of the target server and the BOX end of the target server; and when the HOST end or the BOX end of the target server fails to pass the test, determining that the first test result of the target server is that the test fails.
And the non-composite test module 320 is configured to control the target server to disconnect the HOST end from the BOX end, test the HOST end, and determine a second test result of the target server.
The HOST-BOX composite server is integrally divided into two parts, wherein one part is a HOST end, namely a server HOST, and the other part is a BOX end, namely a PCIE switch HOST. The BOX end is connected to the HOST end re-timer card by using a cable, and can be based on the card slot corresponding to the re-timer card of the HOST end disabled, and power supply to the BOX end is closed, so that the HOST end and the BOX end of the target server are disconnected.
It will be appreciated that after controlling the target server to disconnect the HOST side from the BOX side, the target server may be considered as a non-compound server containing only the HOST side. That is, after the BOX end is disconnected, the target server may be regarded as a composite server to be converted into a non-composite server. After the BOX end is disconnected, the test of the state of the target server being the non-compound server can be realized.
After the control target server disconnects the HOST end from the BOX end, the HOST end is tested, and a testing method for the non-composite server in the related method can be used for realizing a testing process of the HOST end. For example, the HOST terminal is powered on for a plurality of times, and whether the corresponding power-on strategy is set or not is monitored after the HOST terminal is powered on.
And after testing the HOST end, determining a second test result of the target server. The second test result may include a HOST test passing and a HOST test failing.
And a result determining module 330, configured to determine a power-on result of the target server based on the first test result and the second test result.
After a first test result of testing the HOST end and the BOX end and a second test result of testing the HOST end after the BOX end is disconnected are determined, a power-on test result of the target server is determined based on the obtained first test result and the second test result.
The method comprises the steps of determining that a first test result of a target server is test passing at an HOST end of the target server and a BOX end of the target server; and when the HOST end or the BOX end of the target server fails to pass the test, determining that the first test result of the target server is that the test fails. After the BOX end of the target server is disconnected, the HOST end is tested, and the determined second test result may include that the HOST end test passes and that the HOST end test fails.
After the first test result and the second test result are obtained, if the first test result and the second test result are both test passing, the power-on test result of the target server can be determined to be test passing. And when the first test result and the second test result contain that the test fails, determining that the power-on test result of the target server fails.
According to the server power-on testing device provided by the embodiment of the invention, the HOST end and the BOX end of the target server are tested through the power-on sequence between the HOST end and the BOX end of the target server, so that the automatic testing process of the composite server is realized, and the testing efficiency of the composite machine type is improved. Meanwhile, the target server is controlled to disconnect the HOST end from the BOX end, the HOST end is tested, and after the BOX end is disconnected, the test of the target server can be regarded as the test of a non-composite model, so that the test process of multiple model states of the target server is realized.
In one embodiment, the composite test module 310 is specifically configured to:
based on a power-on sequence between a HOST end of a target server and a BOX end of the target server, testing the HOST end and the BOX end comprises:
controlling the BOX end to be electrified, and testing the BOX end based on whether the BOX end enters a starting state after being electrified;
and testing the HOST terminal based on the on-off state of the BOX terminal.
In one embodiment, the composite test module 310 is further specifically configured to:
based on the on-off state of the BOX terminal, testing the HOST terminal comprises the following steps:
sending a shutdown instruction to the BOX end so that the BOX end enters a shutdown state after receiving the shutdown instruction;
controlling the HOST terminal to be electrified, and testing whether the HOST terminal is automatically started after being electrified;
and sending a starting command to the HOST end, and testing whether the HOST end executes starting operation based on the starting command.
In one embodiment, the composite test module 310 is further specifically configured to:
based on the on-off state of the BOX terminal, testing the HOST terminal comprises the following steps:
controlling the BOX end to be electrified so as to enable the BOX end to enter a starting state after being electrified;
Controlling the HOST terminal to be electrified, and testing whether the HOST terminal is automatically started after being electrified;
after the HOST end is electrified and is in a power-on state, a power-off instruction is sent to the HOST end so that the HOST end is in a power-off state;
and sending a starting-up instruction to the HOST end, and testing whether the HOST end executes starting-up operation based on the starting-up instruction.
In one embodiment, the composite test module 310 is further specifically configured to:
further comprises:
traversing the power-on strategy of the HOST terminal, and testing the HOST terminal based on different power-on strategies.
In one embodiment, the non-composite test module 320 is specifically configured to:
testing the HOST end to determine a second test result of the target server, wherein the second test result comprises:
controlling the HOST end to be electrified, and testing the accuracy of the electrified control of the HOST end;
and determining a second test result of the target server based on the accuracy.
In one embodiment, the non-composite test module 320 is further specifically configured to:
and controlling the target server to disconnect the HOST end from the BOX end, including:
and controlling the target server to disable the slot of the high-speed serial computer expansion bus standard PCIe adapter card of which the HOST end is connected with the BOX end, and closing the power supply to the BOX end so as to disconnect the HOST end from the BOX end.
Fig. 4 illustrates a physical schematic diagram of an electronic device, as shown in fig. 4, which may include: processor 410, communication interface (Communications Interface) 420, memory 430 and communication bus 440, wherein processor 410, communication interface 420 and memory 430 communicate with each other via communication bus 440. Processor 410 may invoke logic instructions in memory 430 to perform a server power-on method comprising:
based on the power-on sequence between an HOST end of a target server and a BOX end of the target server, testing the HOST end and the BOX end, and determining a first test result of the target server, wherein the target server is a compound server comprising the HOST end and the BOX end;
the target server is controlled to disconnect the HOST end from the BOX end, the HOST end is tested, and a second test result of the target server is determined;
and determining a power-on result of the target server based on the first test result and the second test result.
Further, the logic instructions in the memory 430 described above may be implemented in the form of software functional units and may be stored in a computer-readable storage medium when sold or used as a stand-alone product. Based on this understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
In another aspect, the present invention also provides a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions which, when executed by a computer, enable the computer to perform a method of powering up a server as provided by the methods described above, the method comprising:
based on the power-on sequence between an HOST end of a target server and a BOX end of the target server, testing the HOST end and the BOX end, and determining a first test result of the target server, wherein the target server is a compound server comprising the HOST end and the BOX end;
the target server is controlled to disconnect the HOST end from the BOX end, the HOST end is tested, and a second test result of the target server is determined;
and determining a power-on result of the target server based on the first test result and the second test result.
In yet another aspect, the present invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, is implemented to perform the above provided server power-up method, the method comprising:
Based on the power-on sequence between an HOST end of a target server and a BOX end of the target server, testing the HOST end and the BOX end, and determining a first test result of the target server, wherein the target server is a compound server comprising the HOST end and the BOX end;
the target server is controlled to disconnect the HOST end from the BOX end, the HOST end is tested, and a second test result of the target server is determined;
and determining a power-on result of the target server based on the first test result and the second test result.
The apparatus embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
From the above description of the embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus necessary general hardware platforms, or of course may be implemented by means of hardware. Based on this understanding, the foregoing technical solution may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method described in the respective embodiments or some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; although the 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: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1. A method for powering up a server, the method comprising:
based on the power-on sequence between an HOST end of a target server and a BOX end of the target server, testing the HOST end and the BOX end, and determining a first test result of the target server, wherein the target server is a compound server comprising the HOST end and the BOX end;
the target server is controlled to disconnect the HOST end from the BOX end, the HOST end is tested, and a second test result of the target server is determined;
and determining a power-on result of the target server based on the first test result and the second test result.
2. The server power-up method of claim 1, wherein the testing the HOST end and the BOX end based on a power-up sequence between the HOST end of a target server and the BOX end of the target server comprises:
controlling the BOX end to be electrified, and testing the BOX end based on whether the BOX end enters a starting state after being electrified;
and testing the HOST terminal based on the on-off state of the BOX terminal.
3. The server power-on method according to claim 2, wherein the testing the HOST terminal based on controlling the on-off state of the BOX terminal includes:
sending a shutdown instruction to the BOX end so that the BOX end enters a shutdown state after receiving the shutdown instruction;
controlling the HOST terminal to be electrified, and testing whether the HOST terminal is automatically started after being electrified;
and sending a starting command to the HOST end, and testing whether the HOST end executes starting operation based on the starting command.
4. The server power-on method according to claim 2, wherein the testing the HOST terminal based on controlling the on-off state of the BOX terminal includes:
controlling the BOX end to be electrified so as to enable the BOX end to enter a starting state after being electrified;
controlling the HOST terminal to be electrified, and testing whether the HOST terminal is automatically started after being electrified;
after the HOST end is electrified and is in a power-on state, a power-off instruction is sent to the HOST end so that the HOST end is in a power-off state;
and sending a starting-up instruction to the HOST end, and testing whether the HOST end executes starting-up operation based on the starting-up instruction.
5. The server power-on method as set forth in claim 2, further comprising:
Traversing the power-on strategy of the HOST terminal, and testing the HOST terminal based on different power-on strategies.
6. The method for powering up a server according to claim 1, wherein the testing the HOST end to determine the second test result of the target server includes:
controlling the HOST end to be electrified, and testing the accuracy of the electrified control of the HOST end;
and determining a second test result of the target server based on the accuracy.
7. The server power-on method according to claim 1, wherein the controlling the target server to disconnect the HOST end from the BOX end includes:
and controlling the target server to disable the slot of the high-speed serial computer expansion bus standard PCIe adapter card of which the HOST end is connected with the BOX end, and closing the power supply to the BOX end so as to disconnect the HOST end from the BOX end.
8. A server power-on test device, comprising:
the compound test module is used for testing the HOST end and the BOX end of the target server based on the power-on sequence between the HOST end and the BOX end of the target server, and determining a first test result of the target server, wherein the target server is a compound server comprising the HOST end and the BOX end;
The non-composite test module is used for controlling the target server to disconnect the HOST end from the BOX end, testing the HOST end and determining a second test result of the target server;
and the result determining module is used for determining the power-on result of the target server based on the first test result and the second test result.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method for powering on a server according to any of claims 1 to 7 when executing the computer program.
10. A non-transitory computer readable storage medium having stored thereon a computer program, which when executed by a processor implements a method of server power-up according to any of claims 1 to 7.
CN202310429729.XA 2023-04-20 2023-04-20 Server power-on test method and device Pending CN116701071A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310429729.XA CN116701071A (en) 2023-04-20 2023-04-20 Server power-on test method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310429729.XA CN116701071A (en) 2023-04-20 2023-04-20 Server power-on test method and device

Publications (1)

Publication Number Publication Date
CN116701071A true CN116701071A (en) 2023-09-05

Family

ID=87834641

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310429729.XA Pending CN116701071A (en) 2023-04-20 2023-04-20 Server power-on test method and device

Country Status (1)

Country Link
CN (1) CN116701071A (en)

Similar Documents

Publication Publication Date Title
CN101542444B (en) Security features in interconnect centric architectures
US7275182B2 (en) Method and apparatus for correlating UPS capacity to system power requirements
CN112462920B (en) Power supply control method, device, server and storage medium
US11099961B2 (en) Systems and methods for prevention of data loss in a power-compromised persistent memory equipped host information handling system during a power loss event
CN110445638B (en) Switch system fault protection method and device
CN115686935A (en) Data backup method, computer device and storage medium
CN115617550A (en) Processing device, control unit, electronic device, method, and computer program
CN114816022A (en) Server power supply abnormity monitoring method, system and storage medium
CN116701071A (en) Server power-on test method and device
CN115795568A (en) Liquid cooling server liquid leakage protection method, device, equipment and storage medium
CN111352662A (en) Server starting sequence control method, system, terminal and storage medium
CN109960638A (en) BMC starts reason recording method, system, device and readable storage medium storing program for executing
CN114528555A (en) ARM server firmware safety check starting management method, device and medium
CN115098305A (en) Mainboard standby power switching method and device, electronic equipment and storage medium
CN113778732A (en) Fault positioning method and device for service board card
JP3231561B2 (en) Backup memory control method
CN102325040A (en) Power management method based on MicroTCA system
CN112463443A (en) Server with AC LOSS function and method for automatically powering on and starting up after abnormal power failure
CN117435255A (en) System starting method and device, storage medium and electronic device
CN114089824B (en) Hot plug part protection method and device
CN114328044B (en) AIC+box topology testing method, device and system
CN112084085B (en) System outage recording method
CN117112273A (en) Fault state management and control method, device, equipment and medium
CN108170247A (en) BMC power loss recovery method and apparatus
CN116627712A (en) Method and device for detecting memory faults of server, electronic equipment and storage medium

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