[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN118708133B - Method, device, system, equipment and storage medium for inquiring state of logic disk - Google Patents

Method, device, system, equipment and storage medium for inquiring state of logic disk Download PDF

Info

Publication number
CN118708133B
CN118708133B CN202411206037.XA CN202411206037A CN118708133B CN 118708133 B CN118708133 B CN 118708133B CN 202411206037 A CN202411206037 A CN 202411206037A CN 118708133 B CN118708133 B CN 118708133B
Authority
CN
China
Prior art keywords
disk
storage system
host
query
state information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202411206037.XA
Other languages
Chinese (zh)
Other versions
CN118708133A (en
Inventor
李大生
王永刚
张在理
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Metabrain Intelligent Technology Co Ltd
Original Assignee
Suzhou Metabrain Intelligent Technology Co Ltd
Filing date
Publication date
Application filed by Suzhou Metabrain Intelligent Technology Co Ltd filed Critical Suzhou Metabrain Intelligent Technology Co Ltd
Priority to CN202411206037.XA priority Critical patent/CN118708133B/en
Publication of CN118708133A publication Critical patent/CN118708133A/en
Application granted granted Critical
Publication of CN118708133B publication Critical patent/CN118708133B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention relates to the technical field of computers, and discloses a method, a device, a system, equipment and a storage medium for inquiring the state of a logic disk, wherein the method comprises the following steps: when a query command sent by a host is received for the first time, querying a target logic disk in at least one logic disk of a storage system, and checking state information of the target logic disk to obtain a query result; if the query result is that the state information is abnormal, recording the current moment; after a first preset time period from the current moment, carrying out secondary query on the state information of the target logical disk to obtain a secondary query result; if the secondary query result is that the state information of the target logical disk is still abnormal, generating indication information, and sending the indication information to the host, wherein the indication information is used for indicating the host to send a query command for the second time, and querying the state information of the target logical disk until the state information is normal. The invention can solve the problems of low interaction efficiency and even interaction failure of the host and the storage system.

Description

Method, device, system, equipment and storage medium for inquiring state of logic disk
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method, an apparatus, a system, a device, and a storage medium for querying a state of a logical disk.
Background
In the continuous development of the interaction protocol between the storage system and the host, as the technology of the host and the storage system evolves, the continuous interaction between the host and the storage system needs to be continuously perfected. In the prior art, when a logical disk of a storage system is abnormal, interaction between a host and the storage system is not perfect.
In the related art, when a host sends a query command to a storage system to query a logical disk of the storage system, if the query command is sent once and the command is waited for overtime, retry is not performed, interaction with the storage system is judged to be abnormal, subsequent interaction processing is not performed, which may cause the host to mark the logical disk of the storage system as abnormal and mark the access path as invalid, so that interaction efficiency between the host and the storage system is low. If all paths of the host and the storage system are marked as invalid, the interaction from the host to the logic disk is interrupted, so that the interaction between the host and the storage system fails, and further, the service is interrupted.
Disclosure of Invention
In view of the above, the present invention provides a method, apparatus, system, device and storage medium for querying the status of a logical disk, so as to solve the problem of low interaction efficiency and even failure interaction between a host and a storage system.
In a first aspect, the present invention provides a method for querying a state of a logical disk, where the method includes: when a query command sent by a host is received for the first time, querying a target logic disk in at least one logic disk in a storage system, and checking state information of the target logic disk to obtain a query result; if the query result is that the state information of the target logical disk is abnormal, recording the current moment; after a first preset time period from the current moment, carrying out secondary query on the state information of the target logical disk to obtain a secondary query result; if the secondary query result is that the state information of the target logical disk is still abnormal, generating indication information, and sending the indication information to the host, wherein the indication information is used for indicating the host to send a query command for the second time to query the state information of the target logical disk until the state information of the target logical disk queried by the storage system is normal.
Based on the method provided in the first aspect, when the storage system receives the query command sent by the host for the first time, the storage system queries the target logical disk in at least one logical disk in the storage system, and checks the state information of the target logical disk; recording the current moment when the query result is that the state information of the target logical disk is abnormal; and after a first preset time period from the current moment, carrying out secondary query on the state information of the target logic disk, and generating and sending indication information to the host when the secondary query result is that the state information of the target logic disk is still abnormal, so as to trigger the second sending of the query command to query the state information of the target logic disk until the state information of the target logic disk queried by the storage system is normal.
After the state information of the target logical disk is queried by the storage system to be abnormal, after a first preset time period from the current moment, the state information of the target logical disk after the first preset time period can be determined again by secondarily querying the target logical disk. When the secondary query result is still that the state information of the target logical disk is abnormal, it can be determined that the state information of the target logical disk is not recovered from the abnormal state to the normal state within the first preset time period. At this time, the indication information is generated and sent, so that the host considers that the target logical disk is on line again, the host can walk the disk scanning flow again, and the inquiry command can be sent again in the disk scanning flow to inquire the state information of the target logical disk, and further the interaction between the host and the storage system is successful.
Compared with the mode that the host sends a query command once and waits for the command to overtime in the related art, retry is not performed, and the interaction between the host and the storage system is directly judged to be abnormal, the method and the device can avoid the problems that the logic disk of the storage system is marked to be abnormal and the access path is marked to be invalid due to one interaction failure, and improve the interaction efficiency of the host and the storage system. Furthermore, the problem that after all paths of the host and the storage system are marked as invalid, interaction between the host and the storage system fails and service interruption is caused can be avoided.
In an alternative implementation mode, if the query result is that the state information of the target logical disk is normal, acquiring the disk information of the target logical disk, wherein the disk information comprises the space and the type of the target logical disk; and reporting the state information and the disk information of the target logical disk to the host.
Based on the method, when the state information of the target logical disk is normal, the state information and the disk information of the target logical disk can be reported to the host, namely the interaction between the host and the storage system is successful.
In an optional implementation manner, after a first preset time period from the current moment, performing secondary query on the state information of the target logical disk, and acquiring an operating system type corresponding to a host before obtaining a secondary query result; according to the operating system type and a preset corresponding relation, determining the expected response time length corresponding to the operating system type, determining the expected response time length as a first preset time period, wherein the preset corresponding relation is the corresponding relation between the operating system type and the expected response time length, and the expected response time length is the time length when the host computer receives the response after sending the query command.
Based on the method, a first preset time period can be determined, the determined first preset time period can be the expected response time length corresponding to the type of the operating system corresponding to the host, and further, when the host does not receive the response of the storage system within the expected response time length, the storage system secondarily inquires the state information of the target logical disk, and based on the secondary inquiry result, feedback is given to the host.
In an alternative implementation mode, when the Nth query result is that the state information of the target logical disk is recovered from abnormality to normal, recording recovery time, wherein N is more than or equal to 2 and is a positive integer; and calculating a difference value between the recovery time and the current time, and determining the difference value as a state recovery time length of the target logical disk, wherein the state recovery time length is used for determining the time when the host sends the inquiry command to the storage system.
Based on the method, the storage system can record the recovery time of the state information of the target logical disk from abnormal to normal according to the N query results, further determine the state recovery time of the target logical disk, facilitate determining the time of sending the query command to the storage system by the host, avoid waiting excessive time, reduce the interaction times of the query command, and improve the interaction efficiency of the host and the storage system.
In an alternative implementation manner, 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 the disk information of the target logical disk are reported to the host.
Based on the method, when the secondary query result is that the state information of the target logical disk is normal, the state information of the target logical disk is indicated to be recovered from abnormal to normal, the state information and the disk information of the target logical disk can be reported to the host, and the host and the target logical disk of the storage system are indicated to be successfully interacted.
In an optional implementation manner, after a first preset period of time from the current time, performing a secondary query on the state information of the target logical disk, and before obtaining a secondary query result, the method further includes: acquiring a reference response time length of a host, idle computing resources and idle memory resources of the host and a disk read-write speed of a target logic disk; and calculating and generating a first preset time period according to a preset algorithm according to the reference response time length, the idle calculation resources, the idle memory resources and the disk read-write speed.
Based on the method, a first preset time period can be determined, the determined first preset time period is matched with idle computing resources and idle memory resources of a host at the current moment and the disk read-write speed of a target logic disk, so that when the host does not receive a response of a storage system in the first preset time period, the storage system can timely inquire the state information of the target logic disk for a second time, and based on a second inquiry result, the host is given feedback, the storage system is prevented from additionally waiting for excessive time, or the storage system is prevented from frequently inquiring the state information of the target logic disk, further the number of times of inquiry command interaction is reduced, and the interaction efficiency of the host and the storage system is improved.
In an alternative embodiment, determining the first preset time period according to the reference response time length, the idle computing resource, the idle memory resource and the disk read-write speed includes: acquiring a first influence factor corresponding to idle computing resources, a second influence factor corresponding to idle memory resources and a third influence factor corresponding to disk read-write speed; according to the reference response time length, the first influence factor, the second influence factor and the third influence factor, a first preset time period is calculated and generated according to a preset algorithm, and the preset algorithm is as follows:
wherein, A first preset time period is indicated,A reference response time period is indicated,A first influencing factor is indicated by the fact that,A second influencing factor is indicated by the fact that,Representing a third influencing factor.
Based on the method, because the idle computing resources of the host, the idle memory resources of the host and the disk read-write speed of the target logical disk are different in weight for determining the first preset time period, the first preset time period to be waited by the storage system before the secondary inquiry can be accurately determined based on the first influence factor corresponding to the idle computing resources, the second influence factor corresponding to the idle memory resources, the third influence factor corresponding to the disk read-write speed and the reference response time length.
In a second aspect, the present invention provides a method for querying a state of a logical disk, where the method includes: the method comprises the steps of firstly sending a query command to a storage system, wherein the query command is used for indicating the storage system to query a target logic disk in at least one logic disk and checking state information of the target logic disk; receiving indication information which is obtained and fed back by a storage system based on a query command, wherein the indication information is generated by the storage system when the state information of a target logical disk is abnormal, and the state information is queried for the second time after a first preset time period passes and the state information is still abnormal; and generating and sending a secondary query command to the storage system, wherein the secondary query command is used for indicating the storage system to query the state information of the target logical disk again until the state information is queried to be normal.
Based on the method provided in the second aspect, the host sends a query command to the storage system for the first time, where the query command is used to instruct the storage system to query the target logical disk in the storage system; receiving indication information which is obtained and fed back by a storage system based on the query command; and generating and sending a secondary query command to a storage system, wherein the secondary query command is used for indicating the storage system to query the state information of the target logical disk again until the state information is queried to be normal.
After the host sends the query command to the storage system for the first time, the indication information sent by the storage system is received after a first preset time period, and the indication information is used for indicating the host to send the query command for the second time, namely, the indication information is received after the first preset time period after the host sends the query command for the first time, so that the host considers that the target logical disk is on line again, the host can walk the disk scanning flow again, and the query command can be sent again in the disk scanning flow to query the target logical disk.
Compared with the mode that the host sends a query command once and waits for the command to overtime in the related art, retry is not performed, and the interaction between the host and the storage system is directly judged to be abnormal, the method and the device can avoid the problems that the logic disk of the storage system is marked to be abnormal and the access path is marked to be invalid due to one interaction failure, and improve the interaction efficiency of the host and the storage system. Furthermore, the problem that after all paths of the host and the storage system are marked as invalid, interaction between the host and the storage system fails and service interruption is caused can be avoided.
In an alternative embodiment, after generating and sending the secondary query command to the storage system, the method further comprises: acquiring historical response time after the host sends the query command; after the query command is sent to the storage system for the second time, if the state information of the target logical disk fed back by the storage system is not received within the historical response time, determining that the state information of the target logical disk is indicated to be abnormal, and sending the query command to the storage system for the third time.
Based on the method, after the host computer can generate and send the secondary query command to the storage system, the response time of the query command is predicted, and further the time for the host computer to issue the query command to the storage system for the third time is determined. Therefore, on the premise of ensuring continuous interaction between the host and the storage system, the number of times of interaction of the query command can be reduced, unnecessary extra waiting time is reduced, and the interaction efficiency of the host and the storage system is improved.
In a third aspect, the present invention provides a state query device for a logical disk, where the device includes: the first query module is used for querying a target logic disk in at least one logic disk in the storage system when a query command sent by the host is received for the first time, and checking the state information of the target logic disk to obtain a query result; the first processing module is used for recording the current moment if the query result is that the state information of the target logical disk is abnormal; the first query module is further configured to perform a secondary query on the target logical disk after a first preset period of time passes from the current time, so as to obtain a secondary query result.
The first processing module is further configured to generate indication information if the second query result indicates that the state information of the target logical disk is still abnormal, and send the indication information to the host, where the indication information is used to instruct the host to send a query command for the second time, query the target logical disk, and until the state information of the target logical disk queried by the storage system is normal.
In a fourth aspect, the present invention provides a state query device for a logical disk, where the device includes: the second query module is used for sending a query command to the storage system for the first time, wherein the query command is used for indicating the storage system to query the target logic disk in at least one logic disk and checking the state information of the target logic disk; the second processing module is used for receiving indication information which is 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 state information of the target logical disk is abnormal and the state information is still abnormal; the second query module is further configured 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 state information of the target logical disk again until the state information is queried to be normal.
In a fifth aspect, the present invention provides a state query system for a logical disk, where the state query system for a logical disk includes a host and a storage system; the host is used for sending a query command to the storage system for the first time, wherein the query command is used for indicating the storage system to query a target logic disk in at least one logic disk and checking the state information of the target logic disk; the storage system is used for inquiring a target logic disk in at least one logic disk in the storage system when an inquiry command sent by the host is received for the first time, and checking the state information of the target logic disk to obtain an inquiry result; the storage system is also used for recording the current moment if the query result is that the state information of the target logical disk is abnormal; the storage system is also used for carrying out secondary query on the state information of the target logical disk after a first preset time period from the current moment to obtain a secondary query result; the storage system is further used for generating indication information and sending the indication information to the host when the secondary query result is that the state information of the target logical disk is still abnormal, wherein the indication information is used for indicating the host to send a query command for the second time; the host is also used for receiving the indication information which is obtained and fed back by the storage system based on the query command; the host is further configured to send a query command to the storage system for the second time until the state information of the target logical disk queried by the storage system is normal.
In a sixth aspect, the present invention provides a computer device comprising: the memory and the processor are in communication connection, computer instructions are stored in the memory, and the processor executes the computer instructions, so that the state query method of the logic disk in the first aspect or any corresponding embodiment of the first aspect is executed.
In a seventh aspect, the present invention provides a computer readable storage medium having stored thereon computer instructions for causing a computer to execute the method for querying the state of a logical disk according to the first aspect or any one of the embodiments corresponding thereto.
In an eighth aspect, the present invention provides a computer program product, including computer instructions for causing a computer to execute the method for querying the state of a logical disk according to the first aspect or any implementation manner corresponding to the first aspect.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are needed in the description of the embodiments or the prior art will be briefly described, and it is obvious that the drawings in the description below are some embodiments of the present invention, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
FIG. 1 is a topology diagram of a state query system of a logical disk according to an embodiment of the present invention;
FIG. 2 is a flow chart of a method for querying the status of a logical disk according to an embodiment of the present invention;
FIG. 3 is a flow chart of a method of querying the status of a logical disk according to an embodiment of the present invention;
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;
FIG. 5 is a block diagram of a logical disk status query device according to an embodiment of the present invention;
FIG. 6 is a block diagram of a state query device of a further logical disk according to an embodiment of the present invention;
Fig. 7 is a schematic diagram of a hardware structure of a computer device according to an embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
In the related art, when a host sends a query command to a storage system to query a logical disk of the storage system, if the query command is sent once and the command is waited for overtime, retry is not performed, interaction with the storage system is judged to be abnormal, subsequent interaction processing is not performed, which may cause the host to mark the logical disk of the storage system as abnormal and mark the access path as invalid, so that interaction efficiency between the host and the storage system is low.
In addition, the storage system does not perform differential processing on special protocol instructions (such as query commands), so that in a logic disk state abnormal scene, long-time waiting for instruction processing can be caused without timely returning an instruction result to the host, and further occurrence of host timeout is easily caused. The long instruction return time of the storage system and the overtime of the host instruction mark the access path as invalid, and the two together lead to the interaction failure of the host and the logical disk of the storage system.
In order to solve the technical problems, the embodiment of the invention provides a state query method of a logic disk, which can solve the problems of low interaction efficiency and even interaction failure of a host and a storage system.
The method provided by the embodiment of the invention can be used for the state query systems of various logic disks. The method provided by the embodiment of the present invention is described below by taking the state query system 100 of the logical disk shown in fig. 1 as an example. Fig. 1 is only a schematic diagram, and does not limit the applicable scenario of the technical solution provided by the present invention.
As shown in FIG. 1, FIG. 1 is a topology diagram of a state query system for a logical disk according to an embodiment of the present invention. In FIG. 1, a logical disk state query system 100 may include a storage system 101 and a host 102.
The storage system in the embodiment of the invention comprises the following steps: the storage system 101 may be any storage system. The storage system may be a low-end storage system, a medium-end storage system, or a high-end storage system.
The host in the embodiment of the invention includes, for example: the host 102 may be any server or host having communication and computing functions. The host may also be referred to as a host system. The host may deploy different operating systems.
The logical disk state query system 100 shown in fig. 1 is only for example, and is not intended to limit the technical solution of the present invention. Those skilled in the art will appreciate that in the specific implementation, the state query system 100 of the logical disk may further include other devices, and the number of systems may be stored according to specific needs, which is not limited.
In accordance with an embodiment of the present invention, there is provided a method embodiment for querying the status of a logical disk, it should be noted that the steps illustrated in the flowchart of the figures may be performed in a computer system, such as a set of computer-executable instructions, and that although a logical sequence is illustrated in the flowchart, in some cases the steps illustrated or described may be performed in a different order than that illustrated herein.
In this embodiment, a method for querying the status of a logical disk is provided, which may be used in the above-mentioned storage system, and fig. 2 is a flowchart of a method for querying the status of a logical disk according to an embodiment of the present invention, as shown in fig. 2, where the flowchart includes the following steps:
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 state information of the target logical disk is checked to obtain a query result.
The query command may be a preset protocol command. The predetermined protocol may be a storage protocol, for example, a Small Computer system interface protocol (Small Computer SYSTEM INTERFACE, SCSI), a nonvolatile storage protocol (Non-Volatile Memory Express, NVMe) protocol.
Optionally, the preset protocol may also be an IP network-based storage protocol (INTERNET SMALL Computer SYSTEM INTERFACE, ISCSI), a protocol for transmitting SCSI commands over a Fibre Channel network (fibrechannel-SCSI), or a Fibre Channel remote access nonvolatile memory protocol (NVMe over FABRICS) from the transport layer network.
In the embodiment of the invention, the query result comprises the state information of the target logical disk. Optionally, the query result may further include 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 referred to as the capacity of the target logical disk.
S202: if the query result is that the state information of the target logical disk is abnormal, recording the current moment.
It can be understood that when the target logical disk is processing a task or is busy, the storage system receives the inquiry command sent by the host, and inquires that the state information of the target logical disk is abnormal.
In some optional embodiments, if the query result is that the state information of the target logical disk is normal, the storage system acquires the disk information of the target logical disk; and reporting the state information and the disk information of the target logical disk to the host.
It can be understood that the storage system reports the state information and the disk information of the target logical disk to the host, that is, the host and the storage system are successfully interacted.
S203: after a first preset time period from the current moment, carrying out secondary query on the state information of the target logical disk to obtain a secondary query result.
The first preset time period can be set according to actual needs, and is not limited. For example: the first preset time period may be 30 seconds.
In some optional embodiments, after a first preset period of time passes from the current time, the storage system performs secondary query on the state information of the target logical disk, and before a secondary query result is obtained, obtains an operating system type corresponding to the host; according to the operation system type and the preset corresponding relation, determining the expected response time length corresponding to the operation system type, and determining the expected response time length as a first preset time period.
The preset corresponding relation is the corresponding relation between the type of the operating system and the expected response time length.
In the embodiment of the invention, the expected response time is the time when the host expects to receive the response after sending the inquiry command.
It will be appreciated that the expected response time period for different operating system types is different.
In some optional embodiments, the storage system obtains a desired response duration corresponding to each type of operating system in the at least one type of operating system; and determining the minimum expected response time length in the at least one expected response time length as a first preset time period.
It can be understood that the storage system can determine a first preset time period, the determined first preset time period can be the minimum expected response time period in at least one expected response time period corresponding to different types of operating systems, the state information of the target logical disk can be queried by the storage system for the second time when the host does not receive the response of the storage system within the minimum expected response time period under the operating systems of different operating system types, and feedback is given to the host based on the second query result.
In some optional embodiments, the storage system obtains a reference response time length of the host, idle computing resources and idle memory resources of the host, and a disk read-write speed of the target logical disk; and calculating and generating a first preset time period according to a preset algorithm according to the reference response time length, the idle calculation resources, the idle memory resources and the disk read-write speed.
The reference response time length may be an average response time length of the host after sending the query command in the historical time period, or a preset expected response time length of the host after sending the query command.
In the embodiment of the invention, the idle computing resource of the host is used for indicating the processing capacity of the host. The computing resources may be GPU resources, CPU resources.
In one example, a first influence factor corresponding to an idle computing resource, a second influence factor corresponding to an idle memory resource, and a third influence factor corresponding to a disk read-write speed are obtained; and calculating and generating a first preset time period according to a preset algorithm according to the reference response time length, the first influence factor, the second influence factor and the third influence factor.
The preset algorithm is as follows:
wherein, A first preset time period is indicated,A reference response time period is indicated,A first influencing factor is indicated by the fact that,A second influencing factor is indicated by the fact that,Representing a third influencing factor.
In the embodiment of the present invention, the first influence factor may be a resource influence factor calculated according to a ratio of idle calculation resources. For example, taking the proportion of idle computing resources as 80%, the first impact factor is 20%.
In the embodiment of the present invention, the first influence factor may be an influence factor calculated according to the idle computing resource proportion. For example, taking the proportion of idle computing resources as 80%, the first impact factor is 20%.
In the embodiment of the present invention, the second influence factor may be an influence factor calculated according to the proportion of the idle memory resources. For example, taking the proportion of free memory resources as 90%, the first impact factor is 10%.
In the embodiment of the present invention, the third influence factor may be a performance level of the target disk determined according to the disk read-write speed, and the influence factor is determined according to the performance level. For example, taking the disk read-write speed as the first level, the third influencing factor is 3%.
It can be understood that the first preset time period determined by the storage system is matched with the idle computing resources and idle memory resources of the host at the current moment and the disk read-write speed of the target logical disk, so that when the host does not receive the response of the storage system in the first preset time period, the storage system can timely inquire the state information of the target logical disk for the second time, and give feedback to the host based on the second inquiry result, so that the storage system is prevented from additionally waiting for excessive time or the storage system is prevented from frequently inquiring the state information of the target logical disk, the interaction times of inquiry commands are further reduced, and the interaction efficiency of the host and the storage system is improved.
S204: if the secondary query result is that the state information of the target logical disk is still abnormal, generating indication information and sending the indication information to the host.
The indication information is used for indicating the host to send the query command for the second time and querying the state information of the target logical disk.
For example, the indication may be "disk ready to be re-brought on line" for the host to consider the target logical disk to be re-brought on line. Thus, the host will walk the target logical disk scanning flow again, and will send the inquiry command for the second time in the target logical disk scanning flow, inquire the target logical disk.
It can be understood that if the host sends the query command to the storage system for the second time, if the state information of the target logical disk is queried to be abnormal, the indication information is continuously generated, and the indication information is sent to the host, the host is triggered to send the query command for the third time, and the target logical disk is queried until the state information of the target logical disk queried by the storage system is normal.
Optionally, if the second query result is that the state information of the target logical disk is normal, the storage system acquires the disk information of the target logical disk, and reports the state information and the disk information of the target logical disk to the host.
In some optional embodiments, the storage system records a recovery time when the nth query result indicates that the state information of the target logical disk is recovered from the exception to be normal; and calculating a difference value between the recovery time and the current time, and determining the difference value as the state recovery time of the target logical disk.
The state recovery time length is used for determining the moment when the host sends the query command to the storage system. N is more than or equal to 2 and is a positive integer.
Based on the above method of S201-S204, 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; recording the current moment when the query result is that the state information of the target logical disk is abnormal; and after a first preset time period from the current moment, carrying out secondary query on the target logic disk, and generating and sending indication information to the host when the secondary query result is that the state information of the target logic disk is abnormal, so as to trigger the second sending of the query command, query the target logic disk, and until the state information of the target logic disk queried by the storage system is normal.
After the state information of the target logical disk is queried by the storage system to be abnormal, after a first preset time period from the current moment, the state information of the target logical disk after the first preset time period can be determined again by secondarily querying the target logical disk. When the secondary query result is still that the state information of the target logical disk is abnormal, it can be determined that the state information of the target logical disk is not recovered from the abnormal state to the normal state within the first preset time period. At this time, the indication information is generated and sent, so that the host considers that the target logical disk is on line again, the host walks the disk scanning flow again, and the query command is sent again in the disk scanning flow to query the target logical disk.
Compared with the mode that the host sends a query command once and waits for the command to overtime in the related art, retry is not performed, and the interaction between the host and the storage system is directly judged to be abnormal, the method and the device can avoid the problems that the logic disk of the storage system is marked to be abnormal and the access path is marked to be invalid due to one interaction failure, and improve the interaction efficiency of the host and the storage system. Furthermore, the problem that after all paths of the host and the storage system are marked as invalid, interaction between the host and the storage system fails and service interruption is caused can be avoided.
In this embodiment, a method for querying the status of a logical disk is provided, which may be used for the host, and fig. 3 is a flowchart of another method for querying the status of a logical disk according to an embodiment of the present invention, as shown in fig. 3, where the flowchart includes the following steps:
S301: the first time a query command is sent to the storage system.
The query command is used for indicating the storage system to query a target logic disk in the storage system in at least one logic disk, and checking the state information of the target logic disk.
S302: and receiving indication information obtained and fed back by the storage system based on the query command.
The indication information is used for indicating the host to send the query command for the second time and query the target logical disk. The indication information is generated when the storage system queries the state information of the target logical disk to indicate abnormality, and performs secondary query to obtain the state information of the target logical disk to still indicate abnormality.
In some alternative embodiments, the host may further receive the state information and the 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 as normal.
S303: and generating and sending a secondary query command to the storage system.
The secondary query command is used for indicating the storage system to query the state information of the target logical disk again until the state information is queried to be normal.
In some alternative embodiments, 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, delays the second preset period, and sends the secondary query command to the storage system.
The second preset time period is the difference value between the state recovery time period and the first preset time period.
In the embodiment of the invention, the state recovery time is the time for recovering the state information of the target logical disk from the abnormality to the normal state.
For example, taking the first preset time period as 20 seconds and the state recovery time period as 30 seconds as an example, the host computer needs to delay for 10 seconds after receiving the indication information sent by the storage system after 20 seconds elapse, and then sends the query command to the storage system for the second time. Obviously, if the storage system inquires that the state information of the target logical disk is abnormal for the first time, the storage system sends indication information to the host after 20 seconds. After the host delays for 10 seconds, at the moment, the state information of the target logical disk is recovered from abnormality to be normal, and a query command is sent to the storage system for the second time, and the state information of the target logical disk is queried to be normal.
In some optional embodiments, after the host sends the query command to the storage system for the second time, the host may further obtain a historical response time period after the host sends the query command; after the query command is sent to the storage system for the second time, if the state information of the target logical disk fed back by the storage system is not received within the historical response time, determining that the state information of the target logical disk is indicated to be abnormal, and sending the query command to the storage system for the third time.
Based on the method of S301 to S303, the host sends 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 the storage system; receiving indication information sent by a storage system after a first preset time period, wherein the indication information is used for indicating a host to send a query command for the second time and query a target logical disk; and sending a query command to the storage system for the second time until the state information of the target logical disk queried by the storage system is normal.
After the host sends the query command to the storage system for the first time, the indication information sent by the storage system is received after a first preset time period, and the indication information is used for indicating the host to send the query command for the second time, namely, the indication information is received after the first preset time period after the host sends the query command for the first time, so that the host considers that the target logical disk is on line again, the host can walk the disk scanning flow again, and the query command can be sent again in the disk scanning flow to query the target logical disk.
Compared with the mode that the host sends a query command once and waits for the command to overtime in the related art, retry is not performed, and the interaction between the host and the storage system is directly judged to be abnormal, the method and the device can avoid the problems that the logic disk of the storage system is marked to be abnormal and the access path is marked to be invalid due to one interaction failure, and improve the interaction efficiency of the host and the storage system. Furthermore, the problem that after all paths of the host and the storage system are marked as invalid, interaction between the host and the storage system fails and service interruption is caused can be avoided.
The embodiment also provides a state query system of the logic disk, which comprises a host and a storage system.
The host is used for sending a query command to the storage system for the first time, wherein the query command is used for indicating the storage system to query the target logic disk in at least one logic disk and checking the state information of the target logic disk.
And the storage system is used for inquiring the target logic disk in at least one logic disk in the storage system when the inquiry command sent by the host is received for the first time, and checking the state information of the target logic disk to obtain an inquiry result.
And the storage system is also used for recording the current moment if the query result is that the state information of the target logical disk is abnormal.
And the storage system is also used for carrying out secondary query on the state information of the target logical disk after the first preset time period from the current moment to obtain a secondary query result.
The storage system is further configured to generate indication information if the second query result is that the state information of the target logical disk is still abnormal, and send the indication information to the host, where the indication information is used to instruct the host to send the query command for the second time.
The host is also used for receiving the indication information which is obtained and fed back by the storage system based on the query command.
And the host is also used for generating and sending a secondary query command to the storage system until the state information of the target logical disk queried by the storage system is normal.
It can be understood that, in the state query system of the logical disk, the interaction process between the host and the storage system may be as shown in fig. 4, and fig. 4 is a flowchart of another state query method of the logical disk according to an embodiment of the present invention, as shown in fig. 4, where the flowchart includes the following steps:
S401: the host first sends a query command to the storage system.
S402: when the storage system receives a query command sent by the host for the first time, querying a target logical disk in the storage system.
S403: the storage system judges whether the query result is the state information of the target logical disk or not.
S404: if yes, the storage system reports the state information and the disk information of the target logical disk to the host.
S405: if not, the storage system records the current time, and after a first preset time period from the current time, the target logical disk is subjected to secondary query to obtain a secondary query result.
S406: the storage system judges whether the secondary query result is the state information of the target logical disk or not. If yes, return to S404.
S407: if not, the storage system generates the indication information and sends the indication information to the host.
S408: the host receives the indication information and sends the inquiry command to the storage system for the second time until the state information of the target logical disk inquired by the storage system is normal.
The embodiment also provides a device for querying the status of the logical disk, which is used for implementing the foregoing embodiments and preferred embodiments, and is not described in detail. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. While the means described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.
The embodiment provides a state query device of a logic disk, as shown in fig. 5, fig. 5 is a structural block diagram of the state query device of the logic disk according to an embodiment of the invention; applied to a storage system, an apparatus comprising:
The first query module 501 is configured to query a target logical disk in at least one logical disk in the storage system when a query command sent by the host is received for the first time, and check status information of the target logical disk to obtain a query result.
The first processing module 502 is configured to record the current time if the query result indicates that the state information of the target logical disk is abnormal.
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 period of time passes from the current time, so as to obtain a secondary query result.
The first processing module 502 is further configured to generate indication information if the second query result is that the state information of the target logical disk is still abnormal, and send the indication information to the host, where the indication information is used to instruct the host to send a query command for the second time to query the state information of the target logical disk until the state information of the target logical disk queried by the storage system is normal.
In some optional embodiments, the first processing module 502 is further configured to obtain disk information of the target logical disk if the query result indicates that the state information of the target logical disk is normal, where the disk information includes a space and a type of the target logical disk; and reporting the state information and the disk information of the target logical disk to the host.
In some optional embodiments, the first processing module 502 is further configured to obtain an operating system type corresponding to the host; the first processing module 502 is further configured to determine, according to the operating system type and a preset correspondence, an expected response duration corresponding to the operating system type, and determine the expected response duration as a first preset time period, where the preset correspondence is a correspondence between the operating system type and the expected response duration, and the expected response duration is a duration during which the host computer expects to receive the response after sending the query command.
In some optional embodiments, the first processing module 502 is further configured to record a recovery time when the nth query result indicates that the state information of the target logical disk is recovered from an exception to a normal state, where N is greater than or equal to 2 and is a positive integer; the first processing module 502 is further configured to calculate a difference between the recovery time and the current time, and determine the difference as a state recovery time length of the target logical disk, where the state recovery time length is used to determine a time when the host sends the query command to the storage system.
In some optional embodiments, the first processing module 502 is further configured to obtain the disk information of the target logical disk if the second query result indicates that the state information of the target logical disk is normal, and report the state information and the disk information of the target logical disk to the host.
In some optional embodiments, the first processing module 502 is further configured to obtain a reference response duration of the host, idle computing resources and idle memory resources of the host, and a disk read-write speed of the target logical disk; the first processing module 502 is further configured to calculate and generate a first preset time period according to a preset algorithm according to the reference response duration, the idle computing resource, the idle memory resource, and the disk read-write speed.
In some optional embodiments, the first processing module 502 is further configured to obtain a first impact factor corresponding to the idle computing resource, a second impact factor corresponding to the idle memory resource, and a third impact factor corresponding to the disk read/write speed; the first processing module 502 is further configured to calculate, according to a preset algorithm, a first preset time period according to a reference response time length, a first influence factor, a second influence factor, and a third influence factor, where the preset algorithm is:
wherein, A first preset time period is indicated,A reference response time period is indicated,A first influencing factor is indicated by the fact that,A second influencing factor is indicated by the fact that,Representing a third influencing factor.
The present embodiment provides a state query device of a logical disk, as shown in fig. 6, fig. 6 is a structural block diagram of a state query device of another logical disk according to an embodiment of the present invention, where the device includes:
The second query module 601 is configured 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 the storage system for the target logical disk in the at least one logical disk, and check status information of the target logical disk.
The second processing module 602 is configured 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 state information of the target logical disk is abnormal, the second query is performed after the first preset period of time passes, and the state information is still abnormal.
The second query module 601 is further configured 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 state information of the target logical disk again until the state information is queried to be normal.
In some alternative embodiments, after the second sending the query command to the storage system, the second processing module 602 is further configured to obtain a historical response duration after the host sends the query command; after the query command is sent to the storage system for the second time, if the state information of the target logical disk fed back by the storage system is not received within the historical response time, determining that the state information of the target logical disk is indicated to be abnormal, and sending the query command to the storage system for the third time.
Further functional descriptions of the above respective modules and units are the same as those of the above corresponding embodiments, and are not repeated here.
The state query device of the logical disk in this embodiment is presented as a functional unit, where the unit refers to an ASIC (Application SPECIFIC INTEGRATED Circuit) Circuit, a processor and a memory that execute one or more software or firmware, and/or other devices that can provide the above functions.
The embodiment of the invention also provides computer equipment, which is provided with the state query device of the logic disk shown in the figure 5 or the figure 6.
Referring to fig. 7, fig. 7 is a schematic structural diagram of a computer device according to an alternative embodiment of the present invention, as shown in fig. 7, the computer device includes: one or more processors 10, memory 20, and interfaces for connecting the various components, including high-speed interfaces and low-speed interfaces. The various components are communicatively coupled to each other using different buses and may be mounted on a common motherboard or in other manners as desired. The processor may process instructions executing within the computer device, including instructions stored in or on memory to display graphical information of the GUI on an external input/output device, such as a display device coupled to the interface. In some alternative embodiments, multiple processors and/or multiple buses may be used, if desired, along with multiple memories and multiple memories. Also, multiple computer devices may be connected, each providing a portion of the necessary operations (e.g., as a server array, a set of blade servers, or a multiprocessor system). One processor 10 is illustrated in fig. 7.
The processor 10 may be a central processor, a network processor, or a combination thereof. Wherein the processor 10 may further comprise a hardware integrated circuit. The hardware integrated circuit may be an application specific integrated circuit, a programmable logic device, or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general-purpose array logic, or any combination thereof.
Wherein the memory 20 stores instructions executable by the at least one processor 10 to cause the at least one processor 10 to perform the methods shown in implementing the above embodiments.
The memory 20 may include a storage program area that may store an operating system, at least one application program required for functions, and a storage data area; the storage data area may store data created according to the use of the computer device, etc. In addition, the memory 20 may include high-speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid-state storage device. In some alternative embodiments, memory 20 may optionally include memory located remotely from processor 10, which may be connected to the computer device via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
Memory 20 may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as flash memory, hard disk, or solid state disk; the memory 20 may also comprise a combination of the above types of memories.
The computer device also includes a communication interface 30 for the computer device to communicate with other devices or communication networks.
The embodiments of the present invention also provide a computer readable storage medium, and the method according to the embodiments of the present invention described above may be implemented in hardware, firmware, or as a computer code which may be recorded on a storage medium, or as original stored in a remote storage medium or a non-transitory machine readable storage medium downloaded through a network and to be stored in a local storage medium, so that the method described herein may be stored on such software process on a storage medium using a general purpose computer, a special purpose processor, or programmable or special purpose hardware. The storage medium can be a magnetic disk, an optical disk, a read-only memory, a random access memory, a flash memory, a hard disk, a solid state disk or the like; further, the storage medium may also comprise a combination of memories of the kind described above. It will be appreciated that a computer, processor, microprocessor controller or programmable hardware includes a storage element that can store or receive software or computer code that, when accessed and executed by the computer, processor or hardware, implements the methods illustrated by the above embodiments.
Portions of the present application may be implemented as a computer program product, such as computer program instructions, which when executed by a computer, may invoke or provide methods and/or aspects in accordance with the present application by way of operation of the computer. Those skilled in the art will appreciate that the form of computer program instructions present in a computer readable medium includes, but is not limited to, source files, executable files, installation package files, etc., and accordingly, the manner in which the 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. Herein, a computer-readable medium may be any available computer-readable storage medium or communication medium that can be accessed by a computer.
The invention can be implemented in a number of ways, including as: a process; a device; 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 invention may take, may be referred to as techniques. In general, the order of the steps of disclosed processes may be altered within the scope of the invention. Unless otherwise indicated, components described as being configured to perform a task (such as a processor or memory) may be implemented as general-purpose components that are temporarily configured to perform the task at a given time, or as specific components that are manufactured to perform the task. As used herein, the term 'processor' refers to one or more devices, circuits, and/or processing cores configured to process data (such as computer program instructions).
Although embodiments of the present invention have been described in connection with the accompanying drawings, various modifications and variations may be made by those skilled in the art without departing from the spirit and scope of the invention, and such modifications and variations fall within the scope of the invention as defined by the appended claims.

Claims (13)

1. 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 logic disk in at least one logic disk in a storage system, and checking state information of the target logic disk to obtain a query result;
If the query result is that the state information of the target logical disk is abnormal, recording the current moment;
Acquiring the reference response time length of the host, the idle computing resources and idle memory resources of the host and the disk read-write speed of the target logic disk;
calculating and generating a first preset time period according to a preset algorithm according to the reference response time length, the idle computing resources, the idle memory resources and the disk read-write speed;
After the first preset time period from the current moment, carrying out secondary query on the state information of the target logical disk to obtain a secondary query result;
if the secondary query result is that the state information of the target logical disk is still abnormal, generating indication information, and sending the indication information to the host, wherein the indication information is used for indicating the host to send a query command for the second time and querying the state information of the target logical disk until the state information is normal;
The step of calculating and generating a first preset time period according to a preset algorithm according to the reference response time length, the idle computing resource, the idle memory resource and the disk read-write speed, including:
acquiring a first influence factor corresponding to the idle computing resource, a second influence factor corresponding to the idle memory resource and a third influence factor corresponding to the disk read-write speed;
according to the reference response time length, the first influence factor, the second influence factor and the third influence factor, calculating and generating the first preset time period according to the preset algorithm, wherein the preset algorithm is as follows:
wherein, Representing the first preset time period,Indicating the reference response time period,Representing the first influence factor in question,Representing the second influence factor in question,Representing the third influencing factor.
2. The method according to claim 1, wherein the method further comprises:
If the query result is that the state information of the target logical disk is normal, acquiring disk information of the target logical disk, wherein the disk information comprises the space and the type of the target logical disk;
and reporting the state information of the target logical disk and the disk information to the host.
3. The method of claim 2, wherein after a first preset period of time has elapsed from the current time, performing a secondary query on the state information of the target logical disk, and before obtaining a secondary query result, the method further comprises:
Acquiring an operating system type corresponding to the host;
Determining an expected response time length corresponding to the operating system type according to the operating system type and a preset corresponding relation, and determining the expected response time length as the first preset time period, wherein the preset corresponding relation is a corresponding relation between the operating system type and the expected response time length, and the expected response time length is a time length when the host computer expects to receive the response after sending the query command.
4. A method according to claim 3, characterized in that the method further comprises:
When the N-th query result is that the state information of the target logical disk is recovered from the abnormality to be normal, recording recovery time, wherein N is more than or equal to 2 and is a positive integer;
And calculating a difference value between the recovery time and the current time, and determining the difference value as a state recovery time length of the target logical disk, wherein the state recovery time length is used for determining the time when the host sends the query command to the storage system.
5. The method according to claim 4, wherein the method further comprises:
if the secondary query result is that the state information of the target logical disk is normal, acquiring the disk information of the target logical disk;
and reporting the state information of the target logical disk and the disk information to the host.
6. A method for querying the status of a logical disk, the method comprising:
The method comprises the steps of firstly sending a query command to a storage system, wherein the query command is used for indicating the storage system to query a target logic disk in at least one logic disk and checking state information of the target logic disk;
Receiving indication information which is 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 state information of the target logical disk is abnormal, and the state information is queried twice after a first preset time period is passed and is still abnormal, and the first preset time period is generated by the storage system based on the reference response time of the host, the idle computing resources and idle memory resources of the host and the disk read-write speed of the target logical disk according to a preset algorithm;
Generating and sending a secondary query command to the storage system, wherein the secondary query command is used for indicating the storage system to query the state information of the target logical disk again until the state information is queried to be normal;
the preset algorithm is as follows:
wherein, Representing the first preset time period,Indicating the reference response time period,Representing a first impact factor corresponding to the idle computing resource,Representing a second impact factor corresponding to the idle memory resource,And indicating a third influence factor corresponding to the disk read-write speed.
7. The method of claim 6, wherein after generating and sending a secondary query command to the storage system, further comprising:
acquiring historical response time after the host sends the query command;
if the state information of the target logical disk fed back by the storage system is not received in the historical response time, determining that the state information of the target logical disk is indicated to be abnormal, and sending the query command to the storage system for the third time.
8. A state query device for a logical disk, the device comprising:
The first query module is used for querying a target logic disk in at least one logic disk in the storage system when a query command sent by the host is received for the first time, and checking the state information of the target logic disk to obtain a query result;
The first processing module is used for recording the current moment if the query result is that the state information of the target logical disk is abnormal;
The first processing module is further configured to obtain a reference response duration of the host, idle computing resources and idle memory resources of the host, and a disk read-write speed of the target logical disk;
The first processing module is further configured to generate a first preset time period according to a preset algorithm according to the reference response duration, the idle computing resource, the idle memory resource and the disk read-write speed;
The first query module is further configured to perform a secondary query on the state information of the target logical disk after a first preset period of time passes from the current moment, so as to obtain a secondary query result;
The first processing module is further configured to generate indication information if the secondary query result indicates that the state information of the target logical disk is still abnormal, and send the indication information to the host, where the indication information is used to instruct the host to send the query command for the second time, and query the state information of the target logical disk until the state information is normal;
the first processing module is specifically configured to obtain a first influence factor corresponding to the idle computing resource, a second influence factor corresponding to the idle memory resource, and a third influence factor corresponding to the disk read-write speed;
the first processing module is specifically configured to calculate and generate, according to the preset algorithm, the first preset time period according to the reference response duration, the first influence factor, the second influence factor, and the third influence factor, where the preset algorithm is:
wherein, Representing the first preset time period,Indicating the reference response time period,Representing the first influence factor in question,Representing the second influence factor in question,Representing the third influencing factor.
9. A state query device for a logical disk, the device comprising:
The second query module is used for sending a query command to the storage system for the first time, wherein the query command is used for indicating the storage system to query a target logic disk in at least one logic disk and checking the state information of the target logic disk;
the second processing module is used for receiving indication information which is obtained and fed back by the storage system based on the query command, wherein the indication information is generated when the storage system is subjected to secondary query after a first preset time period is passed and the state information is still abnormal under the condition that the state information of the target logic disk is abnormal, and the first preset time period is generated by the storage system based on the reference response time of the host, the idle computing resources and idle memory resources of the host and the disk read-write speed of the target logic disk according to a preset algorithm;
The second query module is further configured 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 state information of the target logical disk again until the state information is queried to be normal;
the preset algorithm is as follows:
wherein, Representing the first preset time period,Indicating the reference response time period,Representing a first impact factor corresponding to the idle computing resource,Representing a second impact factor corresponding to the idle memory resource,And indicating a third influence factor corresponding to the disk read-write speed.
10. The state query system of the logic disk is characterized by comprising a host and a storage system;
The host is used for sending a query command to the storage system for the first time, wherein the query command is used for indicating the storage system to query a target logic disk in at least one logic disk and checking the state information of the target logic disk;
The storage system is used for inquiring a target logic disk in at least one logic disk in the storage system when the inquiry command sent by the host is received for the first time, and checking the state information of the target logic disk to obtain an inquiry result;
The storage system is further configured to record a current time if the query result indicates that the state information of the target logical disk is abnormal;
the storage system is further used for acquiring the reference response time of the host, the idle computing resources and idle memory resources of the host and the disk read-write speed of the target logical disk;
The storage system is further used for generating a first preset time period according to the reference response time length, the idle computing resources, the idle memory resources and the disk read-write speed and a preset algorithm;
the storage system is further used for carrying out secondary query on the state information of the target logical disk after a first preset time period from the current moment to obtain a secondary query result;
The storage system is further configured to generate indication information if the secondary query result is that the state information of the target logical disk is still abnormal, and send the indication information to the host, where the indication information is used to instruct the host to send the query command for the second time;
The host is also used for receiving indication information which is obtained and fed back by the storage system based on the query command;
the host is further configured 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 state information of the target logical disk again until the state information is queried to be normal;
the storage system is further configured to generate a first preset time period according to a preset algorithm according to the reference response duration, the idle computing resource, the idle memory resource, and the disk read-write speed, where the first preset time period includes:
The storage system is specifically configured to obtain a first influence factor corresponding to the idle computing resource, a second influence factor corresponding to the idle memory resource, and a third influence factor corresponding to the disk read-write speed;
The storage system is further specifically configured to calculate, according to the preset algorithm, the first preset time period according to the reference response duration, the first influence factor, the second influence factor, and the third influence factor, where the preset algorithm is:
wherein, Representing the first preset time period,Indicating the reference response time period,Representing the first influence factor in question,Representing the second influence factor in question,Representing the third influencing factor.
11. A computer device, comprising:
A memory and a processor, the memory and the processor being communicatively connected to each other, the memory having stored therein computer instructions, the processor executing the computer instructions to perform the method for querying the status of a logical disk according to any one of claims 1 to 7.
12. A computer-readable storage medium having stored thereon computer instructions for causing a computer to perform the method of querying the state of a logical disk according to any one of claims 1 to 7.
13. A computer program product comprising computer instructions for causing a computer to perform the method of querying the status of a logical disk according to any one of claims 1 to 7.
CN202411206037.XA 2024-08-30 Method, device, system, equipment and storage medium for inquiring state of logic disk Active CN118708133B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202411206037.XA CN118708133B (en) 2024-08-30 Method, device, system, equipment and storage medium for inquiring state of logic disk

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202411206037.XA CN118708133B (en) 2024-08-30 Method, device, system, equipment and storage medium for inquiring state of logic disk

Publications (2)

Publication Number Publication Date
CN118708133A CN118708133A (en) 2024-09-27
CN118708133B true CN118708133B (en) 2024-11-15

Family

ID=

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115004160A (en) * 2020-05-26 2022-09-02 深圳市欢太科技有限公司 Data processing method and device, processing equipment and data storage system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115004160A (en) * 2020-05-26 2022-09-02 深圳市欢太科技有限公司 Data processing method and device, processing equipment and data storage system

Similar Documents

Publication Publication Date Title
EP3839749B1 (en) Data storage method, device and server
EP2372521A2 (en) Remote direct storage access
US9535754B1 (en) Dynamic provisioning of computing resources
US10819611B2 (en) Dynamic timeout-based fault detection
EP3584669A1 (en) Webpage loading method, webpage loading system, and server
CN113067875A (en) Access method, device and equipment based on dynamic flow control of micro-service gateway
CN114884840A (en) Application health state checking method and electronic equipment
CN112988433A (en) Method, apparatus and computer program product for fault management
CN114296909B (en) Automatic capacity expansion and contraction method and system for nodes according to kubernetes events
CN118708133B (en) Method, device, system, equipment and storage medium for inquiring state of logic disk
CN118708133A (en) Method, device, system, equipment and storage medium for inquiring state of logic disk
CN117608893A (en) Method, device and related equipment for adjusting correctable error reporting threshold
CN113626139B (en) High-availability virtual machine storage method and device
CN112286622A (en) Virtual machine migration processing and strategy generating method, device, equipment and storage medium
JP7429792B2 (en) Data transmission methods, terminals and computer-readable storage media
CN114003342A (en) Distributed storage method and device, electronic equipment and storage medium
US7770054B2 (en) Apparatus, system, and method to prevent queue stalling
CN111488232A (en) System and method for out-of-box solution level configuration and diagnostic logging and reporting
CN111930707A (en) Method and system for correcting drive letter of windows cloud migration
CN117041172B (en) White box switch interface request processing method and device
US20230090032A1 (en) Storage system and control method
KR102567541B1 (en) Edge service instance distribution apparatus and control method thereof
CN118282860A (en) File acquisition method, device and system
CN118764416A (en) Link testing method and device, computer equipment and storage medium
CN118964075A (en) Fault processing method, device, equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
SE01 Entry into force of request for substantive examination
GR01 Patent grant