CN109254866A - The method and its fault tolerance facility of log information are stored in a kind of isomery mixing memory system - Google Patents

The method and its fault tolerance facility of log information are stored in a kind of isomery mixing memory system Download PDF

Info

Publication number
CN109254866A
CN109254866A CN201811138432.3A CN201811138432A CN109254866A CN 109254866 A CN109254866 A CN 109254866A CN 201811138432 A CN201811138432 A CN 201811138432A CN 109254866 A CN109254866 A CN 109254866A
Authority
CN
China
Prior art keywords
data
nvm
log
kernel
stored
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
CN201811138432.3A
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.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information 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 Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201811138432.3A priority Critical patent/CN109254866A/en
Publication of CN109254866A publication Critical patent/CN109254866A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • 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/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
    • 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/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/0706Error 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 the processing taking place on a specific hardware platform or in a specific software environment
    • G06F11/073Error 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 the processing taking place on a specific hardware platform or in a specific software environment in a memory management context, e.g. virtual memory or cache management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

This application provides a kind of methods that log information is stored in isomery mixing memory system characterized by comprising judges in NVM of the system for storing kernel log with the presence or absence of data;When, there are when data, data present in the NVM being temporarily stored in the caching that the system kernel temporarily distributes in the NVM;User empties the data stored in the NVM after reading the data in the caching.Therefore, set forth herein a kind of fault-tolerant methods of kernel log in isomery mixing memory system, fault-tolerant processing is carried out mainly for the kernel log in isomery mixing memory system, pass through the redirection of kernel log buffer area, realtime unification management kernel log fault tolerant mechanism is provided, the reliability, availability, scalability of system are enhanced.

Description

The method and its fault tolerance facility of log information are stored in a kind of isomery mixing memory system
Technical field
This application involves server field of storage, and more particularly, to storing in a kind of isomery mixing memory system The method and its fault tolerance facility of log information.
Background technique
The Stored Procedure of kernel log is by log information storage into buffer area, only when buffer area has been expired or is occurred Partial data or total data can be just removed when particular system calling system log (syslog), kernel log is flushed to disk In, real kernel log data can be stayed in the buffer under normal circumstances.If the data when buffer area are not protected in time It deposits and occurs as soon as system failure or power-off, this makes the important information of kernel log be unable to get preservation.
Summary of the invention
The application provides a kind of method that log information is stored in isomery mixing memory system, can be improved the reliable of system Property.
In a first aspect, providing a kind of method for storing log information in isomery mixing memory system, comprising: judge the system It whether there is data in the NVM to unite for storing kernel log;When in the NVM there are when data, will be present in the NVM Data are temporarily stored in the caching that the system kernel temporarily distributes;User empties institute after reading the data in the caching State the data stored in NVM.
With reference to first aspect, first aspect the first the method also includes: when described for storing kernel log NVM in when data are not present, the data filled in caching that the system kernel temporarily distributes are stored into the NVM.
With reference to first aspect and its above-mentioned implementation, in the first possible implementation of first aspect, the side Method further include: when, there are when data, data present in the NVM being resolved to readable form data in the NVM and are stored in In the system log of the system.
Second aspect provides the fault tolerance facility in a kind of isomery mixing memory system, comprising: determination unit, the determination Unit is used to judge in NVM of the system for storing kernel log with the presence or absence of data;Processing unit, the processing unit For when in the NVM there are when data, by data present in the NVM be temporarily stored in the system kernel temporarily distribute it is slow In depositing;The processing unit is also used in user after reading the data in the caching, empties the number stored in the NVM According to.
In conjunction with second aspect, in the first possible implementation of the second aspect, the processing unit is also used to work as It is described for storing in the NVM of kernel log there is no when data, by what is filled in caching that the system kernel temporarily distributes Data are stored into the NVM.
It is in a second possible implementation of the second aspect, described in conjunction with second aspect and its above-mentioned implementation Processing unit is also used to when there are when data, data present in the NVM being resolved to readable form data in the NVM and are protected There are in the system log of the system.
Therefore, the method fault-tolerant set forth herein kernel log in a kind of isomery mixing memory system, it is mixed mainly for isomery The kernel log closed in memory system carries out fault-tolerant processing, by the redirection of kernel log buffer area, provides unified pipe in real time Kernel log fault tolerant mechanism is managed, the reliability, availability, scalability (Reliability, Availability of system are enhanced And Serviceability, RAS).
Detailed description of the invention
Fig. 1 shows the schematic flow chart of the application one embodiment method.
Fig. 2 shows the schematic flow charts of the method for another embodiment of the application.
Fig. 3 shows the schematic block diagram of one device of the application.
Specific embodiment
Below in conjunction with attached drawing, the technical solution in the application is described.
As shown in Figure 1, Fig. 1 shows a kind of method for storing log information in isomery mixing memory system, comprising:
Step 110, judge in NVM of the system for storing kernel log with the presence or absence of data;
Step 120, when, there are when data, data present in the NVM being temporarily stored in the system kernel in the NVM In the caching temporarily distributed;
Step 130, user empties the data stored in the NVM after reading the data in the caching.
Optionally, as the application one embodiment, the method also includes: when described for storing kernel log When data being not present in NVM, the data filled in caching that the system kernel temporarily distributes are stored into the NVM.
Optionally, as the application one embodiment, the method also includes: when in the NVM there are when data, by institute It states data present in NVM and resolves to readable form data and be stored in the system log of the system.
In the case where powering off suddenly present invention primarily contemplates server in isomery mixing memory system, it is stored in memory buffer The kernel log in area is not recorded timely, and the loss of kernel log is caused.Therefore, set forth herein in a kind of mixing of isomery The fault-tolerant method of kernel log in deposit system carries out fault-tolerant processing mainly for the kernel log in isomery mixing memory system, It is realized using the non-volatile characteristic of nonvolatile memory nonvolatile memory (non-volatile memory, NVM) to kernel day Will it is fault-tolerant, by the redirection of kernel log buffer area, provide realtime unification management kernel log fault tolerant mechanism, enhance system RAS characteristic.The design structure of the fault-tolerant method of kernel log includes: that kernel log is fault-tolerant in a kind of isomery mixing memory system Module and kernel log storage and processing module.The fault-tolerant method flow diagram of kernel log is such as in a kind of isomery mixing memory system Shown in attached drawing 2.
The fault-tolerant module of kernel log refers to that kernel thread reads NVM log space and says if NVM log space has data Bright last time machine is abnormal power-down, and NVM saves the kernel log before last time power-off, and it is empty that kernel thread need to first read NVM log Between in data keep in the caching buf of kernel temporarily distributed;Then the data on NVM log space are emptied;If NVM Log space does not have data, the data copy that operating system has been filled in kernel log buf to NVM log space.Kernel log Buf is redirected to NVM log space.
Kernel log storage and processing module refer to that NVM User space monitoring process reads operating system in kernel log buf The NVM data that the data copy having been filled with may be kept in into NVM log space is then parsed into readable shape if there is data Formula is stored under the catalogue of system log.NVM User space log parses process and parses NVM log, and dmesg can also read NVM Log.
Therefore, the method fault-tolerant set forth herein kernel log in a kind of isomery mixing memory system, it is mixed mainly for isomery The kernel log closed in memory system carries out fault-tolerant processing, by the redirection of kernel log buffer area, provides unified pipe in real time Kernel log fault tolerant mechanism is managed, the reliability, availability, scalability (Reliability, Availability of system are enhanced And Serviceability, RAS).
As shown in figure 3, providing the fault tolerance facility in a kind of isomery mixing memory system, comprising: determination unit 310, it is described Determination unit 310 is used to judge in NVM of the system for storing kernel log with the presence or absence of data;Processing unit 320, institute Processing unit is stated for when, there are when data, data present in the NVM being temporarily stored in the system kernel in the NVM and are faced When the caching that distributes in;The processing unit is also used in user after reading the data in the caching, empties the NVM The data of middle storage.
Optionally, as the application one embodiment, the processing unit 320 is also used to when described for storing kernel day When data being not present in the NVM of will, the data filled in caching that the system kernel temporarily distributes are stored to the NVM In.
Optionally, as the application one embodiment, the processing unit be also used to when in the NVM there are when data, Data present in the NVM are resolved to readable form data to be stored in the system log of the system.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually It is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technician Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed The scope of the present invention.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed systems, devices and methods, it can be with It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit It divides, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components It can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown or The mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, the indirect coupling of device or unit It closes or communicates to connect, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.
It, can be with if the function is realized in the form of SFU software functional unit and when sold or used as an independent product It is stored in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially in other words The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a People's computer, server or the second equipment etc.) it performs all or part of the steps of the method described in the various embodiments of the present invention. And storage medium above-mentioned includes: that USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited The various media that can store program code such as reservoir (RAM, Random Access Memory), magnetic or disk.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain Lid is within protection scope of the present invention.Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (6)

1. storing the method for log information in a kind of isomery mixing memory system characterized by comprising
Judge in NVM of the system for storing kernel log with the presence or absence of data;
When in the NVM there are when data, by data present in the NVM be temporarily stored in the system kernel temporarily distribute it is slow In depositing;
User empties the data stored in the NVM after reading the data in the caching.
2. the method according to claim 1, wherein the method also includes:
When it is described for storing in the NVM of kernel log there is no data when, in caching that the system kernel is temporarily distributed The data of filling are stored into the NVM.
3. method according to claim 1 or 2, which is characterized in that the method also includes:
When, there are when data, data present in the NVM being resolved to readable form data in the NVM and are stored in the system In the system log of system.
4. the fault tolerance facility in a kind of isomery mixing memory system characterized by comprising
Determination unit, the determination unit are used to judge in NVM of the system for storing kernel log with the presence or absence of data;
Processing unit, the processing unit are used for when, there are when data, data present in the NVM being kept in the NVM In the caching that the system kernel temporarily distributes;
The processing unit is also used in user after reading the data in the caching, empties the number stored in the NVM According to.
5. fault tolerance facility according to claim 4, which is characterized in that the processing unit is also used to when described for storing When data being not present in the NVM of kernel log, the data filled in caching that the system kernel temporarily distributes are stored to institute It states in NVM.
6. fault tolerance facility according to claim 4 or 5, which is characterized in that the processing unit is also used to when in the NVM There are when data, data present in the NVM are resolved into readable form data and are stored in the system log of the system.
CN201811138432.3A 2018-09-28 2018-09-28 The method and its fault tolerance facility of log information are stored in a kind of isomery mixing memory system Withdrawn CN109254866A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811138432.3A CN109254866A (en) 2018-09-28 2018-09-28 The method and its fault tolerance facility of log information are stored in a kind of isomery mixing memory system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811138432.3A CN109254866A (en) 2018-09-28 2018-09-28 The method and its fault tolerance facility of log information are stored in a kind of isomery mixing memory system

Publications (1)

Publication Number Publication Date
CN109254866A true CN109254866A (en) 2019-01-22

Family

ID=65047627

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811138432.3A Withdrawn CN109254866A (en) 2018-09-28 2018-09-28 The method and its fault tolerance facility of log information are stored in a kind of isomery mixing memory system

Country Status (1)

Country Link
CN (1) CN109254866A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103336736A (en) * 2013-05-27 2013-10-02 华为技术有限公司 System log acquisition method and device
US20140129875A1 (en) * 2012-11-08 2014-05-08 Inventec Appliances (Pudong) Corporation Method for reading kernel log upon kernel panic in operating system
CN106775490A (en) * 2016-12-29 2017-05-31 郑州云海信息技术有限公司 A kind of kernel log storage method and device based on nonvolatile memory

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140129875A1 (en) * 2012-11-08 2014-05-08 Inventec Appliances (Pudong) Corporation Method for reading kernel log upon kernel panic in operating system
CN103809989A (en) * 2012-11-08 2014-05-21 英华达(南京)科技有限公司 Method for reading complete core log under situation of core collapse of operating system
CN103336736A (en) * 2013-05-27 2013-10-02 华为技术有限公司 System log acquisition method and device
CN106775490A (en) * 2016-12-29 2017-05-31 郑州云海信息技术有限公司 A kind of kernel log storage method and device based on nonvolatile memory

Similar Documents

Publication Publication Date Title
CN106844108B (en) A kind of date storage method, server and storage system
CN109885256A (en) A kind of date storage method based on data fragmentation, equipment and medium
KR100843495B1 (en) A method for sending service data to an rfid tag while an attached computer system is powered off and a computer system therefor
CN101090308B (en) Heartbeat communication method and system
US6708297B1 (en) Method and system for monitoring errors on field replaceable units
CN110807064B (en) Data recovery device in RAC distributed database cluster system
Liotine Mission-critical network planning
CN109587331A (en) The method and system that cloud fault of mobile phone is automatically repaired
CN103152390A (en) Method and device and nodes and system for node configuration of distributed storage system
CN104579765A (en) Disaster tolerance method and device for cluster system
CN113946276B (en) Disk management method, device and server in cluster
CN112230847B (en) Method, system, terminal and storage medium for monitoring K8s storage volume
CN108205482B (en) File mount restoration methods
CN107272669B (en) A kind of airborne Fault Management System
CN110291505A (en) Reduce the recovery time of application
CN107959872A (en) A kind of video switching method, device and video patrol system
CN109240847A (en) EMS memory error report method, device, terminal and storage medium during a kind of POST
CN111435286B (en) Data storage method, device and system
CN110244904B (en) Data storage system, method and device
CN109254866A (en) The method and its fault tolerance facility of log information are stored in a kind of isomery mixing memory system
CN106713041A (en) Session log transmitting method and device
CN103797471A (en) Caching system with removable memory card
US20150088826A1 (en) Enhanced Performance for Data Duplication
CN104023076B (en) The management method and multi-tenant interchanger of Ethernet interface hard-disk capacity
CN110336701B (en) High-density two-way server management method and system

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

Application publication date: 20190122