System alarm method and device, and electronic equipment
By identifying and testing the differences in the mapping path table and outputting alarm information, the problem of not being able to identify changes in the mapping path in a timely manner in the existing technology is solved, thus ensuring the reliability of the storage system.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- INSPUR SUZHOU INTELLIGENT TECH CO LTD
- Filing Date
- 2023-11-28
- Publication Date
- 2026-07-21
AI Technical Summary
In existing technologies, the mapping path is complex and changes cannot be identified and reported in a timely manner by relevant alarm policies, resulting in reduced reliability of the storage system.
By determining the target mapping path table, including the number of paths, path description information, switch redundancy, and storage controller redundancy, the differences between the mapping path table and the target mapping path table are tested, and alarm information is output, thus realizing fine-grained path change monitoring and alarm.
It enables timely and accurate notification of changes in the mapping path, avoiding a reduction in system redundancy due to path changes and ensuring the continuous and reliable operation of the system.
Smart Images

Figure CN117749610B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, specifically to a system alarm method, device, and electronic device. Background Technology
[0002] With the development of computer technology, the functionality of large-scale systems is inseparable from data access. Enterprises typically separate servers and storage, storing business data on dedicated storage devices to create a data center, facilitating access to business data by servers or other devices. Within this data center, the mapping path between storage and upper-layer applications (e.g., servers) is usually connected via switches. To ensure reliability, multiple redundant mapping paths are typically used, so that if some paths fail, the remaining paths can continue operating, ensuring uninterrupted upper-layer business operations. During operation, the redundancy of these mapping paths needs to be monitored and alerted.
[0003] The mapping path alarm strategy in related technologies monitors and alarms at the storage end. This method can promptly report storage end faults such as network card failures, optical module failures, and fiber optic cable failures. However, in practical applications, mapping paths are complex and change frequently, and the relevant alarm strategies cannot identify and report them in a timely manner. Normal data access still faces potential threats, leading to reduced storage system reliability. Therefore, how to monitor and alarm on the mapping path to ensure system reliability remains a pressing issue. Summary of the Invention
[0004] One objective of this application is to provide a system alarm method to solve or at least partially solve the problems in related technologies. A second objective is to provide a system alarm device, and a third objective is to provide an electronic device.
[0005] To achieve the above objectives, the technical solution of this application is as follows:
[0006] A system alarm method, comprising:
[0007] A target mapping path table is determined, which includes target path information of the mapping path between the current storage client and the storage service client; the target path information includes: the number of paths, path description information, switch redundancy, and storage controller redundancy of the storage service client;
[0008] Based on the target path information, the mapping path between the current storage client and the storage service client is tested to obtain a test mapping path table;
[0009] Determine whether the test mapping path table is consistent with the target mapping path table;
[0010] If the test mapping path table is inconsistent with the target mapping path table, an alarm message is output based on the differences between the test mapping path table and the target mapping path table in terms of the number of paths, the path description information, the switch redundancy, and the storage controller redundancy of the storage service terminal.
[0011] Optionally, if the test mapping path table and the target mapping path table are inconsistent, alarm information is output based on the differences between the test mapping path table and the target mapping path table in terms of the number of paths, the path description information, the switch redundancy, and the storage controller redundancy of the storage service terminal, including:
[0012] Based on the differences between the test mapping path table and the target mapping path table in terms of the number of paths, the path description information, the switch redundancy, and the storage controller redundancy of the storage service terminal, the alarm level and the alarm prompt corresponding to the alarm level are determined.
[0013] Based on the alarm prompt and the alarm level, generate the alarm information and output it.
[0014] Optionally, the alarm levels, in ascending order, are: first alarm level, second alarm level, third alarm level, and highest alarm level.
[0015] The above-mentioned determination of alarm levels and corresponding alarm prompts based on the differences between the test mapping path table and the target mapping path table in terms of the number of paths, path description information, switch redundancy, and storage controller redundancy includes:
[0016] Determine the difference in the number of paths between the test mapping path table and the target mapping path table;
[0017] If the difference is positive, or if the difference is zero and the description information changes, the current alarm level is determined to be the first alarm level.
[0018] Optionally, the redundancy of the switch and the redundancy of the storage controller in the target mapping path table are both greater than or equal to 2; the method further includes:
[0019] If the difference is negative and the redundancy of the switch and the redundancy of the storage controller remain unchanged, the current alarm level is determined to be the second alarm level.
[0020] If the difference is negative and the redundancy of the switch and / or the redundancy of the storage controller is 1, the current alarm level is determined to be the third alarm level.
[0021] If the number of paths in the test mapping path table is zero, the current alarm level is determined to be the highest alarm level.
[0022] Optionally, the method further includes:
[0023] If the current alarm level is determined to be the first alarm level, the target mapping path table is updated, and the current test mapping path table is determined as the target mapping path table.
[0024] Perform mapping path testing according to the updated target mapping path table.
[0025] Optionally, the step of testing the mapping path between the current storage client and the storage service client based on the target path information to obtain a test mapping path table includes:
[0026] Run the test script at preset time intervals;
[0027] The status of the mapped path is detected by the path test script to determine the test mapping path table.
[0028] Optionally, before determining the target mapping path table, the method further includes:
[0029] Obtain the preset planning mapping path table;
[0030] According to the planned mapping path table, the mapping path between the storage client and the storage service client is deployed and calibrated;
[0031] If the planned path information in the planned mapping path table is consistent with the actual path information between the storage client and the storage service client, the target mapping path table is determined.
[0032] Optionally, the above-described deployment and calibration of the mapping path between the storage client and the storage service client according to the planned mapping path table includes:
[0033] After deploying the mapping path between the storage client and the storage service client, it is checked whether the actual path information of the deployed mapping path is consistent with the planned path information in the planned mapping path table;
[0034] If the actual path information is inconsistent with the planned path information, adjust the deployment of the mapping path between the storage client and the storage service client, or modify the planned path information in the planned mapping path table;
[0035] If the actual path information of the deployed mapping path is consistent with the planned path information in the planned mapping path table, the calibration of the mapping path between the storage client and the storage service client is completed.
[0036] A system alarm device, comprising:
[0037] The first determining module is used to determine the target mapping path table, which includes target path information of the mapping path between the current storage client and the storage service client; the target path information includes: the number of paths, path description information, switch redundancy, and storage controller redundancy of the storage service client.
[0038] The testing module is used to test the mapping path between the current storage client and the storage service client based on the target path information, and obtain a test mapping path table;
[0039] The second determining module is used to determine whether the test mapping path table is consistent with the target mapping path table;
[0040] The alarm module is used to output alarm information based on the differences between the test mapping path table and the target mapping path table in terms of the number of paths, the path description information, the switch redundancy, and the storage controller redundancy of the storage service terminal when the test mapping path table and the target mapping path table are inconsistent.
[0041] An electronic device, comprising:
[0042] The system includes a processor, a communication interface, a memory, and a communication bus. The processor, communication interface, and memory communicate with each other via the communication bus. The memory is used to store computer programs.
[0043] The processor, when executing a program stored in memory, implements the aforementioned system alarm method.
[0044] The beneficial effects of this application are:
[0045] In this application, a target mapping path table is determined, which includes path information of the mapping path between the current storage client and the storage service provider. The path information includes: the number of paths, path descriptions, switch redundancy, and storage controller redundancy on the storage service provider. Based on the path information, the mapping path between the current storage client and the storage service provider is tested to obtain a test mapping path table. It is then determined whether the test mapping path table is consistent with the target mapping path table. If the test mapping path table and the target mapping path table are inconsistent, the results are compared based on the number of paths, path descriptions, switch redundancy, and storage controller redundancy on the test mapping path table and the target mapping path table. Differences in redundancy among server-side storage controllers trigger alarm messages. A target mapping path table records information about the mapping paths between storage clients and storage service providers. Using this table as a reference, the mapping paths between storage clients and storage service providers are tested to obtain a test mapping path table. By monitoring all changes in the current mapping, more granular feedback on these changes can be provided. Alarms are triggered based on changes across different dimensions, enabling timely and accurate notification of the impact of mapping path changes on users. This avoids reduced redundancy in the system due to mapping path changes, providing a solid guarantee for the continuous and reliable operation of the system. Attached Figure Description
[0046] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0047] Figure 1 This is a schematic diagram of the architecture of the system alarm system described in one embodiment of this application;
[0048] Figure 2 This is a flowchart of a system alarm method described in one embodiment of this application;
[0049] Figure 3 This is a logic diagram of the system alarm method described in one embodiment of this application;
[0050] Figure 4 This is a schematic diagram of the system alarm device described in one embodiment of this application.
[0051] Among them, 400-system alarm device, 401-first determination unit, 402-test unit, 403-second determination unit, and 404-alarm unit. Detailed Implementation
[0052] The embodiments of this application will be described below with reference to the accompanying drawings and preferred embodiments. Those skilled in the art can easily understand other advantages and effects of this application from the content disclosed in this specification. This application can also be implemented or applied through other different specific embodiments, and various details in this specification can also be modified or changed based on different viewpoints and applications without departing from the spirit of this application. It should be understood that the preferred embodiments are only for illustrating this application and are not intended to limit the scope of protection of this application.
[0053] The technical solution of this application is mainly aimed at storage-oriented application scenarios and is applied to storage systems. (Refer to...) Figure 1 , Figure 1 This is a schematic diagram of the architecture of the storage system described in one embodiment of this application. In one embodiment of this application, the architecture of the storage system is as follows: Figure 1 As shown. This storage system includes: storage clients, storage service clients, and switches. The storage clients (hereinafter also referred to as hosts) include servers, terminal computers, and other devices used to obtain data from the storage service clients. Switches include, but are not limited to, FC (Fibre Channel) switches, Ethernet switches, etc. The storage service clients refer to the storage terminals that provide business data storage services, such as storage servers, various types of storage devices, etc. Multiple storage controllers can be configured on the storage service clients to receive and respond to business data requests. Figure 1 In this system, two storage controllers within the storage service client control one storage unit, thus forming two links connecting the storage units.
[0054] Reference Figure 2 , Figure 2 This is a flowchart of a system alarm method described in one embodiment of this application. For example... Figure 2 As shown, a system alarm method includes:
[0055] Step S101: Determine the target mapping path table. The target mapping path table includes target path information of the mapping path between the current storage client and the storage service client. The target path information includes: number of paths, path description information, switch redundancy, and storage controller redundancy of the storage service client.
[0056] Specifically, in this application, the target mapping path table is a table generated based on the user's envisioned architecture, recording mapping path information under ideal conditions. In this application, a mapping path refers to the selectable path between the storage client and the storage service provider. The target mapping path table includes target path information for the mapping path between the storage client and the storage service provider. This target path information can be considered as complete information about the mapping path deployed between the storage client and the storage service provider under ideal conditions. The target path information includes: the number of paths, path description information, switch redundancy, and storage controller redundancy on the storage service provider side.
[0057] The number of paths refers to the total number of redundant paths that allow normal communication between the storage client and the storage service provider. The path description information includes, but is not limited to, the description of each path, the storage client port information, switch information, storage controller information, and storage service provider port information. In other words, the path description information for each mapped path describes the specific connection node information for that mapped path.
[0058] In this technical field, redundancy, from a safety perspective, represents an excess of equipment to ensure that instruments, equipment, or a certain task can operate normally even under abnormal conditions. In this embodiment, switch redundancy refers to the replaceability of switches. If the switch redundancy is 1, it means that there is only one switch in the system, and there is no replaceable switch; if the switch redundancy is 2, there are two redundant switches in the system; if the switch redundancy is 3, there are three redundant switches in the system, and so on. Similarly, storage controller redundancy refers to the replaceability of storage controllers in the storage service provider.
[0059] Table 1
[0060]
[0061] For example, a target mapping path table is shown in Table 1. This target mapping path table can be used to comprehensively display the mapping path information between the storage client and the storage service client.
[0062] Step S102: Based on the target path information, test the mapping path between the current storage client and the storage service client to obtain a test mapping path table.
[0063] Specifically, based on the target path information, the status of each mapping path is checked, and a test mapping path table is generated according to the parameters and record order of the target mapping path information, so as to statistically analyze the information of the mapping path obtained in the current test.
[0064] For example, based on the transmission nodes in the path description information of the target mapping path table, the mapping paths are tested to determine which mapping paths between the storage client and the storage service client can communicate normally, and which mapping paths have changed. The description information of each mapping path is recorded and counted. Redundancy is calculated based on the test data. Finally, a test mapping path table is generated according to the format of the aforementioned target mapping path table to show the actual situation of the current mapping paths and to facilitate subsequent comparison of changes in mapping paths on the same dimension. For example, a test mapping path table is shown in Table 2.
[0065] Table 2
[0066]
[0067]
[0068] Step S103: Determine whether the test mapping path table and the target mapping path table are consistent.
[0069] Specifically, the test path information in the test mapping path table and the target path information in the target mapping path table represent mapping path information under different states and dimensions. This dimension represents different parameters in the aforementioned path information, such as the number of paths, path description information, switch redundancy, and storage controller redundancy. The test mapping path table and the target mapping path table are compared one by one under the same dimension to see if they are consistent. If differences exist, the difference information is summarized in a difference information table for subsequent analysis of changes in the mapping path between the current storage client and the storage service provider. If the test mapping path table and the target mapping path table are consistent, no alarm is required. If the test mapping path table and the target mapping path table are inconsistent, step S104 is executed.
[0070] Step S104: If the test mapping path table and the target mapping path table are inconsistent, output alarm information based on the differences between the test mapping path table and the target mapping path table in terms of the number of paths, path description information, switch redundancy, and storage controller redundancy on the storage service side.
[0071] Specifically, when there are differences between the test mapping path table and the target mapping path table, the original mapping path has changed. By comparing and analyzing multiple dimensions such as the number of paths, path description information, switch redundancy, and storage controller redundancy on the storage service side, a deeper understanding of the changes can be obtained.
[0072] In fact, differences can reflect the reliability of the current mapping path to varying degrees. Specifically, differences in the number of paths, path descriptions, switch redundancy, and storage controller redundancy on the storage service side can reveal the impact of changes in the current mapping path on normal data transmission between the storage client and the storage service provider. Therefore, based on these differences, outputting alarm information allows for a comprehensive understanding of changes in the mapping paths within the current storage system and timely reporting of these changes.
[0073] In this embodiment, a target mapping path table is determined, which includes path information of the mapping path between the current storage client and the storage service provider. The path information includes: the number of paths, path description information, switch redundancy, and storage controller redundancy on the storage service provider. Based on the path information, the path between the current storage client and the storage service provider is tested to obtain a test mapping path table. It is then determined whether the test mapping path table is consistent with the target mapping path table. If the test mapping path table and the target mapping path table are inconsistent, the results are compared based on the number of paths, path description information, switch redundancy, and storage controller redundancy on the storage service provider. Differences in redundancy of the storage controller on the server side are used to output alarm information. The target mapping path table records relevant information about the mapping path between the storage client and the storage service server. Using the target mapping path table as a reference, the mapping path between the storage client and the storage service server is tested to obtain a test mapping path table. This allows for a comprehensive understanding of changes in the current mapping path, enabling more granular feedback on these changes. Alarms are issued based on changes in different dimensions, ensuring timely and accurate notification to users of the impact of mapping path changes. This avoids the problem of reduced redundancy in the system due to mapping path changes, providing a solid guarantee for the continuous and reliable operation of the system.
[0074] In one embodiment of this application, step S104, when the test mapping path table and the target mapping path table are inconsistent, outputs alarm information based on the differences between the test mapping path table and the target mapping path table in terms of the number of paths, path description information, switch redundancy, and storage controller redundancy on the storage service side. Specifically, this may include:
[0075] Based on the differences between the test mapping path table and the target mapping path table in terms of the number of paths, path description information, switch redundancy, and storage controller redundancy on the storage service side, determine the alarm level and the alarm prompt corresponding to the alarm level.
[0076] Based on the alarm prompts and alarm levels, generate alarm information and output it.
[0077] Specifically, by analyzing whether the number of paths in the current normal mapping path has changed, whether the path description information of each mapping path has changed, whether the redundancy of the involved switches has changed, and whether the redundancy of the storage controller on the storage service side has changed, the changes in the mapping path between the storage client and the storage service provider can be analyzed from various perspectives. Based on the differences found in these dimensions, the degree of impact of these differences on the reliability of data access in the storage system can be determined. Based on this degree of impact, the corresponding alarm level and the corresponding alarm prompt can be determined.
[0078] The alarm level can be differentiated in various ways, such as through voice prompts, pop-up notifications, or text messages, or by using different colors to distinguish the levels during display, so that users can understand the impact of changes to the mapping path on the storage system. The alarm notification may include information about changes to the current mapping path and / or maintenance suggestions for maintenance personnel. Based on the alarm notification and the alarm level, alarm information is generated and output.
[0079] In one feasible implementation, the alarm levels are ordered from low to high as follows: first alarm level, second alarm level, third alarm level, and highest alarm level. The alarm level and corresponding alarm prompt are determined based on the differences between the test mapping path table and the target mapping path table in terms of the number of paths, path description information, switch redundancy, and storage controller redundancy on the storage service side. This includes:
[0080] Determine the difference in the number of paths between the test mapping path table and the target mapping path table; if the difference is positive, or if the difference is zero and the description information changes, determine the current alarm level as the first alarm level.
[0081] Specifically, the alarm levels are ordered from low to high as follows: first alarm level, second alarm level, third alarm level, and highest alarm level. The lower the alarm level, the smaller the impact of the change in the current mapping path on the system reliability.
[0082] The difference between the number of test paths in the test mapping path table and the number of target paths in the target mapping path table reflects whether the number of mapping paths has increased or decreased. If the difference is positive, the number of mapping paths between the storage client and the storage service provider has increased; if the difference is negative, the number of mapping paths between the storage client and the storage service provider has decreased; and if the difference is zero, the number of mapping paths between the storage client and the storage service provider remains unchanged.
[0083] An increase in the number of mapping paths may be due to increased redundancy of a certain device. If the mapping paths change in a better direction, the system's reliability will be higher. Alternatively, if the number of currently available paths remains unchanged, but the path description information of some paths has changed, it may be due to adjustments in the deployment of some nodes, which will not have a negative impact on the system.
[0084] In the two scenarios described above where the mapping path changes, no technical personnel are required to debug or modify the mapping path. Only the lowest level alarm needs to be output to indicate the change in the current mapping path information. Therefore, alarms are issued for these changes, and their alarm level is designated as the first alarm level. This first alarm level is the lowest alarm level, indicating that the current mapping path has changed, but it has no negative impact on the system.
[0085] Optionally, when the first alarm level is determined, a preset alarm message corresponding to that alarm level can be obtained. For example, the output could be "Current mapping path has changed, please check network configuration and storage client operation!" If the alarm levels are colored green, yellow, orange, and red from low to high, then the alarm message can be displayed in green.
[0086] Following the above implementation method, in one feasible implementation, the redundancy of the switch in the target mapping path table and the redundancy of the storage controller are both greater than or equal to 2, and the system alarm method further includes:
[0087] If the difference is negative and the switch redundancy and storage controller redundancy remain unchanged, the current alarm level is determined to be the second alarm level; if the difference is negative and the switch redundancy and / or storage controller redundancy is 1, the current alarm level is determined to be the third alarm level; if the number of paths in the test mapping path table is zero, the current alarm level is determined to be the highest alarm level.
[0088] Specifically, reducing the number of paths, decreasing the redundancy of storage controllers, and reducing the redundancy of switches will all negatively impact system reliability, but to varying degrees. For example, in the original target mapping path table, the mapping paths are host-switch1-storage controller1, host-switch1-storage controller2, host-switch2-storage controller1, and host-switch2-storage controller2; at this time, there are a total of 4 mapping paths, which are redundant with each other.
[0089] If the test reveals an interruption in the path: Host-Switch 2-Storage Controller 2, the number of mapped paths decreases. However, the redundancy of the switches and storage in the test mapped path table remains unchanged, resulting in a relatively small negative impact on system reliability. In this case, the alarm level can be set to the second alarm level. Optionally, the alarm message corresponding to this second alarm level could be: "Current mapped paths have decreased. Please check the network configuration and restore the reduced mapped paths promptly!"
[0090] If the test reveals that the paths Host-Switch 2-Storage Controller 2 and Host-Switch 2-Storage Controller 1 are interrupted, the number of mapped paths in the test mapping path table will not only decrease, but the switch redundancy will also be recorded as 1. This indicates that only Switch 1 can currently communicate normally, and there is no replacement switch. If Switch 1 fails, the entire system will experience service interruption. Alternatively, if the paths Host-Switch 1-Storage Controller 1 and Host-Switch 2-Storage Controller 1 are interrupted, the number of mapped paths will decrease, and the storage controller redundancy will be 1. If Storage Controller 2 fails, the entire system will experience service interruption. Or, if only the path Host-Switch 1-Storage Controller 1 is normal, the system reliability faces a serious threat under these three scenarios, which can be classified as the third alarm level, requiring the user to immediately increase redundancy. A message can be displayed: "Please handle the fault immediately. If a switch or storage controller with redundancy of 1 fails, service interruption will occur!"
[0091] If the test shows that the number of mapped paths is zero, the system is unable to perform normal business operations due to missing mapped paths. In this case, it is determined to be the highest alarm level, and the message "Link missing error!" should be displayed.
[0092] In this implementation, alarm levels are divided into more detailed categories. The different degrees of impact of changes in the number of paths, memory redundancy, switch redundancy, etc., on system reliability are identified to determine the corresponding alarm level. This not only allows for the perception of specific changes in mapped paths but also enables users to intuitively understand the extent of the impact on current system reliability.
[0093] In one embodiment of this application, when the current alarm level is determined to be the first alarm level, the system alarm method further includes:
[0094] If the current alarm level is determined to be the first alarm level, the target mapping path table is updated, and the current test mapping path table is determined as the target mapping path table.
[0095] Perform mapping path testing according to the updated target mapping path table.
[0096] In this embodiment, when the current alarm level is the first alarm level, the target mapping path table set under ideal conditions can be updated, and the test mapping path table that provides higher reliability to the system can be replaced with the target mapping path table. In this way, the target mapping path table can be flexibly adjusted automatically during system use, and the system can always operate in a reliable environment.
[0097] In one embodiment of this application, before step S101 is executed, the above-mentioned system alarm method further includes the following steps:
[0098] Obtain the preset planned mapping path table; deploy and calibrate the mapping path between the storage client and the storage service client according to the planned mapping path table; determine the target mapping path table if the planned path information in the planned mapping path table is consistent with the actual path information between the storage client and the storage service client.
[0099] Specifically, the planned mapping path table includes user-preset planned mapping path information. According to this table, the connection network between the storage client and the storage service provider is deployed, and the mapping paths between devices are actually deployed. After deployment, the mapping paths between the storage client and the storage service provider are calibrated to determine whether the actual mapping path information matches the planned mapping path information. If the planned path information in the table matches the actual path information between the storage client and the storage service provider, the planned mapping path table is designated as the target mapping path table. If the planned path information in the table does not match the actual path information, adjustments are needed until the planned path information matches the actual path information.
[0100] Specifically, in one feasible implementation, the mapping path between the storage client and the storage service client is deployed and calibrated according to the planned mapping path table, which includes the following steps:
[0101] After deploying the mapping path between the storage client and the storage service provider, check whether the actual path information of the deployed mapping path is consistent with the planned path information in the planned mapping path table. If the actual path information is inconsistent with the planned path information, adjust the deployment of the mapping path between the storage client and the storage service provider, or modify the planned path information in the planned mapping path table. If the actual path information of the deployed mapping path is consistent with the planned path information in the planned mapping path table, complete the calibration of the mapping path between the storage client and the storage service provider.
[0102] Specifically, calibration is completed by adjusting the planned mapping path information table or the network deployment between the storage client and the storage service provider to ensure that the planned path information in the table matches the actual path information after deployment. It can be understood that if the planned mapping path table is modified during calibration, the final modified table will be used as the target mapping path table; if the table is not modified during calibration, the original table will be used as the target mapping path table.
[0103] This embodiment allows for flexible calibration of the target mapping path table during the deployment phase, providing a reference for whether to issue an alarm later.
[0104] In one feasible implementation, a mapping path test script is preset on the storage client. Specifically, based on the target path information, the mapping path between the current storage client and the storage service client is tested to obtain a test mapping path table, including: running the path test script at preset time intervals; and performing status checks on the mapping path through the path test script to determine the test mapping path table.
[0105] In this embodiment, the storage client deploys a path test script, runs the script at preset time intervals, and generates test messages based on the target path information in the current target mapping path table. These test messages include the identifiers of each target transmission node. The test messages are then transmitted according to these node identifiers to perform status checks on the mapping path between the storage client and the storage service provider. Based on the check results, the parameters in the target mapping path table are recorded one by one to generate a test mapping path table. This achieves multi-faceted testing and recording of the mapping path status.
[0106] Reference Figure 3 , Figure 3 This is a logical schematic diagram of a system alarm method according to an embodiment of this application. In one embodiment of this application, as shown... Figure 3 As shown, the system alarm method includes the following steps:
[0107] Step S301: Obtain the planned mapping path table between the storage client and the storage service client.
[0108] Specifically, the planning mapping path table can be obtained from the planning mapping path operation interface based on the user's operation data, or received from other devices as the planning mapping path table of the storage client.
[0109] Step S302: Generate the actual mapping path table.
[0110] Specifically, the actual mapping path table is the mapping path information obtained after initializing the deployment path according to the current planning information. It tests the initialization settings of the system to confirm whether the current mapping path presents the state required by the user.
[0111] Step S303: Compare the planned mapping path table with the actual mapping path table.
[0112] Specifically, the planned mapping path table is compared with the actual mapping path table to determine if there is a difference. If there is a difference, the process jumps to step S301. If the planned mapping path table and the actual mapping path table are completely consistent, step S304 is executed.
[0113] Step S304: Determine the target mapping path table.
[0114] Specifically, the target mapping path table is the planned mapping path table that ultimately matches the actual mapping path table. In this embodiment, the target mapping path table serves as the basis for the subsequent changes in the mapping path during the use of the storage system, representing the state that the user wishes to maintain during initialization.
[0115] Step S305: At preset time intervals, test the mapping path between the storage client and the storage service client, and generate a test mapping path table.
[0116] Specifically, the preset time period can be set to 30 seconds, meaning that the mapping path between the storage client and the storage service provider is tested every 30 seconds, and a test mapping path table is generated based on the test results. In practical applications, the preset time period can be defined by the user.
[0117] Step S306: Compare whether there is a difference between the target mapping path table and the test mapping path table. If the target mapping path table and the test mapping path table are consistent, proceed to step S305. If the target mapping path table and the test mapping path table are inconsistent, proceed to step S307.
[0118] Step S307: Record the differences between the target mapping path table and the test mapping path table, and analyze the differences.
[0119] Specifically, the differences between the parameters in the target mapping path table and the corresponding parameters in the test mapping path table (number of paths / path description information / switch redundancy / storage controller redundancy) are recorded in a difference table. The time of occurrence of the differences can also be recorded for user querying. The specific process for analyzing the differences can be referred to the above embodiment, and will not be repeated here.
[0120] Step S308: Determine alarm information based on the differences between the target mapping path table and the test mapping path table.
[0121] Specifically, based on the differences between the target mapping path table and the test mapping path table across various dimensions, the impact of the current mapping path change on the storage system reliability can be determined. The corresponding alarm level and alarm message are then determined based on the degree of impact, and alarm information is output. Specifically, the alarm levels set in the above embodiment can be used. Alternatively, other alarm levels and alarm messages can be defined. Then, the process jumps to step S305 to iterate through the testing and alarm process.
[0122] In this embodiment, the mapping path between the storage client and the storage service provider in the storage system is deployed. After system initialization, the state of the mapping path is consistent with the state envisioned by the user. The target mapping path table is determined, and the mapping path between the storage client and the storage service provider is tested with reference to the target mapping path table. This allows for more granular perception of changes in the mapping path in the system, enabling further alerts for actual changes. This ensures timely and accurate notification of the impact of mapping path changes on the user, avoiding the problems of reduced redundancy and decreased reliability in the system due to changes in the mapping path.
[0123] In one embodiment of this application, based on the above technical solution, the system alarm method can be applied not only to storage systems, but also to other systems with network topologies that can be tested and alarmed using the same or similar alarm methods. Optionally, in a feasible implementation, the network communication system is equipped with three physical network ports, which form a logical network interface and are configured with an IP address for external service; the operating status of each physical network port is detected to obtain test results, and the corresponding alarm level is determined based on the test results, and then an alarm is triggered based on the alarm level.
[0124] Specifically, the alarm levels, from lowest to highest, are: Alarm Level 1, Alarm Level 2, Alarm Level 3, and Highest Alarm Level. When an increase in the number of available physical network ports is detected, the alarm level is set to Alarm Level 1. If any one of the three physical network ports fails, the alarm level is set to Alarm Level 2. At this point, two physical network ports are still available to provide services, and even if another port fails, the system can still provide services normally. If any two of the three physical network ports fail, the alarm level is set to Alarm Level 3. At this point, the port redundancy is 1, and only one physical network port can provide services. If another port fails, it will affect the normal operation of the system. If all three physical network ports fail, the alarm level is set to the Highest Alarm Level, at which point the system can no longer operate normally.
[0125] In practical applications, suppose a system is designed with N components for support, and M components are the critical failure points. When fewer than M components can function normally, this link will fail to operate normally, thus affecting the entire system. The corresponding alarm strategy is as follows: the system redundancy P for a certain link is N-M+1; when P decreases but is greater than 1, an alarm similar to alarm level two mentioned above can be reported; when P = 1, an alarm similar to alarm level three mentioned above can be reported. In this embodiment, based on the inventive concept of this application, the alarm method in this technical solution can be applied to other systems to achieve the perception and alarm of system changes.
[0126] Reference Figure 4 , Figure 4 This is a schematic diagram of the system alarm device described in one embodiment of this application. In one embodiment of this application, based on the same inventive concept, a system alarm device 400 is provided. Figure 4 As shown, a system alarm device 400 includes:
[0127] The first determining module 401 is used to determine a target mapping path table, which includes target path information of the mapping path between the current storage client and the storage service client; the target path information includes: number of paths, path description information, switch redundancy, and storage controller redundancy of the storage service client.
[0128] Test module 402 is used to test the mapping path between the current storage client and the storage service client based on the target path information, and obtain a test mapping path table;
[0129] The second determining module 403 is used to determine whether the test mapping path table is consistent with the target mapping path table;
[0130] The alarm module 404 is used to output alarm information based on the differences between the test mapping path table and the target mapping path table in terms of the number of paths, the path description information, the switch redundancy, and the storage controller redundancy of the storage service terminal when the test mapping path table and the target mapping path table are inconsistent.
[0131] In this embodiment, the system alarm device 400 issues an alarm for changes in the mapping path. This is achieved by determining a target mapping path table, which includes path information for the mapping path between the current storage client and the storage service provider. The path information includes: the number of paths, path descriptions, switch redundancy, and storage controller redundancy on the storage service provider. Based on this path information, the path between the current storage client and the storage service provider is tested to obtain a test mapping path table. It is then determined whether the test mapping path table matches the target mapping path table. If the test mapping path table and the target mapping path table are inconsistent, the system alarm device 400 determines whether the changes are due to differences in the number of paths, path descriptions, etc. Differences in redundancy between switches and storage controllers on the storage service side are analyzed to generate alarm information. A target mapping path table records information about the mapping path between the storage client and the storage service side. Using this table as a reference, the mapping path between the storage client and the storage service side is tested to obtain a test mapping path table. This allows for a comprehensive understanding of changes in the current mapping path, providing finer-grained feedback on these changes. Alarms are issued based on changes across different dimensions, ensuring timely and accurate notification to users of the impact of mapping path changes. This avoids reduced redundancy in the system due to mapping path changes, providing a solid guarantee for the continuous and reliable operation of the system.
[0132] In one feasible implementation, the alarm module 404 includes:
[0133] The first determining module is used to determine the alarm level and the alarm prompt corresponding to the alarm level based on the differences between the test mapping path table and the target mapping path table in terms of the number of paths, the path description information, the switch redundancy, and the storage controller redundancy of the storage service terminal.
[0134] The output module is used to generate and output the alarm information based on the alarm prompt and the alarm level.
[0135] In one feasible implementation, the alarm levels are arranged in ascending order as first alarm level, second alarm level, third alarm level, and highest alarm level, and the aforementioned first determining module includes:
[0136] The path number difference determination module is used to determine the difference in the number of paths between the test mapping path table and the target mapping path table.
[0137] The first alarm level determination module is used to determine the current alarm level as the first alarm level when the difference is positive, or when the difference is zero and the description information changes.
[0138] In one feasible implementation, the first determining module includes:
[0139] The second alarm level determination module is used to determine the current alarm level as the second alarm level when the difference is negative and the redundancy of the switch and the redundancy of the storage controller remain unchanged.
[0140] The third alarm level determination module is used to determine the current alarm level as the third alarm level when the difference is negative and the redundancy of the switch and / or the redundancy of the storage controller is 1.
[0141] The highest alarm level determination module is used to determine the current alarm level as the highest alarm level when the number of paths in the test mapping path table is zero.
[0142] This application contains a limited description of the device embodiments; for details, please refer to the above method embodiments, which will not be repeated here.
[0143] In one embodiment of this application, an electronic device is provided, including a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus; the memory is used to store computer programs; and the processor is used to implement the above-mentioned system alarm method when executing the program stored in the memory.
[0144] In one embodiment of this application, a volatile storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, it implements the system alarm method as described in the above embodiments.
[0145] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other.
[0146] Those skilled in the art will understand that embodiments of this application can be provided as methods, apparatus, or computer program products. Therefore, embodiments of this application can take the form of entirely hardware embodiments, entirely software embodiments, or embodiments combining software and hardware aspects. Furthermore, embodiments of this application can take the form of computer program products implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0147] This application describes embodiments with reference to flowchart illustrations and / or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of this application. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing terminal device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal device, generate instructions for implementing the flowchart illustrations. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0148] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing terminal device to operate in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0149] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal equipment, causing a series of operational steps to be performed on the computer or other programmable terminal equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable terminal equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0150] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or terminal device that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or terminal device. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or terminal device that includes said element.
[0151] The above provides a detailed description of the system alarm method, apparatus, and electronic device. Specific examples have been used to illustrate the principles and embodiments of this application. The description of the embodiments above is only for the purpose of helping to understand the method and core ideas of this application. At the same time, for those skilled in the art, there will be changes in specific embodiments and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.
Claims
1. A system alarm method, characterized in that, The method includes: A target mapping path table is determined, which includes target path information of the mapping path between the current storage client and the storage service client; the target path information includes: the number of paths, path description information, switch redundancy, and storage controller redundancy of the storage service client; Based on the target path information, the mapping path between the current storage client and the storage service client is tested to obtain a test mapping path table; Determine whether the test mapping path table is consistent with the target mapping path table; If the test mapping path table is inconsistent with the target mapping path table, an alarm message is output based on the differences between the test mapping path table and the target mapping path table in terms of the number of paths, the path description information, the switch redundancy, and the storage controller redundancy of the storage service terminal.
2. The system alarm method according to claim 1, characterized in that, In the event that the test mapping path table and the target mapping path table are inconsistent, alarm information is output based on the differences between the test mapping path table and the target mapping path table in terms of the number of paths, the path description information, the switch redundancy, and the storage controller redundancy of the storage service terminal. This includes: Based on the differences between the test mapping path table and the target mapping path table in terms of the number of paths, the path description information, the switch redundancy, and the storage controller redundancy of the storage service terminal, the alarm level and the alarm prompt corresponding to the alarm level are determined. Based on the alarm prompt and the alarm level, generate the alarm information and output it.
3. The system alarm method according to claim 2, characterized in that, The alarm levels, from lowest to highest, are: first alarm level, second alarm level, third alarm level, and highest alarm level. The step of determining the alarm level and the corresponding alarm prompt based on the differences between the test mapping path table and the target mapping path table in terms of the number of paths, the path description information, the switch redundancy, and the storage controller redundancy includes: Determine the difference in the number of paths between the test mapping path table and the target mapping path table; If the difference is positive, or if the difference is zero and the path description information changes, the current alarm level is determined to be the first alarm level.
4. The system alarm method according to claim 3, characterized in that, The redundancy of the switch and the redundancy of the storage controller in the target mapping path table are both greater than or equal to 2; the method further includes: If the difference is negative and the redundancy of the switch and the redundancy of the storage controller remain unchanged, the current alarm level is determined to be the second alarm level. If the difference is negative and the redundancy of the switch and / or the redundancy of the storage controller is 1, the current alarm level is determined to be the third alarm level. If the number of paths in the test mapping path table is zero, the current alarm level is determined to be the highest alarm level.
5. The system alarm method according to claim 3, characterized in that, The method further includes: If the current alarm level is determined to be the first alarm level, the target mapping path table is updated, and the current test mapping path table is determined as the target mapping path table. Perform mapping path testing according to the updated target mapping path table.
6. The system alarm method according to claim 1, characterized in that, The step of testing the mapping path between the current storage client and the storage service client based on the target path information to obtain a test mapping path table includes: Run the test script at preset time intervals; The status of the mapped path is detected by the path test script to determine the test mapping path table.
7. The system alarm method according to claim 1, characterized in that, Before determining the target mapping path table, the method further includes: Obtain the preset planning mapping path table; According to the planned mapping path table, the mapping path between the storage client and the storage service client is deployed and calibrated; If the planned path information in the planned mapping path table is consistent with the actual path information between the storage client and the storage service client, the target mapping path table is determined.
8. The system alarm method according to claim 7, characterized in that, The step of deploying and calibrating the mapping path between the storage client and the storage service client according to the planned mapping path table includes: After deploying the mapping path between the storage client and the storage service client, it is checked whether the actual path information of the deployed mapping path is consistent with the planned path information in the planned mapping path table; If the actual path information is inconsistent with the planned path information, adjust the deployment of the mapping path between the storage client and the storage service client, or modify the planned path information in the planned mapping path table; If the actual path information of the deployed mapping path is consistent with the planned path information in the planned mapping path table, the calibration of the mapping path between the storage client and the storage service client is completed.
9. A system alarm device, characterized in that, The device includes: The first determining module is used to determine the target mapping path table, which includes target path information of the mapping path between the current storage client and the storage service client; the target path information includes: the number of paths, path description information, switch redundancy, and storage controller redundancy of the storage service client. The testing module is used to test the mapping path between the current storage client and the storage service client based on the target path information, and obtain a test mapping path table; The second determining module is used to determine whether the test mapping path table is consistent with the target mapping path table; The alarm module is used to output alarm information based on the differences between the test mapping path table and the target mapping path table in terms of the number of paths, the path description information, the switch redundancy, and the storage controller redundancy of the storage service terminal when the test mapping path table and the target mapping path table are inconsistent.
10. An electronic device, characterized in that, The device includes: a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus; the memory is used to store computer programs. A processor, when executing a program stored in memory, implements the system alarm method according to any one of claims 1-8.