Management method, system, device and medium for Ethernet-based expansion cabinet

By detecting and verifying the managed status and identification matching of the storage cluster, the data loss problem caused by multiple clusters managing the expansion cabinet at the same time is solved, the safe management of the expansion cabinet is achieved, and the data integrity and stability are improved.

CN119002809BActive Publication Date: 2025-09-23INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411037623.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-31
Publication Date
2025-09-23
Estimated Expiration
2044-07-31

AI Technical Summary

Technical Problem

In existing Ethernet-based expansion cabinet management solutions, when a storage cluster manages the hard disks of an expansion cabinet, it is easy for multiple clusters to manage the same cabinet at the same time, resulting in problems such as confusion and loss of hard disk data.

Method used

By detecting the managed status and identification match of the storage cluster to the expansion cabinet, it is determined whether the cabinet management conditions are met. The storage cluster management permission is granted only when the conditions are met, preventing multiple clusters from managing the same expansion cabinet at the same time.

Benefits of technology

This improves the security of hard disk data in the expansion cabinet, avoids the risk of data loss, and ensures the stability of storage cluster management and data integrity.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119002809B_ABST
    Figure CN119002809B_ABST
Patent Text Reader

Abstract

The present application provides an Ethernet-based expansion cabinet management method, system, device, and medium. The method includes executing a hard drive change instruction on any hard drive in a target Ethernet-based expansion cabinet in response to detecting the presence of a storage cluster, determining whether the storage cluster meets the cabinet management conditions of the target expansion cabinet, and granting the storage cluster management authority over the target expansion cabinet in response to detecting that the storage cluster meets the cabinet management conditions. Before granting the storage cluster management authority over a specified expansion cabinet, a check is added to determine whether the storage cluster meets the cabinet management conditions. This avoids the possibility of multiple clusters simultaneously managing the same expansion cabinet, which could result in data loss risks and greatly improves the security of the hard drive data in the expansion cabinet.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of storage, and in particular to a management method, system, and device for an Ethernet-based expansion cabinet. Background Art

[0002] In the storage field, whether it is a main control cabinet or an expansion cabinet, if you want to carry business on the storage, the hard drives contained in the cabinet must be managed before storing data. This allows the storage cluster to manage the hard drives in the expansion cabinet, thereby establishing the storage pool, storage volume, and RAID type required by the user to undertake storage business.

[0003] However, existing Ethernet-based expansion cabinets (EBOF, Ethernet attached just a Bunch OfFlash) have the problem of multiple storage clusters managing the same expansion cabinet, which causes confusion when writing data to the hard drives in the expansion cabinet and possible data loss.

[0004] Therefore, a method for ensuring the security of hard disk data in an expansion cabinet is urgently needed to solve the above technical problems. Summary of the Invention

[0005] Based on this, it is necessary to provide a management method, system, device and medium for Ethernet-based expansion cabinets to address the above technical problems.

[0006] In a first aspect, the present application provides a method for managing an Ethernet-based expansion cabinet, characterized in that the method includes:

[0007] In response to detecting that there is a storage cluster executing a hard disk drive change instruction on any hard disk in a target Ethernet-based expansion cabinet, determining whether the storage cluster satisfies a cabinet management condition of the target expansion cabinet;

[0008] In response to detecting that the storage cluster meets the cabinet management condition, the storage cluster is granted management authority over the target expansion cabinet.

[0009] In some embodiments, before the storage cluster executes the hard disk drive change instruction on any hard disk in the Ethernet-based target expansion enclosure, the method further includes:

[0010] Detecting and determining a managed state of the target expansion cabinet, wherein the managed state is used to indicate a storage cluster situation in which the expansion cabinet accepts an initiated management instruction, and the managed state includes an initial state, a normal state, and an abnormal state;

[0011] If the managed state of the target expansion cabinet is an abnormal state, an abnormal alarm is generated and execution of a hard disk drive change instruction on a target hard disk in the target expansion cabinet is stopped;

[0012] If the managed state of the target expansion cabinet is a normal state or an initial state, the storage cluster is allowed to execute the hard disk drive change instruction on the target hard disk.

[0013] In some embodiments, in response to detecting that a storage cluster exists, executing a hard disk drive change instruction on any hard disk in an Ethernet-based target expansion enclosure, determining whether the storage cluster meets an enclosure management condition of the target expansion enclosure includes:

[0014] Obtaining a storage cluster identifier corresponding to the storage cluster;

[0015] Obtaining a target cluster identifier written in the target expansion cabinet;

[0016] If it is detected that the target cluster identifier written into the target expansion cabinet is 0, it is determined that the storage cluster meets the cabinet management condition;

[0017] Comparing the storage cluster identifier with the target cluster identifier to determine whether the storage cluster identifier matches the target cluster identifier;

[0018] If the storage cluster identifier matches the target cluster identifier, determining that the storage cluster meets the cabinet management condition;

[0019] If the storage cluster identifier does not match the target cluster identifier, it is determined that the storage cluster does not meet the cabinet management condition.

[0020] In some embodiments, the method further comprises:

[0021] In response to detecting that there is a storage cluster executing a hard drive change instruction on a target hard drive, triggering a platform management module in the storage system to read a target cluster identifier written in a target cluster identifier field in backplane key product data within a target expansion cabinet;

[0022] In response to detecting that a storage cluster executes a hard disk drive change instruction on a target hard disk, triggering a cabinet management module in the storage system to parse a specified page based on an expansion cabinet management protocol to obtain a storage cluster identifier;

[0023] The cabinet management module compares the storage cluster identifier with the target cluster identifier to determine whether the storage cluster identifier matches the target cluster identifier.

[0024] In some embodiments, the method includes writing a target cluster identifier in the target expansion enclosure:

[0025] Pre-configuring and saving a management relationship between the storage cluster and the expansion cabinet in a storage system, wherein the storage cluster corresponding to the expansion cabinet is unique;

[0026] According to the management relationship, searching for a storage cluster identifier of a target storage cluster corresponding to the target expansion cabinet;

[0027] Confirm that the storage cluster identifier of the target storage cluster is the target cluster identifier corresponding to the target expansion cabinet and write the target cluster identifier into the backplane key product data of the target expansion cabinet.

[0028] In some embodiments, the method further comprises:

[0029] In response to detecting that the managed state of the target expansion cabinet is an abnormal state, performing an initialization operation on the target expansion cabinet to ensure that the target expansion cabinet is in an initial state;

[0030] The initialization operation includes:

[0031] The target cluster identifier written in the backplane key product data in the target expansion cabinet is changed to 0.

[0032] In some embodiments, the method further comprises:

[0033] In response to detecting that the target cluster identifier in the backplane key product data of the target expansion cabinet is 0;

[0034] Detecting whether there is a storage cluster initiating a hard disk drive change instruction for a target hard disk in the target expansion cabinet;

[0035] If there is a storage cluster that initiates a hard disk drive change instruction for the hard disk in the target expansion cabinet, performing a first operation;

[0036] If there are multiple storage clusters initiating hard disk drive change instructions for the hard disk in the target expansion cabinet, performing a second operation;

[0037] The first operation includes:

[0038] Initiate a review and recovery task to use the storage cluster identifier corresponding to the storage cluster as a target cluster identifier and write the identifier into the backplane key data of the target expansion cabinet;

[0039] The second operation includes:

[0040] In response to the storage cluster including the storage cluster having a management relationship with the target expansion cabinet, starting a review and recovery task to use the storage cluster identifier of the storage cluster including the storage cluster having a management relationship with the target expansion cabinet as the target cluster identifier and writing the identifier into the backplane key data of the target expansion cabinet;

[0041] In response to the fact that the storage cluster does not include a storage cluster having a management relationship with the target expansion cabinet, multiple change time nodes at which the storage clusters initiate the hard disk drive change instructions are obtained, and a review and recovery task is started to identify the target cluster and write it into the backplane key data of the target expansion cabinet. The target cluster identifier is the storage cluster identifier corresponding to the storage cluster with the earliest change time node in the obtained storage clusters.

[0042] In a second aspect, the present application provides a management system for an Ethernet-based expansion cabinet, the system comprising:

[0043] a processing module, configured to, in response to detecting the presence of a storage cluster, execute a hard disk drive change instruction on any hard disk in a target Ethernet-based expansion cabinet, and determine whether the storage cluster satisfies a cabinet management condition of the target expansion cabinet;

[0044] A management module configured to grant the storage cluster management authority over the target expansion cabinet in response to detecting that the storage cluster meets the cabinet management condition.

[0045] In a third aspect, the present application provides a computer program product, the computer program product comprising a computer program, which, when executed by a processor, implements the following steps:

[0046] In response to detecting that there is a storage cluster executing a hard disk drive change instruction on any hard disk in a target Ethernet-based expansion cabinet, determining whether the storage cluster satisfies a cabinet management condition of the target expansion cabinet;

[0047] In response to detecting that the storage cluster meets the cabinet management condition, the storage cluster is granted management authority over the target expansion cabinet.

[0048] In a fourth aspect, the present application provides an electronic device, the electronic device comprising:

[0049] one or more processors;

[0050] and a memory associated with one or more processors, the memory being used to store program instructions, which, when read and executed by the one or more processors, perform the following operations:

[0051] In response to detecting that there is a storage cluster executing a hard disk drive change instruction on any hard disk in a target Ethernet-based expansion cabinet, determining whether the storage cluster satisfies a cabinet management condition of the target expansion cabinet;

[0052] In response to detecting that the storage cluster meets the cabinet management condition, the storage cluster is granted management authority over the target expansion cabinet.

[0053] In a fifth aspect, the present application further provides a computer-readable storage medium, on which a computer program is stored, which causes a computer to perform the following operations:

[0054] In response to detecting that there is a storage cluster executing a hard disk drive change instruction on any hard disk in a target Ethernet-based expansion cabinet, determining whether the storage cluster satisfies a cabinet management condition of the target expansion cabinet;

[0055] In response to detecting that the storage cluster meets the cabinet management condition, the storage cluster is granted management authority over the target expansion cabinet.

[0056] The beneficial effects achieved by this application are:

[0057] The present application provides a method for managing an Ethernet-based expansion cabinet, comprising: executing a hard drive change instruction on any hard drive in a target Ethernet-based expansion cabinet in response to detecting the presence of a storage cluster, determining whether the storage cluster meets the cabinet management conditions of the target expansion cabinet; and granting the storage cluster management authority over the target expansion cabinet in response to detecting that the storage cluster meets the cabinet management conditions. Before granting the storage cluster management authority over a specified expansion cabinet, a check is added to determine whether the storage cluster meets the cabinet management conditions, thereby avoiding the possibility of multiple clusters simultaneously managing the same expansion cabinet, which could result in the risk of data loss and greatly improves the security of the hard drive data in the expansion cabinet. BRIEF DESCRIPTION OF THE DRAWINGS

[0058] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for describing the embodiments. Obviously, the drawings described below are only some embodiments of the present application. Those skilled in the art can also derive other drawings based on these drawings without inventive work, among which:

[0059] Figure 1 This is a schematic diagram of a method for managing an Ethernet-based expansion cabinet provided in an embodiment of the present application;

[0060] Figure 2This is an architecture diagram of a management system for an Ethernet-based expansion cabinet provided in an embodiment of the present application;

[0061] Figure 3 This is a structural diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0062] To make the purpose, technical solutions, and advantages of this application more clear, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.

[0063] It should be understood that in the description of this application, unless the context clearly requires otherwise, words such as "include", "comprises", and the like throughout the specification and claims should be interpreted as inclusive rather than exclusive or exhaustive; that is, as "including but not limited to".

[0064] It should also be understood that the terms "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying relative importance. In addition, in the description of this application, unless otherwise specified, the meaning of "plurality" is two or more.

[0065] It should be noted that the terms "S1", "S2", etc. are used only for the purpose of describing the steps and do not specifically refer to the order or sequence, nor are they used to limit this application. They are merely for the convenience of describing the method of this application and should not be understood as indicating the order of the steps. In addition, the technical solutions between the various embodiments can be combined with each other, but this must be based on the fact that ordinary technicians in this field can implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by this application.

[0066] As described in the background technology, when deploying services on a storage system, it is necessary to manage expansion cabinets and hard disks. In existing solutions, the storage cluster directly executes hard disk drive change instructions to achieve management and control of the specified hard disk. However, precisely because the hard disk drive change instructions are directly executed on the specified hard disk, the existing solution manages the expansion cabinet where the specified hard disk is located while the storage cluster manages the hard disk without any verification, resulting in one expansion cabinet being managed by multiple storage clusters at the same time, causing hard disk data in the expansion cabinet to be lost. Therefore, the present application provides a management method for Ethernet-based expansion cabinets, which enables the storage cluster to manage the expansion cabinet while ensuring the security of the hard disk data in the expansion cabinet.

[0067] Example 1

[0068] The embodiment of the present application provides an Ethernet-based expansion cabinet management method, which is applied to a storage system. The storage system is a system that provides storage services for users. In this embodiment, the storage business is taken over by at least one storage cluster and an Ethernet-connected Block-scale Open Flash (EBOF). It can be understood that other types of expansion cabinets can also be included in the storage system. Among them, the Ethernet-based expansion cabinet is a new type of storage architecture that uses the Ethernet structure to expand the flash memory and separates the storage from the calculation in the best way, so that the storage resources can be more flexibly allocated to different computing nodes, improving resource utilization, thereby improving more efficient storage performance. At the same time, due to its low cost, the scope of application is gradually expanding, and it is widely used in edge computing, enterprise-level data centers and cloud data centers. This embodiment manages the Ethernet-based expansion cabinet. For the sake of convenience, the following text only refers to the expansion cabinet, that is, all the expansion cabinets in this application are Ethernet-based expansion cabinets.

[0069] Specifically, such as Figure 1 As shown, the method disclosed in the embodiment of the present application is used to implement the management of the expansion cabinet of the storage cluster, including the following contents:

[0070] S1. In response to detecting the existence of a storage cluster, executing a hard disk drive change instruction on any hard disk in a target expansion cabinet based on Ethernet, determining whether the storage cluster meets the cabinet management condition of the target expansion cabinet.

[0071] Specifically, the hard disk drive change instruction is a chdrive command, and may also be other commands developed in the future for changing the hard disk drive status, which is not restricted by this application.

[0072] In some specific implementation scenarios, before the storage cluster executes the hard disk drive change instruction on any hard disk in the Ethernet-based target expansion cabinet, the storage cluster further includes:

[0073] Detect and determine the managed status of the target expansion cabinet. The managed status indicates the storage cluster from which the expansion cabinet accepts management commands. Managed status includes initial status, normal status, and abnormal status. The initial status indicates that the expansion cabinet is not controlled by any storage cluster; the normal status indicates that the expansion cabinet is normally controlled by the storage cluster, and is controlled by only one storage cluster; the abnormal status indicates that the expansion cabinet is abnormal and is being managed by multiple storage clusters simultaneously. Specifically, you can use command line tools or establish a third-party management tool to detect the storage cluster from which the expansion cabinet accepts management commands.

[0074] If the managed state of the target expansion cabinet is abnormal, an abnormal alarm is generated and the execution of the hard disk drive change instruction on the target hard disk in the target expansion cabinet is stopped; wherein, the abnormal alarm can be fed back to the user through a visual prompt to prompt the user to check the target expansion cabinet and repair any abnormal problems that may exist therein, or it can be prompted to the user in other forms, which is not restricted by this application. If the managed state of the target expansion cabinet is normal or initial, the storage cluster is allowed to execute the hard disk drive change instruction on the target hard disk. This application sets a pre-state detection link before executing the hard disk drive change instruction on the target hard disk in the storage cluster, detects the managed state of the target expansion cabinet, stops the management and control of the expansion cabinet in an abnormal state, maximizes the success rate of the hard disk drive change instruction execution, and promptly repairs the abnormal expansion cabinet to avoid possible data loss problems in the expansion cabinet.

[0075] In some specific implementation scenarios, in response to detecting that the managed state of a target expansion cabinet is abnormal, an initialization operation is performed on the target expansion cabinet to ensure that the target expansion cabinet is in an initial state. The initialization operation includes changing the target cluster identifier written in the backplane key product data within the target expansion cabinet to 0, that is, clearing the field in the backplane key product data that contains the target cluster identifier. When the managed state of the target expansion cabinet is detected to be abnormal, the field in the target expansion cabinet that already contains the target cluster identifier is written back to empty, clearing the impact of the permissions of the storage cluster that has previously obtained management permissions on the expansion cabinet, thereby facilitating the subsequent reconfiguration of the manageable storage cluster.

[0076] In some specific implementation scenarios, in response to detecting that a storage cluster executes a hard disk drive change instruction on any hard disk in an Ethernet-based target expansion cabinet, determining whether the storage cluster meets the cabinet management conditions of the target expansion cabinet includes:

[0077] Obtain the storage cluster identifier corresponding to the storage cluster; obtain the target cluster identifier written in the target expansion cabinet; if the target cluster identifier written in the target expansion cabinet is 0, determine that the storage cluster meets the cabinet management conditions; compare the storage cluster identifier with the target cluster identifier to determine whether the storage cluster identifier and the target cluster identifier match; if the storage cluster identifier and the target cluster identifier match, determine that the storage cluster meets the cabinet management conditions; if the storage cluster identifier and the target cluster identifier do not match, determine that the storage cluster does not meet the cabinet management conditions. If the storage cluster identifier and the target cluster identifier are consistent, determine that the storage cluster corresponding to the storage cluster identifier meets the conditions for managing the expansion cabinet. If the target cluster identifier written in the expansion cabinet is 0, it indicates that the expansion cabinet is not configured with a manageable storage cluster. In this case, it can also be determined that the management cluster meets the conditions for managing the expansion cabinet. Before granting the storage cluster management authority over the expansion cabinet, verify whether the storage cluster meets the cabinet management conditions for the expansion cabinet to avoid a situation where a single expansion cabinet is managed by multiple storage clusters.

[0078] Specifically, the above-mentioned method for obtaining the target cluster identifier written in the target expansion cabinet specifically includes: in response to detecting the existence of a storage cluster executing a hard drive change instruction on the target hard drive, triggering the platform management module in the storage system to read the target cluster identifier written in the target cluster identifier field in the backplane vital product data (VPD) in the target expansion cabinet. Among them, the backplane vital product data is an indispensable part of the expansion cabinet, and the writing of key product information is achieved through a specific circuit design. In this application, the target cluster identifier can be pre-written into the expansion cabinet to facilitate subsequent viewing and other operations.

[0079] Specifically, the method for obtaining the storage cluster identifier corresponding to the storage cluster specifically includes, in response to detecting that a storage cluster executes a hard drive change instruction on a target hard drive, triggering a cabinet management module in the storage system to parse a specified page based on the expansion cabinet management protocol to obtain the storage cluster identifier. The expansion cabinet management protocol is preferably set to the SES (SCSI Enclosure Services) protocol, but may also be other protocols that can achieve management of expansion cabinets, which is not restricted by this application. In the SES protocol, page pages are used to store and report status information of the expansion cabinet and its internal devices. The cabinet management module obtains the storage cluster identifier of the storage cluster that initiates the hard drive change instruction to the hard drive in the expansion cabinet (i.e., manages the hard drive) by parsing the specified page according to the SES protocol. The cabinet management module compares the storage cluster identifier with the target cluster identifier to determine whether the storage cluster identifier matches the target cluster identifier. The present application achieves a rapid determination of whether the storage cluster meets the cabinet management conditions by searching the backplane key product data of the expansion cabinet and quickly obtaining the target cluster identifier already written in the expansion cabinet and the storage cluster identifier corresponding to the storage cluster that executes the hard drive change instruction through the expansion cabinet management protocol.

[0080] S2. In response to detecting that the storage cluster meets the cabinet management condition, granting the storage cluster management authority over the target expansion cabinet.

[0081] In some specific implementation scenarios, the method disclosed in this embodiment also includes a method for writing a target cluster identifier in a target expansion cabinet: pre-configuring and saving the management relationship between the storage cluster and the expansion cabinet in the storage system, wherein the storage cluster corresponding to the expansion cabinet is unique, that is, by setting the relationship between the expansion cabinet and the storage cluster in advance, specifying the manageable storage cluster corresponding to each expansion cabinet, thereby improving the stability of the storage system; according to the management relationship, searching for the storage cluster identifier of the target storage cluster corresponding to the target expansion cabinet; confirming that the storage cluster identifier of the target storage cluster is the target cluster identifier corresponding to the target expansion cabinet and writing the target cluster identifier into the backplane key product data of the target expansion cabinet.

[0082] In some specific implementation scenarios, in response to detecting that the target cluster identifier in the backplane key product data of the target expansion cabinet is 0, the target expansion cabinet may not have yet written the storage identifier corresponding to the storage cluster with which it has a management relationship, or the target expansion cabinet may have performed an initialization operation after detecting an abnormal state, resulting in the storage cluster identifier of the corresponding manageable storage cluster not being written into the expansion cabinet. A detection is performed to determine whether a storage cluster has initiated a hard drive change instruction for a target hard drive in the target expansion cabinet; if one storage cluster has initiated a hard drive change instruction for the hard drive in the target expansion cabinet, a first operation is performed; if multiple storage clusters have initiated hard drive change instructions for the hard drive in the target expansion cabinet, a second operation is performed.

[0083] Among them, the first operation includes: starting the inspection and recovery task to use the storage cluster identifier corresponding to the storage cluster as the target cluster identifier and write it into the backplane key data of the target expansion cabinet; at this time, since the target expansion cabinet has not received the management of any storage cluster, and the target hard disk contained in the cabinet is managed by this storage cluster while receiving the hard disk drive change instruction, it can be directly determined that the configured storage cluster has management authority over the target expansion cabinet, and there is no need to consider whether the target expansion cabinet has been pre-configured with a management relationship with the management cluster.

[0084] The second operation includes:

[0085] In response to a storage cluster that has a management relationship with the target expansion cabinet being included in the storage cluster, a review and recovery task is initiated to use the storage cluster identifier of the storage cluster that has a management relationship with the target expansion cabinet as the target cluster identifier and write it into the backplane key data of the target expansion cabinet. In response to the storage cluster not including the storage cluster that has a management relationship with the target expansion cabinet, a change time node at which multiple storage clusters initiate the hard drive change instruction is obtained, and a review and recovery task is initiated to write the target cluster identifier into the backplane key data of the target expansion cabinet. The target cluster identifier is the storage cluster identifier corresponding to the storage cluster with the earliest change time node among the obtained storage clusters. If multiple storage clusters exist for the target expansion cabinet, a cluster with management authority is selected from the multiple storage clusters, giving priority to the storage cluster with a management relationship with the target expansion cabinet. If no storage cluster exists, the storage cluster that executed the hard drive change instruction earliest is determined to be the only cluster with management authority.

[0086] In addition, in order to improve the business capabilities and data security of the storage system, the present application also proposes a disaster recovery method, which specifically includes: regularly detecting the operating status of the storage cluster that matches the expansion cabinet; in response to detecting an abnormality in the storage cluster, clearing the cluster identifier corresponding to the storage cluster written in the backplane key data in the expansion cabinet and querying whether the storage cluster with the abnormality has a corresponding mirror cluster; if the storage cluster with the abnormality has a corresponding mirror cluster, directly granting the mirror cluster the authority to manage the expansion cabinet, and writing the cluster identifier corresponding to the mirror cluster into the backplane key data of the expansion cabinet. When the abnormality in the storage cluster is detected, the storage system generates a warning to prompt the user that the storage cluster has failed and prompts the user to isolate and repair the storage cluster. If the storage cluster with the abnormality does not have a mirror cluster, the above-mentioned second operation is performed to select a new cluster to manage the expansion cabinet. The present application provides a method for responding to abnormalities in the storage cluster of the expansion cabinet under management. If a mirror cluster exists, the mirror cluster is directly called up for replacement, or a new storage cluster is selected for management. While increasing the disaster recovery capability of the storage system, the normal operation of the storage business in the expansion cabinet is greatly guaranteed, thereby improving the business capability of the entire storage system and ensuring the security of the data in the storage system.

[0087] Before granting the storage cluster management authority over a specified expansion cabinet, this application adds a check on whether the storage cluster has the cabinet management conditions, thereby avoiding the situation where multiple clusters may manage the same expansion cabinet at the same time, causing the risk of data loss, and greatly improving the security of the hard disk data in the expansion cabinet.

[0088] Example 2

[0089] Corresponding to the above embodiment 1, as Figure 2 As shown, an embodiment of the present application further provides a management system for an Ethernet-based expansion cabinet, including:

[0090] A processing module 210 is configured to, in response to detecting the presence of a storage cluster, execute a hard disk drive change instruction on any hard disk in a target Ethernet-based expansion cabinet, and determine whether the storage cluster satisfies a cabinet management condition of the target expansion cabinet;

[0091] The management module 220 is configured to grant the storage cluster management authority over the target expansion cabinet in response to detecting that the storage cluster meets the cabinet management condition.

[0092] In some implementation scenarios, the processing module 210 is also used to detect and determine the managed state of the target expansion cabinet, and the managed state is used to indicate the storage cluster situation in which the expansion cabinet accepts the management instruction initiated, and the managed state includes an initial state, a normal state, and an abnormal state; if the managed state of the target expansion cabinet is an abnormal state, an abnormal alarm is generated and the execution of the hard disk drive change instruction on the target hard disk in the target expansion cabinet is stopped; if the managed state of the target expansion cabinet is a normal state or an initial state, the storage cluster is allowed to execute the hard disk drive change instruction on the target hard disk.

[0093] In some implementation scenarios, the processing module 210 is also used to obtain the storage cluster identifier corresponding to the storage cluster; obtain the target cluster identifier written in the target expansion cabinet; if it is detected that the target cluster identifier written in the target expansion cabinet is 0, it is determined that the storage cluster meets the cabinet management condition; compare the storage cluster identifier with the target cluster identifier to determine whether the storage cluster identifier matches the target cluster identifier; if the storage cluster identifier matches the target cluster identifier, it is determined that the storage cluster meets the cabinet management condition; if the storage cluster identifier does not match the target cluster identifier, it is determined that the storage cluster does not meet the cabinet management condition.

[0094] In some implementation scenarios, the processing module 210 is also used to, in response to detecting the existence of a storage cluster executing a hard disk drive change instruction on the target hard disk, trigger the platform management module in the storage system to read the target cluster identifier written in the target cluster identifier field in the backplane key product data in the target expansion cabinet; in response to detecting the existence of a storage cluster executing a hard disk drive change instruction on the target hard disk, trigger the cabinet management module in the storage system to parse the specified page based on the expansion cabinet management protocol to obtain the storage cluster identifier; and compare the storage cluster identifier with the target cluster identifier through the cabinet management module to determine whether the storage cluster identifier matches the target cluster identifier.

[0095] In some implementation scenarios, the processing module 210 is also used to pre-configure and save the management relationship between the storage cluster and the expansion cabinet in the storage system, wherein the storage cluster corresponding to the expansion cabinet is unique; based on the management relationship, the storage cluster identifier of the target storage cluster corresponding to the target expansion cabinet is searched; the storage cluster identifier of the target storage cluster is confirmed to be the target cluster identifier corresponding to the target expansion cabinet and the target cluster identifier is written into the backplane key product data of the target expansion cabinet.

[0096] In some implementation scenarios, the processing module 210 is also used to perform an initialization operation on the target expansion cabinet to ensure that the target expansion cabinet is in an initial state in response to detecting that the managed state of the target expansion cabinet is an abnormal state; wherein, the initialization operation includes: changing the target cluster identifier written in the backplane key product data in the target expansion cabinet to 0.

[0097] In some implementation scenarios, the processing module 210 is further configured to, in response to detecting that a target cluster identifier in the backplane key product data of the target expansion cabinet is 0, detect whether a storage cluster initiates a hard disk drive change instruction for a target hard disk in the target expansion cabinet; if one storage cluster initiates a hard disk drive change instruction for the hard disk in the target expansion cabinet, perform a first operation; if multiple storage clusters initiate hard disk drive change instructions for the hard disk in the target expansion cabinet, perform a second operation;

[0098] The first operation includes: starting a review and recovery task to use the storage cluster identifier corresponding to the storage cluster as a target cluster identifier and writing the identifier into the backplane key data of the target expansion cabinet;

[0099] Among them, the second operation includes: in response to the storage cluster containing a storage cluster that has a management relationship with the target expansion cabinet, starting the review and recovery task to use the storage cluster identifier of the storage cluster that has a management relationship with the target expansion cabinet as the target cluster identifier and write it into the backplane key data of the target expansion cabinet; in response to the storage cluster not containing a storage cluster that has a management relationship with the target expansion cabinet, obtaining the change time nodes at which multiple storage clusters initiate the hard disk drive change instructions, and starting the review and recovery task to use the target cluster identifier and write it into the backplane key data of the target expansion cabinet, the target cluster identifier being the storage cluster identifier corresponding to the storage cluster with the earliest change time node in the obtained storage clusters.

[0100] Example 3

[0101] Corresponding to all the above embodiments, the present application further provides a computer program product, wherein the computer program product includes a computer program, and when the computer program is executed by a processor, the following steps are implemented:

[0102] In response to detecting that there is a storage cluster executing a hard disk drive change instruction on any hard disk in a target Ethernet-based expansion cabinet, determining whether the storage cluster satisfies a cabinet management condition of the target expansion cabinet;

[0103] In response to detecting that the storage cluster meets the cabinet management condition, the storage cluster is granted management authority over the target expansion cabinet.

[0104] Example 4

[0105] Corresponding to all the above embodiments, an embodiment of the present application provides an electronic device, including: one or more processors; and a memory associated with the one or more processors, the memory being configured to store program instructions. When the program instructions are read and executed by the one or more processors, the program instructions perform the following operations:

[0106] In response to detecting that there is a storage cluster executing a hard disk drive change instruction on any hard disk in a target Ethernet-based expansion cabinet, determining whether the storage cluster satisfies a cabinet management condition of the target expansion cabinet;

[0107] In response to detecting that the storage cluster meets the cabinet management condition, the storage cluster is granted management authority over the target expansion cabinet.

[0108] in, Figure 3 The electronic device architecture is shown as an example, and may include a processor 310, a video display adapter 311, a disk drive 312, an input / output interface 313, a network interface 314, and a memory 320. The processor 310, the video display adapter 311, the disk drive 312, the input / output interface 313, the network interface 314, and the memory 320 may be communicatively connected via a bus 330.

[0109] Among them, the processor 310 can be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, etc., to execute relevant programs to implement the technical solutions provided in this application.

[0110] The memory 320 can be implemented in the form of ROM (Read Only Memory, programmable memory), RAM (Random Access Memory, random access memory), static storage device, dynamic storage device, etc. The memory 320 can store an operating system 321 for controlling the execution of the electronic device 300, and a basic input and output system (BIOS) 322 for controlling the low-level operations of the electronic device 300. In addition, a web browser 323, a data storage management system 324, and an icon font processing system 325, etc. can also be stored. The above-mentioned icon font processing system 325 can be an application program that specifically implements the operations of the aforementioned steps in the embodiment of the present application. In short, when the technical solution provided by the present application is implemented by software or firmware, the relevant program code is stored in the memory 320 and is called and executed by the processor 310.

[0111] The input / output interface 313 is used to connect to input / output modules to implement information input and output. The input / output modules can be configured as components within the device (not shown in the figure) or can be externally connected to the device to provide corresponding functions. Input devices may include a keyboard, mouse, touch screen, microphone, various sensors, etc., and output devices may include a display, speaker, vibrator, indicator light, etc.

[0112] The network interface 314 is used to connect to a communication module (not shown) to enable communication between the device and other devices. The communication module can communicate via a wired method (such as USB, network cable, etc.) or a wireless method (such as mobile network, WiFi, Bluetooth, etc.).

[0113] The bus 330 comprises a pathway for transmitting information between the various components of the device (eg, the processor 310 , the video display adapter 311 , the disk drive 312 , the input / output interface 313 , the network interface 314 , and the memory 320 ).

[0114] In addition, the electronic device 300 can also obtain information on specific collection conditions from the virtual resource object collection condition information database for use in condition judgment, etc.

[0115] It should be noted that although the above device only shows the processor 310, video display adapter 311, disk drive 312, input / output interface 313, network interface 314, memory 320, bus 330, etc., in the specific implementation process, the device may also include other components necessary for normal execution. In addition, it will be understood by those skilled in the art that the above device may also include only the components necessary to implement the solution of the present application, and does not necessarily include all the components shown in the figure.

[0116] Through the description of the above implementation methods, it can be seen that those skilled in the art can clearly understand that the present application can be implemented by means of software plus the necessary general hardware platform. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which can be stored in a storage medium such as ROM / RAM, a magnetic disk, an optical disk, etc., and includes a number of instructions for enabling a computer device (which can be a personal computer, a cloud service terminal, or a network device, etc.) to execute the methods of each embodiment of the present application or certain parts of the embodiments.

[0117] Example 5

[0118] Corresponding to all the above embodiments, an embodiment of the present application further provides a computer-readable storage medium, characterized in that it stores a computer program that causes a computer to perform the following operations:

[0119] In response to detecting that there is a storage cluster executing a hard disk drive change instruction on any hard disk in a target Ethernet-based expansion cabinet, determining whether the storage cluster satisfies a cabinet management condition of the target expansion cabinet;

[0120] In response to detecting that the storage cluster meets the cabinet management condition, the storage cluster is granted management authority over the target expansion cabinet.

[0121] Each embodiment in this specification is described in a progressive manner. The same or similar parts between the embodiments can be referred to each other. Each embodiment focuses on the differences from other embodiments. In particular, for system or system embodiments, since they are basically similar to method embodiments, the description is relatively simple. For relevant parts, refer to the partial description of the method embodiment. The system and system embodiments described above are merely schematic. The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. A person of ordinary skill in the art can understand and implement it without making any creative efforts.

[0122] The above are only preferred embodiments of the present application and are not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application should be included in the scope of protection of the present application.

Claims

1. A method for managing an Ethernet-based expansion cabinet, characterized in that: Applied to a storage system, the method includes: In response to detecting that there is a storage cluster executing a hard disk drive change instruction on any hard disk in a target Ethernet-based expansion cabinet, determining whether the storage cluster satisfies a cabinet management condition of the target expansion cabinet; In response to detecting that the storage cluster meets the cabinet management condition, the storage cluster is granted management authority over the target expansion cabinet.

2. The method according to claim 1, characterized in that Before the storage cluster executes the hard disk drive change instruction on any hard disk in the Ethernet-based target expansion cabinet, the method further includes: Detecting and determining a managed state of the target expansion cabinet, wherein the managed state is used to indicate a storage cluster situation in which the expansion cabinet accepts an initiated management instruction, and the managed state includes an initial state, a normal state, and an abnormal state; If the managed state of the target expansion cabinet is an abnormal state, an abnormal alarm is generated and execution of a hard disk drive change instruction on a hard disk in the target expansion cabinet is stopped; If the managed state of the target expansion cabinet is a normal state or an initial state, the storage cluster is allowed to execute the hard disk drive change instruction on the hard disk.

3. The method according to claim 1, characterized in that In response to detecting that there is a storage cluster executing a hard disk drive change instruction on any hard disk in an Ethernet-based target expansion cabinet, determining whether the storage cluster meets a cabinet management condition of the target expansion cabinet includes: Obtaining a storage cluster identifier corresponding to the storage cluster; Obtaining a target cluster identifier written in the target expansion cabinet; If it is detected that the target cluster identifier written into the target expansion cabinet is 0, it is determined that the storage cluster meets the cabinet management condition; Comparing the storage cluster identifier with the target cluster identifier to determine whether the storage cluster identifier matches the target cluster identifier; If the storage cluster identifier matches the target cluster identifier, determining that the storage cluster meets the cabinet management condition; If the storage cluster identifier does not match the target cluster identifier, it is determined that the storage cluster does not meet the cabinet management condition.

4. The method according to claim 3, characterized in that The method comprises: In response to detecting that there is a storage cluster executing a hard drive change instruction on a target hard drive, triggering a platform management module in the storage system to read a target cluster identifier written in a target cluster identifier field in backplane key product data within a target expansion cabinet; In response to detecting that a storage cluster executes a hard disk drive change instruction on a target hard disk, triggering a cabinet management module in the storage system to parse a specified page based on an expansion cabinet management protocol to obtain a storage cluster identifier; The cabinet management module compares the storage cluster identifier with the target cluster identifier to determine whether the storage cluster identifier matches the target cluster identifier.

5. The method according to any one of claims 2 to 4, characterized in that: The method includes writing a target cluster identifier in the target expansion cabinet: Pre-configuring and saving a management relationship between the storage cluster and the expansion cabinet in a storage system, wherein the storage cluster corresponding to the expansion cabinet is unique; According to the management relationship, searching for a storage cluster identifier of a target storage cluster corresponding to the target expansion cabinet; Confirm that the storage cluster identifier of the target storage cluster is the target cluster identifier corresponding to the target expansion cabinet and write the target cluster identifier into the backplane key product data of the target expansion cabinet.

6. The method according to claim 2, characterized in that The method further comprises: In response to detecting that the managed state of the target expansion cabinet is an abnormal state, performing an initialization operation on the target expansion cabinet to ensure that the target expansion cabinet is in an initial state; The initialization operation includes: The target cluster identifier written in the backplane key product data in the target expansion cabinet is changed to 0.

7. The method according to claim 6, characterized in that The method further comprises: In response to detecting that the target cluster identifier in the backplane key product data of the target expansion cabinet is 0; Detecting whether there is a storage cluster initiating a hard disk drive change instruction for a target hard disk in the target expansion cabinet; If there is a storage cluster that initiates a hard disk drive change instruction for the hard disk in the target expansion cabinet, performing a first operation; If there are multiple storage clusters initiating hard disk drive change instructions for the hard disk in the target expansion cabinet, performing a second operation; The first operation includes: Initiate a review and recovery task to use the storage cluster identifier corresponding to the storage cluster as a target cluster identifier and write the identifier into the backplane key data of the target expansion cabinet; The second operation includes: In response to the storage cluster including the storage cluster having a management relationship with the target expansion cabinet, starting a review and recovery task to use the storage cluster identifier of the storage cluster including the storage cluster having a management relationship with the target expansion cabinet as the target cluster identifier and writing the identifier into the backplane key data of the target expansion cabinet; In response to the fact that the storage cluster does not include a storage cluster having a management relationship with the target expansion cabinet, multiple change time nodes at which the storage clusters initiate the hard disk drive change instructions are obtained, and a review and recovery task is started to identify the target cluster and write it into the backplane key data of the target expansion cabinet. The target cluster identifier is the storage cluster identifier corresponding to the storage cluster with the earliest change time node in the obtained storage clusters.

8. A management system for a base expansion cabinet, characterized in that: The system comprises: a processing module, configured to, in response to detecting the presence of a storage cluster, execute a hard disk drive change instruction on any hard disk in a target Ethernet-based expansion cabinet, and determine whether the storage cluster satisfies a cabinet management condition of the target expansion cabinet; The management module is configured to grant the storage cluster management authority over the target expansion cabinet in response to detecting that the storage cluster meets the cabinet management condition.

9. An electronic device, characterized in that: The electronic device comprises: one or more processors; and a memory associated with the one or more processors, wherein the memory is used to store program instructions, and when the program instructions are read and executed by the one or more processors, the method according to any one of claims 1 to 7 is executed.

10. A computer-readable storage medium, characterized in that The computer program stores a computer program, which enables a computer to execute the method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Memory cluster deployment method, device and equipment and computer readable memory medium

    CN108880876A

  • Permission determination method and device for storage cluster, equipment and storage medium

    CN110909379A