[go: up one dir, main page]

CN111092759A - A method, device and medium for log management in a JBOD out-of-band management system - Google Patents

A method, device and medium for log management in a JBOD out-of-band management system Download PDF

Info

Publication number
CN111092759A
CN111092759A CN201911284210.7A CN201911284210A CN111092759A CN 111092759 A CN111092759 A CN 111092759A CN 201911284210 A CN201911284210 A CN 201911284210A CN 111092759 A CN111092759 A CN 111092759A
Authority
CN
China
Prior art keywords
log
expander
logs
memory
jbod
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.)
Granted
Application number
CN201911284210.7A
Other languages
Chinese (zh)
Other versions
CN111092759B (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.)
Suzhou Metabrain 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 CN201911284210.7A priority Critical patent/CN111092759B/en
Publication of CN111092759A publication Critical patent/CN111092759A/en
Application granted granted Critical
Publication of CN111092759B publication Critical patent/CN111092759B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/069Management of faults, events, alarms or notifications using logs of notifications; Post-processing of notifications
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0766Error or fault reporting or storing
    • G06F11/0787Storage of error reports, e.g. persistent data storage, storage using memory protection

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a method, a device and a readable medium for log management in a JBOD out-of-band management system, wherein the method comprises the following steps: collecting logs of an expander through an asynchronous serial port, and storing the logs into a memory; responding to a command for collecting the expander logs sent by a remote control end, and judging whether the command indicates to collect the real-time logs; in response to the acquisition of the real-time log, controlling the exchanger to enable the remote control end to perform data transmission with the corresponding expander; and responding to the fact that the real-time log is not collected, and acquiring and sending the log of the corresponding expander in the storage to the remote control terminal. The scheme of the invention can independently collect, compress, store and support remote control, thereby better collecting and managing the log information of the JBOD out-of-band management system.

Description

Log management method, device and medium in JBOD (just in Bunch) out-of-band management system
Technical Field
The present invention relates to the field of log management, and more particularly, to a method, an apparatus, and a readable medium for log management in a JBOD out-of-band management system.
Background
With the rapid development of cloud computing centers, cloud storage and big data and the continuous evolution of pooling technology, at present, storage resources are more and more pooled and managed, a rack server is born, a just a Bunch of disks (JBOD) system is generally used in the rack server to store mass data information, and compared with other storage devices, the JBOD out-of-band management system has huge storage capacity and low cost, so the JBOD out-of-band management system is more and more applied in practice.
The management plane is generally divided into in-band management that uses HBA (Host Bus Adapter) to manage SAS (Serial Attached SCSI) expander and hard disk; the out-of-band Management uses BMC (Board Management Controller) to manage SAS expander and hard disk; since in-band management is also mixed with data traffic, it will affect data traffic, and based on security considerations, data traffic and management traffic are more required to be separated at present, so the management of JBOD usually employs out-of-band management.
The level of the log information is generally classified into "fatal", "serious", "warning" and "general", and when the lowest level "general" is selected, a large amount of log information, especially Debug information, is generated in the Expander running process, and a large amount of function information and running process state parameter data information are recorded. Whether the memory space of the Expander itself or the out-of-band management controller is small, the large amount of data can quickly fill the memory space and then be covered, so that log information data can be recorded only in a short period of time. The problem is difficult to locate and backtrack, and even the risk of losing serious problems is reduced.
However, in the prior art, a log management and storage method for a JBOD out-of-band management system is usually that a worker collects logs of the JBOD out-of-band management system through a serial port on site, and the method has low working efficiency, so that what kind of method is provided to better collect logs of the JBOD out-of-band management system is a problem to be solved by those skilled in the art.
Disclosure of Invention
In view of this, an object of the embodiments of the present invention is to provide a method, a device, and a medium for log management in a JBOD out-of-band management system, which manage JBOD log information in an out-of-band manner, do not affect the data plane service, and do not interrupt the service operation of the Expander, and provide great convenience for system maintenance personnel and management personnel, thereby reducing the cost of system management and maintenance, and simultaneously ensuring that the service of a user is performed smoothly.
Based on the above purpose, an aspect of the embodiments of the present invention provides a method for log management in a JBOD out-of-band management system, including the following steps: collecting logs of an expander through an asynchronous serial port, and storing the logs into a memory; responding to a command for collecting the expander logs sent by a remote control end, and judging whether the command indicates to collect the real-time logs; in response to the acquisition of the real-time log, controlling the exchanger to enable the remote control end to perform data transmission with the corresponding expander; and responding to the condition that the real-time log is not collected, and acquiring and sending the log of the corresponding expander in the memory to the remote control terminal.
In some embodiments, further comprising: and reporting the collected logs to a host server.
In some embodiments, further comprising: judging whether the emergency level of the collected log reaches a threshold value; responding to the emergency level of the collected log reaching a threshold value, and judging whether to establish connection with a remote server; reporting the collected log to a remote server in response to establishing a connection with the remote server; and reporting the collected log to a host server in response to a connection not being established with a remote server.
In some embodiments, further comprising: and establishing a corresponding management relation between the host server and the expander.
In some embodiments, reporting the collected log to a server comprises: and reporting the logs of the expander to a server having a management relation with the expander, and hiding the logs of the expander from other servers.
In some embodiments, storing the log to a memory comprises: and classifying and hierarchically storing the logs.
In some embodiments, storing the log to a memory comprises: judging whether the utilization rate of the memory exceeds a threshold value; and in response to the usage of the memory exceeding a threshold, overwriting the logs that are chronologically top.
In some embodiments, storing the log to a memory comprises: caching the collected logs and judging whether the cache size reaches a second threshold value; and responding to the cache size reaching the second threshold value, analyzing the cache, deleting the repeated content and compressing.
In another aspect of the embodiments of the present invention, there is also provided a computer device, including: at least one processor; and a memory storing computer instructions executable on the processor, the instructions when executed by the processor implementing the steps of the method as above.
In a further aspect of the embodiments of the present invention, a computer-readable storage medium is also provided, in which a computer program for implementing the above method steps is stored when the computer program is executed by a processor.
The invention has the following beneficial technical effects:
(1) under the condition that a plurality of expanders are provided with only one physical serial port, the log information output by the asynchronous serial port can be recorded at the same time;
(2) adopting SOL (Serial Over LAN, a mechanism for redirecting Serial port I/O in a system based on a network, commonly called Serial port redirection) to directly output specified Serial port data to a far end and record related data information;
(3) under the condition of a multi-host server, the logs can be managed in a distinguishing way and reported independently respectively;
(4) the method has the advantages that logs are compressed, and the problems that log information storage space is limited, log storage time is too short, important information is lost, and complete backtracking and positioning cannot be achieved in the existing JBOD out-of-band management system are solved;
(5) by adding the out-of-band management controller, the log information is acquired and stored, and can be independently accessed without depending on the outside, so that the problem of log loss caused by untimely external acquisition is solved;
(6) the serious problem of log information can be independently alarmed and reported to a remote control server.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other embodiments can be obtained by using the drawings without creative efforts.
FIG. 1 is a schematic diagram of an embodiment of a method of log management in a JBOD out-of-band management system provided by the present invention;
FIG. 2 is a topology diagram of a JBOD out-of-band management system provided by the present invention;
FIG. 3 is a diagram of a minimum model of a JBOD out-of-band management system provided by the present invention;
FIG. 4 is a physical link diagram of a JBOD out-of-band management system provided by the present invention;
FIG. 5 is a schematic hardware structure diagram of an embodiment of a method for log management in a JBOD out-of-band management system provided by the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the following embodiments of the present invention are described in further detail with reference to the accompanying drawings.
It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are used for distinguishing two entities with the same name but different names or different parameters, and it should be noted that "first" and "second" are merely for convenience of description and should not be construed as limitations of the embodiments of the present invention, and they are not described in any more detail in the following embodiments.
In view of the above, a first aspect of the embodiments of the present invention provides an embodiment of a method for log management in a JBOD out-of-band management system. FIG. 1 is a schematic diagram illustrating an embodiment of a method for log management in a JBOD out-of-band management system provided by the present invention. As shown in fig. 1, the embodiment of the present invention includes the following steps:
s1, collecting the logs of the expander through the asynchronous serial port, and storing the logs in a memory;
s2, responding to a command for collecting the expander logs sent by a remote control end, and judging whether the command indicates to collect the real-time logs;
s3, responding to the collected real-time log, controlling the exchanger to enable the remote control end to carry out data transmission with the corresponding expander; and
and S4, responding to the condition that the real-time log is not collected, and acquiring and sending the log of the corresponding expander in the memory to the remote control terminal.
The "controller" in the present invention includes, but is not limited to BMC, ARM, PSOC, etc. the "I2C bus" in the present invention may be replaced by SPI (Serial Peripheral Interface) bus or I3C bus.
FIG. 2 is a topology diagram of a JBOD out-of-band management system provided by the present invention. As shown in fig. 2, the system includes a plurality of expanders (SAS expanders) for hard disk (HDD) expansion, status monitoring, and hard disk management, and a controller for out-of-band management of devices, temperature monitoring, fan speed regulation, asset management, firmware upgrade, log collection and storage, and the controller communicates with the outside through LAN, serial port, I2C (Inter-Integrated Circuit, serial communication bus), and the like, to perform out-of-band management. The controller is connected with the SAS Expander through an I2C bus and a serial bus, the invention mainly depends on the I2C bus to carry out operations such as data communication, firmware upgrading and the like, and depends on the serial bus to carry out log collection and SOL remote control console of the Expander, and a memory is used for storing programs, configuration, log data and the like. And the controller respectively transmits information through the corresponding UART and the expander. The EEPROM in fig. 2 represents an electrically erasable programmable read-only memory (electrically erasable programmable read-only memory).
FIG. 3 is a diagram of the minimum model of the JBOD out-of-band management system provided by the present invention. As shown in fig. 3, a minimum model of a JBOD system is shown in the dashed line, the hard disk is expanded by the expander, and the data plane expander is connected to the host server through the SAS bus. The control plane is connected to the out-of-band management controller through a UART (asynchronous serial interface) and an I2C bus. The controller can realize UART physical output and SOL functions, and corresponding to UART selection and switching functions of the Expander (SOL or UART ports can only select one Expander at the same time), but the controller can record serial log output data of all the expanders at the same time, otherwise, the condition of key log loss can occur. A user can remotely access the controller through the LAN to remotely control the JBOD and acquire the running state data and the log data of the Expander.
JBOD provides a physical serial port output externally, and can be directly connected with equipment to perform serial port console management or serial port log output. The physical serial port can output one of the serial port of BMC in JBOD and the serial ports of 4 expanders to the physical serial port through BMC.
JBOD provides gigabit network port, and the user may connect JBOD directly and remotely for independent out-of-band management. The JBOD management system can perform functions of JBOD resource management, Expander and hard disk management, JBOD log collection query, SOL and the like.
JBOD provides two I2C ports (I3C or SPI) and is connected with BMC in the HOST server to report the asset information and state data of JBOD, so that HOST BMC unified management is facilitated. When JBOD is not connected to the management network, it can also be managed indirectly through HOST BMC.
The JBOD is provided with a memory for storing programs, configuration and log data, and the memory is Flash by default or can be an expansion TF card.
FIG. 4 is a physical link diagram of the JBOD out-of-band management system provided by the present invention. The JBOD system is arranged in a dotted line frame, 4 expanders are respectively connected to 4 UART interfaces of the controller through UARTs, the controller collects/monitors communication data on a UART bus, collects and records transmitted log data, and then stores the log data in a corresponding area in a memory.
In the embodiment of the invention, the controller can monitor/collect the running state of the whole box in real time, and logs such as JBOD temperature information, voltage information, current information, power supply state information, fan running state information, the running state of the Expander and log information recorded by the running state, hard disk state information, user access condition and the like are recorded in time for abnormal running conditions. And recording abnormal states or generating log information for recording and backtracking.
In some embodiments, further comprising: and reporting the collected logs to a host server. In the embodiment of the invention, a plurality of ways are available for reporting the log: 1. the controller directly reports to the remote server through the LAN; 2. a user actively inquires log data recorded by the controller from the controller through the LAN; 3. outputting log data through a serial port; 4. and the controller reports the information to the BMC of the Host server, and the information is processed and reported by the BMC of the Host server.
In some embodiments, further comprising: and establishing a corresponding management relation between the host server and the expander. In some embodiments, reporting the collected log to a server comprises: and reporting the logs of the expander to a server having a management relation with the expander, and hiding the logs of the expander from other servers. There are multiple host servers in this embodiment. For the connection of multiple Host servers, in this embodiment, for safety, all log data will not be uploaded to the Host server BMC when the controller reports the log. For public data, such as log data of a controller, fans, power supplies and the like, the public data of JBOD box equipment is in a mode that both Host server BMCs can read; for private data, such as log data of the host and the corresponding hard disk reported by 4 expanders, the host server can only read the log of the managed Expander, so that the security problem is prevented. For example, Host1 manages Expander1 and Expander2, and Host2 manages Expander3 and Expander4, so that when the BMC of Host1 queries the log data of the JBOD controller, the controller will only report the public log data and the log data of Expander1 and Expander 2.
In the embodiment of the invention, the serial ports of the UART (UART5) and the 4 expanders of the controller can be output through the serial ports, a command can be sent to enable the controller to output serial port data of the expanders, and one of the 5 components is selected as the UART of the controller by default. The controller is internally provided with a serial Switch for switching and controlling.
In the embodiment of the invention, an internal UART5 is used for receiving and communicating data behind the Switch, so that the communication of 5-selected serial port data is realized, the data is modulated and demodulated, and then the data is transmitted in a network message manner, so that the function of remotely receiving and controlling the serial port through a network is realized.
In another embodiment of the present invention, a set of I2C buses are used to connect and control the Expander by transmitting control commands and data. The data transmission of the UART bus is reduced, the UART can only transmit log data as far as possible, and the log transmission speed and the log acquisition difficulty are improved. The I2C bus in this embodiment is only an improved optimization, and is not a necessary item, and data transmission can be performed only by UART. If only UART is used, the log data and the control data need to be distinguished in the embodiment of the invention, and a sorting module for distinguishing the log data from the control data can be added.
In the embodiment of the invention, for the access and SOL functions through the LAN, the security authentication of the client is required to be carried out, and the security of the access log is ensured.
In some embodiments, storing the log to a memory comprises: and classifying and hierarchically storing the logs. In the embodiment of the invention, various collected logs are classified and stored, and the logs of the controller, the logs of the box running state (temperature, power supply, voltage, fan and the like), the logs of the Expander (the state of the Expander system and a hard disk) and the like are stored. And the logs of the related categories are directly extracted conveniently by respectively storing the logs in each category according to the grade of the logs, so that the problems of screening time and serious log coverage of common logs are solved.
In some embodiments, storing the log to a memory comprises: judging whether the utilization rate of the memory exceeds a threshold value; and in response to the usage of the memory exceeding a threshold, overwriting the logs that are chronologically top. Because the memory space is limited and unlimited storage cannot be realized, the design adopts a circular covering mode, and the earliest log is covered when the memory space is full. Typically one class of data stores about 4M space.
In some embodiments, storing the log to a memory comprises: caching the collected logs and judging whether the cache size reaches a second threshold value; and responding to the cache size reaching the second threshold value, analyzing the cache, deleting the repeated content and compressing. Because the generation time of the log data is unpredictable and discontinuous, the embodiment of the invention firstly caches the acquired log data, and compresses and stores the log data when the cache size reaches a second threshold (for example, 1M data). And decompressing when the user reads the data, and restoring the data.
In the embodiment, a QuickLZ data compression algorithm is adopted to compress and decompress data.
QuickLZ is an open-source, lightweight, pure C-implemented, simple, efficient, fast compression algorithm. The algorithm is a compression library and provides the implementation functions of compression and decompression. The algorithm is simple to use, and only needs to directly call a compression function or a decompression function. The algorithm has the characteristics of less functions, small volume and less system resources occupied by operation. The algorithm has high encryption and decryption speed which is about 10 times faster than that of a zip algorithm, and 1M data has about 25ms time. The modularization is better, and the dependence on a system and a compiler is small, only 3 basic libraries are used, and the method can be directly used. Through actual measurement, log data can be compressed to about 15% -20% of the original volume, and about 80% of storage space can be reduced. Of course, the compression algorithm is not limited and other algorithms may be employed in other embodiments.
In some embodiments, further comprising: judging whether the emergency level of the collected log reaches a threshold value; responding to the emergency level of the collected log reaching a threshold value, and judging whether to establish connection with a remote server; reporting the collected log to a remote server in response to establishing a connection with the remote server; and reporting the collected log to a host server in response to a connection not being established with a remote server.
The controller can report remote faults in real time aiming at the collected logs with the fatal and serious grades, so that problems can be found and removed as soon as possible. When the controller is configured with a remote fault server and is connected with a network, the controller can report the fault to the remote server through the network preferentially and mark the reported fault in a log. When the Host server BMC collects the log, the log can be reported, and the log cannot be reported repeatedly. When the controller is not connected with the network or the remote fault server configuration fails or the network reporting fails, the controller reports the fault to the BMC side of the Host server, and the BMC of the Host reports the fault. It is ensured that the fault can arrive at the user's remote fault control centre at the first time.
According to the embodiment of the invention, the controller is directly connected with the Expander, so that the log information output by the UART can be recorded at the same time; according to the embodiment of the invention, the SOL is adopted, the specified serial port data is directly output to a far end, and meanwhile, the related data information can be recorded; according to the embodiment of the invention, the management relation is established between the host server and the expander, so that the log is subjected to distinguishing management and independent reporting, and the security of the log is higher; by compressing the logs, the problems that the storage space of the log information in the JBOD is limited, the time for storing the logs is too short, important information is lost and complete backtracking and positioning cannot be realized are solved; by adding the out-of-band management controller, the log information is acquired and stored, and can be independently accessed without depending on the outside, so that the problem of log loss caused by untimely external acquisition is solved; meanwhile, the problem that the serious problem of the log information in the JBOD cannot be independently alarmed and reported to the remote control server at present is solved.
The embodiment of the invention manages JBOD log information in an out-of-band mode, does not influence the data plane service and does not interrupt the service operation of the Expander, realizes independent management and storage of the JBOD device log, does not depend on an external system, ensures the integrity, reliability and traceability of the log information, and can be stored and managed independently for a long time. The system maintenance method and the system maintenance system provide great convenience for system maintenance personnel and management personnel, thereby reducing the cost of system management and maintenance, simultaneously ensuring that the service of a user is smoothly carried out, reducing the complexity of maintenance, improving the reliability of maintenance, reducing the maintenance time and cost and improving the product competitiveness.
It should be particularly noted that, the steps in the above-mentioned embodiments of the method for log management in a JBOD out-of-band management system can be interleaved, replaced, added, or deleted, so that these methods for log management in a JBOD out-of-band management system with reasonable permutation and combination transformation shall also fall within the scope of the present invention, and shall not limit the scope of the present invention to the embodiments.
In view of the above object, a second aspect of the embodiments of the present invention provides a computer device, including: at least one processor; and a memory storing computer instructions executable on the processor, the instructions being executable by the processor to perform the steps of: s1, collecting the logs of the expander through the asynchronous serial port, and storing the logs in a memory; s2, responding to a command for collecting the expander logs sent by a remote control end, and judging whether the command indicates to collect the real-time logs; s3, responding to the collected real-time log, controlling the exchanger to enable the remote control end to carry out data transmission with the corresponding expander; and S4, responding to the real-time log not collected, acquiring and sending the log of the corresponding expander in the memory to the remote control terminal.
In some embodiments, further comprising: and reporting the collected logs to a host server.
In some embodiments, further comprising: judging whether the emergency level of the collected log reaches a threshold value; responding to the emergency level of the collected log reaching a threshold value, and judging whether to establish connection with a remote server; reporting the collected log to a remote server in response to establishing a connection with the remote server; and reporting the collected log to a host server in response to a connection not being established with a remote server.
In some embodiments, further comprising: and establishing a corresponding management relation between the host server and the expander.
In some embodiments, reporting the collected log to a server comprises: and reporting the logs of the expander to a server having a management relation with the expander, and hiding the logs of the expander from other servers.
In some embodiments, storing the log to a memory comprises: and classifying and hierarchically storing the logs.
In some embodiments, storing the log to a memory comprises: judging whether the utilization rate of the memory exceeds a threshold value; and in response to the usage of the memory exceeding a threshold, overwriting the logs that are chronologically top.
In some embodiments, storing the log to a memory comprises: caching the collected logs and judging whether the cache size reaches a second threshold value; and responding to the cache size reaching the second threshold value, analyzing the cache, deleting the repeated content and compressing.
Fig. 5 is a schematic hardware structure diagram of an embodiment of an apparatus for log management in the above JBOD out-of-band management system according to the present invention.
Taking the apparatus shown in fig. 5 as an example, the apparatus includes a processor 301 and a memory 302, and may further include: an input device 303 and an output device 304.
The processor 301, the memory 302, the input device 303 and the output device 304 may be connected by a bus or other means, and fig. 5 illustrates the connection by a bus as an example.
The memory 302, which is a non-volatile computer-readable storage medium, may be used to store non-volatile software programs, non-volatile computer-executable programs, and modules, such as program instructions/modules corresponding to the method for log management in a JBOD out-of-band management system in embodiments of the present application. The processor 301 executes various functional applications of the server and data processing by running the non-volatile software programs, instructions and modules stored in the memory 302, i.e., implements the method of log management in the JBOD out-of-band management system of the above-described method embodiments.
The memory 302 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to use of a method of log management in the JBOD out-of-band management system, and the like. Further, the memory 302 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some embodiments, memory 302 optionally includes memory located remotely from processor 301, which may be connected to a local module via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 303 may receive information such as a user name and a password that are input. The output means 304 may comprise a display device such as a display screen.
Program instructions/modules corresponding to methods of log management in one or more JBOD out-of-band management systems are stored in the memory 302 and, when executed by the processor 301, perform the methods of log management in a JBOD out-of-band management system in any of the method embodiments described above.
Any embodiment of a computer device performing the method of log management in a JBOD out-of-band management system as described above may achieve the same or similar effects as any of the preceding method embodiments corresponding thereto.
The invention also provides a computer readable storage medium storing a computer program which, when executed by a processor, performs the method as above.
Finally, it should be noted that, as one of ordinary skill in the art can appreciate that all or part of the processes of the methods of the above embodiments can be implemented by a computer program to instruct related hardware, and the program of the method for log management in the JBOD out-of-band management system can be stored in a computer readable storage medium, and when executed, the program can include the processes of the embodiments of the methods as described above. The storage medium of the program may be a magnetic disk, an optical disk, a Read Only Memory (ROM), a Random Access Memory (RAM), or the like. The embodiments of the computer program may achieve the same or similar effects as any of the above-described method embodiments.
Furthermore, the methods disclosed according to embodiments of the present invention may also be implemented as a computer program executed by a processor, which may be stored in a computer-readable storage medium. Which when executed by a processor performs the above-described functions defined in the methods disclosed in embodiments of the invention.
Further, the above method steps and system elements may also be implemented using a controller and a computer readable storage medium for storing a computer program for causing the controller to implement the functions of the above steps or elements.
Further, it should be appreciated that the computer-readable storage media (e.g., memory) herein can be either volatile memory or nonvolatile memory, or can include both volatile and nonvolatile memory. By way of example, and not limitation, nonvolatile memory can include Read Only Memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM), which can act as external cache memory. By way of example and not limitation, RAM is available in a variety of forms such as synchronous RAM (DRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), and Direct Rambus RAM (DRRAM). The storage devices of the disclosed aspects are intended to comprise, without being limited to, these and other suitable types of memory.
Those of skill would further appreciate that the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the disclosure herein may be implemented as electronic hardware, computer software, or combinations of both. To clearly illustrate this interchangeability of hardware and software, various illustrative components, blocks, modules, circuits, and steps have been described above generally in terms of their functionality. Whether such functionality is implemented as software or hardware depends upon the particular application and design constraints imposed on the overall system. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the disclosed embodiments of the present invention.
The various illustrative logical blocks, modules, and circuits described in connection with the disclosure herein may be implemented or performed with the following components designed to perform the functions herein: a general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination of these components. A general purpose processor may be a microprocessor, but in the alternative, the processor may be any conventional processor, controller, microcontroller, or state machine. A processor may also be implemented as a combination of computing devices, e.g., a combination of a DSP and a microprocessor, a plurality of microprocessors, one or more microprocessors in conjunction with a DSP, and/or any other such configuration.
The steps of a method or algorithm described in connection with the disclosure herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. In the alternative, the storage medium may be integral to the processor. The processor and the storage medium may reside in an ASIC. The ASIC may reside in a user terminal. In the alternative, the processor and the storage medium may reside as discrete components in a user terminal.
In one or more exemplary designs, the functions may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a general purpose or special purpose computer. By way of example, and not limitation, such computer-readable media can comprise RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a general-purpose or special-purpose computer, or a general-purpose or special-purpose processor. Also, any connection is properly termed a computer-readable medium. For example, if the software is transmitted from a website, server, or other remote source using a coaxial cable, fiber optic cable, twisted pair, Digital Subscriber Line (DSL), or wireless technologies such as infrared, radio, and microwave, then the coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included in the definition of medium. Disk and disc, as used herein, includes Compact Disc (CD), laser disc, optical disc, Digital Versatile Disc (DVD), floppy disk, blu-ray disc where disks usually reproduce data magnetically, while discs reproduce data optically with lasers. Combinations of the above should also be included within the scope of computer-readable media.
The foregoing is an exemplary embodiment of the present disclosure, but it should be noted that various changes and modifications could be made herein without departing from the scope of the present disclosure as defined by the appended claims. The functions, steps and/or actions of the method claims in accordance with the disclosed embodiments described herein need not be performed in any particular order. Furthermore, although elements of the disclosed embodiments of the invention may be described or claimed in the singular, the plural is contemplated unless limitation to the singular is explicitly stated.
It should be understood that, as used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly supports the exception. It should also be understood that "and/or" as used herein is meant to include any and all possible combinations of one or more of the associated listed items.
The numbers of the embodiments disclosed in the embodiments of the present invention are merely for description, and do not represent the merits of the embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
Those of ordinary skill in the art will understand that: the discussion of any embodiment above is meant to be exemplary only, and is not intended to intimate that the scope of the disclosure, including the claims, of embodiments of the invention is limited to these examples; within the idea of an embodiment of the invention, also technical features in the above embodiment or in different embodiments may be combined and there are many other variations of the different aspects of the embodiments of the invention as described above, which are not provided in detail for the sake of brevity. Therefore, any omissions, modifications, substitutions, improvements, and the like that may be made without departing from the spirit and principles of the embodiments of the present invention are intended to be included within the scope of the embodiments of the present invention.

Claims (10)

1.一种JBOD带外管理系统中日志管理的方法,其特征在于,包括以下步骤:1. a method for log management in a JBOD out-of-band management system, is characterized in that, comprises the following steps: 通过异步串口采集扩展器的日志,并将所述日志存储到存储器;Collect the log of the expander through the asynchronous serial port, and store the log in the memory; 响应于接收到远程控制端发出的采集扩展器日志的命令,判断所述命令是否指示采集实时日志;In response to receiving the command for collecting the expander log sent by the remote control terminal, it is judged whether the command instructs the collection of real-time logs; 响应于采集实时日志,控制交换器使得所述远程控制端与对应的扩展器进行数据传输;以及In response to collecting the real-time log, the control switch causes the remote control terminal to perform data transmission with the corresponding expander; and 响应于不是采集实时日志,获取并将所述存储器中对应的扩展器的日志发送给所述远程控制端。In response to not collecting the real-time log, acquiring and sending the log of the corresponding expander in the memory to the remote control terminal. 2.根据权利要求1所述的方法,其特征在于,还包括:2. The method of claim 1, further comprising: 将采集到的日志上报到主机服务器。Report the collected logs to the host server. 3.根据权利要求2所述的方法,其特征在于,还包括:3. The method of claim 2, further comprising: 判断采集到的日志的紧急等级是否达到阈值;Determine whether the emergency level of the collected logs reaches the threshold; 响应于所述采集到的日志的紧急等级达到阈值,判断是否与远程服务器建立连接;In response to the emergency level of the collected log reaching the threshold, determine whether to establish a connection with the remote server; 响应于与远程服务器建立连接,将所述采集到的日志上报到远程服务器;以及In response to establishing a connection with the remote server, reporting the collected log to the remote server; and 响应于未与远程服务器建立连接,将所述采集到的日志上报到主机服务器。In response to not establishing a connection with the remote server, the collected log is reported to the host server. 4.根据权利要求3所述的方法,其特征在于,还包括:4. The method of claim 3, further comprising: 建立主机服务器与扩展器的对应管理关系。Establish the corresponding management relationship between the host server and the expander. 5.根据权利要求4所述的方法,其特征在于,将采集到的日志上报到服务器包括:5. The method according to claim 4, wherein reporting the collected log to the server comprises: 将扩展器的日志上报给与所述扩展器存在管理关系的服务器,并将所述扩展器的日志对其它服务器进行隐藏。The log of the expander is reported to a server that has a management relationship with the expander, and the log of the expander is hidden from other servers. 6.根据权利要求1所述的方法,其特征在于,将所述日志存储到存储器包括:6. The method of claim 1, wherein storing the log in a memory comprises: 对所述日志进行分类和分级存储。The logs are classified and stored in stages. 7.根据权利要求1所述的方法,其特征在于,将所述日志存储到存储器包括:7. The method of claim 1, wherein storing the log to a memory comprises: 判断所述存储器的使用率是否超过阈值;以及determining whether the usage of the memory exceeds a threshold; and 响应于所述存储器的使用率超过阈值,将按照时间顺序排在最前的日志进行覆盖。In response to the usage of the memory exceeding the threshold, the logs ranked first in chronological order are overwritten. 8.根据权利要求1所述的方法,其特征在于,将所述日志存储到存储器包括:8. The method of claim 1, wherein storing the log to a memory comprises: 将采集到的日志进行缓存,并判断缓存大小是否达到第二阈值;Cache the collected logs, and determine whether the cache size reaches the second threshold; 响应于缓存大小达到所述第二阈值,对所述缓存进行分析,删除重复的内容并进行压缩。In response to the cache size reaching the second threshold, the cache is analyzed, duplicate content removed, and compressed. 9.一种计算机设备,其特征在于,包括:9. A computer equipment, characterized in that, comprising: 至少一个处理器;以及at least one processor; and 存储器,所述存储器存储有可在所述处理器上运行的计算机指令,所述指令由所述处理器执行时实现权利要求1-8任意一项所述方法的步骤。a memory storing computer instructions executable on the processor, the instructions implementing the steps of the method of any one of claims 1-8 when executed by the processor. 10.一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现权利要求1-8任意一项所述方法的步骤。10. A computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, the steps of the method of any one of claims 1-8 are implemented.
CN201911284210.7A 2019-12-13 2019-12-13 A method, device and medium for log management in a JBOD out-of-band management system Active CN111092759B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911284210.7A CN111092759B (en) 2019-12-13 2019-12-13 A method, device and medium for log management in a JBOD out-of-band management system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911284210.7A CN111092759B (en) 2019-12-13 2019-12-13 A method, device and medium for log management in a JBOD out-of-band management system

Publications (2)

Publication Number Publication Date
CN111092759A true CN111092759A (en) 2020-05-01
CN111092759B CN111092759B (en) 2022-12-16

Family

ID=70396055

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911284210.7A Active CN111092759B (en) 2019-12-13 2019-12-13 A method, device and medium for log management in a JBOD out-of-band management system

Country Status (1)

Country Link
CN (1) CN111092759B (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111708666A (en) * 2020-05-29 2020-09-25 苏州浪潮智能科技有限公司 A method, system, device and medium for starting container log
CN111858411A (en) * 2020-06-12 2020-10-30 苏州浪潮智能科技有限公司 System and method for realizing out-of-band interaction of server Expander card
CN112422328A (en) * 2020-11-03 2021-02-26 深圳市广和通无线股份有限公司 Log obtaining method and device, computer equipment and storage medium
CN112905430A (en) * 2021-02-24 2021-06-04 浙江大华技术股份有限公司 Log output method, log output device, storage medium and electronic device
CN113849440A (en) * 2021-09-30 2021-12-28 北京金山云网络技术有限公司 Log access method and device and server
CN114138602A (en) * 2021-11-26 2022-03-04 浪潮商用机器有限公司 A computer log collection and analysis device
CN115470188A (en) * 2022-08-30 2022-12-13 苏州浪潮智能科技有限公司 BMC storage area log collection method and device, terminal and storage medium
CN116126772A (en) * 2023-02-10 2023-05-16 苏州浪潮智能科技有限公司 UART serial port management system and method applied to ARM server
CN117971611A (en) * 2024-03-29 2024-05-03 苏州元脑智能科技有限公司 Data demodulation method, modulation method, device, equipment and medium for hard disk log
WO2025097890A1 (en) * 2023-11-10 2025-05-15 深圳引望智能技术有限公司 Fault log storage method, apparatus and system
CN120578559A (en) * 2025-07-31 2025-09-02 苏州元脑智能科技有限公司 Log collection method, device, equipment and medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104572421A (en) * 2015-02-03 2015-04-29 浪潮电子信息产业股份有限公司 Method for out-of-band obtaining and recording of server serial interface log independent of SOL
CN106250287A (en) * 2016-07-21 2016-12-21 柳州龙辉科技有限公司 A kind of log information processing means
CN106325761A (en) * 2015-06-29 2017-01-11 中兴通讯股份有限公司 Storage resource management system and method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104572421A (en) * 2015-02-03 2015-04-29 浪潮电子信息产业股份有限公司 Method for out-of-band obtaining and recording of server serial interface log independent of SOL
CN106325761A (en) * 2015-06-29 2017-01-11 中兴通讯股份有限公司 Storage resource management system and method
CN106250287A (en) * 2016-07-21 2016-12-21 柳州龙辉科技有限公司 A kind of log information processing means

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111708666B (en) * 2020-05-29 2022-11-15 苏州浪潮智能科技有限公司 Method, system, equipment and medium for starting container log
CN111708666A (en) * 2020-05-29 2020-09-25 苏州浪潮智能科技有限公司 A method, system, device and medium for starting container log
CN111858411A (en) * 2020-06-12 2020-10-30 苏州浪潮智能科技有限公司 System and method for realizing out-of-band interaction of server Expander card
CN111858411B (en) * 2020-06-12 2022-10-18 苏州浪潮智能科技有限公司 System and method for realizing out-of-band interaction of server Expander cards
CN112422328A (en) * 2020-11-03 2021-02-26 深圳市广和通无线股份有限公司 Log obtaining method and device, computer equipment and storage medium
CN112422328B (en) * 2020-11-03 2023-05-09 深圳市广和通无线股份有限公司 Log acquisition method, device, computer equipment and storage medium
CN112905430A (en) * 2021-02-24 2021-06-04 浙江大华技术股份有限公司 Log output method, log output device, storage medium and electronic device
CN113849440B (en) * 2021-09-30 2024-04-26 北京金山云网络技术有限公司 Log access method and device and server
CN113849440A (en) * 2021-09-30 2021-12-28 北京金山云网络技术有限公司 Log access method and device and server
CN114138602A (en) * 2021-11-26 2022-03-04 浪潮商用机器有限公司 A computer log collection and analysis device
CN115470188A (en) * 2022-08-30 2022-12-13 苏州浪潮智能科技有限公司 BMC storage area log collection method and device, terminal and storage medium
CN116126772A (en) * 2023-02-10 2023-05-16 苏州浪潮智能科技有限公司 UART serial port management system and method applied to ARM server
WO2025097890A1 (en) * 2023-11-10 2025-05-15 深圳引望智能技术有限公司 Fault log storage method, apparatus and system
CN117971611A (en) * 2024-03-29 2024-05-03 苏州元脑智能科技有限公司 Data demodulation method, modulation method, device, equipment and medium for hard disk log
CN117971611B (en) * 2024-03-29 2024-06-14 苏州元脑智能科技有限公司 Data demodulation method, modulation method, device, equipment and medium for hard disk log
CN120578559A (en) * 2025-07-31 2025-09-02 苏州元脑智能科技有限公司 Log collection method, device, equipment and medium
CN120578559B (en) * 2025-07-31 2025-10-03 苏州元脑智能科技有限公司 Log acquisition method, device, equipment and medium

Also Published As

Publication number Publication date
CN111092759B (en) 2022-12-16

Similar Documents

Publication Publication Date Title
CN111092759A (en) A method, device and medium for log management in a JBOD out-of-band management system
TWI434190B (en) Storing log data efficiently while supporting querying to assist in computer network security
TWI406152B (en) Storing log data efficiently while supporting querying
US20170116287A1 (en) Automatically generating and reporting merged performance and capacity statistics
CN104219327B (en) Distributed cache system
CN115914369B (en) Network target range log file acquisition proxy gateway, acquisition system and method
CN103731298A (en) Large-scale distributed network safety data acquisition method and system
US11218391B2 (en) Methods for monitoring performance of a network fabric and devices thereof
CN102708158B (en) PostgreSQL (postgres structured query language) cloud storage filing and scheduling system
CN111522703A (en) Method, apparatus and computer program product for monitoring access requests
CN117221151B (en) Visual management device and method for cloud computing storage
CN112417050A (en) Data synchronization method and device, system, storage medium and electronic device
US8024712B1 (en) Collecting application logs
CN114422564A (en) Audit tracing method and device for access data, computer equipment and storage medium
US9779004B2 (en) Methods and systems for real-time activity tracing in a storage environment
US20110271150A1 (en) Appliance for Storing, Managing and Analyzing Problem Determination Artifacts
CN116319054A (en) A kind of industrial information log warning method, device, electronic equipment and storage medium
CN113765717B (en) An operation and maintenance management system based on a confidential special computing platform
CN114297231A (en) Method for intelligently collecting logs and data and quickly forming relational topology
CN110413237B (en) Distributed storage method, device, terminal equipment and storage medium
CN108647284B (en) Method and device for recording user behavior, medium and computing equipment
US11055177B2 (en) Correlating operational information with an error condition in a dispersed storage network
CN109460194A (en) A kind of storage array monitoring system and method
CN113886345A (en) Fault recording control system, method, equipment and storage medium
CN118585568A (en) Autonomous driving platform data sharing method, system, device and electronic equipment

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
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: Building 9, No.1, guanpu Road, Guoxiang street, Wuzhong Economic Development Zone, Wuzhong District, Suzhou City, Jiangsu Province

Patentee after: Suzhou Yuannao Intelligent Technology Co.,Ltd.

Country or region after: China

Address before: Building 9, No.1, guanpu Road, Guoxiang street, Wuzhong Economic Development Zone, Wuzhong District, Suzhou City, Jiangsu Province

Patentee before: SUZHOU LANGCHAO INTELLIGENT TECHNOLOGY Co.,Ltd.

Country or region before: China