CN114328034A - Control method and device of storage equipment, electronic equipment and storage medium - Google Patents

Control method and device of storage equipment, electronic equipment and storage medium Download PDF

Info

Publication number
CN114328034A
CN114328034A CN202210249627.5A CN202210249627A CN114328034A CN 114328034 A CN114328034 A CN 114328034A CN 202210249627 A CN202210249627 A CN 202210249627A CN 114328034 A CN114328034 A CN 114328034A
Authority
CN
China
Prior art keywords
storage device
state
target storage
equipment
condition
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.)
Granted
Application number
CN202210249627.5A
Other languages
Chinese (zh)
Other versions
CN114328034B (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 Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202210249627.5A priority Critical patent/CN114328034B/en
Publication of CN114328034A publication Critical patent/CN114328034A/en
Application granted granted Critical
Publication of CN114328034B publication Critical patent/CN114328034B/en
Priority to PCT/CN2022/140824 priority patent/WO2023173870A1/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/16Error detection or correction of the data by redundancy in hardware
    • G06F11/20Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Power Sources (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

The application discloses a control method and device of storage equipment, electronic equipment and a storage medium. The method comprises the following steps: acquiring a fault detection request, wherein a target storage device is a storage device which has an association relation with a current storage device; responding to the fault detection request, executing access operation on the target storage equipment to obtain an access result, and determining a first running state corresponding to an optical fiber link deployed between the current storage equipment and the target storage equipment based on the access result; under the condition that the first running state is the optical fiber link fault state, detecting a first power supply state corresponding to a power supply in the current storage equipment; in the case where the first power source state is a failure state, a device switching operation is performed. According to the method and the device, the reason that normal access cannot be performed between the storage devices can be rapidly determined by detecting the power supply state of the storage devices, so that the switching of the devices cannot be triggered when the network fluctuates, the switching time of the devices in real fault is shortened, and the service efficiency of the storage devices is ensured.

Description

Control method and device of storage equipment, electronic equipment and storage medium
Technical Field
The present application relates to the field of device control, and in particular, to a method and an apparatus for controlling a storage device, an electronic device, and a storage medium.
Background
Active-active is a data disaster solution for double centers in the same city. The two storage devices are connected through optical fibers in the same city, the two storages can simultaneously bear services, and after receiving service I/O, data are copied to the opposite storage device through background copying. Therefore, the backup protection of the data can be carried out, and the balance of the service load can be realized by fully utilizing the storage performance. The dual-active system is a very efficient and reliable data protection scheme, and one requirement is that when one storage device a fails, the other storage device B can take over the storage device a to continue to perform service, so that the service is not interrupted, and the continuity of the service is realized.
In the process of implementing the present invention, the inventor finds that when a situation that normal access cannot be performed between storage devices in a short time occurs, a device switching operation is performed, but the situation that normal access cannot be performed between storage devices may be caused by network fluctuation or hardware failure inside the device. If the network fluctuation causes, invalid equipment switching operation is caused, and time cost is consumed.
Disclosure of Invention
In order to solve the technical problems that invalid equipment switching operation is caused and time cost is consumed under the condition that normal access cannot be carried out among storage equipment due to network fluctuation, the application provides a control method and device of the storage equipment, electronic equipment and a storage medium.
According to an aspect of an embodiment of the present application, there is provided a method for controlling a storage device, which is applied to the storage device, the method including:
acquiring a fault detection request, wherein the fault detection request is used for detecting whether a fault exists between a current storage device and a target storage device, and the target storage device is a storage device which has an association relationship with the current storage device;
responding to the fault detection request, executing an access operation on the target storage device to obtain an access result, and determining a first running state corresponding to an optical fiber link deployed between the current storage device and the target storage device based on the access result;
under the condition that the first operation state is the optical fiber link failure state, detecting a first power supply state corresponding to a power supply in the current storage equipment;
and under the condition that the first power supply state is a fault state, executing equipment switching operation to enable the target storage equipment to replace the current storage equipment for service.
Further, the performing an access operation on the target storage device to obtain an access result includes:
sending an access request to the target storage device over the fiber optic link;
monitoring a sending condition corresponding to the access request, and determining the access result based on the sending condition, wherein the access result is successful when the sending condition is sent, and the access result is failed when the sending condition is not sent.
Further, the detecting a first power state corresponding to a power supply in the current storage device includes:
acquiring at least two power supply output conditions obtained by detecting the power supply of the current storage device by at least two sensors deployed in the current storage device;
and determining a first power state of the current storage device based on the power output conditions, wherein the first power state is a normal state when at least one power output condition is used for indicating that the power is normally output.
Further, the method further comprises:
inquiring an effective time period corresponding to the current storage equipment under the condition that the first power supply state is a normal state;
and under the condition that the current time is determined not to belong to the valid time period, performing equipment switching operation so as to enable the target storage equipment to replace the current storage equipment for service.
Further, the method further comprises:
monitoring a second running state of the optical fiber link within a preset time under the condition that the current time is determined to belong to the effective time period;
and controlling the current storage equipment to continue to perform service under the condition that the second running state is the normal state of the optical fiber link.
Further, in the case that the first power state is a normal state, the method further includes:
generating a first communication signal based on the first power state;
broadcasting the first communication signal to the target storage device so that the target storage device executes device switching operation based on the first communication signal under the condition that the power supply of the target storage device is failed.
Further, in the case that the first power state is a normal state, the method further includes:
monitoring a second communication signal broadcasted by the target storage equipment;
and under the condition that the second communication signal is not monitored within the preset time, determining that the power supply of the target storage equipment has a fault, and executing equipment switching operation to enable the current storage equipment to replace the target storage equipment for service.
According to still another aspect of an embodiment of the present application, there is provided a control apparatus of a storage device, including:
the system comprises an acquisition module, a storage module and a processing module, wherein the acquisition module is used for acquiring a fault detection request, the fault detection request is used for detecting whether a fault exists between a current storage device and a target storage device, and the target storage device is a storage device which has an association relation with the current storage device;
the execution module is used for responding to the fault detection request, executing access operation on the target storage device to obtain an access result, and determining a first running state corresponding to an optical fiber link deployed between the current storage device and the target storage device based on the access result;
the detection module is used for detecting a first power supply state corresponding to a power supply in the current storage equipment under the condition that the first running state is an optical fiber link failure state;
and the control module is used for executing equipment switching operation under the condition that the first power supply state is a fault state so as to enable the target storage equipment to replace the current storage equipment for service.
According to another aspect of the embodiments of the present application, there is also provided a storage medium including a stored program that executes the above steps when the program is executed.
According to another aspect of the embodiments of the present application, there is also provided an electronic apparatus, including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus; wherein: a memory for storing a computer program; a processor for executing the steps of the method by running the program stored in the memory.
Embodiments of the present application also provide a computer program product containing instructions, which when run on a computer, cause the computer to perform the steps of the above method.
Compared with the prior art, the technical scheme provided by the embodiment of the application has the following advantages: according to the embodiment of the application, the state of the power supply is determined by detecting the output condition of the power supply, the reason that normal access cannot be performed between the storage devices can be rapidly determined, so that the dual-active fault switching cannot be triggered when the network fluctuates, the equipment switching time during real fault is shortened, and the service efficiency of the storage devices is ensured.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art to obtain other drawings without inventive exercise.
Fig. 1 is a flowchart of a control method of a storage device according to an embodiment of the present disclosure;
fig. 2 is a flowchart of a control method of a storage device according to another embodiment of the present application;
fig. 3 is a block diagram of a control apparatus of a storage device according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be described clearly and completely with reference to the drawings in the embodiments of the present application, it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments, and the illustrative embodiments and descriptions thereof of the present application are used for explaining the present application and do not constitute a limitation to the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It is noted that, in this document, relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another similar entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The embodiment of the application provides a control method and device of storage equipment, electronic equipment and a storage medium. The method provided by the embodiment of the invention can be applied to any required electronic equipment, for example, the electronic equipment can be electronic equipment such as a server and a terminal, and the method is not particularly limited herein, and is hereinafter simply referred to as electronic equipment for convenience in description.
According to an aspect of embodiments of the present application, a method embodiment of a method for controlling a storage device is provided. Fig. 1 is a flowchart of a control method of a storage device according to an embodiment of the present application, and as shown in fig. 1, the method includes:
step S11, a failure detection request is obtained, where the failure detection request is used to detect whether there is a failure between the current storage device and a target storage device, and the target storage device is a storage device having an association relationship with the current storage device.
The method provided by the embodiment of the application is applied to a processor deployed in a current storage device, wherein the processor is provided with a timing program, the timing program is used for periodically triggering a fault detection request, and the fault detection request is used for detecting whether a communication fault exists between the current storage device and a target storage device, for example: fiber link failure, etc. The target storage device is connected with the current storage device through an optical fiber link.
Step S12, in response to the failure detection request, performing an access operation on the target storage device to obtain an access result, and determining a first operating state corresponding to the optical fiber link deployed between the current storage device and the target storage device based on the access result.
In the embodiment of the present application, as shown in fig. 2, performing an access operation on a target storage device to obtain an access result includes the following steps a1-a 2:
step a1, an access request is sent to a target storage device over a fiber optic link.
In an embodiment of the application, in response to the failure detection request, the processor sends an access request to the target storage device through the optical fiber link for connecting the current storage device and the target storage device. It should be noted that the target storage device is also disposed with the same processor as the current storage device, and is used for receiving the access request.
Step A2, monitoring the transmission condition corresponding to the access request, and determining the access result based on the transmission condition.
In the embodiment of the application, after the processor sends the access request, whether the access request is sent successfully is monitored, so that the access result is determined. For example: and after receiving the access request, the target storage device feeds back confirmation information to the current storage device, and if the confirmation information is received, the target storage device determines that the sending condition is successful. And if the access request is not sent out, determining that the sending condition is sending failure. When the sending condition is sent, the access result is successful. When the sending condition is not sending, the access result is access failure.
In an embodiment of the present application, determining, based on the access result, a first operating state corresponding to a fiber link deployed between a current storage device and a target storage device includes: and when the access result is successful, determining that the first running state corresponding to the optical fiber link between the current storage device and the target storage device is a normal state. And when the access result is access failure, determining that a first operation state corresponding to the optical fiber link between the current storage device and the target storage device is a fault state.
In step S13, when the first operating state is the optical fiber link failure state, a first power state corresponding to the power source in the current storage device is detected.
In the embodiment of the application, detecting a first power state corresponding to a power supply in a current storage device comprises the following steps B1-B2:
and step B1, acquiring at least two power supply output conditions obtained by detecting the power supply of the current storage device by at least two sensors deployed in the current storage device.
In the embodiment of the application, when the first operating state is the optical fiber link failure state, whether the power supply in the current storage device can normally output is detected through at least two sensors deployed in the current storage device, so that the corresponding number of power supply output conditions are obtained.
And step B2, determining a first power state of the current storage device based on the power output conditions, wherein the first power state is a normal state when at least one power output condition is used for indicating that the power is normally output.
In the embodiment of the application, the processor receives the power output conditions fed back by the sensors, and when at least one power output condition is used for indicating that the power is normally output, the first power state is a normal state. Alternatively, when all of the power output conditions are used to indicate that the power output is abnormal, the first power state is an abnormal state.
As an example, the processor is connected with the sensor a and the sensor B respectively, controls the sensor a and the sensor B to detect the output condition of the power supply, receives the power supply output condition fed back by the sensor a and the sensor B respectively, and determines that the first power supply state is the normal state when at least one power supply output condition is used for indicating the normal output of the power supply.
In step S14, when the first power state is a failure state, a device switching operation is performed to cause the target storage device to serve in place of the current storage device.
In this embodiment, when the first power state is a failure state, it indicates that the current storage device is powered off at this time, and the processor cannot access the target storage device through the optical fiber link, and then the lease validity period is skipped, and device switching is performed immediately.
It should be noted that, in the prior art, frequent double-active failover caused by fiber network fluctuation can be avoided by introducing lease validity period, but the failover time is lengthened. If the position of the storage device A has power failure, the A cannot continue the service, and the double-active fault switching logic is continued after the lease expiration, so that the double-active fault switching time is prolonged by a lease validity period.
Therefore, only when the power supply of the current storage device is abnormal, it indicates that the abnormality of the optical fiber link is caused by power failure, rather than network fluctuation (conversely, if the power supply is in a normal state, it indicates that the abnormality of the current optical fiber link is caused by network fluctuation), so that the situation that the storage devices cannot be normally accessed due to network fluctuation can be quickly eliminated by detecting the power supply state, at this time, the processor does not verify whether the current storage device exceeds the lease effective time period any more, and directly performs device switching, thereby performing effective device switching operation, and simultaneously saving unnecessary device switching time compared with the prior art.
Therefore, the power supply state is determined by detecting the output condition of the power supply, and the reason that normal access cannot be performed between the storage devices can be quickly determined, so that double-active fault switching cannot be triggered when the network fluctuates, the device switching time during real fault is reduced, and the service efficiency of the storage devices is ensured.
In this embodiment of the present application, if the power is normal, then determining whether the current storage device exceeds the lease validity period, the specific method includes the following steps C1-C2:
and step C1, inquiring the valid time period corresponding to the current storage device when the first power supply state is the normal state.
And step C2, in case that the current time is determined not to belong to the valid time period, executing the device switching operation to make the target storage device replace the current storage device for service.
In an embodiment of the application, the method further comprises the following steps D1-D2:
and D1, monitoring the second operation state of the optical fiber link within the preset time under the condition that the current time is determined to belong to the valid time period.
And D2, controlling the current storage device to continue to be served when the second operation state is the normal state of the optical fiber link.
In the embodiment of the application, whether the lease of the storage device is over-term is judged according to the valid time period of the lease, and if the lease is over-term, the device switching operation is carried out. If the state of the optical fiber link returns to normal within the valid time period of the lease, the equipment switching operation is not carried out.
In this embodiment of the application, when the first power state is a normal state, the method further includes: generating a first communication signal based on the first power state; and broadcasting the first communication signal to the target storage device so that the target storage device executes the device switching operation based on the first communication signal under the condition that the power supply of the target storage device is failed.
In this embodiment of the application, when the first power state is a normal state, the method further includes: and under the condition of determining the first power state, generating an initial communication signal, and carrying the first power state in the initial communication signal to obtain a first communication signal. The processor broadcasts the first communication signal, so that the processor of the target storage device receives the first communication signal and stores the first communication signal. In the case where the target storage device has a power failure, it is possible to make sure that the current storage device is normal based on the first communication signal, and thus the target storage device can perform a device switching operation. Therefore, the service corresponding to the target storage device is guaranteed to be switched to the device in the survival state (namely the current storage device).
In this embodiment of the application, when the first power state is a normal state, the method further includes: monitoring a second communication signal broadcasted by the target storage equipment; and under the condition that the second communication signal is not monitored within the preset time, determining that the power supply of the target storage equipment has a fault, and executing equipment switching operation to enable the current storage equipment to replace the target storage equipment for service.
In this embodiment of the application, when the first power state is a normal state, the processor may further monitor a second communication signal broadcasted by the processor located on the target storage device, and if the processor does not monitor the second communication signal within a preset time, it is determined that the power of the target storage device has a fault, which results in that the processor of the target storage device cannot broadcast the communication signal, and at this time, the current storage device may automatically perform a device switching operation, so that it is ensured that a service corresponding to the target storage device is switched to the current storage device.
Fig. 3 is a block diagram of a control apparatus of a storage device according to an embodiment of the present disclosure, where the apparatus may be implemented as part of or all of an electronic device through software, hardware, or a combination of the two. As shown in fig. 3, the apparatus includes:
an obtaining module 31, configured to obtain a fault detection request, where the fault detection request is used to detect whether a fault exists between a current storage device and a target storage device, where the target storage device is a storage device that has an association relationship with the current storage device;
the execution module 32 is configured to, in response to the fault detection request, execute an access operation on the target storage device to obtain an access result, and determine, based on the access result, a first operating state corresponding to an optical fiber link deployed between the current storage device and the target storage device;
the detection module 33 is configured to detect a first power state corresponding to a power source in the current storage device when the first operating state is an optical fiber link failure state;
and the control module 34 is configured to perform a device switching operation to enable the target storage device to serve in place of the current storage device if the first power state is the failure state.
In this embodiment of the present application, the execution module 32 is configured to send an access request to a target storage device through a fiber link; monitoring a sending condition corresponding to the access request, and determining an access result based on the sending condition, wherein the access result is successful when the sending condition is sent, and the access result is failed when the sending condition is not sent.
In this embodiment of the present application, the detection module 33 is configured to obtain at least two power output conditions obtained by detecting, by at least two sensors deployed in a current storage device, a power of the current storage device; and determining a first power state of the current storage device based on the power output conditions, wherein the first power state is a normal state when at least one power output condition is used for indicating normal output of the power supply.
In an embodiment of the present application, the control apparatus of the storage device further includes: the first processing module is used for inquiring the valid time period corresponding to the current storage equipment under the condition that the first power supply state is a normal state; and under the condition that the current time is determined not to belong to the valid time period, performing equipment switching operation so as to enable the target storage equipment to replace the current storage equipment for service.
In an embodiment of the present application, the control apparatus of the storage device further includes: the second processing module is used for monitoring a second running state of the optical fiber link within preset time under the condition that the current time is determined to belong to the valid time period;
and controlling the current storage equipment to continue to perform service under the condition that the second running state is the normal state of the optical fiber link.
In this embodiment of the present application, the third processing module is configured to generate a first communication signal based on the first power state when the first power state is a normal state; and broadcasting the first communication signal to the target storage device so that the target storage device executes the device switching operation based on the first communication signal under the condition that the power supply of the target storage device is failed.
In this embodiment of the present application, the fourth processing module is configured to monitor a second communication signal broadcast by the target storage device when the first power state is a normal state; and under the condition that the second communication signal is not monitored within the preset time, determining that the power supply of the target storage equipment has a fault, and executing equipment switching operation to enable the current storage equipment to replace the target storage equipment for service.
An embodiment of the present application further provides an electronic device, as shown in fig. 4, the electronic device may include: the system comprises a processor 1501, a communication interface 1502, a memory 1503 and a communication bus 1504, wherein the processor 1501, the communication interface 1502 and the memory 1503 complete communication with each other through the communication bus 1504.
A memory 1503 for storing a computer program;
the processor 1501 is configured to implement the steps of the above embodiments when executing the computer program stored in the memory 1503.
The communication bus mentioned in the above terminal may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the terminal and other equipment.
The Memory may include a Random Access Memory (RAM) or a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the Integrated Circuit may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, or a discrete hardware component.
In yet another embodiment provided by the present application, there is also provided a computer-readable storage medium having stored therein instructions, which when run on a computer, cause the computer to execute the method for controlling a storage device according to any one of the above embodiments.
In yet another embodiment provided by the present application, there is also provided a computer program product containing instructions which, when run on a computer, cause the computer to perform the method of controlling a storage device according to any of the above embodiments.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the application to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wire (e.g., coaxial cable, fiber optic, digital subscriber line) or wirelessly (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk), among others.
The above description is only for the preferred embodiment of the present application, and is not intended to limit the scope of the present application. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application are included in the protection scope of the present application.
The above description is merely exemplary of the present application and is presented to enable those skilled in the art to understand and practice the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A control method of a storage device is applied to the storage device, and is characterized by comprising the following steps:
acquiring a fault detection request, wherein the fault detection request is used for detecting whether a fault exists between a current storage device and a target storage device, and the target storage device is a storage device which has an association relationship with the current storage device;
responding to the fault detection request, executing an access operation on the target storage device to obtain an access result, and determining a first running state corresponding to an optical fiber link deployed between the current storage device and the target storage device based on the access result;
under the condition that the first operation state is the optical fiber link failure state, detecting a first power supply state corresponding to a power supply in the current storage equipment;
and under the condition that the first power supply state is a fault state, executing equipment switching operation to enable the target storage equipment to replace the current storage equipment for service.
2. The method of claim 1, wherein performing the access operation on the target storage device to obtain an access result comprises:
sending an access request to the target storage device over the fiber optic link;
monitoring a sending condition corresponding to the access request, and determining the access result based on the sending condition, wherein the access result is successful when the sending condition is sent, and the access result is failed when the sending condition is not sent.
3. The method of claim 1, wherein detecting the first power state corresponding to the power supply in the current storage device comprises:
acquiring at least two power supply output conditions obtained by detecting the power supply of the current storage device by at least two sensors deployed in the current storage device;
and determining a first power state of the current storage device based on the power output conditions, wherein the first power state is a normal state when at least one power output condition is used for indicating that the power is normally output.
4. The method of claim 1, further comprising:
inquiring an effective time period corresponding to the current storage equipment under the condition that the first power supply state is a normal state;
and under the condition that the current time is determined not to belong to the valid time period, performing equipment switching operation so as to enable the target storage equipment to replace the current storage equipment for service.
5. The method of claim 4, further comprising:
monitoring a second running state of the optical fiber link within a preset time under the condition that the current time is determined to belong to the effective time period;
and controlling the current storage equipment to continue to perform service under the condition that the second running state is the normal state of the optical fiber link.
6. The method of claim 4, wherein in the case that the first power state is a normal state, the method further comprises:
generating a first communication signal based on the first power state;
broadcasting the first communication signal to the target storage device so that the target storage device executes device switching operation based on the first communication signal under the condition that the power supply of the target storage device is failed.
7. The method of claim 4, wherein in the case that the first power state is a normal state, the method further comprises:
monitoring a second communication signal broadcasted by the target storage equipment;
and under the condition that the second communication signal is not monitored within the preset time, determining that the power supply of the target storage equipment has a fault, and executing equipment switching operation to enable the current storage equipment to replace the target storage equipment for service.
8. A control apparatus of a storage device, characterized by comprising:
the system comprises an acquisition module, a storage module and a processing module, wherein the acquisition module is used for acquiring a fault detection request, the fault detection request is used for detecting whether a fault exists between a current storage device and a target storage device, and the target storage device is a storage device which has an association relation with the current storage device;
the execution module is used for responding to the fault detection request, executing access operation on the target storage device to obtain an access result, and determining a first running state corresponding to an optical fiber link deployed between the current storage device and the target storage device based on the access result;
the detection module is used for detecting a first power supply state corresponding to a power supply in the current storage equipment under the condition that the first running state is an optical fiber link failure state;
and the control module is used for executing equipment switching operation under the condition that the first power supply state is a fault state so as to enable the target storage equipment to replace the current storage equipment for service.
9. A storage medium, characterized in that the storage medium comprises a stored program, wherein the program is operative to perform the method steps of any of the preceding claims 1 to 7.
10. An electronic device is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing mutual communication by the memory through the communication bus; wherein:
a memory for storing a computer program;
a processor for performing the method steps of any of claims 1 to 7 by executing a program stored on a memory.
CN202210249627.5A 2022-03-15 2022-03-15 Control method and device of storage equipment, electronic equipment and storage medium Active CN114328034B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202210249627.5A CN114328034B (en) 2022-03-15 2022-03-15 Control method and device of storage equipment, electronic equipment and storage medium
PCT/CN2022/140824 WO2023173870A1 (en) 2022-03-15 2022-12-21 Control method and apparatus for storage device, electronic device and non-volatile readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210249627.5A CN114328034B (en) 2022-03-15 2022-03-15 Control method and device of storage equipment, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114328034A true CN114328034A (en) 2022-04-12
CN114328034B CN114328034B (en) 2022-06-03

Family

ID=81033714

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210249627.5A Active CN114328034B (en) 2022-03-15 2022-03-15 Control method and device of storage equipment, electronic equipment and storage medium

Country Status (2)

Country Link
CN (1) CN114328034B (en)
WO (1) WO2023173870A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023173870A1 (en) * 2022-03-15 2023-09-21 苏州浪潮智能科技有限公司 Control method and apparatus for storage device, electronic device and non-volatile readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108351823A (en) * 2015-10-22 2018-07-31 Netapp股份有限公司 It realizes and automatically switches
CN110213065A (en) * 2018-02-28 2019-09-06 杭州宏杉科技股份有限公司 A kind of method and device of path switching
CN113849127A (en) * 2021-09-01 2021-12-28 北京腾凌科技有限公司 SAN storage dual-active network-based arbitration method and device and electronic equipment

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006107151A (en) * 2004-10-06 2006-04-20 Hitachi Ltd Storage system and communication path control method for storage system
CN107819556B (en) * 2016-09-12 2020-04-28 北京金山云网络技术有限公司 Service state switching method and device
CN110377664B (en) * 2019-07-22 2022-10-21 腾讯科技(深圳)有限公司 Data synchronization method, device, server and storage medium
CN114328034B (en) * 2022-03-15 2022-06-03 苏州浪潮智能科技有限公司 Control method and device of storage equipment, electronic equipment and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108351823A (en) * 2015-10-22 2018-07-31 Netapp股份有限公司 It realizes and automatically switches
CN110213065A (en) * 2018-02-28 2019-09-06 杭州宏杉科技股份有限公司 A kind of method and device of path switching
CN113849127A (en) * 2021-09-01 2021-12-28 北京腾凌科技有限公司 SAN storage dual-active network-based arbitration method and device and electronic equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023173870A1 (en) * 2022-03-15 2023-09-21 苏州浪潮智能科技有限公司 Control method and apparatus for storage device, electronic device and non-volatile readable storage medium

Also Published As

Publication number Publication date
WO2023173870A1 (en) 2023-09-21
CN114328034B (en) 2022-06-03

Similar Documents

Publication Publication Date Title
US11809291B2 (en) Method and apparatus for redundancy in active-active cluster system
CN109344014B (en) Main/standby switching method and device and communication equipment
CN114328034B (en) Control method and device of storage equipment, electronic equipment and storage medium
CN107508694B (en) Node management method and node equipment in cluster
US7676693B2 (en) Method and apparatus for monitoring power failure
CN103150224B (en) For improving the electronic equipment and method that start reliability
WO2014050493A1 (en) Backup device, main device, redundancy configuration system, and load dispersion method
JP2007028118A (en) Failure judging method of node device
CN107959595B (en) Method, device and system for anomaly detection
CN108650101B (en) Data transmission method and equipment
US6199033B1 (en) LAN emulation server changing over method
CN114143330A (en) Configuration method, device and system of time server
CN111064608A (en) Master-slave switching method and device of message system, electronic equipment and storage medium
JP2002049501A (en) Fault-tolerant system and its fault demarcating method
CN111555931B (en) Upstream server monitoring processing method, monitor and electronic equipment
CN110650059A (en) Fault cluster detection method, device, computer equipment and storage medium
CN117279057A (en) Link switching method and device
JP2842718B2 (en) Processor bus fault identification apparatus and method
CN116263696A (en) Machine room task notification processing method, device and task notification processing system
KR20210140899A (en) System and Method for Fault-tolerant Process Module Control Based on Seamless Control
JP2757847B2 (en) Double reception avoidance method in basic procedure
JP5975119B2 (en) BMC, information processing apparatus, method, and program
WO2019240052A1 (en) Missing alert handling system and missing alert handling method
CN114443438A (en) Node state detection method, node abnormity processing method and device
CN118152175A (en) Switching method and device for database cluster service, electronic equipment and storage medium

Legal Events

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