Data read-write path determination method, electronic equipment and readable storage medium
By receiving state switching instructions in the storage system to adjust the path management state of the storage controller and transmit notifications, the problem of large multi-host operation volume is solved, convenient storage controller isolation and de-isolation operations are achieved, and maintenance impact and resource waste are reduced.
Patent Information
- Application Number
- CN202511215769.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-08-28
- Publication Date
- 2025-09-26
- Estimated Expiration
- 2045-08-28
AI Technical Summary
In a storage system, the existing technology requires manual identification and isolation of storage controller paths for multiple hosts, resulting in a large amount of operations and insufficient convenience.
By receiving a state switching instruction in the storage system, adjusting the path management state of the storage controller, and transmitting a state switching notification to the host, the host responds to the notification and reads and writes data through the read and write path of the target storage controller, and the target storage controller is in a non-isolated state.
This reduces the amount of operations, improves operational convenience, mitigates the impact of storage controller maintenance on front-end services, and avoids resource waste.
Smart Images

Figure CN120704620A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of storage technology, and in particular to a method for determining a path for reading and writing data, an electronic device, and a readable storage medium. Background Art
[0002] With the global advancement of informatization and digitization, data volumes are growing across all industries, and storage systems have become the primary medium for back-end data storage. Storage systems incorporate redundant architectures to prevent single points of failure. For example, multiple storage controllers are configured within the storage system, each with multiple front-end cards.
[0003] In related technologies, when actively replacing and maintaining components like storage controllers or front-end cards, the host typically isolates the corresponding storage controller paths, preventing the service host from actively reading or writing data through the isolated storage controller paths. However, a storage system often serves multiple service hosts, requiring the identification and isolation of storage controller paths on all service hosts. This results in a large workload and a lack of convenience. Summary of the Invention
[0004] The present application provides a method for determining a path for data reading and writing, an electronic device, and a readable storage medium to at least solve the problem of insufficient operational convenience in the related art caused by the need to manually operate multiple hosts when isolating a storage controller in a storage system.
[0005] The present application provides a method for determining a path for reading and writing data, which is applied to a storage system. The storage system is connected to at least one host, and the storage system includes at least two storage controllers, which are respectively used to control at least two read and write paths of the host. The method for determining a path for reading and writing data includes: upon receiving a state switching instruction, adjusting the path management state of at least one storage controller in response to the state switching instruction; based on the adjusted path management states of the at least two storage controllers, transmitting a state switching notification to at least one host, so that the at least one host responds to the state switching notification and reads and writes data through the read and write path of the target storage controller, wherein the target storage controller includes a storage controller whose path management state is in a non-isolated state among the at least two storage controllers.
[0006] The present application also provides a method for determining a path for data reading and writing, which is applied to a host, the host is connected to a storage system, the storage system includes at least two storage controllers, and the at least two storage controllers are respectively used to control at least two read and write paths of the host. The method for determining a path for data reading and writing includes: receiving a status switching notification transmitted by the storage system, the status switching notification is used to determine the adjusted path management status of the at least two storage controllers; determining a target storage controller based on the status switching notification, wherein the target storage controller includes a storage controller whose path management status is a non-isolated state; and reading and writing data to the storage system through the read and write path of the target storage controller.
[0007] The present application also provides a data reading and writing system, including: a storage system, the storage system including at least two storage controllers, the storage system being used to execute the steps of a path determination method applied to data reading and writing of the storage system; a switch connected to the at least two storage controllers; at least one host being connected to the switch, and at least one host being connected to the at least two storage controllers via the switch, the host being used to execute the path determination method applied to data reading and writing of the host.
[0008] The present application also provides an electronic device, comprising: a memory for storing a computer program; and a processor for implementing the steps of any of the above-mentioned methods for determining a path for reading and writing data when executing the computer program.
[0009] The present application also provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above-mentioned methods for determining a path for reading and writing data are implemented.
[0010] The present application also provides a computer program product, including a computer program, which implements the steps of any of the above-mentioned methods for determining a path for reading and writing data when the computer program is executed by a processor.
[0011] Through the present application, the storage system can adjust the path management state of at least one storage controller in the storage system in response to a state switching instruction, and transmit a state switching notification to the host based on the adjusted path management state of at least two storage controllers, so that the host can respond to the state switching notification and actively stop reading and writing data through the read and write paths of the storage controller in an isolated state. There is no need for the user to perform path identification and path management operations on each host separately, which reduces the required amount of operations, improves operational convenience, and reduces the impact of maintenance on front-end services when the storage controller in the storage system is maintained. When the storage controller maintenance is completed, the host can promptly use the read and write paths of the maintained storage controller to read and write data, thereby avoiding waste of resources. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] In order to more clearly illustrate the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0013] Figure 1 A schematic diagram showing the architecture of a data reading and writing system according to some embodiments of the present application is shown; Figure 2 One of the flow charts of the method for determining a path for reading and writing data according to some embodiments of the present application is shown; Figure 3 A second flowchart of a method for determining a path for reading and writing data according to some embodiments of the present application is shown; Figure 4 One of the structural block diagrams of a data reading and writing path determination device according to some embodiments of the present application is shown; Figure 5 A second structural block diagram of a device for determining a path for reading and writing data according to some embodiments of the present application is shown; Figure 6 A structural block diagram of a storage system according to some embodiments of the present application is shown; Figure 7 A structural block diagram of a host in some embodiments of the present application is shown; Figure 8 The invention shows a path isolation method of a data reading and writing system in some embodiments of the present application; Figure 9 A method for removing isolation paths in a data reading and writing system according to some embodiments of the present application is shown; Figure 10 A structural block diagram of an electronic device according to some embodiments of the present application is shown.
[0014] Figure 1 The accompanying drawings are numerals as follows: 100 data reading and writing system, 110 host, 120 storage system, 121 storage controller, 122 volume device, 130 switch. DETAILED DESCRIPTION
[0015] The following will be combined with the accompanying drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0016] It should be noted that, in the description of this application, the terms "comprises," "includes," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or device. The terms "first," "second," etc., in this application are used to distinguish similar objects, and are not used to describe a particular order or sequence.
[0017] In order to enable those skilled in the art to better understand the present application, the present application is further described in detail below with reference to the accompanying drawings and specific implementation methods.
[0018] In combination with the specific application environment architecture or specific hardware architecture on which the execution of the data reading and writing path determination method depends, the specific application environment architecture or specific hardware architecture is described here.
[0019] In some embodiments of the present application, illustratively, Figure 1 Schematic diagram of the data reading and writing system of some embodiments of the present application is shown. Figure 1 As shown, the data reading and writing system 100 includes at least one host 110 , a switch 130 and a storage system 120 , and the storage system 120 includes at least two storage controllers 121 .
[0020] The host 110 includes a Fibre Channel Host Bus Adapter (FC HBA). Each FC HBA is configured with physical ports, for example: Figure 1 The Fibre Channel bus adapter on the host 110 side includes two physical ports, port 1 and port 2.
[0021] The storage system 120 includes two storage controllers 121, controller 1 and controller 2, a volume device 122, and a Fibre Channel bus adapter. Each storage controller 121 corresponds to a Fibre Channel bus adapter, and each Fibre Channel bus adapter is configured with a physical port, for example: Figure 1 The Fibre Channel bus adapter A on the storage system 120 side includes two physical ports, port A and port B; the Fibre Channel bus adapter B includes two physical ports, port C and port D.
[0022] It is understood that the read and write path of the host 110 includes the host 110, the Fibre Channel bus adapter on the host 110 side, the switch 130, the Fibre Channel bus adapter on the storage system 120 side, and the storage controller 121. The storage controller 121 can control the read and write path corresponding to the host 110 to which the storage controller 121 is connected. For example, Figure 1 As shown, there are two switches 130 , namely switch A and switch B.
[0023] like Figure 1 As shown, storage system 120 can be used by multiple hosts 110, including host A, host B, ..., and host N. User service software on these hosts access data using volumes provided by storage system 120. Load balancing and fault redundancy are achieved through storage system 120's multipathing software. To avoid single points of failure, storage system 120 features a redundant architecture. Storage system 120 has two storage controllers 121: storage controller A and storage controller B. If any storage controller 121 fails, the other controller will take over all storage services without impacting front-end host services.
[0024] An embodiment of the present application provides a method for determining a data read and write path, which is applied to a storage system. The storage system is connected to at least one host and includes at least two storage controllers. The at least two storage controllers are respectively used to control at least two read and write paths of the host. Figure 2 One of the flow charts of the method for determining the path of data reading and writing in some embodiments of the present application is shown. Figure 2 As shown, the method for determining the path for data reading and writing includes: Step 202: upon receiving a state switching instruction, adjusting a path management state of at least one storage controller in response to the state switching instruction; In this embodiment, the state switching instruction is used to adjust the path management state of one or more storage controllers in the storage system, wherein the path management state includes but is not limited to: an isolated state, a non-isolated state, an intermediate state from the isolated state to the non-isolated state, and an intermediate state from the non-isolated state to the isolated state.
[0025] For example, if maintenance is required or completed on a storage controller node in the storage system, the user can manually transmit a state switching instruction to the storage system, thereby changing the path management state of the storage controller. Maintenance operations include, but are not limited to, replacing a storage controller front-end card or replacing storage controller hardware.
[0026] For example, when a storage controller front-end card needs to be replaced, a user manually sends a first state switching instruction, which is used to adjust the path management state of the storage controller, specifically, from a non-isolated state to an isolated state. After the storage controller front-end card is replaced, the user manually sends a second state switching instruction, which is used to adjust the path management state of the storage controller, specifically, from an isolated state to a non-isolated state.
[0027] In this embodiment, the storage system includes an operational panel capable of displaying a system page function menu. This system page function menu can be used to trigger a path management state switch within the storage system, specifically, to issue a state switch instruction to the storage system, thereby triggering an isolation operation for the storage controller or a release operation for the storage controller. Before executing an operation, the system page function menu can also be used to view identification information and path status information for each storage controller. Each storage controller has unique identification information, and the path status information reflects the path management state of the storage controller.
[0028] Step 204: Based on the adjusted path management status of at least two storage controllers, transmit a status switching notification to at least one host, so that at least one host responds to the status switching notification and reads and writes data through the read and write path of the target storage controller, wherein the target storage controller includes a storage controller whose path management status is in a non-isolated state among at least two storage controllers.
[0029] In this embodiment, the storage system triggers adjustment of the path management state of at least one of the at least two storage controllers in response to a state switching instruction. At this time, based on the adjusted path management state of the at least two storage controllers, a state switching notification is transmitted to at least one connected host. The state switching notification can notify the host of the adjusted path management state of the at least two storage controllers. After the host receives the state switching notification, it can determine the adjusted path management state of the at least two storage controllers through the state switching notification, so that the host actively selects the target storage controller in a non-isolated state. The host reads and writes data to the storage system through the read and write path of the target storage controller, which can avoid the failure of data reading and writing of the service IO issued by the host, and avoid fluctuations in the service IO issued by the host when the storage controller is maintained.
[0030] Specifically, the number of hosts can be multiple, and the multiple hosts are all connected to the storage system. The storage system can synchronously transmit status switching notifications to the multiple hosts, so that when the path management status of the storage controller in the storage system changes, the multiple hosts can synchronously receive the status switching notifications. The multiple hosts can each select the read and write path of the storage controller in the non-isolated state in the storage system to read and write data based on the status switching notification. The status switching notification is a notification generated by the storage system based on the adjusted path management status of at least two storage controllers, that is, the status switching notification includes at least the identification information and path management status information of the storage controller whose path management status has changed, so that the host can determine the storage controller in the non-isolated state in the storage system based on this.
[0031] The following Figure 1For example, there are N hosts, and the storage system includes two storage controllers, storage controller 1 and storage controller 2. In response to a state switching instruction, the storage system isolates storage controller 1 and transmits a state switching notification to hosts 1 and 2. After receiving the state switching notification, hosts 1 and 2 determine that storage controller 1 is isolated and proactively avoid using the read / write path of storage controller 1 for data reading and writing.
[0032] For example, multipath software is installed in the host. The host can monitor and capture the status switching notification sent by the storage system through the multipath software, and parse the status switching notification through the multipath software to obtain the identification information of the storage controller whose path management status has changed, as well as the status switching event information. The host can determine the specific status of the changed storage controller through the status switching event information.
[0033] In an embodiment of the present application, the storage system can adjust the path management state of at least one storage controller in the storage system in response to a state switching instruction, and transmit a state switching notification to the host based on the adjusted path management state of at least two storage controllers, so that the host can respond to the state switching notification and actively stop reading and writing data through the read and write paths of the storage controller in an isolated state. There is no need for the user to perform path identification and path management operations on each host separately, which reduces the required amount of operations, improves operational convenience, and reduces the impact of maintenance on front-end services when the storage controller in the storage system is maintained. When the storage controller maintenance is completed, the host can promptly use the read and write paths of the maintained storage controller to read and write data, thereby avoiding waste of resources.
[0034] In some embodiments of the present application, based on the path management status of at least two storage controllers, a state switching notification is transmitted to at least one host, including: when the path management status of the first storage controller among the at least two storage controllers is switched from a non-isolated state to an isolated state, obtaining first identification information of the first storage controller; based on the first identification information and isolation event information, transmitting a state switching notification to at least one host, wherein the first identification information is used by at least one host to determine the target storage controller, and the target storage controller includes a storage controller other than the first storage controller, and the isolation event information is used by at least one host to mark the first storage controller as an isolated state.
[0035] In this embodiment, the storage system generates a state switching notification during the process of adjusting the path management state of the storage controller. The state switching notification needs to include identification information of the storage controller whose path management state changes and state switching event information of the storage controller.
[0036] When the storage system performs an isolation operation on a first storage controller among the at least two storage controllers in response to a state switching instruction, i.e., when the first storage controller switches from a non-isolated state to an isolated state, the storage system can extract first identification information and corresponding isolation event information from the state switching instruction, generate a state switching notification based on the first identification information and the isolation event information, and transmit the state switching notification to a host.
[0037] After receiving the status switch notification, the host can extract the first identification information and isolation event information therein, and thereby determine that the first storage controller is currently in an isolated state based on the first identification information and isolation event information, and use the storage controller other than the first storage controller as the target storage controller, and read and write data through the read and write path of the target storage controller, thereby actively not selecting the storage controller in the isolated state for data reading and writing.
[0038] In an embodiment of the present application, when the first storage controller switches from a non-isolated state to an isolated state, the storage system can obtain the first identification information and isolation event information of the first storage controller, and generate a state switching notification based on the first identification information and the isolation event information, and transmit the state switching notification to the host, so that the host can locate the first storage controller in the isolated state based on the state switching notification and mark the first storage controller, thereby actively selecting other non-isolated storage controllers other than the first storage controller, thereby enabling the host to actively and smoothly switch the data reading and writing business to the read and write path corresponding to the non-isolated storage controller.
[0039] In some embodiments of the present application, when the path management state of the first storage controller among at least two storage controllers switches from a non-isolated state to an isolated state, after obtaining the first identification information of the first storage controller, the path determination method for data reading and writing also includes: detecting whether there is a first read and write business in the read and write path of the first storage controller at every first time interval, the first read and write business including the business issued by any host of at least one host; when there is no first read and write business in the read and write path of the first storage controller, marking the path management state of the first storage controller as an isolation completion state; when there is a first read and write business in the read and write path of the first storage controller, marking the path management state of the first storage controller as an isolation progress state.
[0040] In this embodiment, after the storage system sets the first storage controller to an isolated state in response to a state switching instruction, since there may be unfinished business IOs in the read and write paths of the first storage controller, it is necessary to complete the unfinished business IOs and continue to receive no new business IOs before it can be determined that it is in an isolated completed state. At this time, the user's maintenance of the first storage controller can avoid the failure of data reading and writing of the business IOs issued by the host, and avoid the business IOs issued by the host from fluctuating to 0 when the storage controller is maintained.
[0041] During the process of switching the first storage controller from a non-isolated state to an isolated state, the first storage controller has three path management states, including: a non-isolated state, an isolation in progress state, and an isolation completed state. Among them, the non-isolated state is a state in which the isolation of the first storage controller has not yet begun, and the read and write paths of the first storage controller in the non-isolated state can be used normally by the host; the isolation in progress state is a state in which the storage system controls the first storage controller to be in an isolated state, the read and write paths of the first storage controller no longer receive new business IOs, and there are unfinished business IOs in the read and write paths of the first storage controller; the isolation completed state is a state in which the storage system controls the first storage controller to be in an isolated state, the read and write paths of the first storage controller no longer receive new business IOs, and there are no unfinished business IOs in the read and write paths of the first storage controller. It should be noted that in order to avoid fluctuations in business IO during storage controller maintenance and to improve data reading and writing efficiency, it is necessary to perform maintenance on the storage controller in the storage system in an isolation completed state.
[0042] In this embodiment, when the storage system controls the first storage controller to switch from a non-isolated state to an isolated state, it periodically detects whether the read / write path of the first storage controller has a first read / write business from any host at intervals of a first time length. If the first read / write business exists, the path management state of the first storage controller is marked as an isolation-in-progress state. At this time, the user can view the isolation-in-progress state through the system page function menu displayed on the operation panel, and no maintenance work on the first storage controller is performed. If the first read / write business does not exist, the path management state of the first storage controller is marked as an isolation-completed state. At this time, the user can view the isolation-completed state through the system page function menu displayed on the operation panel, and maintenance work on the first storage controller can be started.
[0043] Exemplarily, the first duration ranges from 3 minutes to 10 minutes.
[0044] In an embodiment of the present application, the storage system can determine whether the first storage controller is in an isolation completion state or an isolation progress state by periodically detecting whether there is a first read and write service in the read and write path of the first storage controller, so that the user can promptly understand whether the first storage controller has completed the state switching, thereby determining whether to start maintenance on the first storage controller, further improving the data reading and writing stability of the storage system during the maintenance phase.
[0045] In some embodiments of the present application, based on the adjusted path management status of at least two storage controllers, a state switching notification is transmitted to at least one host, including: when the path management status of the second storage controller among the at least two storage controllers is switched from an isolated state to a non-isolated state, obtaining second identification information of the second storage controller; based on the second identification information and the isolation release event information, transmitting the state switching notification to at least one host, wherein the second identification information is used by at least one host to determine the target storage controller, and the target storage controller includes the second storage controller, and the isolation release event information is used by at least one host to mark the path management status of the second storage controller as a non-isolated state.
[0046] In this embodiment, the storage system generates a state switching notification during the process of adjusting the path management state of the storage controller. The state switching notification needs to include identification information of the storage controller whose path management state changes and state switching event information of the storage controller.
[0047] When the storage system performs a de-isolation operation on a second storage controller among the at least two storage controllers in response to a state switching instruction, i.e., when the second storage controller switches from an isolated state to a non-isolated state, the storage system can extract the second identification information and corresponding isolation de-isolation event information from the state switching instruction. A state switching notification can be generated based on the second identification information and the isolation de-isolation event information, and the state switching notification can be transmitted to the host.
[0048] After receiving the status switch notification, the host can extract the second identification information and isolation release event information therein, and thereby determine that the second storage controller is currently in a non-isolated state based on the second identification information and isolation release event information, and use the storage controller in a non-isolated state including the second storage controller as the target storage controller, and read and write data through the read and write path of the target storage controller, thereby quickly restoring the use of the isolated second storage controller.
[0049] In an embodiment of the present application, when the second storage controller switches from an isolated state to a non-isolated state, the storage system can obtain the second identification information and isolation release event information of the second storage controller, and generate a state switching notification based on the second identification information and the isolation release event information, and transmit the state switching notification to the host, so that the host can switch the second storage controller marked as an isolated state to a non-isolated state based on the state switching notification, thereby being able to select the read and write path of the second storage controller for data reading and writing, thereby realizing the rapid recovery of the application of the second storage controller that has been released from isolation, avoiding the contact-isolated second storage controller from being in an unused state for a long time, and reducing the waste of storage resources.
[0050] In some embodiments of the present application, when the path management state of the second storage controller among at least two storage controllers switches from an isolated state to a non-isolated state, after obtaining the second identification information of the second storage controller, the path determination method for data reading and writing also includes: every second time interval, detecting whether there is a second read and write business on the read and write path of the second storage controller, the second read and write business includes the business issued by any host of at least one host; when there is no second read and write business on the read and write path of the second storage controller, marking the path management state of the second storage controller as a release-isolation-in-progress state; when there is a second read and write business on the read and write path of the second storage controller, marking the path management state of the second storage controller as a release-isolation-completed state.
[0051] In this embodiment, after the storage system sets the second storage controller to a non-isolated state in response to a state switching instruction, since there may be temporarily no business IO issued by the host in the read and write path of the second storage controller, it is necessary to determine that the isolation is complete only when the second storage controller receives a new business IO.
[0052] During the process of switching the second storage controller from the isolated state to the non-isolated state, the second storage controller has three path management states, including: isolated state, isolation in progress state, and isolation complete state. Among them, the isolated state is the state in which the isolation of the second storage controller has not yet begun, and the read and write paths of the second storage controller in the isolated state cannot be used normally by the host; the isolation in progress state is the state in which the storage system controls the second storage controller to be in a non-isolated state, and the read and write paths of the second storage controller can receive new business IO, but there may be no host sending business IO to the read and write paths of the second storage controller temporarily; the isolation complete state is the state in which the storage system controls the second storage controller to be in a non-isolated state, and the read and write paths of the second storage controller have received new business IO.
[0053] In this embodiment, when the storage system controls the second storage controller to switch from an isolated state to a non-isolated state, it periodically checks the read / write path of the second storage controller at intervals of a second duration to determine whether a second read / write service from any host exists. If a second read / write service exists, the path management status of the second storage controller is marked as de-isolation complete; if no second read / write service exists, the path management status of the second storage controller is marked as de-isolation in progress. The user can view the de-isolation complete status or de-isolation in progress status through the system page function menu displayed on the operation panel.
[0054] Exemplarily, the second duration ranges from 3 minutes to 10 minutes.
[0055] In an embodiment of the present application, the storage system can determine whether the second storage controller is in the de-isolation completion state or the de-isolation progress state by periodically detecting whether there is a second read and write service in the read and write path of the second storage controller, so as to facilitate the user to promptly understand whether the second storage controller has completed the state switching, thereby judging the maintenance effect of the second storage controller, and avoiding misjudgment of the maintenance effect of the second storage controller due to the inability to promptly understand whether the second storage controller has completed the de-isolation operation.
[0056] In some embodiments of the present application, the storage system further includes at least one volume device; based on the path management status of at least two storage controllers, transmitting a state switching notification to at least one host includes: transmitting the state switching notification to at least one host through at least one volume device.
[0057] In this embodiment, the storage system is further provided with a volume device for storing data. The volume device is used to store data. The host can perform read and write operations on the data in the volume device through a read and write path. There is at least one volume device, that is, the storage system can be provided with one or more volume devices.
[0058] Exemplarily, the storage system includes a volume device, at least two storage controllers connected to the volume device, and the storage controllers can control a read / write path for a host to read and write data in the volume device.
[0059] like Figure 1 As shown, the storage system includes two volume devices, each of at least two storage controllers is connected to the two volume devices, and each storage controller can control the read and write paths for the host to read and write data in the at least two volume devices.
[0060] In this embodiment, after the storage system generates a state transition notification, it notifies the host using the volume device through the volume device. Specifically, the state transition notification generated by the storage system is transmitted to each volume device in the storage system. The host's multipathing software continuously monitors and captures notifications from the used volume devices, enabling the host to promptly obtain state transition notifications from the volume devices.
[0061] For example, after generating the state switching notification, the storage system sends a UA (Unit Attention, a method used by SCSI devices to notify hosts of important state changes) event notification of the SCSI (Small Computer System Interface) protocol through the volume device to transmit the state switching notification to the host.
[0062] In an embodiment of the present application, after generating a state switching notification, the storage system transmits the state switching notification to the host through the volume device. Each host connected to the storage system needs to call the data in the corresponding volume device. Therefore, transmitting the state switching notification through the volume device can enable the host to receive the state switching notification in a timely manner, and enable the host to update the path management status of each storage controller in a timely manner in response to the state switching notification, thereby selecting the read and write path of the storage controller in a non-isolated state for data reading and writing, thereby improving the efficiency of the host actively not selecting the storage controller in an isolated state.
[0063] An embodiment of the present application further provides a method for determining a data read and write path, which is applied to a host, wherein the host is connected to a storage system, and the storage system includes at least two storage controllers, each of which is used to control at least two read and write paths of the host. Figure 3 The second flowchart of the method for determining the path of data reading and writing in some embodiments of the present application is shown as follows: Figure 3 As shown, the method for determining the path for data reading and writing includes: Step 302: Receive a state switching notification transmitted by the storage system, where the state switching notification is used to determine the adjusted path management states of at least two storage controllers; In this embodiment, the state switching notification is a notification generated by the storage system and transmitted to the host. Specifically, after adjusting the path management state of at least one storage controller, the storage system transmits the state switching notification to at least one connected host based on the adjusted path management states of at least two storage controllers.
[0064] For example, a host installs multipathing software, which can manage read / write paths and maintain read / write path information. When a device on a read / write path is discovered, the host can obtain the identification information of the storage cluster, the identification information of the storage controller, and the path management status information of the storage controller via the SCSI protocol. The host can also maintain information related to the cluster and storage controller that supports querying the multipath devices aggregated by the current host, namely, the identification information of all storage controllers under the cluster identification information and the path management status information of all storage controllers. The multipathing software also enables the host to monitor, capture, and parse status switch notifications transmitted by the storage system.
[0065] Step 304: determining a target storage controller according to the state switching notification, wherein the target storage controller includes a storage controller whose path management state is a non-isolated state; In this embodiment, the state switching notification can notify the host of the adjusted path management states of the at least two storage controllers. After receiving the state switching notification, the host can determine the adjusted path management states of the at least two storage controllers based on the state switching notification. The host then determines a target storage controller that is in a non-isolated state based on the adjusted path management states of the at least two storage controllers.
[0066] Step 306: Read and write data to the storage system through the read and write path of the target storage controller.
[0067] In this embodiment, the target storage controller is a storage controller in a non-isolated state among at least two storage controllers. Data is read and written to the storage system through the read and write path of the target storage controller, which can avoid data read and write failure of the business IO sent by the host, and avoid fluctuations in the business IO sent by the host when the storage controller is maintained.
[0068] Specifically, there can be multiple hosts, all connected to the storage system. When the path management status of a storage controller in the storage system changes, the multiple hosts can simultaneously receive a state change notification from the storage system. Based on the state change notification, the multiple hosts can each select a read / write path of a non-isolated storage controller in the storage system to read and write data.
[0069] In an embodiment of the present application, the storage system can adjust the path management state of at least one storage controller in the storage system in response to a state switching instruction, and transmit a state switching notification to the host based on the adjusted path management state of at least two storage controllers, so that the host can respond to the state switching notification and actively stop reading and writing data through the read and write paths of the storage controller in an isolated state. There is no need for the user to perform path identification and path management operations on each host separately, which reduces the required amount of operations, improves operational convenience, and reduces the impact of maintenance on front-end services when the storage controller in the storage system is maintained. When the storage controller maintenance is completed, the host can promptly use the read and write paths of the maintained storage controller to read and write data, thereby avoiding waste of resources.
[0070] In some embodiments of the present application, determining the target storage controller based on the state switching notification includes: obtaining the identification information of the storage controller in the state switching notification, and the state switching event information of the storage controller; and determining the target storage controller based on the identification information and the state switching event information.
[0071] In this embodiment, the state switching notification is a notification generated by the storage system during the process of adjusting the path management state of the storage controller. The state switching notification needs to include the identification information of the storage controller whose path management state changes, and the state switching event information of the storage controller.
[0072] Specifically, after receiving a state change notification, the host can parse the notification to obtain the identification information and state change event information contained in the notification. The identification information is used by the host to identify the storage controller whose path management state has changed, and the state change event information is used by the host to determine the current path management state of the storage controller whose path management state has changed.
[0073] In an embodiment of the present application, the host also stores the path management status of at least two storage controllers. After the host determines the storage controller whose path management status has changed and its current path management status, it can update the path management status of at least two storage controllers and determine the target storage controller in a non-isolated state based on this, so that the host can quickly update the path management status of the storage controller. When the host uses the read and write path of the storage controller whose path management status has changed, the host can switch the read and write path in time according to the change in the path management status, thereby reducing the situation where the business IO drops to 0 when the host sends business IO, and improving the stability of the host sending business IO.
[0074] In some embodiments of the present application, the identification information includes first identification information of the first storage controller, and the state switching event information includes isolation event information; determining the target storage controller based on the identification information and the state switching event information includes: determining that the path management state of the first storage controller is switched from a non-isolated state to an isolated state based on the isolation event information and the first identification information, and marking the path management state of the first storage controller as an isolated state; determining the target storage controller among at least two storage controllers, wherein the target storage controller includes a storage controller other than the first storage controller.
[0075] In this embodiment, the host can determine that the storage controller whose path management status has changed is the first storage controller based on the first identification information, and the host can determine that the first storage controller is currently in the isolation state based on the isolation event information.
[0076] Specifically, when the storage system performs an isolation operation on the first storage controller among at least two storage controllers in response to a state switching instruction, that is, when the first storage controller switches from a non-isolated state to an isolated state, the storage system can extract the first identification information in the state switching instruction, as well as the corresponding isolation event information. A state switching notification can be generated based on the first identification information and the isolation event information, and the state switching notification can be transmitted to the host. After receiving the state switching notification, the host can extract the first identification information and the isolation event information therein, and thereby determine that the first storage controller is currently in an isolated state based on the first identification information and the isolation event information, mark the first storage controller as an isolated state, and use the storage controller other than the first storage controller as the target storage controller, and read and write data through the read and write path of the target storage controller, thereby actively not selecting the storage controller in the isolated state for data reading and writing.
[0077] Exemplarily, the host extracts the first identification information and isolation event information from the state switch notification through its installed multipathing software, and based on this information, marks the first storage controller as isolated. When a service I / O (Input / Output) needs to read or write data, the host actively deselects the first storage controller in the isolated state and instead actively selects a non-isolated storage controller, i.e., a storage controller other than the first storage controller among at least two storage controllers. The host then sends the service I / O to the read / write path of the target storage controller in the non-isolated state.
[0078] In an embodiment of the present application, when the storage system generates a state switching notification based on the first identification information and the isolation event information, and transmits the state switching notification to the host, the host can locate the first storage controller in the isolated state based on the state switching notification, and mark the first storage controller as being in the isolated state, thereby actively selecting other non-isolated storage controllers other than the first storage controller, thereby enabling the host to actively and smoothly switch the data reading and writing business to the read and write path corresponding to the non-isolated storage controller.
[0079] In some embodiments of the present application, the identification information of the storage controller includes the second identification information of the second storage controller, and the state switching event information includes the isolation release event information; determining the target storage controller based on the identification information and the state switching event information includes: determining that the path management state of the second storage controller is switched from the isolated state to the non-isolated state based on the isolation release event information and the second identification information, and marking the path management state of the second storage controller as the non-isolated state; determining the target storage controller among at least two storage controllers, wherein the target storage controller includes the second storage controller.
[0080] In this embodiment, the host can determine that the storage controller whose path management status has changed is the first storage controller based on the first identification information, and can determine that the first storage controller is currently in a non-isolated state based on the isolation release event information.
[0081] Specifically, when the storage system performs a de-isolation operation on the second storage controller among the at least two storage controllers in response to a state switching instruction, that is, when the second storage controller switches from an isolated state to a non-isolated state, the storage system can extract the second identification information in the state switching instruction, as well as the corresponding de-isolation event information. A state switching notification can be generated based on the second identification information and the de-isolation event information, and the state switching notification can be transmitted to the host. After receiving the state switching notification, the host can extract the second identification information and the de-isolation event information therein, and thereby determine that the second storage controller is currently in a non-isolated state based on the second identification information and the de-isolation event information, mark the second storage controller as a non-isolated state, and use the non-isolated storage controller including the second storage controller as the target storage controller, and perform data reading and writing through the read and write path of the target storage controller.
[0082] Exemplarily, the host extracts the second identification information and isolation release event information from the state switch notification through its installed multipathing software, and based on the second identification information and isolation release event information, marks the second storage controller as non-isolated. When a service I / O (Input / Output) needs to read or write data, the host selects a non-isolated storage controller that includes the second storage controller. Specifically, the host can send the service I / O to the read / write path of the target non-isolated storage controller, including the second storage controller.
[0083] In an embodiment of the present application, when the storage system generates a state switching notification based on the second identification information and the isolation release event information, and transmits the state switching notification to the host, the host can switch the mark of the second storage controller marked as isolated to a non-isolated state based on the state switching notification, thereby being able to select the read and write path of the second storage controller for data reading and writing, thereby realizing the rapid recovery of the application of the second storage controller that has been isolated, avoiding the isolated second storage controller from being in an unused state for a long time, and reducing the waste of storage resources.
[0084] An embodiment of the present application further provides a data read and write path determination device, which is applied to a storage system. The storage system is connected to at least one host and includes at least two storage controllers. The at least two storage controllers are respectively used to control at least two read and write paths of the host. Figure 4 One of the structural block diagrams of the data reading and writing path determination device in some embodiments of the present application is shown. Figure 4 As shown, the data reading and writing path determination device 400 includes: An adjustment module 402 is configured to adjust a path management state of at least one storage controller in response to a state switching instruction when a state switching instruction is received; The transmission module 404 transmits a state switching notification to at least one host based on the adjusted path management status of at least two storage controllers, so that the at least one host responds to the state switching notification and reads and writes data through the read and write path of the target storage controller, wherein the target storage controller includes a storage controller whose path management status is in a non-isolated state among the at least two storage controllers.
[0085] In an embodiment of the present application, the adjustment module 402 in the storage system can adjust the path management state of at least one storage controller in the storage system in response to a state switching instruction, and the transmission module 404 transmits a state switching notification to the host based on the adjusted path management state of at least two storage controllers, so that the host can respond to the state switching notification and actively stop reading and writing data through the read and write paths of the storage controller in an isolated state. There is no need for the user to perform path identification and path management operations on each host separately, which reduces the required amount of operations, improves operational convenience, and reduces the impact of maintenance on the front-end business when the storage controller in the storage system is maintained. When the storage controller maintenance is completed, the host can promptly use the read and write paths of the maintained storage controller to read and write data, thereby avoiding waste of resources.
[0086] An embodiment of the present application further provides a data read and write path determination device, which is applied to a host, wherein the host is connected to a storage system, and the storage system includes at least two storage controllers, and the at least two storage controllers are respectively used to control at least two read and write paths of the host. Figure 5 The second structural block diagram of the data reading and writing path determination device of some embodiments of the present application is shown as follows Figure 5 As shown, the data reading and writing path determination device 500 includes: A receiving module 502 is configured to receive a state switching notification transmitted by a storage system, where the state switching notification is used to determine the adjusted path management states of at least two storage controllers; A determination module 504 is configured to determine a target storage controller according to the state switching notification, wherein the target storage controller includes a storage controller whose path management state is a non-isolated state; The read / write module 506 is configured to read and write data to the storage system through the read / write path of the target storage controller.
[0087] In an embodiment of the present application, the receiving module 502 in the host is capable of receiving a status switching instruction from the storage system, and the determining module 504 is capable of determining the target storage controller in a non-isolated state based on the status switching notification, and the read-write module 506 is capable of responding to the status switching notification to actively stop reading and writing data through the read-write path of the storage controller in an isolated state. There is no need for the user to perform path identification and path management operations on each host separately, which reduces the required amount of operations, improves operational convenience, and reduces the impact of maintenance on the front-end business when the storage controller in the storage system is maintained. When the storage controller maintenance is completed, the host can promptly use the read-write path of the maintained storage controller to read and write data, thereby avoiding waste of resources.
[0088] For the description of the features in the embodiment corresponding to the device for determining a path for data reading and writing, reference can be made to the relevant description of the embodiment corresponding to the method for determining a path for data reading and writing, and no further details will be given here.
[0089] The embodiment of the present application also provides a data reading and writing system, such as Figure 1 As shown, the data reading and writing system includes: a storage system, the storage system includes at least two storage controllers, and the storage system is used to execute the steps of the path determination method applied to data reading and writing in the storage system; a switch, connected to the at least two storage controllers; at least one host, connected to the switch, and at least one host is connected to the at least two storage controllers through the switch, and the host is used to execute the path determination method applied to data reading and writing in the host.
[0090] In some embodiments of the present application, the storage system further includes: a volume device, the volume device being connected to at least two storage controllers, and the volume device being used to transmit a state switching notification to at least one host when adjusting the path management state of at least one storage controller.
[0091] Figure 6 A structural block diagram of a storage system in some embodiments of the present application is shown. Figure 6 As shown, the storage system 600 includes a path status operation module 602 , a storage controller status maintenance module 604 , and a storage controller IO traffic monitoring module 606 .
[0092] The path status operation module 602 is used to trigger isolation and release operations on storage controllers in the storage system, providing command lines and a system page function menu to execute and release isolation operations. Before executing an operation, the identification information and path status of all current storage controllers can be viewed. When executing an isolation operation or release isolation operation via a command line, the operation is performed on the specified storage controller using its identification information. The isolation operation or release isolation operation is executed via the system page function menu.
[0093] The storage controller state maintenance module 604 is used to set and maintain the path management state of the storage controller and, when the path management state of the storage controller changes, to send a state change event notification to the corresponding host via the volume device. For example, when the storage controller state is set to the isolated state, all volume devices under the storage controller generate an isolation event, event001, and transmit the state change notification to the host via the SCSI protocol's UA mechanism. When the controller state is set to the released isolation state, all volume devices under the controller generate an isolation event, event002, and transmit the corresponding state change notification to the host via the SCSI protocol's UA mechanism.
[0094] The storage controller IO traffic monitoring module 606 is used to monitor the IO traffic sent from the front-end business host to the controller to confirm whether the isolation or de-isolation operation is completed. Whenever a business IO is sent to the storage controller, the number and type of business IO will be counted in real time. The types of business IO include: read IO, write IO, and management IO. If the storage controller has business read and write IO with normal traffic before isolation, and no read and write IO after isolation, it means that the isolation is completed. If the storage controller has no business read and write IO before de-isolation, and has business read and write IO with normal traffic after de-isolation, it means that the de-isolation is completed. By periodically obtaining the read and write IO traffic on the controller of the isolation / de-isolation operation, it is possible to confirm whether the isolation / de-isolation operation is completed.
[0095] Figure 7 The structure block diagram of the host of some embodiments of the present application is shown as follows: Figure 7 As shown, the host includes: a path management module 702 , a state switching event monitoring module 704 and an IO routing module 706 .
[0096] Path management module 702 is used to manage read / write paths and maintain read / write path information. When a device on a read / write path is discovered, it can obtain the storage cluster identification information, storage controller identification information, and path management status information of the storage controller via the SCSI protocol. It can also maintain associated information about the cluster and storage controller that supports querying the current host's aggregated multipath devices, namely, the identification information and path management status information of all storage controllers under the cluster identification information.
[0097] The state switching event monitoring module 704 is used to monitor, capture, and parse the state switching notification after the storage controller state changes. Specifically, when the storage controller state changes, the state switching event monitoring module will monitor and capture the event. If the event is a controller isolation event of event001, the controller of the storage cluster corresponding to the path will be marked as isolation in progress. If it is already in isolation in progress or isolation completed, it will not be processed. For the controller marked as isolation in progress, all read and write paths currently belonging to the storage controller will be traversed, and the status of all read and write paths belonging to the storage controller will be set to "isolated" status, and then the controller status in the cluster and controller association information maintained by multi-path will be marked as "isolated". In this way, as long as any volume device receives the state switching notification of controller isolation, it can be guaranteed that all read and write paths belonging to the storage controller are isolated together, without having to wait for the state switching events in all volume devices to be captured.
[0098] The IO routing module 706 is used to not issue service IO to the read / write path corresponding to the storage controller in the isolated state. In addition to determining whether the path status is available, the IO routing module also determines whether the storage controller corresponding to the read / write path is in the isolated state. If it is in the isolated state, the path is not selected.
[0099] Figure 8 The path isolation method of the data reading and writing system of some embodiments of the present application is shown. Figure 8 As shown, the path isolation method includes: Step 801: The storage system executes a path isolation instruction of the storage controller; Step 802: The storage system sets the path management state of the storage controller to an isolated state. Step 803: The storage system generates a status switching notification and notifies the corresponding host via the volume device. Step 804: The storage system periodically checks whether there are any read / write services on the read / write paths of the storage controller in the isolated state. If the judgment result is yes, the process continues with step 804; otherwise, the process goes to step 805. Step 805: The storage system marks the storage controller as being in isolation complete state. Step 806: The host captures a status switching notification from the storage controller of the storage system; Step 807: Parse the identification information of the storage controller in the state switching notification; Step 808: Setting the read / write path of the corresponding storage controller to an isolated state; Step 809: When selecting a read / write path, actively do not select a read / write path of a storage controller in an isolated state.
[0100] Figure 9 The path de-isolation method of the data reading and writing system of some embodiments of the present application is shown. Figure 9 As shown, the path de-isolation method includes: Step 901: The storage system executes a path isolation release instruction from the storage controller. Step 902: The storage system sets the path management state of the storage controller to a non-isolated state. Step 903: The storage system generates a status switching notification and notifies the corresponding host via the volume device. Step 904: The storage system periodically checks whether there are any read / write services on the read / write paths of the storage controller in the isolated state. If the judgment result is no, the process continues with step 904; if so, the process continues with step 905. Step 905: The storage system marks the storage controller as being in a state of de-isolation completion. Step 906: The host captures a status switching notification from the storage controller of the storage system; Step 907: Parse the identification information of the storage controller in the state switching notification; Step 908: Set the read / write path of the corresponding storage controller to a non-isolated state; Step 909 : When selecting a read / write path, actively select a read / write path of a storage controller in a non-isolated state.
[0101] An embodiment of the present application further provides an electronic device, Figure 10 The structural block diagram of the electronic device of some embodiments of the present application is shown as follows: Figure 10 As shown, the electronic device 1000 includes a memory 1002 and a processor 1004. The memory 1002 stores a computer program, and the processor 1004 is configured to run the computer program to perform the steps in any of the above method embodiments.
[0102] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above-mentioned data reading and writing path determination method embodiments when running.
[0103] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk, or an optical disk.
[0104] An embodiment of the present application further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps in any of the above-mentioned data reading and writing path determination methods are implemented.
[0105] An embodiment of the present application also provides another computer program product, including a non-volatile computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it implements the steps of any of the above-mentioned data reading and writing path determination method embodiments.
[0106] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the above description has generally described the components and steps of each example according to their functions. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0107] The above is a detailed introduction to a method and device for determining a path for reading and writing data, and an electronic device provided by the present application. Specific examples are used herein to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and core idea of the present application. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the scope of protection of the claims of the present application.
Claims
1. A method for determining a path for reading and writing data, characterized in that: Applied to a storage system, the storage system is connected to at least one host, the storage system includes at least two storage controllers, the at least two storage controllers are respectively used to control at least two read and write paths of the host, and the data read and write path determination method includes: In case of receiving a state switching instruction, adjusting the path management state of at least one storage controller in response to the state switching instruction; Based on the adjusted path management status of at least two of the storage controllers, a state switching notification is transmitted to at least one of the hosts, so that at least one of the hosts responds to the state switching notification and reads and writes data through the read and write path of the target storage controller, wherein the target storage controller includes at least two storage controllers whose path management status is in a non-isolated state.
2. The method for determining a path for data reading and writing according to claim 1, wherein: The transmitting a state switching notification to at least one of the hosts based on the adjusted path management states of the at least two storage controllers includes: When a path management state of a first storage controller among the at least two storage controllers is switched from a non-isolated state to an isolated state, obtaining first identification information of the first storage controller; Based on the first identification information and the isolation event information, the state switching notification is transmitted to at least one of the hosts, wherein the first identification information is used by at least one of the hosts to determine the target storage controller, and the target storage controller includes a storage controller other than the first storage controller, and the isolation event information is used by at least one of the hosts to mark the first storage controller as an isolated state.
3. The method for determining a path for data reading and writing according to claim 2, wherein: In the case where the path management state of a first storage controller among the at least two storage controllers is switched from a non-isolated state to an isolated state, after obtaining the first identification information of the first storage controller, the method for determining the path for reading and writing data further includes: At intervals of a first time length, detecting whether a first read / write service exists in a read / write path of the first storage controller, where the first read / write service includes a read / write service issued by at least one of the hosts; In a case where the first read / write service does not exist on the read / write path of the first storage controller, marking the path management state of the first storage controller as an isolation completion state; In a case where the first read / write service exists on the read / write path of the first storage controller, the path management state of the first storage controller is marked as an isolation-in-progress state.
4. The method for determining a path for data reading and writing according to claim 1, wherein: The transmitting a state switching notification to at least one of the hosts based on the adjusted path management states of the at least two storage controllers includes: When a path management state of a second storage controller among the at least two storage controllers is switched from an isolated state to a non-isolated state, obtaining second identification information of the second storage controller; Based on the second identification information and the isolation release event information, the state switching notification is transmitted to at least one of the hosts, wherein the second identification information is used by at least one of the hosts to determine the target storage controller, and the target storage controller includes the second storage controller, and the isolation release event information is used by at least one of the hosts to mark the path management status of the second storage controller as a non-isolated state.
5. The method for determining a path for data reading and writing according to claim 4, wherein: In the case where the path management state of the second storage controller among the at least two storage controllers is switched from the isolated state to the non-isolated state, after obtaining the second identification information of the second storage controller, the method for determining the path for reading and writing data further includes: At intervals of a second time length, detecting whether a second read / write service exists in the read / write path of the second storage controller, where the second read / write service includes a service sent by at least one of the hosts; In a case where the second read / write service does not exist on the read / write path of the second storage controller, marking the path management state of the second storage controller as a state of releasing isolation in progress; In a case where the second read / write service exists on the read / write path of the second storage controller, the path management state of the second storage controller is marked as a de-isolation completion state.
6. The method for determining a path for reading and writing data according to any one of claims 1 to 5, characterized in that: The storage system further includes at least one volume device; The transmitting a state switching notification to at least one of the hosts based on the path management states of at least two of the storage controllers includes: A state switching notification is transmitted to at least one of the hosts through the at least one volume device.
7. A method for determining a path for reading and writing data, characterized in that: Applied to a host, the host is connected to a storage system, the storage system includes at least two storage controllers, the at least two storage controllers are respectively used to control at least two read and write paths of the host, and the data read and write path determination method includes: receiving a state switching notification transmitted by the storage system, where the state switching notification is used to determine adjusted path management states of at least two of the storage controllers; determining a target storage controller according to the state switching notification, wherein the target storage controller includes a storage controller whose path management state is a non-isolated state; Data is read and written to the storage system through the read and write path of the target storage controller.
8. The method for determining a path for data reading and writing according to claim 7, wherein: The determining the target storage controller according to the state switching notification includes: Obtaining identification information of the storage controller in the state switching notification and state switching event information of the storage controller; The target storage controller is determined according to the identification information and the state switching event information.
9. The method for determining a path for data reading and writing according to claim 8, wherein: The identification information includes first identification information of the first storage controller, and the state switching event information includes isolation event information; The determining the target storage controller according to the identification information and the state switching event information includes: determining, based on the isolation event information and the first identification information, that the path management state of the first storage controller is switched from a non-isolated state to an isolated state, and marking the path management state of the first storage controller as an isolated state; A target storage controller among the at least two storage controllers is determined, wherein the target storage controller includes a storage controller other than the first storage controller.
10. The method for determining a path for data reading and writing according to claim 8, wherein: The identification information of the storage controller includes second identification information of the second storage controller, and the state switching event information includes isolation release event information; The determining the target storage controller according to the identification information and the state switching event information includes: determining, based on the isolation release event information and the second identification information, that the path management state of the second storage controller is switched from the isolated state to the non-isolated state, and marking the path management state of the second storage controller as the non-isolated state; A target storage controller among the at least two storage controllers is determined, wherein the target storage controller includes the second storage controller.
11. A data reading and writing system, characterized in that: include: A storage system comprising at least two storage controllers, wherein the storage system is configured to execute the steps of the method for determining a path for reading and writing data according to any one of claims 1 to 6; a switch connected to at least two of the storage controllers; At least one host is connected to the switch, and at least one of the hosts is connected to at least two of the storage controllers through the switch, and the host is used to execute the data reading and writing path determination method according to any one of claims 7 to 10.
12. The data reading and writing system according to claim 11, characterized in that: The storage system further includes: A volume device is connected to at least two of the storage controllers, and is configured to transmit a state switching notification to at least one of the hosts when adjusting a path management state of at least one storage controller.
13. An electronic device, characterized in that: include: memory for storing computer programs; A processor, configured to implement the steps of the method for determining a path for reading and writing data as claimed in any one of claims 1 to 10 when executing the computer program.
14. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, wherein when the computer program is executed by a processor, the steps of the method for determining a path for reading and writing data according to any one of claims 1 to 10 are implemented.
15. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method for determining a path for reading and writing data according to any one of claims 1 to 10 are implemented.
Citation Information
Patent Citations
Path switching control method and system in multipath storage system
CN101309300A
Multi-control storage system IO (Input / Output) dispatching method and multi-control storage system
CN107632788A
Abnormality monitoring method, system and device, and computer readable storage medium
CN115640188A
Node abnormal event processing method, network card and storage cluster
CN118118321A
Storage system and storage method
CN120066403A