CN111143181A - Server maintenance method, system, equipment and computer readable storage medium - Google Patents

Server maintenance method, system, equipment and computer readable storage medium Download PDF

Info

Publication number
CN111143181A
CN111143181A CN201911370367.1A CN201911370367A CN111143181A CN 111143181 A CN111143181 A CN 111143181A CN 201911370367 A CN201911370367 A CN 201911370367A CN 111143181 A CN111143181 A CN 111143181A
Authority
CN
China
Prior art keywords
log
storage area
log storage
area
bmc
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.)
Withdrawn
Application number
CN201911370367.1A
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 CN201911370367.1A priority Critical patent/CN111143181A/en
Publication of CN111143181A publication Critical patent/CN111143181A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/20Administration of product repair or maintenance

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Resources & Organizations (AREA)
  • Computer Hardware Design (AREA)
  • Economics (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Marketing (AREA)
  • Operations Research (AREA)
  • Strategic Management (AREA)
  • Tourism & Hospitality (AREA)
  • General Business, Economics & Management (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The application discloses a server maintenance method, a system, equipment and a computer readable storage medium, which are applied to a BMC of a server and mount a log storage area of the BMC; judging whether the log storage area is abnormal or not; if the log storage area is abnormal, erasing the log storage area, and mounting the log storage area again; copying the log information of the log backup area to a log storage area so as to maintain the server based on the log storage area; the log storage area is an area for storing a log generated in the running process of the BMC; the log backup area is an area for backing up a log generated in the running process of the BMC. According to the method and the device, after the log storage area of the BMC is abnormal, the log information can be still acquired according to the log backup area, the backup log is provided for the maintenance of the server, and the maintenance success rate of the server is enhanced. The server maintenance system, the server maintenance equipment and the computer readable storage medium solve the corresponding technical problems.

Description

Server maintenance method, system, equipment and computer readable storage medium
Technical Field
The present application relates to the field of server technologies, and in particular, to a server maintenance method, system, device, and computer-readable storage medium.
Background
With the development of mobile internet, the demands of various internet manufacturers on the server are continuously increased, and the requirements of users on the reliability, safety and easiness in management of the server are continuously improved while the requirements on the functions of the server are continuously improved.
However, in the prior art, when a server has a problem, the most convenient and accurate method is to determine the cause of the problem through a BMC (Baseboard Management controller) log (log) except that the cause of the problem is checked through a basic peripheral device, such as an indicator light, however, the BMC log may be lost, so that the server cannot be maintained according to the BMC log.
In summary, how to improve the success rate of server maintenance is a problem to be solved urgently by those skilled in the art.
Disclosure of Invention
The application aims to provide a server maintenance method which can solve the technical problem of how to improve the maintenance success rate of a server to a certain extent. The application also provides a server maintenance system, equipment and a computer readable storage medium.
In order to achieve the above purpose, the present application provides the following technical solutions:
a server maintenance method is applied to a BMC of the server and comprises the following steps:
mounting a log storage area of the BMC;
judging whether the log storage area is abnormal or not;
if the log storage area is abnormal, erasing the log storage area, and mounting the log storage area again;
copying the log information of the log backup area to the log storage area so as to maintain the server based on the log storage area;
the log storage area is an area for storing a log generated in the BMC running process; the log backup area is an area for backing up a log generated in the running process of the BMC.
Preferably, the determining whether the log storage area is normal includes:
performing cyclic redundancy check on the log storage area;
judging whether the verification is successful, and if the verification is successful, judging that the log storage area is normal; and if the verification fails, judging that the log storage area is abnormal.
Preferably, before determining whether the log storage area is abnormal, the method further includes:
judging whether a new log is generated or not;
if yes, calculating a cyclic redundancy check value of the new log, writing the new log into the log storage area, and storing the cyclic redundancy check value of the new log.
Preferably, before determining whether the log storage area is abnormal, the method further includes:
judging whether a new log is generated or not;
if yes, writing the new log into the log storage area, calculating and storing a cyclic redundancy check value of the log storage area.
Preferably, the calculating and storing the cyclic redundancy check value of the log storage area includes:
calculating a cyclic redundancy check value of the log storage area;
and updating the saved cyclic redundancy check value of the log storage area by using the currently calculated cyclic redundancy check value of the log storage area.
Preferably, the calculating and storing the cyclic redundancy check value of the log storage area includes:
calculating a cyclic redundancy check value of the log storage area;
and acquiring the calculation time, and correspondingly storing the calculation time and the cyclic redundancy check value of the log storage area.
Preferably, the copying the log information of the log backup area to the log storage area includes:
judging whether the log backup area is abnormal or not;
and if the log backup area is normal, copying the log information of the log backup area to the log storage area.
A server maintenance system applied to a BMC of the server comprises:
the first mounting module is used for mounting a log storage area of the BMC;
the first judgment module is used for judging whether the log storage area is abnormal or not; if the log storage area is abnormal, erasing the log storage area, and mounting the log storage area again;
the first copying module is used for copying the log information of the log backup area to the log storage area so as to maintain the server based on the log storage area;
the log storage area is an area for storing a log generated in the BMC running process; the log backup area is an area for backing up a log generated in the running process of the BMC.
A server maintenance device applied to a BMC of the server, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the server maintenance method as described in any one of the above when executing the computer program.
A computer-readable storage medium for a BMC of a server, the computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, performs the steps of any of the server maintenance methods described above.
The server maintenance method is applied to the BMC of the server, and a log storage area of the BMC is mounted; judging whether the log storage area is abnormal or not; if the log storage area is abnormal, erasing the log storage area, and mounting the log storage area again; copying the log information of the log backup area to a log storage area so as to maintain the server based on the log storage area; the log storage area is an area for storing a log generated in the running process of the BMC; the log backup area is an area for backing up a log generated in the running process of the BMC. According to the method and the device, after the log storage area of the BMC is abnormal, the log information can be still acquired according to the log backup area through the log storage area and the log backup area, so that the backup log is provided for the maintenance of the server, and the maintenance success rate of the server is enhanced. The server maintenance system, the server maintenance equipment and the computer readable storage medium solve the corresponding technical problems.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a server maintenance method according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of a server maintenance system according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a server maintenance device according to an embodiment of the present application;
fig. 4 is another schematic structural diagram of a server maintenance device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Referring to fig. 1, fig. 1 is a flowchart of a server maintenance method according to an embodiment of the present disclosure.
The server maintenance method provided by the embodiment of the application is applied to the BMC of the server, and comprises the following steps:
step S101: and mounting a log storage area of the BMC.
In practical application, the BMC may mount a log storage area of the BMC first, where the log storage area refers to an area for storing a log generated during the operation of the BMC, and in a specific application scenario, an extlog partition may be created as the log storage area, and the log storage area may be mounted during the process of starting the BMC.
Step S102: judging whether the log storage area is abnormal or not; if the log storage area is abnormal, step S103 is executed, and if the log storage area is normal, step S105 is executed.
Step S103: erasing the log storage area and mounting the log storage area again; step S104 is performed.
In practical application, after the log storage area is mounted by the BMC, whether the mounted log storage area is abnormal or not can be judged, if yes, the log storage area is indicated to be unavailable, at the moment, the BMC can erase the log storage area and re-mount the log storage area, and at the moment, the log storage area mounted by the BMC is a blank area.
Step S104: copying the log information of the log backup area to a log storage area so as to maintain the server based on the log storage area; the log storage area is an area for storing a log generated in the running process of the BMC; the log backup area is an area for backing up a log generated in the running process of the BMC; step S105 is performed.
In practical application, after the BMC mounts the log storage area again, the log information in the log backup area may be copied to the log storage area, so that the log storage area may obtain normal log information, and thus, when the log storage area is abnormal, the server may still be maintained according to the log information of the BMC.
Step S105: and performing starting operation by using the log storage area.
In practical application, after the log information of the log backup area is copied to the log storage area, or under the condition that the log storage area is normal, the log storage area can be applied to start operation; of course, other operations may be performed, and the present application is not limited in this respect.
The server maintenance method is applied to the BMC of the server, and a log storage area of the BMC is mounted; judging whether the log storage area is abnormal or not; if the log storage area is abnormal, erasing the log storage area, and mounting the log storage area again; copying the log information of the log backup area to a log storage area so as to maintain the server based on the log storage area; the log storage area is an area for storing a log generated in the running process of the BMC; the log backup area is an area for backing up a log generated in the running process of the BMC. According to the method and the device, after the log storage area of the BMC is abnormal, the log information can be still acquired according to the log backup area through the log storage area and the log backup area, so that the backup log is provided for the maintenance of the server, and the maintenance success rate of the server is enhanced.
The server maintenance method provided by the embodiment of the application is applied to the BMC of the server, and in the process of judging whether the log storage area is normal, in order to conveniently determine whether the log storage area is normal, Cyclic Redundancy Check (CRC) can be performed on the log storage area; judging whether the verification is successful or not, and if the verification is successful, judging that the log storage area is normal; and if the verification fails, judging that the log storage area is abnormal. Of course, other ways of checking the log storage area to determine whether the log storage area is normal may be applied.
In practical application, in the process of verifying the log storage area by applying cyclic redundancy check, a corresponding cyclic redundancy check value needs to be generated, and in order to generate the cyclic redundancy check value, before judging whether the log storage area is abnormal, whether a new log is generated can be judged; if yes, calculating the cyclic redundancy check value of the new log, writing the new log into the log storage area, and storing the cyclic redundancy check value of the new log. That is, after the BMC generates the new log, the cyclic redundancy check value of the new log is calculated first, and then the new log is written into the log storage area, and the cyclic redundancy check value of the new log is stored; therefore, when judging whether the log storage area is normal or not, for each log in the log storage area, the real-time cyclic redundancy check value of the log can be calculated, whether the real-time cyclic redundancy check value is consistent with the stored cyclic redundancy check value of the log or not is judged, if so, the log is normal, if not, the log is abnormal, correspondingly, after all logs are normal, the log storage area can be judged to be normal, otherwise, only the log storage area is abnormal. It should be noted that in this application scenario, when erasing the log storage area, only the abnormal log information may be erased, and in the process of copying the log information of the log backup area to the log storage area, only the abnormal log information may be copied from the log backup area to the log storage area, and so on.
In practical application, in order to facilitate generation of a cyclic redundancy check value, before judging whether a log storage area is abnormal, whether a new log is generated can be judged; if yes, writing the new log into the log storage area, calculating and storing the cyclic redundancy check value of the log storage area. That is, only the cyclic redundancy check value of the log storage area needs to be calculated, and accordingly, when the log storage area is erased, the whole log storage area can be erased, and in the process of copying the log information of the log backup area to the log storage area, all the log information in the log backup area needs to be copied to the log backup area.
In a specific application scenario, the process of calculating and storing the cyclic redundancy check value of the log storage area may specifically be: calculating a cyclic redundancy check value of a log storage area; and updating the stored cyclic redundancy check value of the log storage area by using the currently calculated cyclic redundancy check value of the log storage area. That is, only the latest cyclic redundancy check value of the log storage area needs to be saved each time.
In a specific application scenario, the process of calculating and storing the cyclic redundancy check value of the log storage area may specifically be: calculating a cyclic redundancy check value of a log storage area; and acquiring the calculation time, and correspondingly storing the calculation time and the cyclic redundancy check value of the log storage area. That is, the calculation time and the cycle of the log storage area are required to be saved for the check value each time, so that the cycle of the log storage area required to be searched for the check value according to the current time and the calculation time.
The server maintenance method provided by the embodiment of the application is applied to the BMC of the server, and is used for copying the log information of the log backup area to the log storage area, and the method may specifically be: judging whether the log backup area is abnormal or not; and if the log backup area is normal, copying the log information of the log backup area to a log storage area. That is, the log storage area can be updated with the normal log backup area to ensure the maintenance accuracy of the server.
Referring to fig. 2, fig. 2 is a schematic structural diagram of a server maintenance system according to an embodiment of the present disclosure.
The server maintenance system provided by the embodiment of the application is applied to the BMC of the server, and may include:
the first mounting module 101 is used for mounting a log storage area of the BMC;
the first judging module 102 is configured to judge whether a log storage area is abnormal; if the log storage area is abnormal, erasing the log storage area, and mounting the log storage area again;
the first copying module 103 is configured to copy log information in the log backup area to a log storage area, so as to maintain the server based on the log storage area;
the log storage area is an area for storing a log generated in the running process of the BMC; the log backup area is an area for backing up a log generated in the running process of the BMC.
The server maintenance system provided by the embodiment of the application is applied to the BMC of the server, and the first judgment module may include:
the first checking unit is used for performing cyclic redundancy check on the log storage area;
the first judging unit is used for judging whether the verification is successful or not, and if the verification is successful, judging that the log storage area is normal; and if the verification fails, judging that the log storage area is abnormal.
The server maintenance system provided in the embodiment of the present application is applied to a BMC of a server, and may further include:
the second judgment module is used for judging whether to generate a new log before the first judgment module judges whether the log storage area is abnormal; if yes, calculating the cyclic redundancy check value of the new log, writing the new log into the log storage area, and storing the cyclic redundancy check value of the new log.
The server maintenance system provided in the embodiment of the present application is applied to a BMC of a server, and may further include:
the third judging module is used for judging whether to generate a new log before the first judging module judges whether the log storage area is abnormal; if yes, writing the new log into the log storage area, calculating and storing the cyclic redundancy check value of the log storage area.
The server maintenance system provided by the embodiment of the application is applied to the BMC of the server, and the third judgment module may include:
a first calculation unit for calculating a cyclic redundancy check value of the log storage area;
and the first updating unit is used for updating the saved cyclic redundancy check value of the log storage area by using the currently calculated cyclic redundancy check value of the log storage area.
The server maintenance system provided by the embodiment of the application is applied to the BMC of the server, and the third judgment module may include:
the second calculation unit is used for calculating the cyclic redundancy check value of the log storage area;
and the first storage unit is used for acquiring the calculation time and correspondingly storing the calculation time and the cyclic redundancy check value of the log storage area.
The server maintenance system provided by the embodiment of the application is applied to the BMC of the server, and the first copy module may include:
the second judging unit is used for judging whether the log backup area is abnormal or not; and if the log backup area is normal, copying the log information of the log backup area to a log storage area.
The application also provides a server maintenance device and a computer readable storage medium, which have the corresponding effects of the server maintenance method provided by the embodiment of the application. Referring to fig. 3, fig. 3 is a schematic structural diagram of a server maintenance device according to an embodiment of the present disclosure.
The server maintenance device provided by the embodiment of the application comprises a memory 201 and a processor 202, wherein a computer program is stored in the memory 201, and the processor 202 implements the following steps when executing the computer program:
mounting a log storage area of the BMC;
judging whether the log storage area is abnormal or not;
if the log storage area is abnormal, erasing the log storage area, and mounting the log storage area again;
copying the log information of the log backup area to a log storage area so as to maintain the server based on the log storage area;
the log storage area is an area for storing a log generated in the running process of the BMC; the log backup area is an area for backing up a log generated in the running process of the BMC.
The server maintenance device provided by the embodiment of the application comprises a memory 201 and a processor 202, wherein a computer program is stored in the memory 201, and the processor 202 implements the following steps when executing the computer program: performing cyclic redundancy check on the log storage area; judging whether the verification is successful or not, and if the verification is successful, judging that the log storage area is normal; and if the verification fails, judging that the log storage area is abnormal.
The server maintenance device provided by the embodiment of the application comprises a memory 201 and a processor 202, wherein a computer program is stored in the memory 201, and the processor 202 implements the following steps when executing the computer program: before judging whether the log storage area is abnormal, judging whether a new log is generated; if yes, calculating the cyclic redundancy check value of the new log, writing the new log into the log storage area, and storing the cyclic redundancy check value of the new log.
The server maintenance device provided by the embodiment of the application comprises a memory 201 and a processor 202, wherein a computer program is stored in the memory 201, and the processor 202 implements the following steps when executing the computer program: before judging whether the log storage area is abnormal, judging whether a new log is generated; if yes, writing the new log into the log storage area, calculating and storing the cyclic redundancy check value of the log storage area.
The server maintenance device provided by the embodiment of the application comprises a memory 201 and a processor 202, wherein a computer program is stored in the memory 201, and the processor 202 implements the following steps when executing the computer program: calculating a cyclic redundancy check value of a log storage area; and updating the stored cyclic redundancy check value of the log storage area by using the currently calculated cyclic redundancy check value of the log storage area.
The server maintenance device provided by the embodiment of the application comprises a memory 201 and a processor 202, wherein a computer program is stored in the memory 201, and the processor 202 implements the following steps when executing the computer program: calculating a cyclic redundancy check value of a log storage area; and acquiring the calculation time, and correspondingly storing the calculation time and the cyclic redundancy check value of the log storage area.
The server maintenance device provided by the embodiment of the application comprises a memory 201 and a processor 202, wherein a computer program is stored in the memory 201, and the processor 202 implements the following steps when executing the computer program: judging whether the log backup area is abnormal or not; and if the log backup area is normal, copying the log information of the log backup area to a log storage area.
Referring to fig. 4, another server maintenance device provided in the embodiment of the present application may further include: an input port 203 connected to the processor 202, for transmitting externally input commands to the processor 202; and the communication module 204 is connected with the processor 202 and is used for realizing the communication between the server maintenance equipment and the outside world. The communication method adopted by the communication module 204 includes, but is not limited to, mobile high definition link technology (HML), Universal Serial Bus (USB), High Definition Multimedia Interface (HDMI), and wireless connection: wireless fidelity technology (WiFi), bluetooth communication technology, bluetooth low energy communication technology, ieee802.11s based communication technology.
A computer-readable storage medium is provided in an embodiment of the present application, in which a computer program is stored, and when the computer program is executed by a processor, the computer program implements the following steps:
mounting a log storage area of the BMC;
judging whether the log storage area is abnormal or not;
if the log storage area is abnormal, erasing the log storage area, and mounting the log storage area again;
copying the log information of the log backup area to a log storage area so as to maintain the server based on the log storage area;
the log storage area is an area for storing a log generated in the running process of the BMC; the log backup area is an area for backing up a log generated in the running process of the BMC.
A computer-readable storage medium is provided in an embodiment of the present application, in which a computer program is stored, and when the computer program is executed by a processor, the computer program implements the following steps: performing cyclic redundancy check on the log storage area; judging whether the verification is successful or not, and if the verification is successful, judging that the log storage area is normal; and if the verification fails, judging that the log storage area is abnormal.
A computer-readable storage medium is provided in an embodiment of the present application, in which a computer program is stored, and when the computer program is executed by a processor, the computer program implements the following steps: before judging whether the log storage area is abnormal, judging whether a new log is generated; if yes, calculating the cyclic redundancy check value of the new log, writing the new log into the log storage area, and storing the cyclic redundancy check value of the new log.
A computer-readable storage medium is provided in an embodiment of the present application, in which a computer program is stored, and when the computer program is executed by a processor, the computer program implements the following steps: before judging whether the log storage area is abnormal, judging whether a new log is generated; if yes, writing the new log into the log storage area, calculating and storing the cyclic redundancy check value of the log storage area.
A computer-readable storage medium is provided in an embodiment of the present application, in which a computer program is stored, and when the computer program is executed by a processor, the computer program implements the following steps: calculating a cyclic redundancy check value of a log storage area; and updating the stored cyclic redundancy check value of the log storage area by using the currently calculated cyclic redundancy check value of the log storage area.
A computer-readable storage medium is provided in an embodiment of the present application, in which a computer program is stored, and when the computer program is executed by a processor, the computer program implements the following steps: calculating a cyclic redundancy check value of a log storage area; and acquiring the calculation time, and correspondingly storing the calculation time and the cyclic redundancy check value of the log storage area.
A computer-readable storage medium is provided in an embodiment of the present application, in which a computer program is stored, and when the computer program is executed by a processor, the computer program implements the following steps: judging whether the log backup area is abnormal or not; and if the log backup area is normal, copying the log information of the log backup area to a log storage area.
The computer-readable storage media to which this application relates include Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage media known in the art.
For a description of a relevant part in a server maintenance system, a device and a computer-readable storage medium provided in the embodiments of the present application, refer to a detailed description of a corresponding part in a server maintenance method provided in the embodiments of the present application, and are not described herein again. In addition, parts of the above technical solutions provided in the embodiments of the present application, which are consistent with the implementation principles of corresponding technical solutions in the prior art, are not described in detail so as to avoid redundant description.
It is further noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A server maintenance method is characterized in that the BMC applied to the server comprises the following steps:
mounting a log storage area of the BMC;
judging whether the log storage area is abnormal or not;
if the log storage area is abnormal, erasing the log storage area, and mounting the log storage area again;
copying the log information of the log backup area to the log storage area so as to maintain the server based on the log storage area;
the log storage area is an area for storing a log generated in the BMC running process; the log backup area is an area for backing up a log generated in the running process of the BMC.
2. The method of claim 1, wherein the determining whether the log storage area is normal comprises:
performing cyclic redundancy check on the log storage area;
judging whether the verification is successful, and if the verification is successful, judging that the log storage area is normal; and if the verification fails, judging that the log storage area is abnormal.
3. The method of claim 2, wherein before determining whether the log storage area is abnormal, further comprising:
judging whether a new log is generated or not;
if yes, calculating a cyclic redundancy check value of the new log, writing the new log into the log storage area, and storing the cyclic redundancy check value of the new log.
4. The method of claim 2, wherein before determining whether the log storage area is abnormal, further comprising:
judging whether a new log is generated or not;
if yes, writing the new log into the log storage area, calculating and storing a cyclic redundancy check value of the log storage area.
5. The method of claim 4, wherein calculating and saving the cyclic redundancy check value of the log storage area comprises:
calculating a cyclic redundancy check value of the log storage area;
and updating the saved cyclic redundancy check value of the log storage area by using the currently calculated cyclic redundancy check value of the log storage area.
6. The method of claim 4, wherein calculating and saving the cyclic redundancy check value of the log storage area comprises:
calculating a cyclic redundancy check value of the log storage area;
and acquiring the calculation time, and correspondingly storing the calculation time and the cyclic redundancy check value of the log storage area.
7. The method according to any one of claims 1 to 6, wherein the copying the log information of the log backup area to the log storage area comprises:
judging whether the log backup area is abnormal or not;
and if the log backup area is normal, copying the log information of the log backup area to the log storage area.
8. A server maintenance system, applied to a BMC of the server, comprising:
the first mounting module is used for mounting a log storage area of the BMC;
the first judgment module is used for judging whether the log storage area is abnormal or not; if the log storage area is abnormal, erasing the log storage area, and mounting the log storage area again;
the first copying module is used for copying the log information of the log backup area to the log storage area so as to maintain the server based on the log storage area;
the log storage area is an area for storing a log generated in the BMC running process; the log backup area is an area for backing up a log generated in the running process of the BMC.
9. A server maintenance device applied to a BMC of the server, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the server maintenance method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, for use in a BMC of a server, in which a computer program is stored, which computer program, when being executed by a processor, carries out the steps of a server maintenance method according to any one of claims 1 to 7.
CN201911370367.1A 2019-12-26 2019-12-26 Server maintenance method, system, equipment and computer readable storage medium Withdrawn CN111143181A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911370367.1A CN111143181A (en) 2019-12-26 2019-12-26 Server maintenance method, system, equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911370367.1A CN111143181A (en) 2019-12-26 2019-12-26 Server maintenance method, system, equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN111143181A true CN111143181A (en) 2020-05-12

Family

ID=70520672

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911370367.1A Withdrawn CN111143181A (en) 2019-12-26 2019-12-26 Server maintenance method, system, equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN111143181A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113806127A (en) * 2021-09-12 2021-12-17 济南浪潮数据技术有限公司 Server log collection method and device and readable storage medium
CN116055310A (en) * 2022-06-28 2023-05-02 荣耀终端有限公司 Method, device and network equipment for recovering user configuration information

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108777638A (en) * 2018-08-27 2018-11-09 郑州云海信息技术有限公司 A kind of server log information backup method and system
CN109992492A (en) * 2019-04-11 2019-07-09 苏州浪潮智能科技有限公司 Log recording method, device, equipment and the readable storage medium storing program for executing of functional module

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108777638A (en) * 2018-08-27 2018-11-09 郑州云海信息技术有限公司 A kind of server log information backup method and system
CN109992492A (en) * 2019-04-11 2019-07-09 苏州浪潮智能科技有限公司 Log recording method, device, equipment and the readable storage medium storing program for executing of functional module

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113806127A (en) * 2021-09-12 2021-12-17 济南浪潮数据技术有限公司 Server log collection method and device and readable storage medium
CN113806127B (en) * 2021-09-12 2024-02-13 济南浪潮数据技术有限公司 Server log collection method, device and readable storage medium
CN116055310A (en) * 2022-06-28 2023-05-02 荣耀终端有限公司 Method, device and network equipment for recovering user configuration information
CN116055310B (en) * 2022-06-28 2023-10-20 荣耀终端有限公司 Method, device and network equipment for recovering user configuration information

Similar Documents

Publication Publication Date Title
CN108646982B (en) Automatic data restoration method and device based on UBIFS
CN110930131A (en) Vehicle maintenance method, device, equipment and medium
CN110442473B (en) Nonvolatile data storage method and device, electronic equipment and medium
CN115495025B (en) Method and device for managing abnormal memory block
CN103026342B (en) method and system for verifying memory device integrity
CN110727597B (en) Method for checking invalid code completion case based on log
CN107315659B (en) Metadata redundancy backup method and device
CN103870305A (en) Software upgrading method of vehicle-mounted sound box with USB (Universal Serial Bus) interface/memory card interface
CN104965776B (en) Mobile terminal checks the method and system of daily record in recovery mode
CN111143181A (en) Server maintenance method, system, equipment and computer readable storage medium
CN115408730A (en) Data processing method, chip, electronic device and storage medium
CN112000513A (en) Computer and VPD data operation method, device and storage medium thereof
CN107894900B (en) MCU upgrading method and system
CN102025758A (en) Method, device and system fore recovering data copy in distributed system
CN111475188A (en) Power module firmware updating method, device, equipment and storage medium
CN102594591A (en) Log collection method and device
CN108196975B (en) Data verification method and device based on multiple checksums and storage medium
CN111130856A (en) Server configuration method, system, equipment and computer readable storage medium
CN116150111A (en) Method, device and medium for saving kernel crash log and electronic equipment
CN112732301A (en) Vehicle upgrading method and device
CN110209418B (en) Program updating method, device, equipment and computer readable storage medium
CN110795155A (en) System starting method and device, electronic equipment and storage medium
CN111737223A (en) File copying method, device, equipment and storage medium
CN111104264A (en) Node main/standby switching method and device for distributed cloud computing system
CN113626393B (en) Log cutting method and related device

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
WW01 Invention patent application withdrawn after publication

Application publication date: 20200512

WW01 Invention patent application withdrawn after publication