A storage control method and device, a storage medium and a cluster system
Patent Information
- Application Number
- CN202210226600.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-09
- Publication Date
- 2026-09-25
- Estimated Expiration
- 2042-03-09
AI Technical Summary
[0003]然而当视频监控时一体机的VMS(Video Management System,视频管理系统)服务发生故障并切换时,主节点上的录像等业务虽然快速切换到备用节点上,但是录像业务的数据是直接存储在主节点的存储阵列上,备用节点的VMS服务无法获取到原先服务节点上的录像数据,录像不连续;若存储资源保存在主节点的同时也保存到备用节点,会造成资源的50%冗余,当主节点长时间地正常运行,备用节点的存储资源也等于空置,降低了存储资源的利用率
[0017]所述第二节点还被配置为,在所述第二节点作为提供所述应用服务的服务节点时,禁止所述第二存储器连接所述第二节点外的其他节点。
Smart Images

Figure CN116781489B_ABST
Abstract
Description
Technical Field
[0001] This article relates to cluster technology, and more particularly to a storage control method and device, storage medium, and cluster system. Background Technology
[0002] Dual-machine hot standby cluster is a server cluster solution applied to business applications. It divides two servers into a primary node and a standby node. Under normal circumstances, the VMS service runs on the primary node. If the primary node fails, the VMS service will be quickly switched to the standby node. The standby node will take over the primary node to continue running the video surveillance service, ensuring the high availability of the VMS service.
[0003] However, when the VMS (Video Management System) service of the video surveillance all-in-one machine fails and switches over, although the recording and other services on the primary node are quickly switched to the backup node, the recording data is directly stored on the storage array of the primary node. The VMS service on the backup node cannot obtain the recording data from the original service node, resulting in discontinuous recording. If storage resources are stored on both the primary and backup nodes, it will cause 50% resource redundancy. When the primary node is running normally for a long time, the storage resources on the backup node are essentially idle, reducing the utilization rate of storage resources. Summary of the Invention
[0004] This application provides a storage control method and apparatus, a storage medium, and a cluster system, which can improve the data continuity of the cluster system.
[0005] This application provides a storage control method applied to a first node in a cluster, the cluster further including a second node. The first node includes a first memory providing virtualized storage, and the second node includes a second memory providing virtualized storage. The first node and the second node are configured with the same application service and provide the application service as primary and backup to each other. The storage control method includes:
[0006] The cluster role of the first node is determined. When the first node is a service node providing the application service, the application service is connected to the first memory and the second memory, and the application service data is stored in the storage space composed of the first memory and the second memory. When the first node is not a service node, the application service of the first node is disconnected from the first memory and the second memory, and the first memory is allowed to connect to other nodes other than the first node.
[0007] In one exemplary embodiment, the method further includes: when the first node acts as a service node providing the application service, prohibiting the first memory from connecting to other nodes outside the first node.
[0008] In an exemplary embodiment, the method further includes: when the cluster role of the first node cannot be determined, making the application service of the first node disconnected from the first memory and the second memory, and allowing the first memory to connect to other nodes outside the first node.
[0009] In one exemplary embodiment, establishing a connection with the first memory and the second memory includes: establishing a connection with the first memory and the second memory via a Network Small Computer System Interface (iSCSI) protocol session.
[0010] In one exemplary embodiment, the application service includes a video management system service.
[0011] This disclosure provides a storage control device, including a memory and a processor. The memory stores a program, which, when read and executed by the processor, implements the storage control method described in any of the above embodiments.
[0012] This disclosure provides a computer-readable storage medium storing one or more programs that can be executed by one or more processors to implement the storage control method described in any of the above embodiments.
[0013] This disclosure provides a cluster system, including: a first node and a second node, wherein the first node includes a first memory providing virtualized storage, and the second node includes a second memory providing virtualized storage, and the first node and the second node are configured with the same application services, wherein:
[0014] The first node is configured to provide the application service in a primary and backup manner with the second node, and to determine the cluster role of the first node. When the first node is a service node providing the application service, the application service of the first node is connected to the first memory and the second memory, and the application service data is stored in the storage space composed of the first memory and the second memory. When the first node is not a service node, the application service of the first node is disconnected from the first memory and the second memory, and the first memory is allowed to connect to other nodes other than the first node.
[0015] The second node is configured to provide the application service to the first node as a primary and backup node, and to determine the cluster role of the second node. When the second node is a service node providing the application service, the application service of the second node is connected to the first memory and the second memory, and the application service data is stored in the storage space composed of the first memory and the second memory. When the second node is not a service node, the application service of the second node is disconnected from the first memory and the second memory, and the second memory is allowed to connect to other nodes other than the second node.
[0016] In an exemplary embodiment, the first node is further configured to prohibit the first memory from connecting to other nodes outside the first node when the first node is acting as a service node providing the application service;
[0017] The second node is also configured to prohibit the second memory from connecting to other nodes other than the second node when the second node is acting as a service node providing the application service.
[0018] In one exemplary embodiment, the application service includes a video management system service.
[0019] Compared with related technologies, this application includes a storage control method and apparatus, a storage medium, and a cluster system. The storage control method is applied to a first node in a cluster, which also includes a second node. The first node includes a first memory providing virtualized storage, and the second node includes a second memory providing virtualized storage. The first node and the second node are configured with the same application service and provide the application service as primary and backup to each other. The storage control method includes: determining the cluster role of the first node; when the first node is a service node providing the application service, establishing a connection between the application service and the first memory and the second memory, and storing the application service data in the storage space composed of the first memory and the second memory; when the first node is not a service node, ensuring that the application service of the first node has no connection with the first memory and the second memory, and allowing the first memory to connect to other nodes other than the first node. The solution provided in this embodiment allows the service node to access the first memory and the second memory. During node switching, data continuity is guaranteed, and there is no storage resource redundancy, thus improving storage resource utilization.
[0020] Other features and advantages of this application will be set forth in the following description, and will be apparent in part from the description, or may be learned by practicing the application. Other advantages of this application can be realized and obtained by means of the solutions described in the description and the accompanying drawings. Attached Figure Description
[0021] The accompanying drawings are used to provide an understanding of the technical solutions of this application and constitute a part of the specification. They are used together with the embodiments of this application to explain the technical solutions of this application and do not constitute a limitation on the technical solutions of this application.
[0022] Figure 1 A flowchart of a storage control method provided in an embodiment of this disclosure;
[0023] Figure 2 This is a schematic diagram of a cluster system provided in an embodiment of the present disclosure;
[0024] Figure 3 A flowchart of a storage control method provided as an exemplary embodiment;
[0025] Figure 4 A schematic diagram of a cluster system connection is provided as an exemplary embodiment;
[0026] Figure 5 A schematic diagram of the connection after a cluster system switchover, provided as an exemplary embodiment;
[0027] Figure 6 A schematic diagram of post-split-brain connectivity in a cluster system provided as an exemplary embodiment;
[0028] Figure 7 A flowchart of a storage control method provided as an exemplary embodiment;
[0029] Figure 8 A schematic diagram of a storage control device provided for an exemplary embodiment. Detailed Implementation
[0030] This application describes several embodiments, but these descriptions are exemplary and not restrictive, and it will be apparent to those skilled in the art that many more embodiments and implementations are possible within the scope of the embodiments described herein. Although many possible combinations of features are shown in the drawings and discussed in the detailed description, many other combinations of the disclosed features are also possible. Unless specifically limited, any feature or element of any embodiment may be used in combination with, or may replace, any feature or element of any other embodiment.
[0031] This application includes and contemplates combinations of features and elements known to those skilled in the art. The embodiments, features, and elements disclosed in this application may also be combined with any conventional features or elements to form a unique inventive scheme as defined by the claims. Any feature or element of any embodiment may also be combined with features or elements from other inventive schemes to form another unique inventive scheme as defined by the claims. Therefore, it should be understood that any feature shown and / or discussed in this application may be implemented individually or in any suitable combination. Therefore, the embodiments are not limited except by the limitations imposed by the appended claims and their equivalents. Furthermore, various modifications and changes may be made within the scope of the appended claims.
[0032] Furthermore, in describing representative embodiments, the specification may have presented methods and / or processes as a specific sequence of steps. However, the method or process should not be limited to the specific order of steps described herein, to the extent that it does not depend on such a specific order. As will be understood by those skilled in the art, other sequences of steps are also possible. Therefore, the specific order of steps set forth in the specification should not be construed as a limitation of the claims. Moreover, the claims concerning the method and / or process should not be limited to the steps performed in the written order, and those skilled in the art will readily understand that these orders can be varied and still remain within the spirit and scope of the embodiments of this application.
[0033] In this embodiment of the disclosure, by virtualizing the storage resources in the cluster and establishing a connection between the application service on the service node currently providing the application service and all the storage resources of the cluster, the application service can access all the storage resources of the cluster, thereby achieving data continuity and utilizing the storage resources of non-service nodes to improve the utilization rate of storage resources.
[0034] Figure 1 This is a flowchart illustrating a storage control method provided in an embodiment of this disclosure. Figure 1 As shown in the embodiments of this disclosure, the storage control method is applied to a first node in a cluster, the cluster further including a second node. The first node includes a first memory providing virtualized storage, and the second node includes a second memory providing virtualized storage. The first node and the second node are configured with the same application service and provide the application service as primary and backup to each other. The storage control method includes:
[0035] Step 101: Determine the cluster role of the first node;
[0036] Step 102: When the first node is a service node providing the application service, the application service is connected to the first memory and the second memory, and the application service data is stored in the storage space composed of the first memory and the second memory; when the first node is not a service node, the application service of the first node is not connected to the first memory and the second memory, and the first memory is allowed to connect to other nodes other than the first node.
[0037] In the solution provided in this embodiment, the service node can access the storage space composed of the first memory and the second memory, and the generated data is stored in this storage space. Therefore, even if a node switch occurs, the switched node can still access the storage space composed of the first memory and the second memory. Thus, the switched node can obtain the data before the switch, achieving data continuity. In addition, the storage resources of non-service nodes can be used by service nodes, improving resource utilization.
[0038] Specifically, allowing the first memory to connect to other nodes besides the first node means allowing the second node to connect to the first memory; in particular, the application services of the second node are connected to the first memory.
[0039] In one exemplary embodiment, the cluster role of the first node can be determined by querying the cluster status information on the node.
[0040] In an exemplary embodiment, when the first node is not a service node, making the application service of the first node disconnected from the first memory and the second memory includes: if the first node is initially a non-service node, then no connection is established between the application service of the first node and the first memory and the second memory; when the first node switches from a service node to a non-service node, the connection between the application server of the first node and the first memory and the second memory is disconnected.
[0041] In one exemplary embodiment, the application service data of the service node can be preferentially stored in the service node's memory. For example, the application service data of the first node can be preferentially stored in the first memory, and the application service data of the second node can be preferentially stored in the second memory, but the embodiments of this disclosure are not limited thereto.
[0042] In one exemplary embodiment, the first memory and the second memory may include one or more storage devices.
[0043] In one exemplary embodiment, the first node may include multiple servers, such as an application server and a storage server, wherein the application server is used to configure the application service, and the storage server is used to manage the first storage. The second node is similar; alternatively, the first node may include a first server that configures the application service and manages the first storage. The second node is similar and will not be described further.
[0044] In one exemplary embodiment, the first node and the second node providing application services to each other as primary and backup nodes can be as follows: the first node acts as the primary node, and the second node acts as the backup node. When the first node is functioning normally, the application services are provided by the first node. When the first node fails, the service switches to the second node, and the service switches back to the first node after the first node recovers. However, this embodiment is not limited to this, and other primary / backup switching methods can be used, which are not limited in this embodiment.
[0045] In an exemplary embodiment, the first node and the second node can monitor whether the other node is functioning normally through heartbeat detection.
[0046] In an exemplary embodiment, the cluster formed by the first node and the second node can be a hot standby cluster. Even if a node fails, the application service can be switched in a timely manner, and the application service will not be interrupted, so the user will not be aware of the failure.
[0047] In an exemplary embodiment, the method further includes: when the first node acts as a service node providing the application service, prohibiting the first storage from connecting to other nodes besides the first node; that is, prohibiting the second node from connecting to the first storage. The solution provided in this embodiment, when a split-brain scenario occurs in the cluster, ensures that both the first node and the second node consider themselves service nodes, preventing the application service of the second node from connecting to the first storage and causing multiple nodes to simultaneously access the same storage, thus preventing data consistency issues.
[0048] In one exemplary embodiment, the method further includes: when the cluster role of the first node cannot be determined, prohibiting the application service of the first node from connecting to the first storage, and allowing the second node to connect to the first storage. In this case, the first node can be treated as a non-service node.
[0049] In an exemplary embodiment, providing virtualized storage for the first or second memory may involve virtualizing the disk or hard disk array of the first or second memory through the Internet Small Computer System Interface (iSCSI) protocol to form a virtual array.
[0050] In an exemplary embodiment, establishing a connection with the first memory and the second memory includes: establishing a connection with the first memory and the second memory via an iSCSI protocol session.
[0051] In one exemplary embodiment, the application service includes a VMS service. However, this disclosure is not limited to this and may include other application services.
[0052] Figure 2 This is a schematic diagram of a cluster system provided in an embodiment of this disclosure. Figure 2 As shown in the figure, this disclosure provides a cluster system, including: a first node and a second node. The first node includes a first memory providing virtualized storage, which is virtualized into a first virtual array. The second node includes a second memory providing virtualized storage, which is virtualized into a second virtual array. The first node and the second node are configured with the same application services, wherein:
[0053] The first node is configured to provide the application service in a primary and backup manner with the second node, and to determine the cluster role of the first node. When the first node is a service node providing the application service, the application service of the first node is connected to the first memory and the second memory, and the application service data is stored in the storage space composed of the first memory and the second memory. When the first node is not a service node, the application service of the first node is disconnected from the first memory and the second memory, and the first memory is allowed to connect to other nodes other than the first node.
[0054] The second node is configured to provide the application service to the first node as a primary and backup node, and to determine the cluster role of the second node. When the second node is a service node providing the application service, the application service of the second node is connected to the first memory and the second memory, and the application service data is stored in the storage space composed of the first memory and the second memory. When the second node is not a service node, the application service of the second node is disconnected from the first memory and the second memory, and the second memory is allowed to connect to other nodes other than the second node.
[0055] In an exemplary embodiment, the first node is further configured to prohibit the first memory from connecting to other nodes outside the first node when the first node is acting as a service node providing the application service;
[0056] The second node is also configured to prohibit the second memory from connecting to other nodes other than the second node when the second node is acting as a service node providing the application service.
[0057] The solution provided in this embodiment can avoid data inconsistency issues caused when both the first node and the second node consider themselves to be service nodes and connect to the same memory.
[0058] The embodiments of this disclosure will be further illustrated below with a specific example.
[0059] In this embodiment, by simultaneously mounting the storage arrays of the first node and the second node to the VMS service of the service node (initially the first node) via the iSCSI protocol, the VMS service on the service node can read and write the virtual arrays on both the first and second nodes at the same time. When the VMS service switches from the first node to the second node, the new service node (the second node) can still obtain the recording data from the original service node (the first node) by updating the connection of the virtual array, thus ensuring the consistency and continuity of the recording data of the video surveillance service, the high availability of the video surveillance service, and the high utilization of storage resources.
[0060] like Figure 3 As shown, the storage control method provided in this embodiment includes:
[0061] Step 301: Establish a dual-machine hot standby cluster to provide services externally using floating IPs;
[0062] A dual-machine hot standby cluster is established between the first and second nodes, providing business services externally via floating IPs. Both the first and second nodes are configured with VMS services. The dual-machine hot standby cluster manages and monitors the status of the VMS services on both nodes. The first and second nodes determine the health of each other by checking the cluster heartbeat. The first node includes a first storage array, and the second node includes a second storage array, as shown below. Figure 4 As shown.
[0063] Initially, the first node can be used as the service node to provide VMS services. If the VMS service of the service node (currently the first node) fails, the VMS service will be switched to the second node. A floating IP is bound to the service node in the cluster. When the first node is the service node, the floating IP is the IP of the first node. When the service node switches from the first node to the second node, the floating IP also switches accordingly, that is, the floating IP changes to the IP of the second node.
[0064] Step 302: The storage array is virtualized via the iSCSI protocol, and the storage control module controls the connection of the virtual array;
[0065] The disks or hard drive arrays are virtualized into virtual arrays via the iSCSI protocol. The storage control module manages the connections to the virtual arrays. The virtual arrays are bound to iSCSI protocol sessions and connected via session connections. The virtualized storage provided by the first and second storage arrays is also known as Internet Protocol Storage Area Network (IPSAN) storage service. The first storage array is virtualized into the first virtual array, and the second storage array is virtualized into the second virtual array.
[0066] Step 303: Configure the mount connection for the virtual array
[0067] The storage control module simultaneously mounts the virtual arrays of the first and second nodes to the VMS service of the service node. Specifically, when the storage control module belongs to a service node, it connects the virtual array on that node to the VMS service of that node; when the storage control module belongs to a non-service node, it connects the virtual array on that node to the VMS service of the service node. For example, ... Figure 4 As shown, when the first node is a service node, the first storage control module of the first node controls the first virtual array of the first node to be mounted to the VMS service of the first node, and the second storage control module of the second node controls the second virtual array of the second node to be mounted to the VMS service of the first node.
[0068] In addition, when a node is a service node, the storage control module configures the virtual array on that node to prevent external nodes from connecting; when a node is a non-service node, it prevents the VMS service of that node from connecting to the virtual array on that node. This is to ensure the consistency of business data, that is, only the VMS service of the service node is allowed to connect to the virtual array, ensuring that only one service node's VMS service is writing recording data to the virtual array at any given time. For example, when the first node is a service node, the first storage control module prevents the first virtual array from providing connections to external nodes; when the first node is a non-service node, it prevents the first node's VMS service from connecting to the first virtual array.
[0069] Step 304: The VMS service is switched, and the storage control module reconnects to the virtual array.
[0070] For example, such as Figure 5 As shown, the VMS service of the first node is switched to the second node. The first storage control module controls the disconnection of the first virtual array from the VMS service of the first node and establishes a connection between the first virtual array and the VMS service of the second node. The second storage control module controls the second virtual array to connect to the VMS service of the second node and controls the disconnection of the connection between the second virtual array and the VMS service of the first node (i.e., disconnecting the session between the second virtual array and the VMS service of the first node). The purpose is to ensure that the virtual array has only one VMS service connection and that the VMS service of the second node can obtain the recording data of the first node, thus ensuring continuous and reliable recording.
[0071] When a split-brain scenario occurs in a cluster, meaning the network connectivity between the first and second nodes is lost, both nodes will simultaneously assume the role of a service node. Furthermore, the storage control modules of both nodes will prohibit their respective virtual arrays from providing external connections. Thus, during a split-brain scenario, both the first and second nodes can effectively only read and write to their assigned node's virtual array, eliminating data consistency issues. Figure 6 As shown, when a split-brain scenario occurs, the first storage control module acquires the cluster role of the first node as a service node. The first storage control module controls the first virtual array to establish a connection with the VMS service of the first node, and prohibits the first virtual array from connecting to the second node (specifically, prohibiting connection to the VMS service of the second node). The second storage control module acquires the cluster role of the second node as a service node. The second storage control module controls the second virtual array to establish a connection with the VMS service of the second node, and prohibits the second virtual array from connecting to the first node (specifically, prohibiting connection to the VMS service of the first node).
[0072] The following explains how the above cluster handles single-point failures. The first and second storage arrays provide virtualized storage (Internet Protocol Storage Area Network, IPSAN) storage services. The heartbeat network and IPSAN storage service network of the dual-machine hot standby cluster are independent of each other. Even if the VMS service and IPSAN storage service on each node of the cluster experience single-point failures, the video surveillance service always remains continuously available.
[0073] There are four specific types of single-point failures:
[0074] If the VMS service on the first node fails and the IPSAN storage service on the second node fails, the second node will provide the VMS service. The VMS service on the second node will connect to the first virtual array on the first node and use the first virtual array to store data, and the business will be normal.
[0075] If the VMS service and IPSAN storage service of the first node fail, the second node will provide the VMS service. The VMS service of the second node will connect to the second virtual array of the second node and use the second virtual array to store data, and the business will be normal.
[0076] If the VMS service on the second node fails and the IPSAN storage service on the first node fails, the first node will still provide the VMS service. The VMS service on the first node will connect to the second virtual array on the second node and use the second virtual array to store data, and the business will continue to operate normally.
[0077] If the VMS service and IPSAN storage service of the second node fail, the first node will provide the VMS service. The VMS service of the first node will connect to the first virtual array of the first node and use the first virtual array to store data, and the business will be normal.
[0078] In all four single-point failure scenarios described above, the VMS service remains available, greatly ensuring the high availability of video surveillance services.
[0079] like Figure 7 As shown, in step 303, the first storage control module or the second storage control module performs the following operation:
[0080] Step 701: The storage control module obtains the cluster role information of the node;
[0081] The storage control module is either a first storage control module or a second storage control module;
[0082] Cluster roles are determined by the primary running node of the VMS service; the VMS service on the other node is simply waiting to be taken over.
[0083] Step 702: If the node where the storage control module is located is a service node, proceed to step 703; if the node where the storage control module is located is not a service node (i.e., a standby node), proceed to step 705; if the cluster role information is not obtained after the preset time, proceed to step 704.
[0084] Step 703: Disable the virtual array of the node where the storage control module is located from providing external connections, establish a connection between the VMS service of the node where the storage control module is located and the virtual array of the node where the storage control module is located, and return to step 701; for example, if the node where the storage control module is located is the first node, then disable the first virtual array from providing external connections, and establish a connection between the VMS service of the first node and the first virtual array.
[0085] Step 704: The node where the storage control module is located is considered to be a non-service node (standby node) or an abnormal node;
[0086] Step 705: Disable the VMS service of the node where the storage control module resides from connecting to the virtual array of the node where the storage control module resides, and allow the virtual array of the node where the storage control module resides to provide external connections, that is, allow the virtual array of the node where the storage control module resides to connect to nodes other than the node where the storage control module resides, and return to step 701. For example, if the node where the storage control module resides is the first node, then disable the VMS service of the first node from connecting to the first virtual array, and allow the first virtual array of the first node to connect to the second node.
[0087] In the above embodiments, by mounting the storage resources of the first and second nodes to the service node as virtual arrays, prohibiting the service node's virtual array from connecting to external networks, and prohibiting non-service nodes from connecting to the virtual array, it is ensured that only one node's VMS service is connected to the virtual array at any given time, protecting the consistency of recorded data. Furthermore, when a single point of failure occurs in the system, the video surveillance service remains available. When the VMS service switches from the first node to the second node, it only requires refreshing the iSCSI session and disconnecting the connection between the second node's second virtual array and the first node. Additionally, by connecting the first node's first virtual array and the second node's second virtual array to the second node respectively, both high availability of the video surveillance service and continuity of recorded data can be achieved. Even if one node runs for an extended period, the storage resources of the other node can still be used by the running node, resulting in no storage resource redundancy and improving the utilization rate of the system's storage resources.
[0088] like Figure 8 As shown, this embodiment of the present disclosure provides a storage control device 80, including a memory 810 and a processor 820. The memory 810 stores a program, which, when read and executed by the processor 820, implements the storage control method described in any of the above embodiments.
[0089] This disclosure provides a node including the aforementioned storage control device. The storage control device can be deployed on the same server as the application service or on a different server, or it can be deployed on the same server as the storage device, or the storage control device can be deployed separately, etc.
[0090] This disclosure provides a computer-readable storage medium storing one or more programs that can be executed by one or more processors to implement the storage control method described in any of the above embodiments.
[0091] It will be understood by those skilled in the art that all or some of the steps, systems, or apparatuses disclosed above, and their functional modules / units, can be implemented as software, firmware, hardware, or suitable combinations thereof. In hardware implementations, the division between functional modules / units mentioned above does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed collaboratively by several physical components. Some or all components may be implemented as software executed by a processor, such as a digital signal processor or microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit (ASIC). Such software may be distributed on a computer-readable medium, which may include computer storage media (or non-transitory media) and communication media (or transient media). As is known to those skilled in the art, the term computer storage media includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disc (DVD) or other optical disc storage, magnetic cartridges, magnetic tape, disk storage or other magnetic storage devices, or any other medium that can be used to store desired information and can be accessed by a computer. Furthermore, it is well known to those skilled in the art that communication media typically contain computer-readable instructions, data structures, program modules, or other data in modulated data signals such as carrier waves or other transmission mechanisms, and may include any information delivery medium.
Claims
1. A storage control method, characterized in that, The storage control method is applied to a first node in a cluster, the cluster further including a second node. The first node includes a first memory providing virtualized storage, and the second node includes a second memory providing virtualized storage. The first node and the second node are configured with the same application service and provide the application service as primary and backup to each other. The cluster role of the first node is determined. When the first node is a service node providing the application service, the application service is connected to the first memory and the second memory, and the application service data is stored in the storage space composed of the first memory and the second memory. When the first node is not a service node, the application service of the first node is disconnected from the first memory and the second memory, and the first memory is allowed to connect to other nodes in the cluster other than the first node.
2. The storage control method according to claim 1, characterized in that, The method further includes: when the first node acts as a service node providing the application service, prohibiting the first memory from connecting to other nodes outside the first node.
3. The storage control method according to claim 1, characterized in that, The method further includes: when the cluster role of the first node cannot be determined, making the application service of the first node disconnected from the first memory and the second memory, and allowing the first memory to connect to other nodes in the cluster other than the first node.
4. The storage control method according to claim 1, characterized in that, The establishment of a connection with the first memory and the second memory includes: establishing a connection with the first memory and the second memory through a Network Small Computer System Interface (iSCSI) protocol session.
5. The storage control method according to any one of claims 1 to 4, characterized in that, The application services include video management system services.
6. A storage control device, characterized in that, It includes a memory and a processor, wherein the memory stores a program, and when the program is read and executed by the processor, it implements the storage control method as described in any one of claims 1 to 5.
7. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores one or more programs, which can be executed by one or more processors to implement the storage control method as described in any one of claims 1 to 5.
8. A cluster system, characterized in that, include: A first node and a second node, wherein the first node includes a first memory providing virtualized storage, and the second node includes a second memory providing virtualized storage, and the first node and the second node are configured with the same application services, wherein: The first node is configured to provide the application service in a primary / backup manner with the second node, and to determine the cluster role of the first node. When the first node is a service node providing the application service, the application service of the first node is connected to the first memory and the second memory, and the application service data is stored in the storage space composed of the first memory and the second memory. When the first node is not a service node, the application service of the first node is disconnected from the first memory and the second memory, and the first memory is allowed to connect to other nodes in the cluster system other than the first node. The second node is configured to provide the application service to the first node as a primary and backup node, and to determine the cluster role of the second node. When the second node is a service node providing the application service, the application service of the second node is connected to the first memory and the second memory, and the application service data is stored in the storage space composed of the first memory and the second memory. When the second node is not a service node, the application service of the second node is disconnected from the first memory and the second memory, and the second memory is allowed to connect to other nodes in the cluster system other than the second node.
9. The cluster system according to claim 8, characterized in that, The first node is also configured to prohibit the first memory from connecting to other nodes other than the first node when the first node is acting as a service node providing the application service; The second node is also configured to prohibit the second memory from connecting to other nodes other than the second node when the second node is acting as a service node providing the application service.
10. The cluster system according to claim 8 or 9, characterized in that, The application services include video management system services.
Citation Information
Patent Citations
System and method for multi-cluster storage
US20210255885A1
Method of creating mirror file in logical volume, method of initiating virtual machine, and server
WO2017067404A1