CN112084085B - System outage recording method - Google Patents

System outage recording method Download PDF

Info

Publication number
CN112084085B
CN112084085B CN201910516122.9A CN201910516122A CN112084085B CN 112084085 B CN112084085 B CN 112084085B CN 201910516122 A CN201910516122 A CN 201910516122A CN 112084085 B CN112084085 B CN 112084085B
Authority
CN
China
Prior art keywords
power supply
power
supply unit
unit
information
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.)
Active
Application number
CN201910516122.9A
Other languages
Chinese (zh)
Other versions
CN112084085A (en
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.)
Mitac Computer Shunde Ltd
Mitac Computing Technology Corp
Original Assignee
Mitac Computer Shunde Ltd
Mitac Computing Technology Corp
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 Mitac Computer Shunde Ltd, Mitac Computing Technology Corp filed Critical Mitac Computer Shunde Ltd
Priority to CN201910516122.9A priority Critical patent/CN112084085B/en
Publication of CN112084085A publication Critical patent/CN112084085A/en
Application granted granted Critical
Publication of CN112084085B publication Critical patent/CN112084085B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3058Monitoring arrangements for monitoring environmental properties or parameters of the computing system or of the computing system component, e.g. monitoring of power, currents, temperature, humidity, position, vibrations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3466Performance evaluation by tracing or monitoring
    • G06F11/3476Data logging

Abstract

A system power-off recording method is executed by a control unit for storing a plurality of pieces of recording information respectively related to a plurality of power supply units, and comprises the following steps: (A) Reading the current power supply states of the power supply units; (B) Judging whether a power supply unit is in a started power supply state or not; (C) After judging that all the power supply units are in a non-started power supply state, repeating the step (A) until the residual power of all the power supply units is exhausted; (D) After receiving a restarting instruction, judging whether the restarting instruction is related to AC power-off restarting or not; (E) After judging that the restarting instruction is related to the AC power-off restarting, judging whether the recorded information indicates logged power-off information for each piece of recorded information; and (F) generating and logging power-off information for each record information determined to indicate that the power-off information is not logged in.

Description

System outage recording method
[ field of technology ]
The present invention relates to a system power-off recording method, and more particularly to a system power-off recording method for recording power-off of a power supply.
[ background Art ]
The baseboard management controller (Baseboard Management Controller, BMC) of the server monitors the operation status of the server and accumulates various system events occurring in the server in a system event log, for example, the server sometimes shuts down the server under the condition that the complete normal shutdown procedure cannot be completed due to the AC interruption received by the power supply (Power Supply Unit, PSU), and the baseboard management controller (Baseboard Management Controller, BMC) of the server periodically monitors the power supply status of the PSU to confirm whether the AC interruption received by the PSU is in the power supply status of no power supply, and further records AC interruption event information before the PSU does not provide system power at all and the system cannot continue to operate and is completely shut down, that is, records the AC interruption event information related to the AC interruption event of the PSU in the power supply status of no power supply status due to the received AC interruption.
However, the quality of each factory-brand PSU is different in specification design or the quality of each factory-brand PSU is different, the server architecture corresponding to the different factory-brand PSUs is also slightly different in the records of the system event information related to the power supply state of the PSU in the system event log recorded by the BMC, especially in the condition that the PSU generates an ac interruption event (for example, a power plug drops, so that the PSU no longer receives the supply of ac power), because the residual power time of each factory-brand PSU, which can continuously provide the system power by the residual power stored in the interior after the received ac interruption event, is different, the system can be shut down completely because the PSU cannot continuously provide the power before the BMC finishes recording the related information of the ac interruption event according to the power supply state of the PSU, and the BMC does not have the related information of the ac interruption event recorded before the system is shut down completely, the existing ac interruption event recording method is difficult to ensure that the ac interruption event happens each time, the ac interruption event can be completely recorded, maintenance personnel can take place completely after the ac interruption event is faced with the fault, and other error in the system is likely to be replaced by other components due to the fault in the fault log, and the fault is not caused by the fault in the service components.
[ invention ]
The invention aims to provide a system power-off recording method capable of completely recording the power-off condition of a power supply.
In order to solve the above-mentioned problems, the present invention provides a system power-off recording method, which is executed by a control unit, the control unit is electrically connected to a processing unit, a storage unit, and a plurality of power supply units, the control unit has a memory, the memory stores a plurality of records of information related to the plurality of power supply units, each record of information indicates at least whether the power-off information of the related power supply unit has been logged into the storage unit, each power supply unit is in one of an activated power-on state and an inactivated power-on state, when in the activated power-on state, each power supply unit converts the received ac power to supply, when in the inactivated power-on state, each power supply unit does not convert the received ac power to supply, if the power supply still has residual power inside, the power supply is supplied with the residual power stored inside, the system power-off recording method includes a step (a), a step (B), a step (C), a step (D), a step (E), and a step (F).
In the step (a), the control unit reads the current power supply states of the plurality of power supply units.
In the step (B), the control unit determines whether a power supply unit is in a started power supply state according to the read result of the step (a).
In the step (C), the control unit repeats the step (a) until the remaining power of all the power supply units is exhausted after determining that all the power supply units are in the power supply state of not being started.
In the step (D), the control unit determines whether the restart command is related to the ac power outage restart after receiving a restart command.
In the step (E), after determining that the restart command is related to the ac power outage restart, the control unit determines, for each record information, whether the record information indicates that the power outage information of the associated power supply unit has been logged into the storage unit.
In the step (F), the control unit generates and registers the power-off information of the power supply unit associated with the record information to the storage unit for each record information indicating that the power-off information of the power supply unit associated with the record information is not registered.
Another technical problem to be solved by the present invention is to provide a system power-off recording method capable of completely recording the power-off condition of a power supply.
In order to solve the above-mentioned problems, the present invention provides a system power-off recording method, which is executed by a control unit, the control unit is electrically connected to a processing unit, a storage unit, and a power supply unit, the control unit has a memory, the memory stores a record information related to the power supply unit, the record information indicates at least whether the power-off information of the power supply unit has been logged into the storage unit, each power supply unit is in one of an activated power-on state and an inactivated power-on state, each power supply unit converts a received ac power to supply power when in the activated power-on state, and when at least one of the power supply units has residual power, the power supply unit having residual power is supplied with the residual power stored therein, the system power-off recording method includes a step (a), a step (B), a step (C), a step (D), a step (E), and a step (F).
In the step (a), the control unit reads the current power supply state of the power supply unit.
In the step (B), the control unit determines whether the power supply unit is in a started power supply state.
In the step (C), the control unit repeats the step (a) until the remaining power of the power supply unit is exhausted after determining that the power supply unit is in the power supply state of not being started.
Compared with the prior art, the system power-off recording method of the invention does not record power-off information until all the power supply units are exhausted after the control unit judges that all the power supply units are in the power supply state without starting, and registers the power-off information to the storage unit after judging that the restarting instruction is related to the AC power-off restarting, so as to ensure that the power-off information is completely recorded.
[ description of the drawings ]
Other features and advantages of the present invention will become apparent from the following description of the embodiments with reference to the drawings, in which:
FIG. 1 is a block diagram illustrating a computer system for implementing the system power down recording method of the present invention;
FIG. 2 is a flowchart illustrating a monitoring power-off recording procedure according to a first embodiment of the system power-off recording method of the present invention;
FIG. 3 is a flowchart illustrating a restart power-down recording procedure of the first embodiment of the system power-down recording method of the present invention;
FIG. 4 is a flowchart illustrating a monitoring power-off recording procedure according to a second embodiment of the system power-off recording method of the present invention; a kind of electronic device with high-pressure air-conditioning system
FIG. 5 is a flowchart illustrating a restart power-down recording procedure of the second embodiment of the system power-down recording method of the present invention.
[ detailed description ] of the invention
Before the present invention is described in detail, it should be noted that in the following description, like components are denoted by the same reference numerals.
Referring to fig. 1, a computer system 100 for implementing a first embodiment of the system power-off recording method of the present invention is illustrated, the computer system 100 includes a processing unit 12, a storage unit 11, N power supply units 13 (Power supply unit, PSU), and a control unit 14, where N >1. The control unit 14 is electrically connected to the processing unit 12, the storage unit 11 and the plurality of power supply units 13, wherein each power supply unit 13 is in one of a started power supply state and a non-started power supply state, and when in the started power supply state, each power supply unit 13 converts the received alternating current to supply power; when in the non-activated power supply state, each power supply unit 13 does not convert the received alternating current to supply power, wherein when each power supply unit 13 is in the non-activated power supply state, if at least one power supply unit 13 has residual power, the at least one power supply unit 13 continues to supply power by the residual power stored in the inside. The control unit 14 has a memory 141, the memory 141 stores a plurality of record information related to the power supply units 13, and a count value, each record information indicates at least whether the power-off information of the related power supply unit 13 is logged into the storage unit 11, each record information indicates whether the related power supply unit 13 is in a started power-on state, and it should be noted that if the record information indicates that the power-off information of the related power supply unit 13 is logged into the storage unit 11, it indicates that the related power supply unit 13 has been powered off by ac, that is, that the related power supply unit 13 has not received ac or that the related power supply unit 13 has been powered off by ac before the ac power-off is restarted. In this embodiment, the processing unit 12 is, for example, a System on a Chip (SoC), wherein the SoC includes a central processing unit (Central Processing Unit, CPU) and a platform path controller (Platform Controller Hub, PCH), the control unit 14 is, for example, a baseboard management controller (Baseboard Management Controller, BMC), the Memory 141 is, for example, a Flash Memory (Flash Memory), and for each record information, the record information includes a log status flag, and when the record information indicates that the power-off information of the power supply unit 13 is logged in the storage unit 11, the flag value of the log status flag is, for example, 1; when the record information indicates that the power-off information of the related power supply unit 13 is not logged into the storage unit 11, the flag value of the login status flag is, for example, 0, and for each power supply information, the power supply information includes a power supply status flag, and when the power supply information indicates that the related power supply unit 13 is in the activated power supply status, the flag value of the power supply status flag is, for example, 1; when the power supply information indicates that the power supply unit 13 is in a power supply state that is not started, the flag value of the power supply state flag is, for example, 0, and the count value is preset to 0, it should be noted that each record information may also indicate related information of other hardware except the power supply unit 13, which is not limited thereto.
The first embodiment of the system power-off recording method of the present invention comprises a monitor power-off recording program 2 and a restart power-off recording program 3, wherein the monitor power-off recording program 2 and the restart power-off recording program 3 are performed after the control unit 14 is ready to complete.
Referring to fig. 2, the monitoring power-off recording process 2 of the first embodiment of the system power-off recording method includes steps 201 to 214, and the steps included in the monitoring power-off recording process 2 are described in detail below.
In step 201, the control unit 14 makes i=1 to indicate that the 1 st power supply unit 13 is currently corresponding initially, that is, at the start of execution of the monitoring power-off recording program 2.
In step 202, the control unit 14 reads the current power supply states of the N power supply units 13.
In step 203, the control unit 14 determines whether the ith power supply unit 13 is in a started power supply state according to the read result of step 202. When the control unit 14 determines that the i-th power supply unit 13 is in the power supply state of not being started, the flow proceeds to step 204; when the control unit 14 determines that the i-th power supply unit 13 is in the started power supply state, the flow proceeds to step 205.
In step 204, the control unit 14 determines whether the record information associated with the ith power supply unit 13 indicates that the power-off information of the ith power supply unit 13 is logged into the storage unit 11. When the control unit 14 determines that the power-off information of the ith power supply unit 13 is not registered in the storage unit 11 (i.e. when the flag value of the registration status flag is 0), the flow proceeds to step 207; when the control unit 14 determines that the power-off information of the ith power supply unit 13 is logged into the storage unit 11 (i.e. when the flag value of the login status flag is 1), the flow proceeds to step 213.
In step 205, the control unit 14 determines whether the power supply information related to the ith power supply unit 13 indicates that the ith power supply unit 13 is in a power supply state of not being activated. When the control unit 14 determines that the power supply information indicates that the ith power supply unit 13 is in a power supply state (i.e. the flag value of the power supply state flag is 0), the flow proceeds to step 206; when the control unit 14 determines that the power supply information indicates that the ith power supply unit 13 is in the activated power supply state (i.e. the flag value of the power supply state flag is 1), the flow proceeds to step 212.
In step 206, the control unit 14 updates the power supply information related to the ith power supply unit 13 and the record information related to the ith power supply unit 13, such that the power supply information indicates that the ith power supply unit 13 is in the activated power supply state (i.e. updates the flag value of the power supply state flag to 1), and the record information related to the ith power supply unit 13 indicates that the power-off information of the ith power supply unit 13 is not logged in (i.e. updates the flag value of the login state flag to 0).
In step 207, the control unit 14 updates the count value and the power supply information related to the ith power supply unit 13, so that the count value is incremented by one, and the power supply information indicates that the ith power supply unit 13 is in a power supply state that is not started.
In step 208, the control unit 14 determines whether there is a power supply unit 13 in a power supply state started according to the read result in step 202. When the control unit 14 determines that there is a power supply state in which the power supply unit 13 is started, the flow proceeds to step 209; when the control unit 14 determines that all the power supply units 13 are in the power supply state without starting, the steps 202 to 207 are repeated until the residual power of all the power supply units 13 is exhausted, that is, all the N power supply units 13 have no residual power. It is noted that this step is designed to avoid incomplete power down information caused by the exhaustion of residual power before the power down information is not completely recorded.
In step 209, the control unit 14 determines whether the count value is greater than a threshold. When the control unit 14 determines that the count value is greater than the threshold, the flow proceeds to step 210; when the control unit 14 determines that the count value is not greater than the threshold, steps 202 to 208 are repeated until the count value is greater than the threshold. It should be noted that this step is designed to avoid the situation that the ac power received by the other power supply units 13 in the activated power supply state is also powered off so that all the power supply units 13 are simultaneously in the deactivated power supply state. It should be noted that, in the present embodiment, the step 208 is performed before the step 209, and in other embodiments, the step 208 may be performed after or simultaneously with the step 209, which is not limited thereto.
In step 210, the control unit 14 generates and registers the power-off information related to the ith power supply unit 13 to the storage unit 11.
In step 211, the control unit 14 updates the record information related to the ith power supply unit 13 so that the record information indicates the power-off information registered in the ith power supply unit 13.
In step 212, the control unit 14 initializes the count value.
In step 213, the control unit 14 determines whether the i-th power supply unit 13 is the N-th power supply unit 13, i.e., whether i=n. When it is determined that the ith power supply unit 13 is the nth power supply unit 13, step 201 is re-executed to re-monitor the N power supply units 13 until the computer system 100 is completely powered off; when it is determined that the i-th power supply unit 13 is not the N-th power supply unit 13, the flow proceeds to step 214.
In step 214, the control unit 14 sets i to i+1 for the (i+1) th power supply unit 13, and repeats steps 202 to 213 until i=n.
Referring to fig. 3, the restart power-down recording procedure 3 of the first embodiment of the system power-down recording method includes steps 301 to 314, and the steps included in the restart power-down recording procedure 3 are described in detail below.
In step 301, the control unit 14 receives a restart instruction.
In step 302, the control unit 14 determines whether the restart command is related to an ac power-off restart, wherein the ac power-off restart indicates that the power supply unit 13 no longer receives ac power, and after the computer system 100 is completely powered off, at least one of the power supply units 13 again receives ac power, and the computer system 100 is restarted again according to a restart command. When the control unit 14 determines that the restart command is related to ac power outage restart, the flow proceeds to step 303; when the control unit 14 determines that the restart command is not related to ac power outage restart, the flow proceeds to step 308.
In step 303, the control unit 14 is specific to the 1 st power supply unit 13, i.e., i=1.
In step 304, the control unit 14 determines whether the record information related to the ith power supply unit 13 indicates that the power-off information of the ith power supply unit 13 is logged into the storage unit 11. When the control unit 14 determines that the power-off information of the ith power supply unit 13 is not registered in the storage unit 11, the flow proceeds to step 305; when the control unit 14 determines that the power-off information of the ith power supply unit 13 is registered in the storage unit 11, the flow proceeds to step 306.
In step 305, the control unit 14 generates power-off information related to the ith power supply unit 13 to the storage unit 11.
In step 306, the control unit 14 determines whether the i-th power supply unit 13 is the N-th power supply unit 13, that is, whether i=n. When it is determined that the i-th power supply unit 13 is not the N-th power supply unit 13, the flow proceeds to step 307; when it is determined that the i-th power supply unit 13 is the N-th power supply unit 13, the flow proceeds to step 308.
In step 307, the control unit 14 sets i to i+1 for the (i+1) th power supply unit 13, and repeats step 304 until i=n.
In step 308, the control unit 14 is specific to the 1 st power supply unit 13, that is, j=1.
In step 309, the control unit 14 reads the current power supply state of the jth power supply unit 13.
In step 310, the control unit 14 determines whether the jth power supply unit 13 is in the activated power supply state according to the read result of step 309. When the control unit 14 determines that the jth power supply unit 13 is in the started power supply state, the flow proceeds to step 311; when the control unit 14 determines that the jth power supply unit 13 is in the power supply state of not being started, the flow proceeds to step 312.
In step 311, the control unit 14 updates the record information associated with the jth power supply unit 13, such that the record information indicates that the power-off information of the jth power supply unit 13 is not registered in the storage unit 11 (i.e. updates the flag value of the registration status flag to 0), and registers the power-off information of the jth power supply unit 13 in the storage unit 11.
In step 312, the control unit 14 updates the record information associated with the jth power supply unit 13, such that the record information indicates that the power-off information of the jth power supply unit 13 has been logged into the storage unit 11 (i.e. updates the flag value of the login status flag to 1), and logs the power-off information of the jth power supply unit 13 into the storage unit 11.
In step 313 after step 311 or step 312, the control unit 14 determines whether the jth power supply unit 13 is the nth power supply unit 13, i.e., determines whether j=n. When it is determined that the jth power supply unit 13 is not the nth power supply unit 13, the flow proceeds to step 314; when the j-th power supply unit 13 is determined to be the N-th power supply unit 13, the flow proceeds to the monitor power-off recording process 2.
In step 314, the control unit 14 sets i to j+1 for the (j+1) th power supply unit 13, and repeats step 309 until j=n.
A second embodiment of the system power-off recording method of the present invention is implemented by a computer system 100 similar to that shown in fig. 1, which is different only in that: the computer system 100 includes a number of power supply units 13 (i.e., n=1), the memory 141 stores a record information related to the power supply units 13, and a power supply information related to the power supply units 13, wherein the record information indicates whether a power-off information of the power supply units 13 is logged in the storage unit 11, and the power supply information indicates whether the power supply units 13 are in a power-on state. The second embodiment of the system power-off recording method includes a monitor power-off recording process 4 and a restart power-off recording process 5,
referring to fig. 4, the monitoring power-off recording program 4 of the second embodiment of the system power-off recording method includes steps 401 to 405, and the steps included in the monitoring power-off recording program 4 are described in detail below.
In step 401, the control unit 14 reads the current power supply state of the power supply unit 13.
In step 402, the control unit 14 determines whether the power supply unit 13 is in a started power supply state. When the control unit 14 determines that the power supply unit 13 is in the power supply state of not being started, the flow proceeds to step 403; when the control unit 14 determines that the power supply unit 13 is in the started power supply state, the flow proceeds to step 404.
In step 403, the control unit 14 updates the power supply information of the power supply unit 13, so that the power supply information indicates that the power supply unit 13 is in a power supply state that is not started, and re-executes step 401 to re-monitor the power supply unit 13 until the computer system 100 is completely powered off.
In step 404, the control unit 14 determines whether the power supply information of the power supply unit 13 indicates that the power supply unit 13 is in a power supply state that is not activated. When the control unit 14 determines that the power supply information indicates that the power supply unit 13 is in a power supply state that is not started, the flow proceeds to step 405; when the control unit 14 determines that the power supply information indicates that the power supply unit 13 is in the activated power supply state, step 401 is re-executed.
In step 405, the control unit 14 updates the power supply information of the power supply unit 13 and the record information of the power supply unit 13, so that the power supply information indicates that the power supply unit 13 is in a power supply state of being started, and the record information of the power supply unit 13 indicates that the power-off information of the power supply unit 13 is not logged in, and step 401 is re-executed.
Referring to fig. 5, the restart power-down recording procedure 5 of the second embodiment of the system power-down recording method includes steps 501-508, and the steps included in the restart power-down recording procedure 5 are described in detail below.
In step 501, the control unit 14 receives a restart instruction.
In step 502, the control unit 14 determines whether the restart command is related to ac power outage restart. When the control unit 14 determines that the restart command is related to ac power outage restart, the flow proceeds to step 503; when the control unit 14 determines that the restart command is not related to ac power outage restart, the flow proceeds to step 505.
In step 503, the control unit 14 determines whether the record information of the power supply unit 13 indicates the power-off information registered in the power supply unit 13 to the storage unit 11. When the control unit 14 determines that the power-off information of the power supply unit 13 is not registered in the storage unit 11, the process proceeds to step 504; when the control unit 14 determines that the power-off information of the power supply unit 13 is logged into the storage unit 11, the flow proceeds to step 505.
In step 504, the control unit 14 generates power-off information of the power supply unit 13.
In step 505, the control unit 14 reads the current power supply state of the power supply unit 13.
In step 506, the control unit 14 determines whether the power supply unit 13 is in the activated power supply state according to the read result of step 505. When the control unit 14 determines that the power supply unit 13 is in the started power supply state, the flow proceeds to step 507; when the control unit 14 determines that all the power supply units 13 are in the power supply state not activated, the flow proceeds to step 508.
In step 507, the control unit 14 updates the record information so that the record information indicates that the power-off information of the power supply unit 13 is not registered in the storage unit 11.
In step 508, the control unit 14 updates the record information so that the record information indicates the power-off information registered in the power supply unit 13 to the storage unit 11.
After step 507 and step 508, the process proceeds to the monitor outage recording process 4.
In summary, in the system power-off recording method of the present invention, after the control unit 14 determines that all the power supply units 13 are in the power-off state, the power-off information is not recorded until all the power supply units 13 are exhausted, and after the restart instruction is determined to be related to the ac power-off restart, the power-off information is registered in the storage unit 11, so as to ensure that the power-off information is completely recorded, thereby achieving the purpose of the present invention.
The foregoing is merely illustrative of the present invention, and the present invention is not limited thereto, and any person skilled in the art will readily recognize that variations or substitutions are within the scope of the present invention. Therefore, the protection scope of the invention is subject to the protection scope of the claims.

Claims (10)

1. The system power-off recording method is executed by a control unit, the control unit is electrically connected with a processing unit, a storage unit and a plurality of power supply units, the control unit is provided with a memory, the memory stores a plurality of records of information respectively related to the plurality of power supply units, each record of information at least indicates whether the power-off information of the related power supply unit is recorded to the storage unit, each power supply unit is in one of a started power supply state and a non-started power supply state, when in the started power supply state, each power supply unit converts the received alternating current to supply power, when in the non-started power supply state, each power supply unit does not convert the received alternating current to supply power, and if residual power still exists in the power supply, the power supply is supplied with the internally stored residual power, the system power-off recording method is characterized by comprising the following steps:
(A) Reading the current power supply states of the power supply units by the control unit;
(B) Judging whether a power supply unit is in a started power supply state or not by the control unit according to the reading result of the step (A);
(C) By means of the control unit, after judging that all the power supply units are in a power supply state without starting, repeating the step (A) until the residual power of all the power supply units is exhausted;
(D) After receiving a restarting instruction, the control unit judges whether the restarting instruction is related to AC power-off restarting or not;
(E) After the control unit determines that the restart instruction is related to the AC power-off restart, for each record information, determining whether the record information indicates that the power-off information of the related power supply unit is recorded in the storage unit; a kind of electronic device with high-pressure air-conditioning system
(F) By means of the control unit, for each record information which indicates that the power-off information of the related power supply unit is not recorded to the storage unit is judged, the power-off information of the related power supply unit is generated.
2. The system power-off recording method as claimed in claim 1, further comprising the steps of, after the step (F):
(G) By means of the control unit, for each power supply unit, after the current power supply state of the power supply unit is read, whether the power supply unit is in a started power supply state is judged;
(H) Updating, by the control unit, for each power supply unit determined to be in a non-activated power supply state, recording information associated with the power supply unit such that the recording information indicates that power-off information of the power supply unit has been recorded to the storage unit, and returning to step (a); a kind of electronic device with high-pressure air-conditioning system
(I) And (c) updating the record information related to the power supply unit for each power supply unit judged to be in the started power supply state by the control unit so that the record information indicates that the power-off information of the power supply unit is not recorded in the storage unit, and returning to the step (A).
3. The system power-off recording method according to claim 1, wherein the memory further stores a plurality of power supply information respectively associated with the plurality of power supply units, each power supply information indicating whether the associated power supply unit is in a power-on state, and further comprising the steps of, before the step (B):
(J) Judging whether the power supply unit is in a started power supply state or not by the control unit according to the reading result of the step (A);
(K) Determining, by the control unit, for each of the power supply units determined to be in the power supply state not activated in step (J), whether recording information associated with the power supply unit indicates that power-off information of the power supply unit has been recorded in the storage unit; a kind of electronic device with high-pressure air-conditioning system
And (L) updating the power supply information related to the power supply unit by the control unit for the power supply unit which determines that the related record information indicates that the power-off information of the power supply unit is not recorded in the storage unit in each step (K), so that the power supply information indicates that the power supply unit is in a non-started power supply state.
4. The system power-off recording method as claimed in claim 3, wherein the memory further stores a count value, the count value is updated in step (L), and the following steps are further included after step (L):
(M) determining, by the control unit, whether the count value is greater than a threshold;
(N) repeating steps (a) through (B) after determining that the count value is not greater than the threshold.
5. The system outage recording method according to claim 3, further comprising the step, after step (J), of:
(O) determining, by means of the control unit, for each of the power supply units determined to be in the activated power supply state in step (J), whether power supply information related to the power supply unit indicates that the power supply unit is in the deactivated power supply state;
and (P) for each power supply unit determined in the step (O) that the related power supply information indicates a power supply state in which the power supply unit is not started by the control unit, updating the power supply information related to the power supply unit and the record information related to the power supply unit so that the power supply information related to the power supply unit indicates that the power supply unit is in a power supply state in which the power supply unit is started and the record information related to the power supply unit indicates that the power failure information of the power supply unit is not recorded.
6. The system power-off recording method as claimed in claim 3, further comprising the steps of, after the step (B):
(Q) after determining that there is a power supply state in which at least one power supply unit is activated by the control unit, for each step (K), determining that the recording information associated with the power supply unit indicates that the power-off information of the power supply unit is not recorded in the storage unit, generating and recording the power-off information of the power supply unit in the storage unit;
(R) after determining that at least one power supply unit is in a started power supply state by the control unit, determining that the record information related to the power supply unit indicates that the power-off information of the power supply unit is not recorded in the storage unit in each step (K), and updating the record information related to the power supply unit until the record information indicates that the power-off information of the power supply unit is recorded.
7. The system power-off recording method is executed by a control unit, the control unit is electrically connected with a processing unit, a storage unit and a power supply unit, the control unit is provided with a memory, the memory stores recording information related to the power supply unit, the recording information at least indicates whether the power-off information of the power supply unit is recorded to the storage unit, the power supply unit is in one of a started power supply state and a non-started power supply state, the power supply unit converts received alternating current to supply power when in the started power supply state, and the power supply unit supplies power with residual power stored in the power supply unit when in the non-started power supply state, the power supply unit supplies power with the residual power, and the system power-off recording method is characterized by comprising the following steps:
(A) Reading the current power supply state of the power supply unit by the control unit;
(B) Judging whether the power supply unit is in a started power supply state or not by the control unit;
(C) By means of the control unit, after judging that the power supply unit is in a non-started power supply state, repeating the step (A) until the residual power of the power supply unit is exhausted;
(D) After receiving a restarting instruction, the control unit judges whether the restarting instruction is related to AC power-off restarting or not;
(E) After the control unit determines that the restarting instruction is related to the AC power-off restarting, determining whether the recorded information indicates that the power-off information of the power supply unit is recorded to the storage unit; a kind of electronic device with high-pressure air-conditioning system
(F) And generating the power-off information of the power supply unit after determining that the recording information indicates that the power-off information of the power supply unit is not recorded in the storage unit by the control unit.
8. The system power-off recording method according to claim 7, wherein the memory further stores a power supply information related to the power supply unit, the power supply information indicating whether the power supply unit is in a power-on state, wherein in step (C), after determining that the power supply unit is in a power-off state, the control unit further updates the power supply information of the power supply unit so that the power supply information indicates that the power supply unit is in the power-off state.
9. The system power-off recording method according to claim 7, wherein the memory further stores a power supply information related to the power supply unit, the power supply information indicating whether the power supply unit is in a power-on state, and the method further comprises the following steps after the step (B):
(G) By means of the control unit, after judging that the power supply unit is in a started power supply state, judging whether power supply information of the power supply unit indicates that the power supply unit is in a non-started power supply state;
(H) By means of the control unit, after the power supply unit is judged to be in a started power supply state and the power supply information of the power supply unit indicates that the power supply unit is in a non-started power supply state, updating the power supply information of the power supply unit and the record information of the power supply unit until the power supply information indicates that the power supply unit is in the started power supply state and the record information of the power supply unit indicates that the power-off information of the power supply unit is not recorded; a kind of electronic device with high-pressure air-conditioning system
(I) And (c) returning to the step (A) after the control unit determines that the power supply unit is in the started power supply state and the power supply information indicates that the power supply unit is in the started power supply state.
10. The system power-off recording method as claimed in claim 7, further comprising the steps of, after the step (F):
(J) By means of the control unit, after the current power supply state of the power supply unit is read, whether the power supply unit is in a started power supply state is judged;
(K) Updating the record information of the power supply unit after judging that the power supply unit is in a non-started power supply state by the control unit, so that the record information indicates that the power-off information of the power supply unit is recorded in the storage unit and the power-off information of the power supply unit is recorded in the storage unit, and returning to the step (A); a kind of electronic device with high-pressure air-conditioning system
And (L) updating the record information of the power supply unit after the control unit determines that the power supply unit is in the started power supply state, so that the record information indicates that the power-off information of the power supply unit is not recorded in the storage unit and the power-off information of the power supply unit is recorded in the storage unit, and returning to the step (A).
CN201910516122.9A 2019-06-14 2019-06-14 System outage recording method Active CN112084085B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910516122.9A CN112084085B (en) 2019-06-14 2019-06-14 System outage recording method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910516122.9A CN112084085B (en) 2019-06-14 2019-06-14 System outage recording method

Publications (2)

Publication Number Publication Date
CN112084085A CN112084085A (en) 2020-12-15
CN112084085B true CN112084085B (en) 2023-05-09

Family

ID=73733985

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910516122.9A Active CN112084085B (en) 2019-06-14 2019-06-14 System outage recording method

Country Status (1)

Country Link
CN (1) CN112084085B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4763333A (en) * 1986-08-08 1988-08-09 Universal Vectors Corporation Work-saving system for preventing loss in a computer due to power interruption
JP2005100096A (en) * 2003-09-25 2005-04-14 Casio Comput Co Ltd Uninterruptible power unit and program
CN101339528A (en) * 2007-07-02 2009-01-07 佛山市顺德区顺达电脑厂有限公司 Computer energy supply periodic switch testing status monitoring apparatus
EP2961029A1 (en) * 2014-06-27 2015-12-30 Bull Sas Compensation module for power line disturbance of a server
CN105553053A (en) * 2016-03-07 2016-05-04 成都比善科技开发有限公司 Uninterrupted power supply-powered control system for entrance guard

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4763333A (en) * 1986-08-08 1988-08-09 Universal Vectors Corporation Work-saving system for preventing loss in a computer due to power interruption
US4763333B1 (en) * 1986-08-08 1990-09-04 Univ Vectors Corp
JP2005100096A (en) * 2003-09-25 2005-04-14 Casio Comput Co Ltd Uninterruptible power unit and program
CN101339528A (en) * 2007-07-02 2009-01-07 佛山市顺德区顺达电脑厂有限公司 Computer energy supply periodic switch testing status monitoring apparatus
EP2961029A1 (en) * 2014-06-27 2015-12-30 Bull Sas Compensation module for power line disturbance of a server
CN105553053A (en) * 2016-03-07 2016-05-04 成都比善科技开发有限公司 Uninterrupted power supply-powered control system for entrance guard

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于GPRS电力检测系统开发与实现;林明河;《中国优秀硕士学位论文全文数据库》;20140715;C042-576 *

Also Published As

Publication number Publication date
CN112084085A (en) 2020-12-15

Similar Documents

Publication Publication Date Title
JP3711559B2 (en) Information processing apparatus and method, recording medium, and program
US7630841B2 (en) Supervising and sequencing commonly driven power supplies with digital information
US7461303B2 (en) Monitoring VRM-induced memory errors
US6691248B1 (en) Method and apparatus for controlling supply of power, and storage medium
CN111324192A (en) System board power supply detection method, device, equipment 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
US20200033928A1 (en) Method of periodically recording for events
US10275330B2 (en) Computer readable non-transitory recording medium storing pseudo failure generation program, generation method, and generation apparatus
US20130132741A1 (en) Power supply apparatus of computer system and method for controlling power sequence thereof
CN110445638B (en) Switch system fault protection method and device
US20140032819A1 (en) Collecting installation and field performance data for memory devices
US20240053812A1 (en) Power supply control method and apparatus, and server and non-volatile storage medium
US6598170B1 (en) Power supply control based on preset schedule with independent schedule monitor and backup system for executing schedule operation when malfunction occurs
US20090138740A1 (en) Method and computer device capable of dealing with power fail
US8423729B2 (en) Part information restoration method, part information management method and electronic apparatus
CN101206599B (en) Method for diagnosis and insulation of computer mainboard equipment
JP2008225929A (en) Information processor
US7707458B2 (en) Self-test system
CN112084085B (en) System outage recording method
CN104349001A (en) Information processing apparatus, method for controlling the same, and program
US20080189315A1 (en) Method and server system for creating sensor data record
CN115795568A (en) Liquid cooling server liquid leakage protection method, device, equipment and storage medium
CN111338456B (en) BBU power failure protection implementation method and system
TWI709030B (en) System power failure recording method
US20200249738A1 (en) Systems and methods for isolation of a power-compromised host information handling system to prevent impact to other host information handling systems during a persistent memory save operation

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
GR01 Patent grant
GR01 Patent grant