Data read-write path determination method, electronic device, and readable storage medium
By receiving state switching instructions in the storage system to adjust the path management status of the storage controller and transmitting notifications, the problem of insufficient convenience of isolated operation of the storage controller in the storage system is solved, and more efficient data read and write path management is achieved.
Patent Information
- Application Number
- CN202511215769.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-08-28
- Publication Date
- 2025-11-28
- Estimated Expiration
- 2045-08-28
AI Technical Summary
In storage systems, existing technologies suffer from the problem of large workload and inconvenience when performing path identification and isolation operations on storage controllers for multiple hosts.
By receiving state switching instructions in the storage system, adjusting the path management state of the storage controller, and transmitting state switching notifications to the host, the host responds to the notification by reading and writing data through the read and write path of the target storage controller, thus avoiding the need for separate path identification and management for each host.
This reduces the workload, improves operational convenience, minimizes the impact of storage controller maintenance on front-end operations, and avoids resource waste.
Smart Images

Figure CN120704620B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of storage, and particularly relates to a path determination method for data read and write, an electronic device and a readable storage medium. BACKGROUND
[0002] With the development of global informatization and digitization, data information of various industries is becoming more and more huge, and a storage system has become a main medium for backend data storage. The storage system is redundantly designed to prevent single point failure in architecture, for example, multiple storage controllers are arranged in the storage system, and multiple front-end cards are configured on each storage controller.
[0003] In the related art, for the scenario of active replacement and maintenance of a storage controller or a front-end card, an active isolation operation of a corresponding storage controller path is usually performed on a host side, so that the business host actively does not perform data read and write through the path corresponding to the isolated storage controller. However, a set of storage systems usually serve multiple business hosts, and thus the identification and isolation operation of the storage controller path needs to be performed on all business host sides, which leads to the problems of large operation amount and insufficient operation convenience. SUMMARY
[0004] The present application provides a path determination method for data read and write, an electronic device and a readable storage medium, to at least solve the problem of insufficient operation convenience caused by manual operation on multiple hosts when isolating a storage controller in the related art.
[0005] The present application provides a path determination method for data read and write, applied to a storage system, the storage system being connected with at least one host, the storage system including at least two storage controllers, the at least two storage controllers being respectively used to control at least two read and write paths of the host, the path determination method for data read and write including: in the case of receiving a state switching instruction, adjusting a path management state of at least one storage controller in response to the state switching instruction; based on the adjusted path management state of the at least two storage controllers, transmitting a state switching notification to the at least one host, so that the at least one host performs data read and write through a read and write path of a target storage controller in response to the state switching notification, wherein the target storage controller includes a storage controller in the at least two storage controllers, and the path management state of the storage controller is in a non-isolation state.
[0006] The application further provides a path determination method for data reading and writing, applied to a host, wherein the host is connected with a storage system, the storage system comprises at least two storage controllers, the at least two storage controllers are respectively used for controlling at least two reading and writing paths of the host, and the path determination method for data reading and writing comprises the following steps: receiving a state switching notification transmitted by the storage system, wherein the state switching notification is used for determining an adjusted path management state of the at least two storage controllers; determining a target storage controller according to the state switching notification, wherein the target storage controller comprises a storage controller with a non-isolated path management state; and performing data reading and writing on the storage system through the reading and writing path of the target storage controller.
[0007] The application further provides a data reading and writing system, comprising: a storage system, wherein the storage system comprises at least two storage controllers, and the storage system is used for performing the steps of the path determination method for data reading and writing applied to the storage system; a switch, connected with the at least two storage controllers; and at least one host, connected with the switch, and the at least one host is connected with the at least two storage controllers through the switch, and the host is used for performing the path determination method for data reading and writing applied to the host.
[0008] The application further provides an electronic device, comprising: a memory, used for storing a computer program; and a processor, used for implementing the steps of any one of the path determination methods for data reading and writing when the computer program is executed.
[0009] The application further provides a computer readable storage medium, wherein the computer readable storage medium stores a computer program, and the computer program is used for implementing the steps of any one of the path determination methods for data reading and writing when the computer program is executed by a processor.
[0010] The application further provides a computer program product, comprising a computer program, and the computer program is used for implementing the steps of any one of the path determination methods for data reading and writing when the computer program is executed by a processor.
[0011] According to the 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 the at least two storage controllers, so that the host can actively stop data reading and writing through the reading and writing path of the storage controller in the isolated state in response to the state switching notification, without the need for the user to separately perform path identification and path management operations on each host, thereby reducing the required operation amount, improving operation convenience, reducing the influence of the maintenance of the storage controller in the storage system on the front-end business, and enabling the host to use the reading and writing path of the maintenance-completed storage controller for data reading and writing in a timely manner after the maintenance of the storage controller is completed, thereby avoiding resource waste. BRIEF DESCRIPTION OF DRAWINGS
[0012] In order to more clearly illustrate the embodiments of the present application, the following will briefly introduce the drawings needed to be used in the embodiments. Obviously, the drawings described below are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative effort based on these drawings.
[0013] Figure 1 The structural diagram of the data read-write system of some embodiments of the present application is shown.
[0014] Figure 2 The flow chart of the path determination method of the data read-write of some embodiments of the present application is shown.
[0015] Figure 3 The flow chart of the path determination method of the data read-write of some embodiments of the present application is shown.
[0016] Figure 4 The structural block diagram of the path determination device of the data read-write of some embodiments of the present application is shown.
[0017] Figure 5 The structural block diagram of the path determination device of the data read-write of some embodiments of the present application is shown.
[0018] Figure 6 The structural block diagram of the storage system of some embodiments of the present application is shown.
[0019] Figure 7 The structural block diagram of the host of some embodiments of the present application is shown.
[0020] Figure 8 The path isolation method of the data read-write system of some embodiments of the present application is shown.
[0021] Figure 9 The path isolation method of the data read-write system of some embodiments of the present application is shown.
[0022] Figure 10 The structural block diagram of the electronic device of some embodiments of the present application is shown.
[0023] Figure 1 The reference signs in the drawings are as follows:
[0024] 100, data read-write system, 110, host, 120, storage system, 121, storage controller, 122, volume device, 130, switch. DETAILED DESCRIPTION
[0025] With reference to the drawings of the embodiments of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described. Obviously, the described embodiments are only a part of the embodiments of the present application, but not all embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the protection scope of the present application.
[0026] It should be noted that, in the description of the present application, the terms "comprise", "contain" or any other variants thereof are intended to cover non-exclusive inclusion, so that the process, method, article or equipment comprising a series of elements not only includes those elements, but also includes other elements not explicitly listed or inherent to such process, method, article or equipment. The terms "first", "second" and the like in the present application are used to distinguish similar objects, but not to describe a specific order or sequence.
[0027] In order for those skilled in the art to better understand the present application, the present application will be further described in detail below with reference to the drawings and specific embodiments.
[0028] In combination with the specific application environment architecture or specific hardware architecture on which the path determination method of data reading and writing is executed, the specific application environment architecture or specific hardware architecture is described here.
[0029] In some embodiments of the present application, for example, Figure 1 The architecture schematic diagram of the data reading and writing system of some embodiments of the present application is shown as follows. Figure 1 As shown in the figure, 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.
[0030] The host 110 includes a fiber channel bus adapter (FC HBA, Fibre Channel Host Bus Adapter), and each fiber channel bus adapter is configured with a physical port, for example: Figure 1 The fiber channel bus adapter on the host 110 side in the figure includes two physical ports, port 1 and port 2.
[0031] The storage system 120 includes two storage controllers 121, a volume device 122 and a fiber channel bus adapter, each storage controller 121 corresponds to a fiber channel bus adapter, and each fiber channel bus adapter is configured with a physical port, for example: Figure 1 The fiber channel bus adapter A on the storage system 120 side in the figure includes two physical ports, port A and port B; the fiber channel bus adapter B includes two physical ports, port C and port D.
[0032] It can be understood that the read-write path of the host 110 includes the host 110, the fiber channel bus adapter on the host 110 side, the switch 130, the fiber channel bus adapter on the storage system 120 side, and the storage controller 121. The storage controller 121 can control the read-write path corresponding to the host 110 connected to the storage controller 121. For example, as shown in Figure 1 The number of switches 130 is two, namely switch A and switch B.
[0033] As shown in Figure 1 The storage system 120 can be used by a plurality of hosts 110, including host A, host B,..., and host N. The user service software on the host uses the volume provided by the storage system 120 for data access, and load balancing and fault redundancy are achieved through the multi-path software of the storage system 120. To avoid single point failure, the storage system 120 is redundantly designed in architecture, and the storage system 120 has two storage controllers 121, including storage controller A and storage controller B. After any one of the storage controller 121 nodes fails, the other controller node will take over all storage services, and the front-end host service will not be affected.
[0034] Embodiments of the present application provide a data read-write path determination method, applied to a storage system, the storage system being connected with at least one host, the storage system including at least two storage controllers, the at least two storage controllers being respectively used for controlling at least two read-write paths of the host, Figure 2 A flowchart of the data read-write path determination method of some embodiments of the present application is shown, as shown in Figure 2 The data read-write path determination method includes:
[0035] Step 202, in the case of receiving a state switching instruction, adjusting the path management state of the at least one storage controller in response to the state switching instruction;
[0036] 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.
[0037] For example, in the case of needing to actively maintain or complete maintenance of the nodes of the storage controllers in the storage system, the user can transmit a state switching instruction to the storage system through manual operation, so as to change the path management state of the storage controller. The maintenance operation includes but is not limited to replacing the storage controller front-end card, replacing the storage controller hardware, etc.
[0038] Specifically, for example, in the case of replacing the front-end card of the storage controller, the 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-isolation state to an isolation state. After the front-end card of the storage controller 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 isolation state to a non-isolation state.
[0039] In this embodiment, the storage system includes an operable panel, which can display a system page function menu, through which the switching of the path management state in the storage system can be triggered, that is, the state switching instruction is issued to the storage system, so as to trigger the isolation operation of the storage controller or the disisolation operation of the storage controller. Before the operation is performed, the identification information and the path state information of each storage controller can also be viewed through the system page function menu, each storage controller corresponds to a unique identification information, and the path state information can reflect the path management state of the storage controller.
[0040] Step 204, based on the adjusted path management state of the at least two storage controllers, a state switching notification is transmitted to the at least one host, so that the at least one host responds to the state switching notification and performs data read and write through the read and write path of the target storage controller, wherein the target storage controller includes the storage controller in the at least two storage controllers whose path management state is in a non-isolation state.
[0041] In this embodiment, the storage system responds to the state switching instruction to trigger the adjustment of the path management state of at least one of the at least two storage controllers, at this time, based on the adjusted path management state of the at least two storage controllers, a state switching notification is transmitted to the at least one host connected, the state switching notification can notify the host of the adjusted path management state of the at least two storage controllers. After receiving the state switching notification, the host 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 the non-isolation state. The host performs data read and write on the storage system through the read and write path of the target storage controller, which can avoid the invalidation of the data read and write of the service IO issued by the host, and avoid the 0 drop fluctuation of the service IO issued by the host during the maintenance of the storage controller.
[0042] Specifically, the number of hosts can be multiple, and the multiple hosts are connected with the storage system, and the storage system can synchronously transmit the state switching notification to the multiple hosts, so that when the path management state of the storage controller in the storage system changes, the multiple hosts can synchronously receive the state switching notification. Each of the multiple hosts can select the read-write path of the storage controller in the non-isolation state in the storage system based on the state switching notification to read and write data. The state switching notification is a notification generated by the storage system based on the adjusted path management state of at least two storage controllers, that is, the state switching notification at least includes the identification information and the path management state information of the storage controller whose path management state changes, so that the host can determine the storage controller in the non-isolation state in the storage system based on the identification information and the path management state information.
[0043] The following is described by taking Figure 1 For example, the number of hosts is N, and the storage system includes storage controller 1 and storage controller 2, a total of two storage controllers. In response to the state switching instruction, the storage system isolates the storage controller 1, and transmits the state switching notification to the host 1 and the host 2. After the host 1 and the host 2 receive the state switching notification, the host 1 and the host 2 can determine that the storage controller 1 is in the isolation state, and then actively do not select the read-write path of the storage controller 1 to read and write data.
[0044] For example, the host is installed with multi-path software, and the host can capture the state switching notification sent by the storage system through the multi-path software, and analyze the state switching notification through the multi-path software, so as to analyze the identification information of the storage controller whose path management state changes and the state switching event information. The host can determine the specific state of the changed storage controller through the state switching event information.
[0045] In the embodiment of the application, the storage system can adjust the path management state of at least one storage controller in the storage system in response to the state switching instruction, and transmit the state switching notification to the host based on the adjusted path management state of at least two storage controllers, so that the host can actively stop reading and writing data through the read-write path of the storage controller in the isolation state in response to the state switching notification. The user does not need to separately perform path identification and path management operations on each host, thereby reducing the required operation amount, improving the operation convenience, reducing the impact of the storage controller in the storage system on the front-end business during maintenance, and enabling the host to use the read-write path of the maintenance-completed storage controller to read and write data in time after the maintenance of the storage controller is completed, thereby avoiding resource waste.
[0046] In some embodiments of the present application, transmitting a state switching notification to at least one host based on the path management state of at least two storage controllers includes: in the case that the path management state of a first storage controller in the at least two storage controllers is switched from a non-isolation state to an isolation state, obtaining first identification information of the first storage controller; and transmitting the state switching notification to the at least one host according to the first identification information and isolation event information, wherein the first identification information is used by the at least one host to determine a 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 the at least one host to mark the first storage controller as being in the isolation state.
[0047] In this embodiment, the storage system generates a state switching notification in the process of adjusting the path management state of the storage controller, and the state switching notification needs to include the identification information of the storage controller whose path management state is changed and the state switching event information of the storage controller.
[0048] When the storage system performs an isolation operation on a first storage controller in the at least two storage controllers in response to a state switching instruction, that is, the first storage controller is switched from a non-isolation state to an isolation state, the storage system can extract the first identification information in the state switching instruction and the corresponding isolation event information. According to the first identification information and the isolation event information, a state switching notification can be generated and transmitted to the host.
[0049] After receiving the state switching notification, the host can extract the first identification information and the isolation event information therein, so as to determine that the first storage controller is currently in the isolation state based on the first identification information and the isolation event information, and take the storage controllers other than the first storage controller as target storage controllers to perform data read / write through the read / write paths of the target storage controllers, so as to actively avoid selecting the storage controller in the isolation state to perform data read / write.
[0050] In the present embodiment, when the first storage controller is switched from a non-isolation state to an isolation state, the storage system can obtain the first identification information of the first storage controller and the isolation event information, 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 isolation state based on the state switching notification and mark the first storage controller, thereby actively selecting the storage controllers in the non-isolation state other than the first storage controller, and achieving that the host can actively perform smooth switching of data read / write services to the read / write paths corresponding to the storage controllers in the non-isolation state.
[0051] In some embodiments of the present application, in the case that the path management state of the first storage controller in the at least two storage controllers is switched from the non-isolation state to the isolation state, after the first identification information of the first storage controller is obtained, the path determination method for data read and write further comprises: every interval of the first time length, detecting whether the read and write path of the first storage controller exists a first read and write service, the first read and write service including a service issued by any host in the at least one host; in the case that the read and write path of the first storage controller does not exist the first read and write service, marking the path management state of the first storage controller as an isolation completion state; in the case that the read and write path of the first storage controller exists the first read and write service, marking the path management state of the first storage controller as an isolation performing state.
[0052] In this embodiment, after the storage system sets the first storage controller to the isolation state in response to the state switching instruction, since there may be unfinished service IO in the read and write path of the first storage controller, it is necessary to complete the unfinished service IO and continuously not receive new service IO before determining the isolation completion state, at this time, the maintenance of the first storage controller by the user can avoid the data read and write invalidation of the service IO issued by the host, and avoid the service IO issued by the host from appearing drop 0 fluctuation when the storage controller is maintained.
[0053] In the process of switching the first storage controller from the non-isolation state to the isolation state, the first storage controller has three path management states, including: the non-isolation state, the isolation performing state and the isolation completion state. Among them, the non-isolation state is a state of not starting to isolate the first storage controller, and the read and write path of the first storage controller in the non-isolation state can be normally used by the host; the isolation performing state is a state that the storage system controls the first storage controller to be in the isolation state, the read and write path of the first storage controller no longer receives new service IO, and there is unfinished service IO in the read and write path of the first storage controller; the isolation completion state is a state that the storage system controls the first storage controller to be in the isolation state, the read and write path of the first storage controller no longer receives new service IO, and there is no unfinished service IO in the read and write path of the first storage controller. It should be noted that, in order to avoid the service IO from appearing drop 0 fluctuation when the storage controller is maintained, and improve the data read and write efficiency, it is necessary to maintain the storage controller in the storage system in the isolation completion state.
[0054] In this embodiment, the storage system periodically detects whether the read-write path of the first storage controller has the first read-write service from any host in a first time interval when the first storage controller is switched from the non-isolation state to the isolation state. If the first read-write service exists, the path management state of the first storage controller is marked as the isolation in progress state. At this time, the user can check the isolation in progress state through the system page function menu displayed by the operable panel, and no maintenance work of the first storage controller is performed. If the first read-write service does not exist, the path management state of the first storage controller is marked as the isolation complete state. At this time, the user can check the isolation complete state through the system page function menu displayed by the operable panel, and the maintenance work of the first storage controller can be started.
[0055] For example, the first time interval is 3 minutes to 10 minutes.
[0056] In the embodiment, the storage system can determine whether the first storage controller is in the isolation complete state or the isolation in progress state by periodically detecting whether the first read-write service exists in the read-write path of the first storage controller, so that the user can know whether the first storage controller is in the complete state in time, and thus it is determined whether the maintenance of the first storage controller is started, and the data read-write stability of the storage system in the maintenance stage is further improved.
[0057] In some embodiments of the present application, the state switching notification is transmitted to the at least one host based on the adjusted path management states of the at least two storage controllers, including: in the case that the path management state of the second storage controller in the at least two storage controllers is switched from the isolation state to the non-isolation state, obtaining second identification information of the second storage controller; and transmitting the state switching notification to the at least one host according to the second identification information and isolation release event information, wherein the second identification information is used for the at least one host to determine a target storage controller, and the target storage controller includes the second storage controller, and the isolation release event information is used for the at least one host to mark the path management state of the second storage controller as the non-isolation state.
[0058] In this embodiment, the storage system generates the state switching notification in 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 is changed, and the state switching event information of the storage controller.
[0059] When the storage system performs the disisolation operation on the second storage controller in the at least two storage controllers in response to the state switching instruction, that is, the second storage controller switches from the isolated state to the non-isolated state, the storage system can extract the second identification information in the state switching instruction and the corresponding disisolation event information. The state switching notification can be generated according to the second identification information and the disisolation event information, and the state switching notification is transmitted to the host.
[0060] After receiving the state switching notification, the host can extract the second identification information and the disisolation event information in the state switching notification, so as to determine that the second storage controller is currently in the non-isolated state based on the second identification information and the disisolation event information, and take the storage controller in the non-isolated state including the second storage controller as a target storage controller, and perform data read and write through the read and write path of the target storage controller, so as to quickly recover the use of the disisolation second storage controller.
[0061] In the embodiments of the present application, when the second storage controller switches from the isolated state to the non-isolated state, the storage system can obtain the second identification information of the second storage controller and the disisolation event information, and generate the state switching notification based on the second identification information and the disisolation event information, and transmit the state switching notification to the host, so that the host can switch the second storage controller marked as the isolated state to the non-isolated state based on the state switching notification, so as to select the read and write path of the second storage controller to perform data read and write, and realize the quick recovery of the application of the disisolation second storage controller, avoid the disisolation second storage controller in the non-use state for a long time, and reduce the waste of storage resources.
[0062] In some embodiments of the present application, in the case where the path management state of the second storage controller in the at least two storage controllers switches from the isolated state to the non-isolated state, after the second identification information of the second storage controller is obtained, the path determination method of data read and write further includes: detecting whether the read and write path of the second storage controller exists a second read and write service every second time length, the second read and write service including a service issued by any host in the at least one host; in the case where the read and write path of the second storage controller does not exist the second read and write service, marking the path management state of the second storage controller as the disisolation operation state; in the case where the read and write path of the second storage controller exists the second read and write service, marking the path management state of the second storage controller as the disisolation completion state.
[0063] In this embodiment, after the storage system sets the second storage controller to the non-isolation state in response to the state switching instruction, since there can be no service IO issued by the host in the read-write path of the second storage controller temporarily, it is necessary to determine that the second storage controller is in the dis-isolation completion state only when the second storage controller receives new service IO.
[0064] During the process of switching the second storage controller from the isolation state to the non-isolation state, the second storage controller has three path management states, including the isolation state, the dis-isolation performing state and the dis-isolation completion state. The isolation state is a state in which the dis-isolation of the second storage controller has not started, and the read-write path of the second storage controller in the isolation state cannot be normally used by the host. The dis-isolation performing state is a state in which the storage system controls the second storage controller to be in the non-isolation state, and the read-write path of the second storage controller can receive new service IO, but there can be no service IO issued by the host to the read-write path of the second storage controller temporarily. The dis-isolation completion state is a state in which the storage system controls the second storage controller to be in the non-isolation state, and the read-write path of the second storage controller has received new service IO.
[0065] In this embodiment, when the storage system controls the second storage controller to switch from the isolation state to the non-isolation state, the storage system periodically detects whether there is second read-write service from any host in the read-write path of the second storage controller in a second time interval. If there is second read-write service, the path management state of the second storage controller is marked as the dis-isolation completion state. If there is no second read-write service, the path management state of the second storage controller is marked as the dis-isolation performing state. The user can check the dis-isolation completion state or the dis-isolation performing state through the system page function menu displayed by the operable panel.
[0066] Exemplarily, the second time interval is 3 minutes to 10 minutes.
[0067] In the embodiments of the present application, the storage system can determine whether the second storage controller is in the dis-isolation completion state or the dis-isolation performing state by periodically detecting whether there is second read-write service in the read-write path of the second storage controller, so that the user can know whether the second storage controller is in the dis-isolation completion state or the dis-isolation performing state in time, thereby judging the maintenance effect on the second storage controller, and avoiding misjudgment of the maintenance effect on the second storage controller due to the inability to know whether the second storage controller is in the dis-isolation completion state or the dis-isolation performing state in time.
[0068] In some embodiments of the present application, the storage system further includes at least one volume device; and the storage system transmits the state switching notification to the at least one host based on the path management state of the at least two storage controllers, including transmitting the state switching notification to the at least one host through the at least one volume device.
[0069] In this embodiment, the storage system further comprises volume devices, the volume devices are used to store data, and the host can perform read / write operations on the data in the volume devices through the read / write paths. The number of the volume devices is at least one, that is, the storage system can comprise one or more volume devices.
[0070] For example, the storage system comprises one volume device, and at least two storage controllers are connected to the volume device, and the storage controllers can control the read / write paths of the host for reading and writing data in the volume device.
[0071] As shown in Figure 1 the storage system comprises two volume devices, and each of the at least two storage controllers is connected to the two volume devices, and each of the storage controllers can control the read / write paths of the host for reading and writing data in the at least two volume devices.
[0072] In this embodiment, after the storage system generates the state switching notification, the storage system notifies the host using the volume device through the volume device. Specifically, the state switching notification generated by the storage system is transmitted to each volume device in the storage system, and the multi-path software of the host continuously listens to the notification in the volume device used by the host, so that the host can timely obtain the state switching notification in the volume device.
[0073] For example, after the storage system generates the state switching notification, the storage system transmits the state switching notification to the host through the UA (Unit Attention, a way used by SCSI (Small Computer System Interface) devices to notify the host of important state changes) event notification of the SCSI (Small Computer System Interface) protocol.
[0074] In the embodiments of the present application, after the storage system generates the 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 make the host receive the state switching notification in time, and make the host update the path management state of each storage controller in time in response to the state switching notification, so as to select the read / write path of the storage controller in the non-isolation state for data reading and writing, thereby improving the efficiency of the host actively selecting the storage controller in the non-isolation state.
[0075] The embodiments of the present application also provide a path determination method for data reading and writing, which is applied to a host, the host is connected to a storage system, the storage system comprises at least two storage controllers, the at least two storage controllers are respectively used to control at least two read / write paths of the host, Figure 3Figure 2 shows a flowchart of a method for determining a data read-write path according to some embodiments of the present application. Figure 3 As shown in Figure 2, the method for determining a data read-write path comprises the following steps.
[0076] In step 302, a state switching notification transmitted by a storage system is received, and the state switching notification is used to determine an adjusted path management state of at least two storage controllers.
[0077] 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 host connected based on the adjusted path management state of at least two storage controllers.
[0078] For example, the host installs multi-path software, through which read-write path management, read-write path information maintenance can be performed. When a device on the read-write path is discovered, identification information of a storage cluster of the read-write path, identification information of a storage controller, and path management state information of the storage controller can be obtained through the SCSI protocol, and the association information of the cluster and the storage controller supporting the query of the current host aggregation multi-path device can be maintained, i.e., the identification information of all storage controllers and the path management state information of all storage controllers under the cluster identification information. The multi-path software also enables the host to listen to, capture, and analyze the state switching notification transmitted by the storage system.
[0079] In step 304, a target storage controller is determined according to the state switching notification, wherein the target storage controller includes a storage controller with a non-isolated path management state.
[0080] In this embodiment, the state switching notification can notify the host of the adjusted path management state of at least two storage controllers. After receiving the state switching notification, the host can determine the adjusted path management state of at least two storage controllers through the state switching notification, and the host can determine a target storage controller in a non-isolated state according to the adjusted path management state of at least two storage controllers.
[0081] In step 306, data read-write is performed on the storage system through the read-write path of the target storage controller.
[0082] In this embodiment, the target storage controller is a storage controller in a non-isolated state among at least two storage controllers, and data read-write is performed on the storage system through the read-write path of the target storage controller, which can avoid invalid data read-write of the service IO issued by the host, and avoid the service IO issued by the host from appearing to drop 0 fluctuation during maintenance of the storage controller.
[0083] Specifically, the number of hosts can be multiple, and the multiple hosts are connected with the storage system. When the path management state of the storage controller in the storage system changes, the multiple hosts can synchronously receive the state switching notification from the storage system. Each of the multiple hosts can select the read-write path of the storage controller in the non-isolation state in the storage system based on the state switching notification to read and write data.
[0084] In the 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 the state switching instruction, and transmit the state switching notification to the host based on the adjusted path management state of the at least two storage controllers, so that the host can respond to the state switching notification to actively stop reading and writing data through the read-write path of the storage controller in the isolation state. Without the need for the user to separately perform path identification and path management operations on each host, the required operation amount is reduced, the operation convenience is improved, the impact of the storage controller in the storage system on the front-end business during maintenance is reduced, and the host can use the read-write path of the maintenance completed storage controller to read and write data in time after the maintenance of the storage controller is completed, thereby avoiding resource waste.
[0085] In some embodiments of the present application, the target storage controller is determined according to the state switching notification, including: 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 according to the identification information and the state switching event information.
[0086] In this embodiment, the state switching notification is a notification generated by the storage system in 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.
[0087] Specifically, after receiving the state switching notification, the host can analyze the state switching notification to obtain the identification information and the state switching event information in the state switching notification. The identification information is used for the host to determine the storage controller whose path management state changes, and the state switching event information is used for the host to determine the current path management state of the storage controller whose path management state changes.
[0088] In the embodiments of the present application, the host further stores path management states of the at least two storage controllers, and after determining the storage controller whose path management state changes and the current path management state of the storage controller, the host can update the path management states of the at least two storage controllers, and determine the target storage controller in the non-isolation state, so that the host can quickly update the path management states of the storage controllers, and when the host uses the read-write path of the storage controller whose path management state changes, the host can timely switch the read-write path according to the change of the path management state, reduce the situation that the service IO drops to 0 when the host issues the service IO, and improve the stability of the service IO issued by the host.
[0089] 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; and according to the identification information and the state switching event information, the target storage controller is determined, including: according to the isolation event information and the first identification information, it is determined that the path management state of the first storage controller is switched from the non-isolation state to the isolation state, and the path management state of the first storage controller is marked as the isolation state; and the target storage controller in the at least two storage controllers is determined, wherein the target storage controller includes the storage controller other than the first storage controller.
[0090] In this embodiment, the host can determine, based on the first identification information, that the storage controller whose path management state changes is the first storage controller, and the host can determine, based on the isolation event information, that the first storage controller is currently in the isolation state.
[0091] Specifically, when the storage system performs the isolation operation on the first storage controller in the at least two storage controllers in response to the state switching instruction, that is, the first storage controller is switched from the non-isolation state to the isolation state, the storage system can extract the first identification information in the state switching instruction and the corresponding isolation event information. According to the first identification information and the isolation event information, the state switching notification can be generated and transmitted to the host. After receiving the state switching notification, the host can extract the first identification information and the isolation event information therein, so as to determine, based on the first identification information and the isolation event information, that the first storage controller is currently in the isolation state, mark the first storage controller as the isolation state, and take the storage controller other than the first storage controller as the target storage controller, and perform data reading and writing through the read-write path of the target storage controller, so as to actively not select the storage controller in the isolation state for data reading and writing.
[0092] Exemplarily, the host extracts the first identification information and the isolation event information in the state switching notification through the installed multi-path software, and marks the first storage controller as the isolation state based on the first identification information and the isolation event information. When there is a service IO (Input / Output) that needs to read and write data, the host actively does not select the first storage controller in the isolation state, and thus actively selects the storage controller in the non-isolation state, that is, the other storage controller in the at least two storage controllers except the first storage controller. The host issues the service IO to the read-write path of the target storage controller in the non-isolation state.
[0093] In the embodiments of the present application, in the case that the storage system generates the 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 isolation state based on the state switching notification, and mark the first storage controller as the isolation state, so as to actively select the other storage controller in the non-isolation state except the first storage controller, and thus the host can actively and smoothly switch the data read-write service to the read-write path corresponding to the storage controller in the non-isolation state.
[0094] In some embodiments of the present application, the identification information of the storage controller includes second identification information of a second storage controller, and the state switching event information includes isolation release event information; determining the target storage controller according to the identification information and the state switching event information includes: determining, according to the isolation release event information and the second identification information, that the path management state of the second storage controller is switched from the isolation state to the non-isolation state, and marking the path management state of the second storage controller as the non-isolation state; and determining the target storage controller in the at least two storage controllers, wherein the target storage controller includes the second storage controller.
[0095] In this embodiment, the host can determine the storage controller whose path management state changes as the second storage controller based on the second identification information, and determine that the second storage controller is currently in the non-isolation state based on the isolation release event information.
[0096] Specifically, when the storage system performs the un-isolation operation on the second storage controller in the at least two storage controllers in response to the state switching instruction, that is, the second storage controller is switched from the isolated state to the non-isolated state, the storage system can extract the second identification information in the state switching instruction and the corresponding un-isolation event information. The state switching notification can be generated according to the second identification information and the un-isolation event information, and the state switching notification is transmitted to the host. After receiving the state switching notification, the host can extract the second identification information and the un-isolation event information in the state switching notification, so as to determine that the second storage controller is currently in the non-isolated state based on the second identification information and the un-isolation event information, mark the second storage controller as the non-isolated state, and take the storage controller in the non-isolated state including the second storage controller as a target storage controller, and perform data read and write through the read and write path of the target storage controller.
[0097] Exemplarily, the host extracts the second identification information and the isolation un-removal event information in the state switching notification through the installed multi-path software, and marks the second storage controller as the non-isolated state based on the second identification information and the isolation un-removal event information. When there is a business IO (Input / Output) requiring data read and write, the host selects the storage controller in the non-isolated state including the second storage controller, that is, the host can issue the business IO to the read and write path of the target storage controller in the non-isolated state including the second storage controller.
[0098] In the embodiment of the present application, when the storage system generates the state switching notification based on the second identification information and the un-isolation event information, and transmits the state switching notification to the host, the host can switch the second storage controller marked as the isolated state to the non-isolated state based on the state switching notification, so as to select the read and write path of the second storage controller for data read and write, thereby realizing the rapid recovery of the application of the second storage controller which has been un-isolated, avoiding the second storage controller in the contact isolation state for a long time, and reducing the waste of storage resources.
[0099] The embodiment of the present application also provides a path determination device for data read and write, which is applied to a storage system, the storage system is connected with at least one host, the storage system includes at least two storage controllers, the at least two storage controllers are respectively used for controlling at least two read and write paths of the host, Figure 4 The structure block diagram of the path determination device for data read and write of some embodiments of the present application is shown as follows, Figure 4 As shown in the figure, the path determination device for data read and write 400 includes:
[0100] The adjusting module 402 is used for adjusting the path management state of the at least one storage controller in the case of receiving the state switching instruction.
[0101] The transmission module 404 transmits a state switching notification to the at least one host based on the adjusted path management state of the at least two storage controllers, so that the at least one host performs data read / write through a read / write path of a target storage controller in response to the state switching notification, where the target storage controller includes a storage controller in the at least two storage controllers whose path management state is in the non-isolation state.
[0102] In the embodiments of the present application, the adjustment module 402 in the storage system can adjust the path management state of the at least one storage controller in the storage system in response to the state switching instruction, and the transmission module 404 transmits a state switching notification to the host based on the adjusted path management state of the at least two storage controllers, so that the host can actively stop data read / write through the read / write path of the storage controller in the isolation state in response to the state switching notification, without the need for the user to separately perform path identification and path management operations on each host, thereby reducing the required operation amount, improving the operation convenience, and reducing the impact of the maintenance of the storage controller in the storage system on the front-end business, and enabling the host to use the read / write path of the maintenance-completed storage controller for data read / write in a timely manner after the maintenance of the storage controller is completed, thereby avoiding resource waste.
[0103] The embodiments of the present application also provide a path determination apparatus for data read / write, which is applied to a host, the host is connected with a storage system, the storage system includes at least two storage controllers, the at least two storage controllers are respectively used for controlling at least two read / write paths of the host, Figure 5 Fig. 2 shows a structure block diagram of the path determination apparatus for data read / write of some embodiments of the present application, as shown in the figure, Figure 5 The path determination apparatus 500 for data read / write includes:
[0104] The receiving module 502 is used for receiving a state switching notification transmitted by the storage system, and the state switching notification is used for determining an adjusted path management state of the at least two storage controllers;
[0105] The determining module 504 is used for determining a target storage controller according to the state switching notification, where the target storage controller includes a storage controller whose path management state is in a non-isolation state;
[0106] The read / write module 506 is used for performing data read / write on the storage system through a read / write path of the target storage controller.
[0107] In the embodiments of the present application, the receiving module 502 in the host can receive the state switching instruction from the storage system, and the determining module 504 can determine the target storage controller in the non-isolation state according to the state switching notification, and the read-write module 506 can actively stop data reading and writing through the reading and writing path of the storage controller in the isolation state in response to the state switching notification, without the user needing to separately perform path identification and path management operations on each host, thereby reducing the required operation amount, improving the operation convenience, reducing the impact on the front-end business when the storage controller in the storage system is maintained, and enabling the host to use the reading and writing path of the storage controller after maintenance to perform data reading and writing in a timely manner, thereby avoiding resource waste.
[0108] The features of the embodiments of the path determination apparatus for data reading and writing can be referred to the related descriptions of the embodiments of the path determination method for data reading and writing, which will not be repeated here.
[0109] The embodiments of the present application also provide a data reading and writing system, as shown in Figure 1 The data reading and writing system includes a storage system, the storage system including at least two storage controllers, the storage system being configured to perform the steps of the path determination method for data reading and writing in the storage system; a switch connected with the at least two storage controllers; at least one host connected with the switch, and the at least one host being connected with the at least two storage controllers through the switch, and the host being configured to perform the path determination method for data reading and writing in the host.
[0110] In some embodiments of the present application, the storage system further includes a volume device connected with the at least two storage controllers, and the volume device is configured to transmit a state switching notification to the at least one host in the case of adjusting the path management state of the at least one storage controller.
[0111] Figure 6 The structural block diagram of the storage system of some embodiments of the present application is shown, as shown in Figure 6 The storage system 600 includes a path state operation module 602, a storage controller state maintenance module 604, and a storage controller IO flow monitoring module 606.
[0112] The path state operation module 602 is configured to trigger the isolation operation and the de-isolation operation of the storage controller on the storage system, and provide a command line and a system page function menu to perform the isolation operation and the de-isolation operation. Before performing the operation, the identification information and the path state of all the storage controllers can be viewed. When the isolation operation or the de-isolation operation is performed through the command line, the specified identification information of the storage controller is used to operate the storage controller. The isolation operation or the de-isolation operation is performed through the system page function menu.
[0113] The storage controller state maintenance module 604 is configured to set and maintain the path management state of the storage controller, and send a state switching event notification to the corresponding host through the volume device after the path management state of the storage controller changes. For example, when the state of the storage controller is set to the isolation state, all volume devices under the storage controller generate an isolation event event001, and the state switching notification is transmitted to the host through the UA mechanism of the SCSI protocol. When the state of the controller is set to the un-isolation state, all volume devices under the controller generate an isolation event event002, and the corresponding state switching notification is transmitted to the host through the UA mechanism of the SCSI protocol.
[0114] The storage controller IO flow monitoring module 606 is configured to monitor the IO flow of the front-end business host issued to the controller, to confirm whether the isolation or un-isolation operation is completed. Whenever business IO is issued to the storage controller, the number and type of the business IO are counted in real time. The type of the business IO includes read IO, write IO and management IO. The storage controller has normal flow of business read-write IO before isolation, and has no read-write IO after isolation, which indicates that the isolation is completed. The storage controller has no business read-write IO before un-isolation, and has normal flow of business read-write IO after un-isolation, which indicates that the un-isolation is completed. The read-write IO flow of the controller in the isolation / un-isolation operation is periodically acquired to confirm whether the isolation / un-isolation operation is completed.
[0115] Figure 7 A structural block diagram of a host of some embodiments of the present application is shown as follows. Figure 7 As shown in the figure, the host includes a path management module 702, a state switching event listening module 704 and an IO routing module 706.
[0116] The path management module 702 is configured to perform read-write path management and read-write path information maintenance. When the device on the read-write path is discovered, the identification information of the storage cluster, the identification information of the storage controller and the path management state information of the storage controller of the read-write path can be acquired through the SCSI protocol, and the association information of the cluster and the storage controller supporting the query of the current host aggregation multipath device can be maintained, that is, the identification information of all storage controllers and the path management state information of all storage controllers under the cluster identification information.
[0117] The state switching event listening module 704 is configured to listen to, capture, and analyze the state switching notification after the state of the storage controller changes. Specifically, when the state of the storage controller changes, the state switching event listening module captures the event. If the event is the controller isolation event of event001, the controller of the storage cluster corresponding to the path is marked as the isolation in progress state. If the controller is already in the isolation in progress state or the isolation complete state, the controller is not processed. For the controller marked as the isolation in progress state, all read-write paths belonging to the storage controller are traversed, and the states of all read-write paths belonging to the storage controller are set as the isolation state. Then, the state of the controller in the cluster and controller association information maintained by the multipath is marked as the isolation state. In this way, as long as any volume device receives the state switching notification of the controller isolation, all read-write paths belonging to the storage controller can be isolated together without waiting for all state switching events in the volume device to be captured.
[0118] The IO routing module 706 is configured to not issue business IOs to the read-write path corresponding to the storage controller in the isolation state. In addition to judging whether the path state is available, the IO routing module 706 newly judges whether the storage controller corresponding to the read-write path is in the isolation state. If the storage controller is in the isolation state, the path is not selected.
[0119] Figure 8 The path isolation method of the data read-write system of some embodiments of the present application is shown in FIG. 8. Figure 8 As shown in FIG. 8, the path isolation method includes the following steps.
[0120] In step 801, the storage system executes the path isolation instruction of the storage controller.
[0121] In step 802, the storage system sets the path management state of the storage controller as the isolation state.
[0122] In step 803, the storage system generates a state switching notification and notifies the corresponding host through the volume device.
[0123] In step 804, the storage system periodically detects whether there is read-write business in the read-write path of the storage controller in the isolation state. If the result is yes, step 804 is continuously executed. Otherwise, step 805 is executed.
[0124] In step 805, the storage system marks the storage controller as the isolation complete state.
[0125] In step 806, the host captures the state switching notification of the storage controller from the storage system.
[0126] In step 807, the identification information of the storage controller in the state switching notification is analyzed.
[0127] Step 808, set the read-write path of the corresponding storage controller to the isolated state.
[0128] Step 809, when selecting the read-write path, actively select the read-write path of the storage controller in the non-isolated state.
[0129] Figure 9 A path unisolation method of a data read-write system of some embodiments of the present application is shown, as shown in Figure 9 The path unisolation method includes:
[0130] Step 901, the storage system executes the path unisolation instruction of the storage controller;
[0131] Step 902, the storage system sets the path management state of the storage controller to the non-isolated state;
[0132] Step 903, the storage system generates a state switching notification and notifies the corresponding host through the volume device;
[0133] Step 904, the storage system periodically detects whether the read-write path of the storage controller in the isolated state exists read-write service, and if the result is no, continue to execute step 904, and if yes, execute step 905;
[0134] Step 905, the storage system marks the storage controller as the unisolation completion state;
[0135] Step 906, the host captures the state switching notification of the storage controller from the storage system;
[0136] Step 907, parse the identification information of the storage controller in the state switching notification;
[0137] Step 908, set the read-write path of the corresponding storage controller to the non-isolated state;
[0138] Step 909, when selecting the read-write path, actively select the read-write path of the storage controller in the non-isolated state.
[0139] Embodiments of the present application also provide an electronic device, Figure 10 A structural block diagram of an electronic device of some embodiments of the present application is shown, as shown in Figure 10 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 execute the steps in any one of the above method embodiments.
[0140] The embodiment of the present application further provides a computer readable storage medium, which stores a computer program, and the computer program is configured to execute the steps in the data read-write path determination method embodiments.
[0141] In an example embodiment, the computer readable storage medium can include, but is not limited to, a U disk, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk, and various media that can store computer programs.
[0142] The embodiment of the present application further provides a computer program product, which comprises a computer program, and the computer program is executed by a processor to implement the steps in the data read-write path determination method embodiments.
[0143] The embodiment of the present application further provides another computer program product, which comprises a non-volatile computer readable storage medium, and the non-volatile computer readable storage medium stores a computer program, and the computer program is executed by a processor to implement the steps in the data read-write path determination method embodiments.
[0144] The skilled in the art can further realize that the units and algorithm steps of the examples described in combination with the embodiments disclosed herein can be realized by electronic hardware, computer software or a combination of both. In order to clearly illustrate the interchangeability of hardware and software, the components and steps of the examples have been described in general terms in the above description. Whether the functions are realized in hardware or software depends on the specific application and design constraints of the technical solution. The skilled in the art can use different methods to realize the described functions for each specific application, but such implementation should not be considered beyond the scope of the present application.
[0145] The above provides a data read-write path determination method and device, and an electronic device. The principle and implementation of the present application are described by applying specific examples. The above description of the examples is only used to help understand the method and its core idea. It should be pointed out that for those skilled in the art, without departing from the principle of the present application, some improvements and modifications can be made to the present application, and these improvements and modifications also fall within the protection scope of the claims of the present application.
Claims
1. A path determination method for data read / write, characterized by, The application is applied to a storage system connected with at least one host, the storage system comprises at least two storage controllers, and the at least two storage controllers are respectively used for controlling at least two read-write paths of the host, and the path determination method of data read-write comprises the following steps: In the case of receiving a state switching instruction, the path management state of at least one storage controller is adjusted in response to the state switching instruction; Based on the adjusted path management state of the at least two storage controllers, a state switching notification is transmitted to at least one host, so that at least one host performs data read-write through the read-write path of the target storage controller in response to the state switching notification, wherein the target storage controller comprises a storage controller in the non-isolation state among the at least two storage controllers, the state switching notification comprises identification information of the storage controller with the changed path management state and state switching event information, the identification information is used to determine the storage controller with the changed path management state, and the state switching event information is used to determine the current path management state of the storage controller with the changed path management state.
2. The path determination method of data read / write according to claim 1, wherein, The transmission of the state switching notification to at least one host based on the adjusted path management state of the at least two storage controllers comprises: In the case that the path management state of a first storage controller among the at least two storage controllers is switched from a non-isolation state to an isolation state, first identification information of the first storage controller is obtained; According to the first identification information and isolation event information, the state switching notification is transmitted to at least one host, wherein the first identification information is used to determine the target storage controller by at least one host, and the target storage controller comprises a storage controller other than the first storage controller, and the isolation event information is used to mark the first storage controller as an isolation state by at least one host.
3. The path determination method of data read / write according to claim 2, wherein, After the case that the path management state of the first storage controller among the at least two storage controllers is switched from a non-isolation state to an isolation state, the first identification information of the first storage controller is obtained, the path determination method of data read-write further comprises: Every interval of the first time length, it is detected whether there is a first read-write service in the read-write path of the first storage controller, and the first read-write service comprises a read-write service issued by any host among the at least one host; In the case that the read-write path of the first storage controller does not exist the first read-write service, the path management state of the first storage controller is marked as an isolation completion state; In the case that the read-write path of the first storage controller exists the first read-write service, the path management state of the first storage controller is marked as an isolation performing state.
4. The path determination method of data read / write according to claim 1, wherein, The transmission of the state switching notification to at least one host based on the adjusted path management state of the at least two storage controllers comprises: In a case where the path management state of the second storage controller of the at least two storage controllers is switched from the isolation state to the non-isolation state, second identification information of the second storage controller is acquired; According to the second identification information and 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 state of the second storage controller as the non-isolation state.
5. The path determination method of data read / write according to claim 4, wherein, After the case where the path management state of the second storage controller of the at least two storage controllers is switched from the isolation state to the non-isolation state, the second identification information of the second storage controller is acquired, the path determination method for data read and write further includes: Every second time length, it is detected whether there is second read and write service in the read and write path of the second storage controller, and the second read and write service includes service issued by any host of at least one host; In a case where the read and write path of the second storage controller does not exist the second read and write service, the path management state of the second storage controller is marked as the isolation release performing state; In a case where the read and write path of the second storage controller exists the second read and write service, the path management state of the second storage controller is marked as the isolation release completing state.
6. The path determination method of data read / write according to any one of claims 1 to 5, characterized in that, The storage system further includes at least one volume device; The state switching notification is transmitted to at least one of the hosts based on the path management state of the at least two storage controllers, including: The state switching notification is transmitted to at least one of the hosts through the at least one volume device.
7. A path determination method for data read / write, characterized by, Applied to a host, the host is connected with a storage system, the storage system includes at least two storage controllers, and at least two of the storage controllers are respectively used to control at least two read and write paths of the host, and the path determination method for data read and write includes: The state switching notification transmitted by the storage system is received, the state switching notification is used to determine the adjusted path management state of the at least two storage controllers, the state switching notification includes identification information of a storage controller with changed path management state and state switching event information, the identification information is used to determine the storage controller with changed path management state, and the state switching event information is used to determine the current path management state of the storage controller with changed path management state; According to the state switching notification, a target storage controller is determined, wherein the target storage controller includes a storage controller with the non-isolation state of the path management state; Data read and write are performed on the storage system through the read and write path of the target storage controller.
8. The path determination method of data read / write according to claim 7, wherein, The target storage controller is determined according to the state switching notification, including: The identification information of the storage controller in the state switching notification and the state switching event information of the storage controller are acquired; According to the identification information and the state switching event information, the target storage controller is determined.
9. The data read / write path determination method according to claim 8, wherein, The identification information comprises first identification information of the first storage controller, and the state switching event information comprises isolation event information; The determining the target storage controller according to the identification information and the state switching event information comprises: determining, according to the isolation event information and the first identification information, that the path management state of the first storage controller is switched from a non-isolation state to an isolation state, and marking the path management state of the first storage controller as the isolation state; determining a target storage controller from the at least two storage controllers, wherein the target storage controller comprises a storage controller other than the first storage controller.
10. The path determination method of data read / write according to claim 8, wherein, The identification information comprises second identification information of the second storage controller, and the state switching event information comprises isolation release event information; The determining the target storage controller according to the identification information and the state switching event information comprises: determining, according to the isolation release event information and the second identification information, that the path management state of the second storage controller is switched from an isolation state to a non-isolation state, and marking the path management state of the second storage controller as the non-isolation state; determining a target storage controller from the at least two storage controllers, wherein the target storage controller comprises the second storage controller.
11. A data read-write system characterized by, comprises: a storage system comprising at least two storage controllers, the storage system being configured to perform the steps of the path determination method for data read / write according to any one of claims 1 to 6; a switch connected to the at least two storage controllers; at least one host connected to the switch and connected to the at least two storage controllers through the switch, the host being configured to perform the steps of the path determination method for data read / write according to any one of claims 7 to 10.
12. The data read-write system of claim 11, wherein, The storage system further comprises: a volume device connected to the at least two storage controllers, the volume device being configured to transmit a state switching notification to the at least one host in the case of adjusting the path management state of at least one storage controller.
13. An electronic device, comprising: comprises: a memory configured to store a computer program; a processor configured to implement the steps of the path determination method for data read / write according to any one of claims 1 to 10 when executing the computer program.
14. A computer-readable storage medium, characterized in that, The computer program is stored in the computer readable storage medium, and the computer program is configured to implement the steps of the path determination method for data read / write according to any one of claims 1 to 10 when executed by the processor.
15. A computer program product comprising a computer program, characterized in that, The computer program is configured to implement the steps of the path determination method for data read / write according to any one of claims 1 to 10 when executed by the processor.
Citation Information
Patent Citations
Path switching control method and system in multipath storage system
CN101309300A
Node abnormal event processing method, network card and storage cluster
CN118118321A