Method, electronic device and computer program product for data processing

By introducing a second operating system into the storage system for data synchronization and collection, the problem of difficulty in data collection when the storage system fails is solved, high availability and rapid recovery are achieved, and user experience and system stability are improved.

CN118689701APending Publication Date: 2024-09-24DELL PROD LP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310305095.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-24
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

Existing storage systems cannot effectively collect data when a failure occurs, resulting in long system recovery times, affecting user experience, and being unable to meet high availability requirements. Especially in the event of hardware failure or rolling kernel panic, data collection is blocked, affecting the system. Stability and user experience.

Method used

By synchronizing data between the first operating system and the second operating system, utilizing the second operating system for data collection when the first operating system fails, and synchronizing the data after it recovers, ensuring high availability and rapid recovery of data collection . The architecture of the second operating system is different from that of the first operating system. It can run independently and handle data collection tasks to avoid long-term occupation of resources during the data collection process.

Benefits of technology

It achieves instant data collection, reduces system failure processing time, improves the traceability and user experience of the storage system, ensures that data collection can still be carried out in the event of hardware failure or malfunction, and improves the stability and high availability of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118689701A
    Figure CN118689701A
Patent Text Reader

Abstract

The invention relates to a method, an electronic device and a computer program product for data processing. The method includes obtaining, by a first operating system, first data of a storage system from a data collector, synchronizing the first data from the first operating system to a second operating system, where the architecture of the second operating system is different from the architecture of the first operating system. The method further includes obtaining, by the second operating system, second data of the storage system from the data collector in response to a failure of the first operating system, and synchronizing the second data from the second operating system to the first operating system in response to a recovery of the first operating system. Through the method disclosed by the embodiment of the invention, the processing time can be reduced to the greatest extent, the high availability of data collection is ensured, the computing resources of a storage system and the resources of a memory are saved, and the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present disclosure relate to the field of computers, and more particularly, to a method, an electronic device, and a computer program product for data processing. Background Art

[0002] The storage system may crash due to a defect in the software or hardware itself. For example, the operating system in the storage system may become unresponsive during the core dump processing and system reboot. During the downtime when the operating system is unresponsive, data collection and classification cannot be performed because the operating system cannot be accessed. Summary of the invention

[0003] Embodiments of the present disclosure provide a method, an electronic device, and a computer program product for data processing.

[0004] According to a first aspect of the present disclosure, a data processing method is provided, including obtaining first data of a storage system from a data collector by a first operating system, synchronizing the first data from the first operating system to a second operating system, wherein the architecture of the second operating system is different from the architecture of the first operating system. The method also includes obtaining second data of the storage system from the data collector by the second operating system in response to a failure of the first operating system, and synchronizing the second data from the second operating system to the first operating system in response to the first operating system being recovered.

[0005] According to a second aspect of the present disclosure, a storage system is provided. The storage system includes one or more memories, and has instructions stored thereon, and when the instructions are executed, the storage system performs an action, and the action includes obtaining first data of the storage system from a data collector by a first operating system, and synchronizing the first data from the first operating system to a second operating system, wherein the architecture of the second operating system is different from the architecture of the first operating system. The action also includes obtaining second data of the storage system from the data collector by the second operating system in response to a failure of the first operating system, and synchronizing the second data from the second operating system to the first operating system in response to the first operating system being recovered.

[0006] According to a third aspect of the present disclosure, there is provided a computer program product, which is tangibly stored on a non-volatile computer-readable medium and comprises machine-executable instructions, which when executed cause a machine to perform the steps of the method in the first aspect of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0007] The above and other purposes, features and advantages of the present disclosure will become more apparent by describing the exemplary embodiments of the present disclosure in more detail in conjunction with the accompanying drawings, wherein the same reference numerals generally represent the same elements in the exemplary embodiments of the present disclosure. In the accompanying drawings:

[0008] Figure 1 A schematic diagram illustrating an example environment in which devices and / or methods according to embodiments of the present disclosure may be implemented;

[0009] Figure 2 A framework diagram of a data processing method according to an embodiment of the present disclosure is illustrated;

[0010] Figure 3 A schematic diagram illustrating that when one operating system fails, another operating system continues to work according to an embodiment of the present disclosure;

[0011] Figure 4 A schematic diagram illustrating the internal structure of a first operating system and a second operating system;

[0012] Figure 5 A schematic diagram of a high availability cluster composed of one or more storage systems according to an embodiment of the present disclosure is illustrated;

[0013] Figure 6 A schematic block diagram of an example device suitable for implementing embodiments of the present disclosure is illustrated. DETAILED DESCRIPTION

[0014] The preferred embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although some specific embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to make the present disclosure more thorough and complete, and to fully convey the scope of the present disclosure to those skilled in the art.

[0015] As used herein, the term "including" and its variations mean open inclusion, i.e., "including but not limited to". Unless otherwise stated, the term "or" means "and / or". The term "based on" means "based at least in part on". The terms "an example embodiment" and "an embodiment" mean "at least one example embodiment". The term "another embodiment" means "at least one additional embodiment". The terms "first", "second", etc. may refer to different or identical objects, unless explicitly indicated to be different. Similar reference numerals may represent similar elements.

[0016] The storage system may crash due to defects in the software or hardware itself. For example, during the kernel dump ("kerneldump") processing and system reboot, the operating system in the storage system will be unresponsive. During the downtime when the operating system is unresponsive, data collection and classification cannot be performed because the operating system cannot be accessed. After the storage system restarts, it takes a long time (usually several hours) for the storage system to fully recover from the crash, affecting the user experience, because data collection consumes system computing and memory resources. Worse, rolling kernel panics and hardware failures may also make it impossible to collect data.

[0017] On the other hand, data collection ("data collection") can help locate and root cause problems in the storage system, which helps users quickly get rid of running vulnerable software. Data collection is a maintainability feature that provides extensible system-wide utilities to collect static and dynamic information. This collected information can be used to classify system failures and problems. For example, when an internal fatal error is detected in the operating system kernel, error-related information such as memory dumps, stack traces, and system logs can be collected to help diagnose and debug the cause of the kernel error.

[0018] A kernel panic is a condition in which the operating system kernel in a storage system detects an internal fatal error from which the kernel is either unable to recover safely or continuing to run the system would expose it to a higher risk of significant data loss. A panic can occur due to a hardware failure or a software bug in the operating system. In many cases, the operating system is able to continue running after the error has occurred. However, the system is left in an unstable state, and to avoid the risk of security breaches and data corruption, the operating system is stopped to prevent further damage and facilitate error diagnosis, and is typically restarted.

[0019] In order to avoid kernel panic, there is a Kdump function in the kernel of an operating system such as Linux, which can create a crash dump when the Linux kernel crashes or fails. For example, after a kernel panic is triggered, kdump can export a memory image (also called a vmcore), which can be analyzed for debugging and determining the cause of the crash. In the case of a kernel panic, kdump maintains system consistency by starting another Linux kernel (called a dump capture kernel) and using it to export and save a memory dump. Therefore, the system boots into a clean and reliable environment, rather than relying on a crashed kernel that may cause various problems, such as causing file system corruption when writing a memory dump file.

[0020] Current storage systems may have very large storage configuration files, and kdump will take a long time to complete the dump and compress the dump output. During this process, the storage system cannot accept user commands to prevent the storage from being contaminated by new user operations. Data collection requests must wait until the storage system is restarted to a normal state. Therefore, there is a possibility that the storage system enters a rolling kernel panic state and data collection cannot be performed until the hardware problem is fixed.

[0021] However, storage systems are often required to have "five nines" availability (99.999% uptime) or "six nines" availability (99.9999% uptime) for various applications and services. Current data collection methods cannot meet the required stability in the event of a storage system failure, for example, data collection is not possible when a storage system fails. This slows down the root cause and resolution process because triage and repair are delayed. The user experience will be affected because users have to risk running vulnerable systems longer.

[0022] In addition, the data collection process takes a long time, which consumes server CPU computing resources and memory resources, and system recovery will be delayed. I / O performance will be affected before data collection is completed. Rolling kernel panics and hardware failures will make the problem worse because data collection will be completely blocked. During the server crash, some hardware computing / memory resources will be unavailable because user I / O cannot be provided.

[0023] At least to solve the above and other potential problems, an embodiment of the present disclosure provides a method for data processing. The method includes obtaining first data of a storage system from a data collector by a first operating system, synchronizing the first data from the first operating system to a second operating system, wherein the architecture of the second operating system is different from the architecture of the first operating system. The method also includes obtaining second data of the storage system from the data collector by the second operating system in response to a failure of the first operating system, and synchronizing the second data from the second operating system to the first operating system in response to the first operating system being restored. This method can minimize processing time and ensure high availability of data collection and save storage system computing resources and memory resources.

[0024] The instant data collection method according to the present disclosure can improve the traceability of the storage system, and once a storage system failure or crash is detected, instant data collection can be performed. This helps to speed up the handling of critical system panic issues to ensure user experience. Use an internal high-availability system to perform data collection during a storage system failure. This helps reduce the workload of rapid recovery of the storage system and helps speed up the handling of critical issues such as system crashes. Even when the system has a hardware failure or a malfunction, remedial data collection can still be performed. It also helps to improve the user experience to quickly get rid of vulnerable systems.

[0025] The basic principles and several exemplary embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings. Figure 1 1 is a schematic diagram of an example environment 100 in which the devices and / or methods of embodiments of the present disclosure may be implemented. It should be understood that Figure 1 The number, arrangement, and data transmission process of the elements or components such as the devices, operating systems, and data collectors shown are only exemplary. The example environment 100 may include devices, operating systems, and data collectors of different numbers and arranged in different ways, as well as various additional elements, etc., and the present disclosure does not impose any limitation on this.

[0026] In the example environment 100, the storage system 101 can be any device that has processing computing resources or storage resources. For example, the computing device 101 can have common capabilities such as receiving and sending data requests, real-time data analysis, local data storage, and real-time network connection. Computing devices can generally include various types of devices. Examples of computing devices may include, but are not limited to: desktop computers, laptop computers, smart phones, wearable devices, security equipment, smart manufacturing equipment, smart home equipment, Internet of Things devices, smart cars, drones, etc. It should be understood that although Figure 1 Only computing device 101 is shown, but this is only exemplary and not a specific limitation of the present disclosure. In the example environment 100, any number and type of devices may be included, and the present disclosure does not impose any limitation on this.

[0027] Additionally or alternatively, the storage system 101 may also be any cloud computing device with storage capabilities, such as a general-purpose server, a dedicated server, a desktop server, a rack server, a cabinet server, a blade server, etc., and the present disclosure does not impose any restrictions on this. Cloud computing devices may also be a shared pool of configurable computing resources (including but not limited to services, processing, computing, storage, etc.) that can be easily accessed through a network. The types of services that cloud computing devices can provide include but are not limited to Infrastructure as a Service (IaaS), Platform as a Service (PaaS) and Software as a Service (SaaS). IaaS can provide services for basic resources such as hardware devices (such as CPU, memory, disk), PaaS can provide services for platform resources such as the operating environment of the application (such as operating system, database, middleware), and SaaS can provide services for software resources such as the application itself (such as office software, games, social networks).

[0028] The cloud computing device can also be further deployed as a private cloud, a community cloud, a hybrid cloud, etc., which is not limited by the present disclosure. The cloud computing device can also have the characteristics of providing computing power according to user needs and being compatible with different software or hardware. Additionally or alternatively, any localized architecture can also be used to implement the cloud computing device.

[0029] Additionally or alternatively, the storage system 101 may also be a high-availability cluster of one or more computers (also referred to as a HA (“High-availability”) cluster) that supports server applications that can be used reliably and with minimal downtime. They operate by using high-availability software to take advantage of redundant computer clusters to provide continued service when system components fail. Without a cluster, if a storage server fails or crashes, the storage server will be unavailable until the failed or crashed storage server is repaired. The storage system 101 can remedy this situation by detecting hardware / software failures and immediately using another system to take over.

[0030] The storage system 101 may include a data collector 102, which may be a program based on the operating system in the storage system 101 for collecting various known or unknown programs associated with the operating system data, and the present disclosure does not impose any restrictions on this. For example, in the context of the Windows operating system, the data collector 102 may be a Windows process data collector ("Windows Process Collector"), which may collect usage data of processes running on the Windows system and generate log file data of these data. For example, the Windows process data collector may collect the name and path of the process, the name of the computer on which the process runs, the name of the user who created the process, the CPU time consumed by the process (accumulated time, and subdivided by kernel and user time), the number of bytes read and written by the process, the operating system version, the list of installed patches, data delivery, data deletion, and system management, etc. In addition or alternatively, the Windows process data collector may also collect data usage such as the total amount of available and used memory in the operating system, the total CPU usage, and the total kernel / user / idle time, and the present disclosure does not impose any restrictions.

[0031] The data collector 102 may generate log data based on the collected data, and the log data may record files recording events that occur during the operation of the operating system or other software or messages between different users of the communication software. For example, in some embodiments, the first operating system 103 may also include first source file data 104, and the first source file data 104 may be application data generated during the operation of an application program in the first operating system 103.

[0032] For example, in some embodiments, the first source file data 104 may include non-executable files that the application depends on, such as XAML, etc. The first source file data 104 may be compiled into an executable file or a data file of a class library. The data collector 102 may then record and collect the first source file data 104, thereby generating log data associated with the first source file data 104.

[0033] Data collection can be widely used by the technical support team, electronic engineering team and technical customer engineer team to solve customer problems, such as understanding the customer's business scenarios and technical needs, collecting customer feedback, complaints and suggestions, so as to provide appropriate product or solution recommendations and improve user experience. Data collection can also be used by the development team and / or quality engineer team for internal problem analysis, such as product quality control and improvement, including new product design and process development, stability testing, document standards and quality control plans, production, testing and other aspects.

[0034] When customers / support staff discover an issue on the overall system, they can manually initiate data collection. Data collection can also be automatically triggered when there is a new kernel dump on the array. Data collection needs to be run on an active operating system as it requires collecting a predefined set of files on the file system. This process can take several hours and consume a lot of CPU computing resources / memory resources as the files need to be collected and compressed to reduce the use of storage space and bandwidth in subsequent data transfer.

[0035] For example, when a kernel error occurs, data collection can print out detailed error information, including error codes, register values, stack traces, and loaded modules. This information can be displayed on the screen or output to a serial port or network. In some cases, data collection can also dump the current memory data to a specific partition or file for subsequent analysis, and can start a spare kernel when an error occurs and obtain crash information from the original kernel. In some cases, data collection can also collect relevant error log information when the system fails through the logging system, and send the error log information to the logging server for real-time or offline log analysis.

[0036] Therefore, the data collection feature allows developers to save system configuration and state, logs, analyze core dump files, and extract information summaries from core files. Data collection can collect a predefined set of diagnostic data from each storage system on the entire system. The collected diagnostic data includes settings, logs, code versions, and other information that is critical for offline triage and resolution of customer issues.

[0037] Log data may include kernel and system logs, user logs, and application logs. Kernel and system logs may record information such as the location of kernel and system program message records. User logs record messages such as user logins and logouts in the operating system, such as time, location (IP), user name (or service name), logged-in terminal, login time, host used, executed processes, and operations performed. Application logs are logs recorded by the application itself, such as server log information, database log information, etc., and the present disclosure does not impose any restrictions on this.

[0038] Additionally or alternatively, in some embodiments, the data collector 102 may also be a data collector based on the Linux operating system, such as Beats, Sysstat, Linux information collection commands, etc., and the present disclosure does not impose any limitation thereto.

[0039] The storage system 101 may also include a first operating system 103, which may be used to control the storage system 101 and is based on a complex instruction set (CISC) operating system. For example, in some embodiments, the first operating system 103 may be based on a Windows operating system, a Linux operating system, a Unix operating system, etc., of an Intel or AMD x86 architecture, and the present disclosure does not impose any restrictions thereon. The first operating system 103 may control and manage various resources of the storage system 101, for example, the first operating system 103 may allocate and manage hardware, software, and data resources, allocate and recycle memory 106 resources, perform scheduling when conflicts occur in shared resources, store and protect data, control program execution, provide a friendly human-computer interaction interface, provide support for other application software, etc. This allows all resources of the storage system 101 to be used to the maximum extent, provides various forms of user interfaces, provides users with a good working environment, and provides necessary services and corresponding interfaces for the development of other software.

[0040] The first operating system 103 may then store the first data 105 collected via the data collector 102, including the logs and other data associated with the first operating system 103, in the memory 106 of the first operating system 103. The first operating system 103 may then transmit the first data 105 to the second operating system via a data connection such as an I / O interface. The I / O interface may include an I / O bus, a terminal interface, a storage interface, an I / O device interface, and a network interface, etc. The I / O interface may direct instructions and data from the processor and the memory 106 to the I / O bus. The I / O interface may also direct instructions and data from various interfaces of the I / O bus to the processor and the memory 106.

[0041] In the storage system 101, the second operating system 107 may be an operating system based on a data processing unit ("Data Processing Unit"). The DPU may be a channel controller having a programmable dedicated electronic circuit and capable of hardware acceleration of data processing for data-centric computing. The DPU generally includes a CPU, a NIC, and a programmable data acceleration engine. This enables the DPU to have the versatility and programmability of a central processing unit, while being specifically used to efficiently process data processing, data compression, and data analysis requests.

[0042] The DPU provides the ability to accelerate IO processing and improve performance. In some embodiments, the DPU runs the second operating system 107 independently of the first operating system 103 of the storage system 101. The startup processes of the first operating system 103 of the storage system 101 and the second operating system 107 of the DPU are also isolated from each other. During the failure or even crash of the first operating system 103 of the storage system 101, the second operating system 107 of the DPU can still continue to run, and the workload on the DPU will become idle because the storage system 101 cannot provide services for user IO.

[0043] In some embodiments, the second operating system 107 may be an operating system based on a reduced instruction set (RISC) architecture. For example, the second operating system 107 may be an RTOS (real-time operating system), FreeRTOS, an embedded operating system, etc. based on an ARM (Advanced RISC Machine) architecture, and the present disclosure does not impose any restrictions on this. The operating system architecture used by the second operating system 107 may be different from the operating system architecture used by the first operating system 103. For example, when the first operating system 103 is an operating system based on a complex instruction set, the second operating system 107 may be an operating system based on a reduced instruction set.

[0044] In response to receiving the first data 105 from the first operating system 103, the second operating system 107 may store the first data 105 in the local memory 108. Additionally or alternatively, in some embodiments, the second operating system 107 may also include its own second source file data 109, which may be application data generated during the operation of an application program in the second operating system 103. The data collector 102 may then record and collect the second source file data 109, thereby generating log data associated with the second source file data 109.

[0045] In some embodiments, to avoid writing duplicate redundant data, when both the first operating system 103 and the second operating system 107 are operating normally, the data collector 102 can read the associated data from the first operating system 103 and write the associated data to the first operating system 103; at the same time, the data collector 102 reads the associated data from the second operating system 107, but does not write the associated data to the second operating system 107. In some embodiments, the first operating system 103 can send detection signals to the second operating system 107 to confirm whether the other operating system is operating normally.

[0046] According to an embodiment of the present disclosure, the storage system 101 can be a distributed replicated block device (Distributed Replicated Block Device, "DRBD"), which is a distributed replicated storage system based on the Linux platform. DRBD layers logical block devices on existing local block devices on participating cluster devices. DRBD's writes to a primary node such as the first operating system 103 can be transmitted to a lower-level block device and simultaneously propagated to a secondary node such as the second system 107. The secondary node then transfers the data to its corresponding lower-level block device. If the primary node fails, the cluster management process will promote the secondary node to the primary node status. In the present disclosure, DRBD is used to provide shared storage for an HA cluster.

[0047] The storage server uses the storage space provided by DRBD to save data collection source files and output. For the primary node, the storage can be set to read / write mode, and for the secondary node, the storage will be set to read-only. Any changes to the primary node will be replicated to the secondary node. When a storage server crash is detected, the secondary node (DPU OS) can set the storage to read / write and start automatic data collection using DPU computing and memory resources. After the storage server fully recovers from the crash, it will synchronize with the secondary node and set its DRBD device to read / write, acting as the primary node again.

[0048] This allows the formation of an internal high-availability cluster through next-generation hardware such as the DPU, sharing storage resources between the storage server operating system and the DPU operating system. Active backup shared storage of data collection source files is for data collection when the storage system fails. For normal data collection requests, data collection will be performed on the primary node, that is, the storage server operating system. When a storage system crash or kernel panic is detected, automatic data collection will be performed on the secondary node (DPUOS) as configured. Even in the event of a rolling kernel panic or hardware failure, data collection can still be performed in the secondary node. At the same time, the excellent data processing and compression capabilities of the DPU can also be utilized during the data collection process.

[0049] Although the above combination Figure 1 The schematic diagram of an example environment 100 in which the device and / or method according to the embodiments of the present disclosure can be implemented is described, but those skilled in the art will appreciate that the data processing method according to the embodiments of the present disclosure may not be limited to the above-mentioned scenarios, and may also be applied to any scenario requiring data processing as required, and the present disclosure does not limit the application scenarios. Figure 2 A flowchart for a data processing method 200 according to an embodiment of the present disclosure is described.

[0050] At block 201, first data of the storage system is obtained from a data collector. According to an embodiment of the present disclosure, the data collector 102 may first collect data from the first source file 106 in the first operating system 103 of the storage system 101 to obtain data information associated with the first operating system 103 and the programs and processes running therein, thereby generating the first data 105. The first operating system 103 may then store the first data 105 collected by the data collector 102 in the local storage 106.

[0051] At box 202, the first data is synchronized from the first operating system to the second operating system, wherein the architecture of the second operating system is different from the architecture of the first operating system. According to an embodiment of the present disclosure, the first operating system 103 can synchronize the first data 105 to the second operating system 107 via a data connection connected to the second operating system 107, such as PCIe. In other words, once the first operating system 103 obtains the first data 105, the first operating system 103 can immediately transmit the data to the second operating system 107. In some embodiments, the first operating system 103 can be an operating system based on a complex instruction set, such as a Windows operating system based on an Intel x86 architecture, and the second operating system 107 can be an operating system based on a reduced instruction set, such as Ubuntu, Debian, Fedora, macOS Big Sur, etc. based on an ARM architecture, and the present disclosure does not impose any restrictions on this.

[0052] At block 203, in response to the first operating system failing, the second operating system obtains the second data of the storage system from the data collector. According to an embodiment of the present disclosure, the first operating system 103 can send detection signals to the second operating system 107 to detect whether the other system is operating normally. For example, after the second operating system 107 sends a detection signal to the first operating system 103, if the first operating system 103 does not send a corresponding signal to the second operating system 107 to confirm receipt, the second operating system 107 can determine that the first operating system 103 has an operating failure.

[0053] The operation failure of the first operating system 103 may include a situation where the kernel of the operating system has a serious error and cannot continue to run due to hardware failure, memory leakage, driver defect, etc., an operating system startup failure caused by boot loader configuration error, file system damage, insufficient disk space, disk bad sectors, operating system damage or incorrect CMOS settings, an operating system network interruption failure caused by network card driver problems, network configuration problems, firewall settings problems, etc., an operating system process deadlock failure caused by process logic errors, resource competition deadlock, etc., a CPU usage rate or memory usage rate in the server computing device is too high and eventually leads to an operating system load that is too high due to malicious program attacks, resource leakage problems, service configuration problems, etc., and a random downtime caused by viruses, hardware conflicts, software compatibility, high temperature or unstable power supply, and the inability to perform any operation. It should be understood that the operation failure situations listed in this disclosure are only exemplary, and this disclosure does not impose any restrictions on this.

[0054] When the second operating system 107 detects that the first operating system 103 has a running failure, the second operating system 107 can immediately obtain the second data 110 from the data collector 102. In other words, the data collector 102 can turn to write the second data 110 to the second operating system 107. Different from the first data 105, the second data 110 can record the corresponding operation of various programs, processes, hardware, etc. in the first operating system 103 at the time when the first operating system 103 has a running failure and at a subsequent time. Since the first operating system 103 and the second operating system 107 are based on different computer architectures, and the two operating systems are independently operated. When encountering some situations that cause the first operating system 103 to fail, these situations do not necessarily cause the second operating system 107 to fail, so the second operating system 107 can continue to run and collect the relevant second data 110 that records the cause of the failure of the first operating system 103 through the data collector 102.

[0055] In some embodiments, the second operating system 107 may analyze the first data 105 and the second data 110 transmitted by the first operating system 103, for example, perform data comparison on the first data 105 and the second data 110 to identify abnormal values ​​in the second data 110, and determine the cause of the failure based on the abnormal values. Operation and maintenance personnel may also repair the first operating system 103 that has failed based on the analysis of the first data 105 and the second data 110, such as replacing hardware, disks, installing patches, updating the system, etc. During the failure of the first operating system 103, the second operating system 107 may also replace the first operating system 103 to handle various transactions in the storage system, such as I / O requests, computing resource allocation, etc., and the present disclosure does not impose any restrictions on this.

[0056] At block 204, in response to the first operating system being restored, the second data is synchronized from the second operating system to the first operating system. According to an embodiment of the present disclosure, after the first operating system 103 recovers from the failure, the second operating system 107 can synchronously transmit the second data 110 to the first operating system 103 to maintain the consistency of the data between the two operating systems, and the first operating system 103 can also use the second data 110 to avoid the next failure.

[0057] Combined with the above Figure 2 The flowchart of the data processing method according to the embodiment of the present disclosure is described. The method implemented according to the present disclosure can realize data synchronization in real time and ensure that the storage system can continue to operate normally even if an operating system fails. Figure 3 A schematic diagram 300 is shown illustrating how one operating system continues to operate when another operating system fails according to an embodiment of the present disclosure. Figure 3 The elements or components in the Figure 1 The elements or components in the same or similar.

[0058] As shown in Figure 300, in the storage system 301, when the first operating system 303 fails, the data collector can continue to write the second data 307 to the memory 305 of the second operating system 304. The second data 307 may include relevant information associated with the cause of the failure of the first operating system 303. The second operating system 304 can analyze the cause of the failure of the first operating system by combining the previously written data with the second data 307.

[0059] Additionally or alternatively, the data collector 302 may also collect data related to the second source file 306 of the second operating system 304, so as to synchronize the data to the first operating system 303 when the first operating system 303 resumes normal operation. Additionally or alternatively, after the first operating system 303 resumes normal operation, in order to avoid writing repeated redundant data, the data collector 302 may stop writing data to the second operating system and read data from the second operating system 304.

[0060] In some embodiments, there may be a situation where the first operating system 303 and the second operating system 304 fail at the same time due to external power interruption or the like, in which case the second data 307 may not be synchronized to the second operating system 304 in a timely manner. Therefore, after the first operating system 303 and the second operating system 304 both resume normal operation, the storage system 301 may compare the data in the first operating system 303 with the data in the second operating system 304 to confirm whether the second data 307 has been synchronized to the second operating system 304. If the second data 307 has not been synchronized to the second operating system 304, the first operating system 303 may synchronize the second data 307 to the second operating system 304.

[0061] For example, in some implementations, in the event of an ongoing data collection that is interrupted by a power reset, both the server operating system and the DPU operating system will be reset. If both operating systems are started and the internal cluster is successfully restored, the cluster will synchronize the data to the latest changes. The data collection status will be saved in the shared storage, and previously unfinished data collection requests can be processed in the master node. If any operating system fails to start or fails to join the cluster after restart, and previously unfinished data collection needs to be performed, the data collection output directory on each available node can be checked, and a decision can be made to continue the previously unfinished data collection, or to start a brand new data collection, because the previous data collection output may not be available due to the node unavailability.

[0062] Figure 4 A schematic diagram 400 shows the internal structure of a first operating system 401 and a second operating system 402 . Figure 4 The elements or components in the Figure 1 and Figure 3 The elements or components in are the same or similar. Figure 4As shown, the first operating system 401 may include elements such as an application 405, a network interface 410, a memory 415, and a driver 420. The first operating system 401 may be driven by the driver 420. The application 405 in the first operating system 401 may be stored in the memory 415 and communicate with an external device via the network interface 410. The first operating system 401 may also synchronize data with the second operating system 402 via a bus 411.

[0063] Similarly, the second operating system 402 may also include similar elements such as application programs 404, network interfaces 406, memory 408, and driver programs 410. The second operating system 402 may also include a function module 412 for implementing specific functions or calculations. For example, the function module 412 may be a graphics card module for image processing, etc. When the first operating system 401 fails, the function module 412 in the second operating system 402 may process and analyze the data collected by the data collector.

[0064] Figure 5 FIG. 5 shows a schematic diagram of a high availability cluster 500 composed of one or more storage systems according to an embodiment of the present disclosure. Figure 5 As shown, the high availability cluster 500 may include a storage system 501 and a storage system 502. The storage system 501 and the storage system 502 may have the same Figure 1 and Figure 3 The storage system described in the present invention may have the same or similar elements or components as those in the storage system described in the present invention. For example, they may have one or more operating systems, and the operating systems may have source files and storage data, etc., and the present disclosure does not impose any limitation on this.

[0065] The storage system 501 and the storage system 502 can transfer data to each other to achieve redundant backup of data. Therefore, in some embodiments, when one or more storage systems in the storage system 501 and the storage system 502 fail or panic, the other system can immediately replace the failed storage system and continue to back up the data, thereby achieving the "five nines" availability (99.999% normal operation time) or "six nines" availability (99.9999% normal operation time) of the high availability cluster 500. Additionally or alternatively, the storage system 501 and the storage system 502 may also have more elements or components, and the present disclosure does not impose any restrictions on this. It should be understood that according to the embodiments of the present disclosure, the high availability cluster 500 may include a greater or lesser number of storage systems, and the present disclosure does not impose any restrictions on this.

[0066] Figure 6 A schematic block diagram of an example device 600 that may be used to implement embodiments of the present disclosure is shown. Figure 1 The computing device in the device 600 can be implemented by using the device 600. As shown in the figure, the device 600 includes a central processing unit (CPU) 601, which can perform various appropriate actions and processes according to computer program instructions stored in a read-only memory (ROM) 602 or computer program instructions loaded from a storage unit 608 to a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the storage device 600 can also be included. The CPU 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.

[0067] A number of components in the device 600 are connected to the I / O interface 605, including: an input unit 606, such as a keyboard, a mouse, etc.; an output unit 607, such as various types of displays, speakers, etc.; a storage page 608, such as a disk, an optical disk, etc.; and a communication unit 609, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 609 allows the device 600 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0068] The various processes and processing described above, such as method 200, may be performed by processing unit 601. For example, in some embodiments, method 200 may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as storage unit 608. In some embodiments, part or all of the computer program may be loaded and / or installed on device 600 via ROM 602 and / or communication unit 609. When the computer program is loaded into RAM 603 and executed by CPU 601, one or more actions of method 200 described above may be performed.

[0069] The present disclosure may be a method, an apparatus, a system and / or a computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for executing various aspects of the present disclosure.

[0070] Computer readable storage medium can be a tangible device that can hold and store instructions used by an instruction execution device. Computer readable storage medium can be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the above. More specific examples (non-exhaustive list) of computer readable storage medium include: portable computer disk, hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), static random access memory (SRAM), portable compact disk read-only memory (CD-ROM), digital versatile disk (DVD), memory stick, floppy disk, mechanical encoding device, such as a punch card or a convex structure in a groove on which instructions are stored, and any suitable combination of the above. The computer readable storage medium used here is not interpreted as a transient signal itself, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagated by a waveguide or other transmission medium (e.g., a light pulse by an optical fiber cable), or an electrical signal transmitted by a wire.

[0071] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.

[0072] The computer program instructions for performing the operation of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages, such as Smalltalk, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. Computer-readable program instructions may be executed completely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer, partially on a remote computer, or completely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., using an Internet service provider to connect via the Internet). In some embodiments, an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), may be customized by utilizing the state information of the computer-readable program instructions, and the electronic circuit may execute the computer-readable program instructions, thereby realizing various aspects of the present disclosure.

[0073] Various aspects of the present disclosure are described herein with reference to the flowcharts and / or block diagrams of the methods, devices (systems) and computer program products according to the embodiments of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer-readable program instructions.

[0074] These computer-readable program instructions can be provided to a processing unit of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processing unit of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.

[0075] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operating steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.

[0076] The flow chart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to multiple embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a part of a module, program segment or instruction, and a part of the module, program segment or instruction includes one or more executable instructions for realizing the specified logical function. In some alternative implementations, the function marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous square boxes can actually be executed substantially in parallel, and they can sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or action, or can be implemented with a combination of special hardware and computer instructions.

[0077] The embodiments of the present disclosure have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The choice of terms used herein is intended to best explain the principles of the embodiments, practical applications, or technical improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.

Claims

1. A data processing method, the method comprising: The first operating system obtains first data of the storage system from the data collector; synchronizing the first data from the first operating system to a second operating system, wherein the architecture of the second operating system is different from the architecture of the first operating system; In response to a failure of the first operating system, the second operating system obtains second data of the storage system from the data collector; as well as In response to the first operating system being restored, the second data is synchronized from the second operating system to the first operating system.

2. The method according to claim 1, wherein obtaining, by the second operating system, the second data of the storage system from the data collector further comprises: In response to the first operating system failing: Writing the second data to the second operating system by the data collector; as well as The second data is read from the second operating system.

3. The method according to claim 2, further comprising: In response to the first operating system being restored, the data collector stops writing the second data to the second operating system.

4. The method according to claim 1, further comprising: When both the first operating system and the second operating system fail and recover, the storage system compares data of the first operating system and the second operating system.

5. The method according to claim 4, wherein the storage system performing the data comparison on the first operating system and the second operating system comprises: In response to the data comparison between the first operating system and the second operating system being inconsistent, the storage system transmits the second data to the second operating system.

6. The method according to claim 1, further comprising: In response to a failure of the first operating system, the second operating system analyzes a cause of the failure of the first operating system based on the first data and the second data.

7. The method according to claim 1, further comprising: The second operating system sends a detection signal to the first operating system to detect whether the first operating system has failed or is operating normally.

8. The method according to claim 1, further comprising: When the first operating system runs normally, the first data is read from the second operating system.

9. The method of claim 1, wherein the first operating system is based on a Complex Instruction Set Computer (CISC) architecture and the second operating system is based on a Reduced Instruction Set Computer (RISC) architecture.

10. A storage system comprising: One or more memories having instructions stored thereon, the instructions, when executed, causing the storage system to perform actions, the actions comprising: Obtaining, by the first operating system, first data of the storage system from a data collector; synchronizing the first data from the first operating system to a second operating system, wherein the architecture of the second operating system is different from the architecture of the first operating system; In response to a failure of the first operating system, obtaining, by the second operating system, second data of the storage system from the data collector; and In response to the first operating system being restored, the second data is synchronized from the second operating system to the first operating system.

11. The storage system according to claim 10, wherein obtaining, by the second operating system, the second data of the storage system from the data collector further comprises: In response to a failure of the first operating system, the data collector writes the second data to the second operating system and reads the second data from the second operating system.

12. The storage system according to claim 11, wherein the actions further comprise: In response to the first operating system being restored, the data collector stops writing the second data to the second operating system.

13. The storage system according to claim 10, wherein the actions further comprise: When both the first operating system and the second operating system fail and recover, the storage system compares data of the first operating system and the second operating system.

14. The storage system according to claim 13, wherein the storage system compares the data of the first operating system and the second operating system further comprises: In response to the data comparison between the first operating system and the second operating system being inconsistent, the storage system transmits the second data to the second operating system.

15. The storage system according to claim 10, wherein the actions further comprise: In response to a failure of the first operating system, the second operating system analyzes a cause of the failure of the first operating system based on the first data and the second data.

16. The storage system according to claim 10, wherein the actions further comprise: The second operating system sends a detection signal to the first operating system to detect whether the first operating system has failed or is operating normally.

17. The storage system according to claim 10, wherein the actions further comprise: When the first operating system runs normally, the first data is read from the second operating system.

18. The storage system of claim 10, wherein the first operating system is based on a complex instruction set computer (CISC) architecture, and the second operating system is based on a reduced instruction set computer (RISC) architecture.

19. A computer program product tangibly stored on a non-transitory computer readable storage medium and comprising computer executable instructions that, when executed, cause a computer to perform: The first operating system obtains first data of the storage system from the data collector; synchronizing the first data from the first operating system to a second operating system, wherein the architecture of the second operating system is different from the architecture of the first operating system; In response to a failure of the first operating system, the second operating system obtains second data of the storage system from the data collector; as well as In response to the first operating system being restored, the second data is synchronized from the second operating system to the first operating system.

20. The computer program product according to claim 19, wherein obtaining, by the second operating system, the second data of the storage system from the data collector further comprises: In response to a failure of the first operating system, the data collector writes the second data to the second operating system and reads the second data from the second operating system.