Logical disk status query method, device, system, equipment and storage medium

By recording and retrying the status query of the logical disk in the storage system, the problem of low interaction efficiency between the host and the storage system is solved, ensuring the reliability and continuity of the interaction, and avoiding business interruptions.

CN118708133BActive Publication Date: 2024-11-15INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411206037.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-30
Publication Date
2024-11-15
Estimated Expiration
2044-08-30

AI Technical Summary

Technical Problem

In the prior art, when the host interacts with the storage system, no retry is performed when the logical disk is abnormal, resulting in low interaction efficiency or failure of interaction, which may lead to business interruption.

Method used

In the storage system, when receiving the query command from the host, the status information of the target logical disk is recorded. If it is abnormal, query again after the preset time period until the status returns to normal. Instructions are generated to notify the host to try the query again to avoid the reason of The mark path of the interaction failure is invalid.

Benefits of technology

It improves the interaction efficiency between the host and the storage system, avoids business interruptions caused by an interaction failure, and ensures the reliability and continuity of the logical disk state query of the storage system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118708133B_ABST
    Figure CN118708133B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of computer technology, and discloses a method, device, system, equipment and storage medium for querying the status of a logical disk. The method comprises: when a query command sent by a host is received for the first time, querying a target logical disk in at least one logical disk of a storage system, and checking the status information of the target logical disk to obtain a query result; if the query result is that the status information is abnormal, then recording the current moment; after a first preset time period from the current moment, querying the status information of the target logical disk for the second time to obtain a secondary query result; if the secondary query result is that the status information of the target logical disk is still abnormal, then generating indication information, and sending the indication information to the host, the indication information is used to instruct the host to send a query command for the second time to query the status information of the target logical disk until it is normal. The present invention can solve the problem of low efficiency or even interaction failure between the host and the storage system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a method, device, system, equipment and storage medium for querying the status of a logical disk. Background Art

[0002] The interaction protocol between the storage system and the host is still developing. With the technological evolution of the host and the storage system, the continuous interaction between the two also needs to be continuously improved. In the prior art, when the logical disk of the storage system is abnormal, the interaction between the host and the storage system is not perfect.

[0003] In the related art, when a host sends a query command to a storage system to query the logical disk of the storage system, if the query command is sent once and the waiting instruction times out, no retries will be made, and the interaction with the storage system will be judged as abnormal, and no subsequent interaction processing will be performed. This may cause the host to mark the logical disk of the storage system as abnormal and mark the access path as invalid, making the interaction between the host and the storage system inefficient. If all paths between the host and the storage system are marked as invalid, the interaction between the host and the logical disk will be interrupted, causing the interaction between the host and the storage system to fail, and then causing business interruption. Summary of the invention

[0004] In view of this, the present invention provides a method, apparatus, system, device and storage medium for querying the status of a logical disk to solve the problem of low interaction efficiency or even interaction failure between a host and a storage system.

[0005] In a first aspect, the present invention provides a method for querying the status of a logical disk, the method comprising: when a query command sent by a host is received for the first time, querying a target logical disk in at least one logical disk in a storage system, and checking the status information of the target logical disk to obtain a query result; if the query result is that the status information of the target logical disk is abnormal, recording the current time; after a first preset time period has passed from the current time, performing a secondary query on the status information of the target logical disk to obtain a secondary query result; if the secondary query result is that the status information of the target logical disk is still abnormal, generating an indication message, and sending the indication message to the host, the indication message being used to instruct the host to send a query command for a second time to query the status information of the target logical disk, until the storage system queries the status information of the target logical disk to be normal.

[0006] Based on the method provided in the first aspect above, when the storage system receives a query command sent by the host for the first time, it can query the target logical disk in at least one logical disk in the storage system and check the status information of the target logical disk; and when the query result is that the status information of the target logical disk is abnormal, record the current time; and after a first preset time period from the current time, perform a second query on the status information of the target logical disk, and when the result of the second query is that the status information of the target logical disk is still abnormal, generate and send an indication information to the host to trigger the second sending of the query command to query the status information of the target logical disk, until the storage system queries the status information of the target logical disk to be normal.

[0007] Since the storage system queries the target logical disk and the status information is abnormal, the target logical disk is queried again after the first preset time period from the current moment, that is, the status information of the target logical disk after the first preset time period can be determined again. When the result of the second query is still that the status information of the target logical disk is abnormal, it can be determined that the status information of the target logical disk has not recovered from abnormality to normal within the first preset time period. At this time, the indication information is generated and sent, so that the host thinks that the target logical disk is back online, the host will re-go through the disk scanning process, and will send a query command again in the disk scanning process to query the status information of the target logical disk, so that the interaction between the host and the storage system is successful.

[0008] Compared with the method in the related art in which the host sends a query command once and waits for the command to time out, and then does not retry, and directly determines that the interaction between the host and the storage system is abnormal, the present invention can avoid the problem of marking the logical disk of the storage system as abnormal and marking the access path as invalid due to a single interaction failure, thereby improving the interaction efficiency between the host and the storage system. Furthermore, it can avoid the problem that after all paths of the host and the storage system are marked as invalid, the interaction between the host and the storage system fails, thereby causing business interruption.

[0009] In an optional implementation, if the query result is that the status information of the target logical disk is normal, the disk information of the target logical disk is obtained, and the disk information includes the space and type of the target logical disk; the status information and disk information of the target logical disk are reported to the host.

[0010] Based on the above method, when the status information of the target logical disk is normal, the status information and disk information of the target logical disk can be reported to the host, that is, the interaction between the host and the storage system is successful.

[0011] In an optional embodiment, after a first preset time period has passed from the current moment, a secondary query is performed on the status information of the target logical disk, and before the secondary query result is obtained, the operating system type corresponding to the host is obtained; based on the operating system type and the preset correspondence, the expected response time corresponding to the operating system type is determined, and the expected response time is determined as the first preset time period, the preset correspondence is the correspondence between the operating system type and the expected response time, and the expected response time is the time expected to receive a response after the host sends a query command.

[0012] Based on the above method, a first preset time period can be determined, and the determined first preset time period can be the expected response time corresponding to the operating system type corresponding to the host, so that when the host does not receive a response from the storage system within the expected response time, the storage system re-queries the status information of the target logical disk and gives feedback to the host based on the secondary query result.

[0013] In an optional embodiment, when the Nth query result is that the status information of the target logical disk recovers from abnormal to normal, the recovery time is recorded, where N ≥ 2 and is a positive integer; the difference between the recovery time and the current time is calculated, and the difference is determined as the status recovery duration of the target logical disk, and the status recovery duration is used to determine the time when the host sends a query command to the storage system.

[0014] Based on the above method, the storage system can record the recovery time corresponding to the state information of the target logical disk recovering from abnormality to normal according to the N query results, and then determine the state recovery duration of the target logical disk, so as to facilitate determining the time when the host sends a query command to the storage system without waiting too much extra time, thereby reducing the number of query command interactions and improving the interaction efficiency between the host and the storage system.

[0015] In an optional implementation, if the secondary query result is that the state information of the target logical disk is normal, the disk information of the target logical disk is obtained, and the state information and disk information of the target logical disk are reported to the host.

[0016] Based on the above method, when the secondary query result shows that the status information of the target logical disk is normal, it means that the status information of the target logical disk has recovered from abnormal to normal, and the status information and disk information of the target logical disk can be reported to the host, indicating that the host and the target logical disk of the storage system interact successfully.

[0017] In an optional embodiment, after a first preset time period has passed from the current moment, a secondary query is performed on the status information of the target logical disk, and before the secondary query result is obtained, the method also includes: obtaining the host's benchmark response time, the host's idle computing resources and idle memory resources, and the disk read and write speed of the target logical disk; and generating a first preset time period by calculating according to a preset algorithm based on the benchmark response time, idle computing resources, idle memory resources, and disk read and write speed.

[0018] Based on the above method, a first preset time period can be determined, and the determined first preset time period matches the idle computing resources and idle memory resources of the host at the current moment and the disk read and write speed of the target logical disk, so that when the host does not receive a response from the storage system within the first preset time period, the storage system can promptly perform a second query on the status information of the target logical disk, and give feedback to the host based on the second query result, so as to avoid the storage system from waiting for too much extra time, or avoid the storage system from frequently querying the status information of the target logical disk, thereby reducing the number of query command interactions and improving the interaction efficiency between the host and the storage system.

[0019] In an optional implementation, determining the first preset time period according to the benchmark response time, idle computing resources, idle memory resources, and disk read / write speed includes: obtaining a first impact factor corresponding to the idle computing resources, a second impact factor corresponding to the idle memory resources, and a third impact factor corresponding to the disk read / write speed; and generating the first preset time period by calculating according to a preset algorithm according to the benchmark response time, the first impact factor, the second impact factor, and the third impact factor, wherein the preset algorithm is:

[0020]

[0021] in, represents the first preset time period, Indicates the benchmark response time. represents the first impact factor, represents the second impact factor, Represents the third impact factor.

[0022] Based on the above method, since the host's idle computing resources, the host's idle memory resources, and the target logical disk's disk read and write speed have different weights for determining the first preset time period, based on the first influencing factor corresponding to the idle computing resources, the second influencing factor corresponding to the idle memory resources, the third influencing factor corresponding to the disk read and write speed, and the benchmark response time, the first preset time period that the storage system needs to wait for before a secondary query can be accurately determined.

[0023] In a second aspect, the present invention provides a method for querying the status of a logical disk, the method comprising: sending a query command to a storage system for the first time, the query command being used to instruct the storage system to query a target logical disk in at least one logical disk and check the status information of the target logical disk; receiving indication information obtained and fed back by the storage system based on the query command, the indication information being generated by the storage system when, when the status information of the target logical disk is abnormal, a second query is performed after a first preset time period and the status information is still abnormal; generating and sending a second query command to the storage system, the second query command being used to instruct the storage system to query the status information of the target logical disk again until the status information is found to be normal.

[0024] Based on the method provided in the second aspect above, the host sends a query command to the storage system for the first time, and the query command is used to instruct the storage system to query the target logical disk in the storage system; receives the indication information obtained and fed back by the storage system based on the query command; generates and sends a second query command to the storage system, and the second query command is used to instruct the storage system to query the status information of the target logical disk again until the status information is queried to be normal.

[0025] Since the host receives the indication information sent by the storage system after the first preset time period after sending the query command to the storage system for the first time, and the indication information is used to instruct the host to send the query command for the second time, that is, the host receives the indication information after the first preset time period after sending the query command for the first time, so that the host believes that the target logical disk is back online, the host will go through the disk scanning process again and send the query command again during the disk scanning process to query the target logical disk.

[0026] Compared with the method in the related art in which the host sends a query command once and waits for the command to time out, and then does not retry, and directly determines that the interaction between the host and the storage system is abnormal, the present invention can avoid the problem of marking the logical disk of the storage system as abnormal and marking the access path as invalid due to a single interaction failure, thereby improving the interaction efficiency between the host and the storage system. Furthermore, it can avoid the problem that after all paths of the host and the storage system are marked as invalid, the interaction between the host and the storage system fails, thereby causing business interruption.

[0027] In an optional embodiment, after generating and sending a second query command to the storage system, the method further includes: obtaining a historical response time after the host sends the query command; after sending the query command to the storage system for the second time, if the status information of the target logical disk fed back by the storage system is not received within the historical response time, it is determined that the status information indication of the target logical disk is abnormal, and a query command is sent to the storage system for a third time.

[0028] Based on the above method, the host can generate and send a second query command to the storage system to predict the response time of the query command, and then determine the time when the host sends the query command to the storage system for the third time. In this way, under the premise of ensuring the continuous interaction between the host and the storage system, the number of query command interactions can be reduced, unnecessary additional waiting time can be reduced, and the interaction efficiency between the host and the storage system can be improved.

[0029] In a third aspect, the present invention provides a device for querying the status of a logical disk, the device comprising: a first query module, for querying a target logical disk in at least one logical disk in a storage system when a query command sent by a host is received for the first time, and checking the status information of the target logical disk to obtain a query result; a first processing module, for recording the current time if the query result is that the status information of the target logical disk is abnormal; the first query module is also used to perform a secondary query on the target logical disk after a first preset time period has passed from the current time to obtain a secondary query result.

[0030] The first processing module is also used to generate indication information and send the indication information to the host if the secondary query result shows that the status information of the target logical disk is still abnormal. The indication information is used to instruct the host to send a query command for the second time to query the target logical disk until the storage system queries the status information of the target logical disk to be normal.

[0031] In a fourth aspect, the present invention provides a logical disk status query device, the device comprising: a second query module, used to send a query command to a storage system for the first time, the query command is used to instruct the storage system to query a target logical disk in at least one logical disk, and check the status information of the target logical disk; a second processing module, used to receive indication information obtained and fed back by the storage system based on the query command, the indication information is generated by the storage system when the status information of the target logical disk is abnormal, and the storage system performs a second query and the status information is still abnormal; the second query module is also used to generate and send a second query command to the storage system, the second query command is used to instruct the storage system to query the status information of the target logical disk again until the status information is queried to be normal.

[0032] In a fifth aspect, the present invention provides a logical disk status query system, the logical disk status query system comprising a host and a storage system; the host is used to send a query command to the storage system for the first time, the query command is used to instruct the storage system to query the target logical disk in at least one logical disk and check the status information of the target logical disk; the storage system is used to query the target logical disk in at least one logical disk in the storage system when receiving the query command sent by the host for the first time, and check the status information of the target logical disk to obtain a query result; the storage system is also used to record the current time if the query result is that the status information of the target logical disk is abnormal; the storage system is also used to perform a secondary query on the status information of the target logical disk after a first preset time period has passed from the current time to obtain a secondary query result; the storage system is also used to generate indication information if the secondary query result is that the status information of the target logical disk is still abnormal, and send the indication information to the host, the indication information is used to instruct the host to send the query command for the second time; the host is also used to receive the indication information obtained and fed back by the storage system based on the query command; the host is also used to send the query command to the storage system for the second time until the storage system queries the status information of the target logical disk to be normal.

[0033] In a sixth aspect, the present invention provides a computer device, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the logical disk status query method of the first aspect or any corresponding embodiment thereof by executing the computer instructions.

[0034] In a seventh aspect, the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the method for querying the status of a logical disk according to the first aspect or any corresponding embodiment thereof.

[0035] In an eighth aspect, the present invention provides a computer program product, including computer instructions, which are used to enable a computer to execute the method for querying the status of a logical disk of the first aspect or any corresponding embodiment thereof. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0037] Figure 1is a topological diagram of a logical disk status query system according to an embodiment of the present invention;

[0038] Figure 2 is a flow chart of a method for querying the status of a logical disk according to an embodiment of the present invention;

[0039] Figure 3 is a flow chart of another method for querying the status of a logical disk according to an embodiment of the present invention;

[0040] Figure 4 is a flow chart of another method for querying the status of a logical disk according to an embodiment of the present invention;

[0041] Figure 5 is a structural block diagram of a device for querying the status of a logical disk according to an embodiment of the present invention;

[0042] Figure 6 is a structural block diagram of another device for querying the status of a logical disk according to an embodiment of the present invention;

[0043] Figure 7 It is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0044] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0045] In the related art, when a host sends a query command to a storage system to query the logical disk of the storage system, if the query command is sent once and the waiting instruction times out, no retries will be made, and the interaction with the storage system will be judged as abnormal, and no subsequent interaction processing will be performed. This may cause the host to mark the logical disk of the storage system as abnormal and mark the access path as invalid, making the interaction efficiency between the host and the storage system low.

[0046] In addition, the storage system does not differentiate special protocol commands (for example, query commands). Therefore, in the case of abnormal logical disk status, it may take a long time to wait for command processing without returning command results to the host in time, which may easily lead to host timeout. The long storage system command return time and the access path being marked as invalid after the host command times out, both of which lead to the failure of the interaction between the host and the storage system logical disk.

[0047] In order to solve the above technical problems, an embodiment of the present invention provides a method for querying the status of a logical disk, which can solve the problem of low efficiency or even interaction failure between a host and a storage system.

[0048] The method provided by the embodiment of the present invention can be used for various logical disk status query systems. Figure 1 The method provided by the embodiment of the present invention is described by taking the logical disk status query system 100 as an example. Figure 1 It is only a schematic diagram and does not constitute a limitation on the applicable scenarios of the technical solution provided by the present invention.

[0049] like Figure 1 As shown, Figure 1 4 is a topological diagram of a logical disk status query system according to an embodiment of the present invention. Figure 1 In the embodiment, a logical disk status query system 100 may include a storage system 101 and a host 102 .

[0050] The storage system in the embodiment of the present invention, for example, the storage system 101, can be any storage system, including a low-end storage system, a mid-end storage system, or a high-end storage system.

[0051] The host in the embodiment of the present invention, for example, the host 102, can be any server or host with communication function and computing function. The host can also be called a host system. The host can deploy different operating systems.

[0052] Figure 1 The logical disk status query system 100 shown is only used as an example and is not used to limit the technical solution of the present invention. Those skilled in the art should understand that in the specific implementation process, the logical disk status query system 100 can also include other devices, and the number of storage systems can also be determined according to specific needs without limitation.

[0053] According to an embodiment of the present invention, an embodiment of a method for querying the status of a logical disk is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0054] In this embodiment, a method for querying the status of a logical disk is provided, which can be used in the above storage system. Figure 2 FIG. 1 is a flow chart of a method for querying the status of a logical disk according to an embodiment of the present invention. Figure 2 As shown, the process includes the following steps:

[0055] S201: When a query command sent by a host is received for the first time, a target logical disk is queried in at least one logical disk in a storage system, and status information of the target logical disk is checked to obtain a query result.

[0056] The query command may be a preset protocol command. The preset protocol may be a storage protocol, for example, the preset protocol is a Small Computer System Interface (SCSI) protocol or a Non-Volatile Memory Express (NVMe) protocol.

[0057] Optionally, from the perspective of the transport layer network, the preset protocol may also be a storage protocol based on an IP network (Internet Small Computer System Interface, ISCSI), a protocol for transmitting SCSI commands over a Fibre Channel network (Fibre Channel-SCSI, FC-SCSI), or a Fibre Channel remote access non-volatile memory protocol (NVMe over FABRICS).

[0058] In the embodiment of the present invention, the query result includes the state information of the target logical disk. Optionally, the query result may also include the disk information of the target logical disk. The disk information includes the space and type of the target logical disk. The space of the target logical disk is also called the capacity of the target logical disk.

[0059] S202: If the query result is that the status information of the target logical disk is abnormal, the current time is recorded.

[0060] It can be understood that when the target logical disk is processing a task or is busy, the storage system receives a query command sent by the host and queries the status information of the target logical disk and finds that the status information is abnormal.

[0061] In some optional implementations, if the query result of the storage system is that the status information of the target logical disk is normal, the storage system obtains the disk information of the target logical disk; and reports the status information and disk information of the target logical disk to the host.

[0062] It can be understood that the storage system reports the status information and disk information of the target logical disk to the host, which indicates that the host and the storage system interact successfully.

[0063] S203: After a first preset time period has passed since the current moment, a second query is performed on the status information of the target logical disk to obtain a second query result.

[0064] The first preset time period can be set according to actual needs without limitation. For example, the first preset time period can be 30 seconds.

[0065] In some optional embodiments, the storage system performs a secondary query on the status information of the target logical disk after a first preset time period has passed from the current moment, and obtains the operating system type corresponding to the host before obtaining the secondary query result; determines the expected response time corresponding to the operating system type based on the operating system type and the preset correspondence, and determines the expected response time as the first preset time period.

[0066] The preset corresponding relationship is the corresponding relationship between the operating system type and the expected response time.

[0067] In the embodiment of the present invention, the expected response time is the time it takes for the host to receive a response after sending a query command.

[0068] It is understandable that different operating system types correspond to different expected response times.

[0069] In some optional implementations, the storage system obtains an expected response time corresponding to each type of operating system in at least one type of operating system; and determines a minimum expected response time in the at least one expected response time as a first preset time period.

[0070] It can be understood that the storage system can determine a first preset time period, and the determined first preset time period can be the minimum expected response time of at least one expected response time corresponding to different types of operating systems. This can ensure that under operating systems of different operating system types, when the host does not receive a response from the storage system within the minimum expected response time, the storage system will secondary query the status information of the target logical disk and give feedback to the host based on the secondary query result.

[0071] In some optional embodiments, the storage system obtains a benchmark response time of the host, idle computing resources and idle memory resources of the host, and a disk read and write speed of the target logical disk; and generates a first preset time period by calculating according to a preset algorithm based on the benchmark response time, idle computing resources, idle memory resources, and disk read and write speed.

[0072] The reference response time may be an average response time after the host sends a query command in a historical period of time, or may be a preset expected response time after the host sends a query command.

[0073] In the embodiment of the present invention, the idle computing resources of the host are used to indicate the processing capability of the host. The computing resources may be GPU resources or CPU resources.

[0074] In one example, a first impact factor corresponding to idle computing resources, a second impact factor corresponding to idle memory resources, and a third impact factor corresponding to disk read and write speeds are obtained; a first preset time period is generated by calculating according to a preset algorithm based on the benchmark response time, the first impact factor, the second impact factor, and the third impact factor.

[0075] Among them, the preset algorithm is:

[0076]

[0077] in, represents the first preset time period, Indicates the benchmark response time. represents the first impact factor, represents the second impact factor, Represents the third impact factor.

[0078] In the embodiment of the present invention, the first impact factor may be a resource impact factor calculated according to the idle computing resource ratio. For example, taking the idle computing resource ratio as 80% as an example, the first impact factor is 20%.

[0079] In the embodiment of the present invention, the first impact factor may be an impact factor calculated according to the idle computing resource ratio. For example, taking the idle computing resource ratio as 80% as an example, the first impact factor is 20%.

[0080] In the embodiment of the present invention, the second impact factor may be an impact factor calculated according to the idle memory resource ratio. For example, taking the idle memory resource ratio as 90%, the first impact factor is 10%.

[0081] In the embodiment of the present invention, the third impact factor can be determined according to the disk read / write speed to determine the performance level of the target disk, and the impact factor is determined according to the performance level. For example, taking the disk read / write speed as the first level as an example, the third impact factor is 3%.

[0082] It can be understood that the first preset time period determined by the storage system matches the idle computing resources and idle memory resources of the host at the current moment and the disk read and write speed of the target logical disk, so that when the host does not receive a response from the storage system within the first preset time period, the storage system can promptly perform a second query on the status information of the target logical disk, and give feedback to the host based on the second query result, so as to avoid the storage system from waiting for too much extra time, or avoid the storage system from frequently querying the status information of the target logical disk, thereby reducing the number of query command interactions and improving the interaction efficiency between the host and the storage system.

[0083] S204: If the secondary query result shows that the status information of the target logical disk is still abnormal, then generate indication information and send the indication information to the host.

[0084] The instruction information is used to instruct the host to send a query command for the second time to query the status information of the target logical disk.

[0085] For example, the indication information may be "disk is ready to be back online", so that the host thinks that the target logical disk is back online. In this way, the host will re-go through the target logical disk scanning process and send a query command for the second time during the target logical disk scanning process to query the target logical disk.

[0086] It can be understood that if the host sends a query command to the storage system for the second time and finds that the status information of the target logical disk is abnormal, it will continue to generate indication information and send the indication information to the host, triggering the host to send a query command for the third time to query the target logical disk until the storage system finds that the status information of the target logical disk is normal.

[0087] Optionally, if the secondary query result shows that the status information of the target logical disk is normal, the storage system obtains disk information of the target logical disk and reports the status information and disk information of the target logical disk to the host.

[0088] In some optional implementations, when the Nth query result shows that the status information of the target logical disk recovers from abnormal to normal, the storage system records the recovery time; calculates the difference between the recovery time and the current time, and determines the difference as the status recovery duration of the target logical disk.

[0089] The state recovery duration is used to determine the time when the host sends a query command to the storage system. N ≥ 2 and is a positive integer.

[0090] Based on the above-mentioned S201-S204 method, the storage system can query the target logical disk in the storage system when it receives the query command sent by the host for the first time; and when the query result is that the status information of the target logical disk is abnormal, record the current time; and after a first preset time period from the current time, perform a second query on the target logical disk, and when the second query result is that the status information of the target logical disk is abnormal, generate and send indication information to the host to trigger the second sending of the query command to query the target logical disk, until the storage system queries the status information of the target logical disk to be normal.

[0091] Since the storage system queries the target logical disk and the status information is abnormal, the target logical disk is queried again after the first preset time period has passed from the current moment, that is, the status information of the target logical disk after the first preset time period can be determined again. When the result of the second query is still that the status information of the target logical disk is abnormal, it can be determined that the status information of the target logical disk has not recovered from abnormality to normal within the first preset time period. At this time, the indication information is generated and sent, so that the host believes that the target logical disk is back online, and the host will go through the disk scanning process again, and will send the query command again in the disk scanning process to query the target logical disk.

[0092] Compared with the method in the related art in which the host sends a query command once and waits for the command to time out, and then does not retry, and directly determines that the interaction between the host and the storage system is abnormal, the present invention can avoid the problem of marking the logical disk of the storage system as abnormal and marking the access path as invalid due to a single interaction failure, thereby improving the interaction efficiency between the host and the storage system. Furthermore, it can avoid the problem that after all paths of the host and the storage system are marked as invalid, the interaction between the host and the storage system fails, thereby causing business interruption.

[0093] In this embodiment, a method for querying the status of a logical disk is provided, which can be used in the above-mentioned host. Figure 3 FIG. 4 is a flow chart of another method for querying the status of a logical disk according to an embodiment of the present invention. Figure 3 As shown, the process includes the following steps:

[0094] S301: Sending a query command to the storage system for the first time.

[0095] The query command is used to instruct the storage system to query at least one logical disk for a target logical disk in the storage system and check status information of the target logical disk.

[0096] S302: Receive indication information obtained and fed back by the storage system based on the query command.

[0097] The indication information is used to instruct the host to send a query command for the second time to query the target logical disk. The indication information is generated by the storage system when the storage system performs a second query to obtain the target logical disk status information indicating an abnormality after querying the target logical disk status information to indicate an abnormality.

[0098] In some optional implementations, the host may also receive the state information and disk information of the target logical disk obtained and fed back by the storage system based on the query command, and the state information of the target logical disk indicates that it is normal.

[0099] S303: Generate and send a secondary query command to the storage system.

[0100] The secondary query command is used to instruct the storage system to query the status information of the target logical disk again until the status information is found to be normal.

[0101] In some optional implementations, after receiving the indication information obtained and fed back by the storage system based on the query command, the host generates a secondary query command, and sends the secondary query command to the storage system after a delay of a second preset time period.

[0102] The second preset time period is the difference between the state recovery time and the first preset time period.

[0103] In the embodiment of the present invention, the state recovery duration is the duration used for the state information of the target logical disk to recover from abnormality to normality.

[0104] Exemplarily, taking the first preset time period as 20 seconds and the status recovery time as 30 seconds, after receiving the indication information sent by the storage system after 20 seconds, the host needs to delay for 10 seconds and send the query command to the storage system for the second time. Obviously, if the storage system finds that the status information of the target logical disk is abnormal when it queries for the first time, it will send the indication information to the host after 20 seconds. After the host delays for 10 seconds, at this time, the status information of the target logical disk recovers from abnormal to normal, and sends the query command to the storage system for the second time, and finds that the status information of the target logical disk is normal.

[0105] In some optional implementations, after the host sends the query command to the storage system for the second time, the host can also obtain the historical response time after the host sends the query command; after sending the query command to the storage system for the second time, if the status information of the target logical disk is not received from the storage system within the historical response time, it is determined that the status information indication of the target logical disk is abnormal, and the query command is sent to the storage system for the third time.

[0106] Based on the above-mentioned S301-S303 method, the host sends a query command to the storage system for the first time, and the query command is used to instruct the storage system to query the target logical disk in the storage system; receives the indication information sent by the storage system after a first preset time period, and the indication information is used to instruct the host to send a query command for the second time to query the target logical disk; sends the query command to the storage system for the second time until the storage system queries the status information of the target logical disk to be normal.

[0107] Since the host receives the indication information sent by the storage system after the first preset time period after sending the query command to the storage system for the first time, and the indication information is used to instruct the host to send the query command for the second time, that is, the host receives the indication information after the first preset time period after sending the query command for the first time, so that the host believes that the target logical disk is back online, the host will go through the disk scanning process again and send the query command again during the disk scanning process to query the target logical disk.

[0108] Compared with the method in the related art in which the host sends a query command once and waits for the command to time out, and then does not retry, and directly determines that the interaction between the host and the storage system is abnormal, the present invention can avoid the problem of marking the logical disk of the storage system as abnormal and marking the access path as invalid due to a single interaction failure, thereby improving the interaction efficiency between the host and the storage system. Furthermore, it can avoid the problem that after all paths of the host and the storage system are marked as invalid, the interaction between the host and the storage system fails, thereby causing business interruption.

[0109] In this embodiment, a logical disk status query system is also provided. The logical disk status query system includes a host and a storage system.

[0110] The host is used to send a query command to the storage system for the first time, and the query command is used to instruct the storage system to query a target logical disk in at least one logical disk and check status information of the target logical disk.

[0111] The storage system is used for querying a target logical disk in at least one logical disk in the storage system when receiving a query command sent by a host for the first time, and checking the status information of the target logical disk to obtain a query result.

[0112] The storage system is further configured to record the current time if the query result shows that the status information of the target logical disk is abnormal.

[0113] The storage system is further configured to perform a secondary query on the state information of the target logical disk after a first preset time period has passed from the current moment to obtain a secondary query result.

[0114] The storage system is also used to generate indication information and send the indication information to the host if the secondary query result shows that the status information of the target logical disk is still abnormal, and the indication information is used to instruct the host to send the query command for the second time.

[0115] The host is also used to receive indication information obtained and fed back by the storage system based on the query command.

[0116] The host is further used to generate and send a secondary query command to the storage system until the storage system queries the status information of the target logical disk and finds that it is normal.

[0117] It can be understood that in the logical disk status query system, the interaction process between the host and the storage system can be as follows: Figure 4 As shown, Figure 4 FIG. 1 is a flow chart of another method for querying the status of a logical disk according to an embodiment of the present invention. Figure 4 As shown, the process includes the following steps:

[0118] S401: The host sends a query command to the storage system for the first time.

[0119] S402: When the storage system receives the query command sent by the host for the first time, it queries the target logical disk in the storage system.

[0120] S403: The storage system determines whether the query result shows that the status information of the target logical disk is normal.

[0121] S404: If yes, the storage system reports the status information and disk information of the target logical disk to the host.

[0122] S405: If not, the storage system records the current time, and performs a secondary query on the target logical disk after a first preset time period has passed since the current time to obtain a secondary query result.

[0123] S406: The storage system determines whether the secondary query result shows that the status information of the target logical disk is normal. If so, the system returns to S404.

[0124] S407: If not, the storage system generates indication information and sends the indication information to the host.

[0125] S408: The host receives the instruction information and sends a query command to the storage system for the second time until the storage system queries the status information of the target logical disk and finds that it is normal.

[0126] In this embodiment, a device for querying the status of a logical disk is also provided, and the device is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made are not repeated here. As used below, the term "module" can be a combination of software and / or hardware that implements a predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0127] This embodiment provides a device for querying the status of a logical disk. Figure 5 As shown, Figure 5 1 is a structural block diagram of a device for querying the status of a logical disk according to an embodiment of the present invention; applied to a storage system, the device includes:

[0128] The first query module 501 is used to query a target logical disk in at least one logical disk in the storage system and check the status information of the target logical disk to obtain a query result when receiving a query command sent by the host for the first time.

[0129] The first processing module 502 is configured to record the current time if the query result shows that the status information of the target logical disk is abnormal.

[0130] The first query module 501 is further configured to perform a secondary query on the state information of the target logical disk after a first preset time period has passed from the current moment to obtain a secondary query result.

[0131] The first processing module 502 is also used to generate indication information and send the indication information to the host if the secondary query result shows that the status information of the target logical disk is still abnormal. The indication information is used to instruct the host to send a query command for the second time to query the status information of the target logical disk until the storage system queries the status information of the target logical disk to be normal.

[0132] In some optional implementations, the first processing module 502 is also used to obtain disk information of the target logical disk if the query result is that the status information of the target logical disk is normal, the disk information including the space and type of the target logical disk; and report the status information and disk information of the target logical disk to the host.

[0133] In some optional embodiments, the first processing module 502 is also used to obtain the operating system type corresponding to the host; the first processing module 502 is also used to determine the expected response time corresponding to the operating system type based on the operating system type and the preset correspondence, and determine the expected response time as a first preset time period, the preset correspondence is the correspondence between the operating system type and the expected response time, and the expected response time is the time expected to receive a response after the host sends a query command.

[0134] In some optional embodiments, the first processing module 502 is also used to record the recovery time when the Nth query result is that the status information of the target logical disk recovers from abnormal to normal, where N ≥ 2 and is a positive integer; the first processing module 502 is also used to calculate the difference between the recovery time and the current time, and determine the difference as the status recovery duration of the target logical disk, and the status recovery duration is used to determine the time when the host sends a query command to the storage system.

[0135] In some optional implementations, the first processing module 502 is further configured to obtain disk information of the target logical disk and report the state information and disk information of the target logical disk to the host if the secondary query result shows that the state information of the target logical disk is normal.

[0136] In some optional embodiments, the first processing module 502 is also used to obtain the host's benchmark response time, the host's idle computing resources and idle memory resources, and the disk read and write speed of the target logical disk; the first processing module 502 is also used to generate a first preset time period according to a preset algorithm based on the benchmark response time, idle computing resources, idle memory resources and disk read and write speed.

[0137] In some optional implementations, the first processing module 502 is further used to obtain a first impact factor corresponding to idle computing resources, a second impact factor corresponding to idle memory resources, and a third impact factor corresponding to disk read and write speed; the first processing module 502 is further used to calculate and generate a first preset time period according to a preset algorithm based on the benchmark response time, the first impact factor, the second impact factor, and the third impact factor, and the preset algorithm is:

[0138]

[0139] in, represents the first preset time period, Indicates the benchmark response time. represents the first impact factor, represents the second impact factor, Represents the third impact factor.

[0140] This embodiment provides a device for querying the status of a logical disk. Figure 6 As shown, Figure 6 is a structural block diagram of another device for querying the status of a logical disk according to an embodiment of the present invention, the device comprising:

[0141] The second query module 601 is used to send a query command to the storage system for the first time, where the query command is used to instruct the storage system to query a target logical disk in at least one logical disk and check status information of the target logical disk.

[0142] The second processing module 602 is used to receive indication information obtained and fed back by the storage system based on the query command, where the indication information is generated by the storage system when the status information of the target logical disk is abnormal and the storage system queries the target logical disk for the second time after a first preset time period and the status information is still abnormal.

[0143] The second query module 601 is further used to generate and send a secondary query command to the storage system, where the secondary query command is used to instruct the storage system to query the status information of the target logical disk again until the status information is found to be normal.

[0144] In some optional embodiments, after sending the query command to the storage system for the second time, the second processing module 602 is also used to obtain the historical response time after the host sends the query command; after sending the query command to the storage system for the second time, if the status information of the target logical disk is not received from the storage system within the historical response time, it is determined that the status information indication of the target logical disk is abnormal, and the query command is sent to the storage system for the third time.

[0145] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.

[0146] The logical disk status query device in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.

[0147] The embodiment of the present invention also provides a computer device having the above Figure 5 or Figure 6 The status of the logical disk shown in the device is queried.

[0148] See also Figure 7 , Figure 7 is a schematic diagram of the structure of a computer device provided by an optional embodiment of the present invention, such as Figure 7 As shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the computer device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 7 A processor 10 is taken as an example.

[0149] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware integrated circuit. The hardware integrated circuit may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable logic gate array, a general purpose array logic or any combination thereof.

[0150] The memory 20 stores instructions executable by at least one processor 10, so that the at least one processor 10 executes the method shown in the above embodiment.

[0151] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0152] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.

[0153] The computer device further comprises a communication interface 30 for the computer device to communicate with other devices or a communication network.

[0154] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.

[0155] Part of the present application may be applied as a computer program product, such as a computer program instruction, which, when executed by a computer, can call or provide the method and / or technical solution according to the present application through the operation of the computer. Those skilled in the art should understand that the existence of computer program instructions in computer-readable media includes but is not limited to source files, executable files, installation package files, etc., and accordingly, the way in which computer program instructions are executed by a computer includes but is not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Here, the computer-readable medium can be any available computer-readable storage medium or communication medium accessible to the computer.

[0156] The present invention may be implemented in many ways, including as: a process; an apparatus; a system; a composition of matter; a computer program product embodied on a computer-readable storage medium; and / or a processor, such as a processor configured to execute instructions stored on and / or provided by a memory coupled to the processor. In this specification, these embodiments or any other form that the present invention may take may be referred to as techniques. In general, the order of steps of the disclosed processes may be changed within the scope of the present invention. Unless otherwise stated, a component described as being configured to perform a task (such as a processor or memory) may be implemented as a general component that is temporarily configured to perform a task at a given time, or as a specific component manufactured to perform a task. As used herein, the term 'processor' refers to one or more devices, circuits, and / or processing cores that are configured to process data (such as computer program instructions).

[0157] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.

Claims

1. A method for querying the status of a logical disk, characterized in that: The method comprises: When a query command sent by the host is received for the first time, querying a target logical disk in at least one logical disk in the storage system, and checking status information of the target logical disk to obtain a query result; If the query result is that the status information of the target logical disk is abnormal, recording the current time; Obtaining a benchmark response time of the host, idle computing resources and idle memory resources of the host, and a disk read and write speed of the target logical disk; Generate a first preset time period by calculating according to a preset algorithm based on the benchmark response time, the idle computing resources, the idle memory resources and the disk read and write speed; After the first preset time period has passed since the current moment, a second query is performed on the status information of the target logical disk to obtain a second query result; If the secondary query result shows that the status information of the target logical disk is still abnormal, then generating indication information and sending the indication information to the host, wherein the indication information is used to instruct the host to send a query command for the second time to query the status information of the target logical disk until the status information is normal; The step of calculating and generating a first preset time period according to a preset algorithm based on the benchmark response time, the idle computing resources, the idle memory resources, and the disk read / write speed includes: Obtaining a first impact factor corresponding to the idle computing resources, a second impact factor corresponding to the idle memory resources, and a third impact factor corresponding to the disk read / write speed; The first preset time period is generated by calculating according to the preset algorithm based on the benchmark response time, the first impact factor, the second impact factor, and the third impact factor. The preset algorithm is: in, represents the first preset time period, represents the reference response time, represents the first impact factor, represents the second impact factor, represents the third impact factor.

2. The method according to claim 1, characterized in that The method further comprises: If the query result is that the status information of the target logical disk is normal, obtaining disk information of the target logical disk, the disk information including the space and type of the target logical disk; Report the status information of the target logical disk and the disk information to the host.

3. The method according to claim 2, characterized in that After a first preset time period has passed from the current moment, a second query is performed on the status information of the target logical disk, and before obtaining the second query result, the method further includes: Obtaining the operating system type corresponding to the host; According to the operating system type and the preset correspondence, the expected response time corresponding to the operating system type is determined, and the expected response time is determined as the first preset time period. The preset correspondence is the correspondence between the operating system type and the expected response time. The expected response time is the time it takes for the host to expect to receive a response after sending the query command.

4. The method according to claim 3, characterized in that The method further comprises: When the Nth query result shows that the state information of the target logical disk is restored from abnormal to normal, the restoration time is recorded, where N ≥ 2 and is a positive integer; The difference between the recovery time and the current time is calculated, and the difference is determined as the state recovery duration of the target logical disk, and the state recovery duration is used to determine the time when the host sends the query command to the storage system.

5. The method according to claim 4, characterized in that The method further comprises: If the secondary query result is that the status information of the target logical disk is normal, obtaining the disk information of the target logical disk; Report the status information of the target logical disk and the disk information to the host.

6. A method for querying the status of a logical disk, characterized in that: The method comprises: Sending a query command to the storage system for the first time, wherein the query command is used to instruct the storage system to query a target logical disk in at least one logical disk and check status information of the target logical disk; receiving indication information obtained and fed back by the storage system based on the query command, the indication information being generated by the storage system when, in a case where the status information of the target logical disk is abnormal, a second query is performed after a first preset time period and the status information is still abnormal, the first preset time period being generated by the storage system according to a preset algorithm based on a benchmark response time of the host, idle computing resources and idle memory resources of the host, and a disk read and write speed of the target logical disk; Generate and send a secondary query command to the storage system, wherein the secondary query command is used to instruct the storage system to query the status information of the target logical disk again until the status information is found to be normal; Among them, the preset algorithm is: in, represents the first preset time period, represents the reference response time, represents a first impact factor corresponding to the idle computing resource, represents a second impact factor corresponding to the free memory resource, Indicates the third influencing factor corresponding to the disk read and write speed.

7. The method according to claim 6, characterized in that After generating and sending the secondary query command to the storage system, the method further includes: Obtain the historical response time after the host sends the query command; If the status information of the target logical disk fed back by the storage system is not received within the historical response time, it is determined that the status information of the target logical disk indicates an abnormality, and the query command is sent to the storage system for the third time.

8. A device for querying the status of a logical disk, characterized in that: The device comprises: A first query module, configured to query a target logical disk in at least one logical disk in the storage system and check status information of the target logical disk to obtain a query result when a query command sent by the host is received for the first time; A first processing module, configured to record the current time if the query result indicates that the status information of the target logical disk is abnormal; The first processing module is further used to obtain the benchmark response time of the host, the idle computing resources and idle memory resources of the host, and the disk read and write speed of the target logical disk; The first processing module is further configured to calculate and generate a first preset time period according to a preset algorithm based on the benchmark response time, the idle computing resources, the idle memory resources, and the disk read and write speed; The first query module is further configured to perform a secondary query on the status information of the target logical disk after a first preset time period has passed from the current moment to obtain a secondary query result; The first processing module is further configured to generate indication information if the secondary query result shows that the status information of the target logical disk is still abnormal, and send the indication information to the host, wherein the indication information is used to instruct the host to send the query command for the second time to query the status information of the target logical disk until the status information is normal; The first processing module is specifically used to obtain a first impact factor corresponding to the idle computing resources, a second impact factor corresponding to the idle memory resources, and a third impact factor corresponding to the disk read / write speed; The first processing module is specifically configured to calculate and generate the first preset time period according to the benchmark response time, the first impact factor, the second impact factor, and the third impact factor according to the preset algorithm, wherein the preset algorithm is: in, represents the first preset time period, represents the reference response time, represents the first impact factor, represents the second impact factor, represents the third impact factor.

9. A device for querying the status of a logical disk, characterized in that: The device comprises: A second query module, configured to send a query command to the storage system for the first time, wherein the query command is configured to instruct the storage system to query a target logical disk in at least one logical disk and check status information of the target logical disk; A second processing module is used to receive indication information obtained and fed back by the storage system based on the query command, wherein the indication information is generated by the storage system when the status information of the target logical disk is abnormal and the storage system performs a second query after a first preset time period and the status information is still abnormal, wherein the first preset time period is calculated and generated by the storage system according to a preset algorithm based on a benchmark response time of the host, idle computing resources and idle memory resources of the host, and a disk read and write speed of the target logical disk; The second query module is further used to generate and send a secondary query command to the storage system, wherein the secondary query command is used to instruct the storage system to query the status information of the target logical disk again until the status information is found to be normal; Among them, the preset algorithm is: in, represents the first preset time period, represents the reference response time, represents a first impact factor corresponding to the idle computing resource, represents a second impact factor corresponding to the free memory resource, Indicates the third influencing factor corresponding to the disk read and write speed.

10. A logical disk status query system, characterized in that: The logical disk status query system includes a host and a storage system; The host is used to send a query command to the storage system for the first time, wherein the query command is used to instruct the storage system to query a target logical disk in at least one logical disk and check status information of the target logical disk; The storage system is used to query a target logical disk in at least one logical disk in the storage system and check the status information of the target logical disk to obtain a query result when receiving the query command sent by the host for the first time; The storage system is further configured to record the current time if the query result indicates that the status information of the target logical disk is abnormal; The storage system is further used to obtain the benchmark response time of the host, the idle computing resources and idle memory resources of the host, and the disk read and write speed of the target logical disk; The storage system is further configured to calculate and generate a first preset time period according to a preset algorithm based on the benchmark response time, the idle computing resources, the idle memory resources, and the disk read and write speed; The storage system is further configured to perform a secondary query on the state information of the target logical disk after a first preset time period has passed since the current moment to obtain a secondary query result; The storage system is further configured to generate indication information if the secondary query result shows that the status information of the target logical disk is still abnormal, and send the indication information to the host, wherein the indication information is used to instruct the host to send the query command for the second time; The host is further used to receive indication information obtained and fed back by the storage system based on the query command; The host is further used to generate and send a secondary query command to the storage system, wherein the secondary query command is used to instruct the storage system to query the status information of the target logical disk again until the status information is found to be normal; The storage system is further configured to calculate and generate a first preset time period according to a preset algorithm based on the benchmark response time, the idle computing resources, the idle memory resources, and the disk read and write speed, including: The storage system is specifically used to obtain a first impact factor corresponding to the idle computing resources, a second impact factor corresponding to the idle memory resources, and a third impact factor corresponding to the disk read and write speed; The storage system is further specifically configured to calculate and generate the first preset time period according to the preset algorithm based on the benchmark response time, the first impact factor, the second impact factor, and the third impact factor, wherein the preset algorithm is: in, represents the first preset time period, represents the reference response time, represents the first impact factor, represents the second impact factor, represents the third impact factor.

11. A computer device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the logical disk status query method according to any one of claims 1 to 7 by executing the computer instructions.

12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the logical disk status query method according to any one of claims 1 to 7.

13. A computer program product, characterized in that The method comprises computer instructions, wherein the computer instructions are used to enable a computer to execute the method for querying the status of a logical disk according to any one of claims 1 to 7.