A method and apparatus for managing storage resources

By automatically acquiring and analyzing storage device status parameters through central management equipment, the cloud storage system can automatically expand its capacity, solving the problem of low efficiency in manual configuration in existing technologies and improving expansion efficiency and ease of use.

CN115604294BActive Publication Date: 2025-11-18HANGZHOU HIKVISION SYST TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211193219.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-28
Publication Date
2025-11-18
Estimated Expiration
2042-09-28

AI Technical Summary

Technical Problem

In existing cloud storage systems, the configuration of expanded storage resources relies on manual configuration, which is inefficient, not easy to use, and requires high technical skills from users.

Method used

The central management device automatically obtains the status parameters of the storage device, determines the expansion storage unit based on the conditions, and realizes automatic planning and configuration of expansion capacity, including when the status parameters meet the requirement that the current capacity information is greater than the historical capacity plus a threshold or when a new storage unit is added to the list, and automatically mounts it to the gateway device.

Benefits of technology

It improves the efficiency and ease of use of cloud storage system expansion, reduces the technical requirements for users, and realizes automatic expansion and management of storage resources without manual planning and configuration.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115604294B_ABST
    Figure CN115604294B_ABST
Patent Text Reader

Abstract

The application provides a method and device for managing storage resources, and relates to the technical field of storage, so as to improve the efficiency and usability of cloud storage system expansion. The method comprises the following steps: a central management device acquires state parameters of a target storage resource set, the state parameters comprising current capacity information and / or a current storage unit list; if the state parameters meet a condition, the central management device determines an expansion storage unit for expanding the target storage resource set; the condition that the state parameters meet comprises that the current capacity indicated by the current capacity information is not less than the sum of the historical capacity of the target storage resource set and a first threshold; and / or the current storage unit list has added storage units compared with the historical storage unit list of the target storage resource set.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of storage, in particular to a method and device for managing storage resources. BACKGROUND

[0002] In the Internet era, the amount of core business data and other data of users increases in geometric numbers, and the requirements for data storage capacity and security are also increasing. Cloud storage systems can provide storage space for massive data, and the data is dispersed to each storage node in the entire cloud storage system. Among them, heterogeneous storage is a widely used cloud storage system, which breaks through the technical barriers of compatibility of different types of physical storage devices.

[0003] In the heterogeneous storage system, the heterogeneous gateway node mounts, unmounts, reports the state and performs read-write operations on the heterogeneous storage devices managed by the heterogeneous gateway node, and the central management node uniformly manages the heterogeneous gateway node and the heterogeneous storage devices.

[0004] In actual use, the user issues configuration information corresponding to the heterogeneous storage device to the central management node, and then connects the heterogeneous storage device to the heterogeneous gateway node for loading management. When the capacity of the heterogeneous storage device is expanded later, the heterogeneous storage device needs to be manually re-planned and configured so that the expanded capacity of the heterogeneous storage device can be normally used in the cloud storage system.

[0005] Obviously, the configuration of the expanded storage resource in the current cloud storage system depends on manual configuration, which is low in efficiency and not easy to use, and requires high technical ability of the user. SUMMARY

[0006] The present application provides a method and device for managing storage resources, which improves the efficiency and ease of use of cloud storage system expansion.

[0007] To achieve the above purpose, the present application adopts the following technical solutions:

[0008] In a first aspect, the present application provides a method for managing storage resources, which can include: a central management device obtaining a state parameter of a storage device, the state parameter including: current capacity information and / or a current storage unit list. If the state parameter meets the condition, the central management device determines the expanded storage unit of the target storage resource set expansion. The condition that the state parameter meets can include: the current capacity indicated by the current capacity information is not less than the sum of the historical capacity of the target storage resource set and the first threshold; and / or, the current storage unit list adds storage units compared with the historical storage unit list of the target storage resource set.

[0009] The storage resource management method provided in this application involves a central management device determining expanded storage units by acquiring status parameters of a target storage resource set. These status parameters include the current capacity information and / or the current list of storage units for the target storage resource set. If the current capacity indicated by the acquired current capacity information is not less than the sum of the historical capacity of the target storage resource set and a first threshold, and / or if the acquired current list of storage units contains more storage units than the historical list of the target storage resource set, then it indicates that the target storage resource set has expanded storage capacity. The central management device then processes this expanded storage capacity to determine the expanded storage units for the target storage resource set. This management process eliminates the need for manual planning and configuration, improving the efficiency and ease of use of cloud storage system expansion, and places no technical requirements on the user.

[0010] As one possible implementation, the central management device periodically executes the aforementioned method for managing storage resources.

[0011] As one possible implementation, the aforementioned status parameters include current capacity information. When the status parameters meet the condition that the current capacity is not less than the sum of the historical capacity and a first threshold, the central management device determines the extended storage units for expanding the target storage resource set. This can include the central management device dividing the difference between the current capacity and the historical capacity into extended storage units. When this difference exceeds the first threshold, the central management device determines that the target storage resource set has been expanded to avoid configuring a small amount of storage resources as storage units, thus increasing the management burden of the cloud storage system.

[0012] As one possible implementation, the central management device divides the difference between the current capacity and the historical capacity into extended storage units. This can include: the central management device dividing the difference into extended storage units according to the default capacity size of the storage units. The capacity of an extended storage unit is less than or equal to the sum of the default capacity and a second threshold. In this way, extended storage units can be divided into one or more extended storage units based on the default capacity size of the storage units, ensuring a relatively balanced capacity of the extended storage units and facilitating subsequent management.

[0013] As one possible implementation, the second threshold could be half the default capacity of the storage unit.

[0014] As one possible implementation, the aforementioned status parameters include the current storage unit list. The central management device determines the extended storage units for expanding the target storage resource set when the current storage unit list contains more storage units than the historical storage unit list of the target storage resource set. This can include the central management device using the newly added storage units in the current storage unit list compared to the historical storage unit list of the target storage resource set as the extended storage units. The central management device compares the current storage unit list information with the historical storage unit list information to determine whether the target storage resource set needs to be expanded. This optimizes the conditions for determining expansion in the cloud storage system (i.e., the original condition was based on capacity information), making this solution applicable to more application scenarios.

[0015] As one possible implementation, the method for managing storage resources provided in this application may further include: configuring an identifier for the extended storage unit on the central management device; recording the status of the extended storage unit as a pending mounting state on the central management device; and mounting the storage unit in the pending mounting state to the gateway device connected to the central management device according to the identifier of the storage unit. In this way, by using the extended storage unit identifier configured by the central management device and the pending mounting state, the extended storage unit can be mounted by the gateway device connected to the central management device, further improving the efficiency and ease of use of cloud storage system expansion.

[0016] As one possible implementation, the central management device mounts the storage unit to be mounted to the gateway device connected to it according to the storage unit's identifier. This can include: the central management device selecting a target gateway device according to a mounting policy, and mounting the storage unit to be mounted to that target gateway device. By selecting a target gateway device from one or more gateway devices connected to it according to a mounting policy, and mounting the storage unit to be mounted to that target gateway device, the target gateway device can better manage the storage units mounted on the target gateway node, thereby improving the overall operating efficiency of the cloud storage system.

[0017] One possible implementation strategy is to select the gateway device with the largest remaining capacity and the fewest mounted storage units. In this way, the mounting relationship of storage resources is dynamically determined based on the gateway node's load (already mounted capacity) and mounting limit, eliminating the need for manual planning and intervention, thus improving usability.

[0018] As one possible implementation, the central management device uses a polling method to sequentially mount storage units in the mounting state to the gateway devices connected to the central management device, ensuring that the mounting process traverses all storage units in the mounting state. When mounting a storage unit in the mounting state, the target gateway device connected to the central management device is selected according to the mounting strategy.

[0019] As one possible implementation, the central management device periodically polls to sequentially mount storage units in the mounting state to the gateway device connected to the central management device. This avoids mounting failures that would result in some storage units in the cloud storage system being in an unmounted state (including those that have failed to mount and those that are in the mounting state), thus ensuring that storage resources in the cloud storage system can be used normally.

[0020] As one possible implementation, a storage directory is configured in the target storage resource set. Each storage directory records storage units of a specific storage protocol type, and the storage resources in an extended storage unit all use the same storage protocol type. The method for managing storage resources provided in this application may further include: a central management device recording extended storage units in the target storage resource set under the storage directory corresponding to the storage protocol type used by the extended storage unit. By using the protocol type of the extended storage unit, the central management device records the extended storage units in storage directories of different protocol types, replacing the process where users need to configure extended storage resources separately according to different storage protocols during storage resource expansion. This eliminates the need for manual operation and further improves the efficiency and ease of use of cloud storage system expansion.

[0021] Secondly, this application provides an apparatus for managing storage resources, the apparatus comprising an acquisition module and a determination module. Wherein:

[0022] The acquisition module is used to acquire the status parameters of the target storage resource set. The status parameters include: current capacity information and / or current storage unit list.

[0023] The determination module is used by the central management device to determine the extended storage units for expanding the target storage resource set if the status parameters meet the conditions. The conditions for meeting the status parameters include: the current capacity indicated by the current capacity information is not less than the sum of the historical capacity of the target storage resource set and a first threshold; and / or, the conditions for meeting the status parameters include: the current storage unit list has added storage units compared to the historical storage unit list of the target storage resource set.

[0024] As one possible implementation, the device may also include a partitioning module for partitioning the difference between the current capacity and the historical capacity to obtain extended storage units.

[0025] As one possible implementation, the segmentation module is specifically used to segment the difference capacity according to the default capacity size of the storage unit to obtain extended storage units; the capacity of an extended storage unit is less than or equal to the sum of the default capacity and the second threshold.

[0026] As one possible implementation, the determining module is specifically used to designate storage units that are added to the current storage unit list compared to the historical storage unit list of the target storage resource set as extended storage units.

[0027] As one possible implementation, the device may further include: a configuration module for configuring the identifier of the extended storage unit; the configuration module is also used to record the status of the extended storage unit as a pending mounting state; the device may further include: a mounting module for the central management device to mount the storage unit in the pending mounting state to the gateway device connected to the central management device according to the identifier of the storage unit.

[0028] As one possible implementation, the mounting module is specifically used to select the target gateway device connected to the central management device according to the mounting strategy, and mount the storage unit in the mounting state to the target gateway device connected to the central management device.

[0029] As one possible implementation, the mounting strategy includes selecting the gateway device with the largest remaining capacity and the fewest mounted storage units.

[0030] As one possible implementation, a storage directory is configured in the target storage resource set, and a storage directory is used to record storage units of a protocol type. The storage resources in an extended storage unit adopt the same storage protocol type. The device may also include a recording module for recording the extended storage units in the target storage resource set under the storage directory corresponding to the storage protocol type adopted by the extended storage units.

[0031] Thirdly, this application proposes a server comprising one or more processors and one or more memories; the one or more memories are coupled to one or more processors, and the one or more memories are used to store computer program code, the computer program code including computer instructions, and when the one or more processors execute the computer instructions, the server performs the method of managing storage resources as described in the first aspect and any of its possible methods.

[0032] Fourthly, this application proposes a computer storage medium including computer instructions that, when executed on a server, cause the server to perform a method for managing storage resources as described in the first aspect and any of its possible methods.

[0033] Fifthly, this application proposes a computer program product that, when run on a computer, causes the computer to perform a method for managing storage resources as described in the first aspect and any of its possible methods.

[0034] For a detailed description of the second to fifth aspects and their various implementations in this application, please refer to the detailed description in the first aspect and its various implementations; and for a detailed analysis of the beneficial effects of the second to fifth aspects and their various implementations in the first aspect and its various implementations, please refer to the beneficial effect analysis in the first aspect and its various implementations, which will not be repeated here. Attached Figure Description

[0035] Figure 1 A cloud storage system framework diagram provided for an embodiment of this application;

[0036] Figure 2 Another cloud storage system framework diagram provided in this application embodiment;

[0037] Figure 3 A flowchart illustrating a method for managing storage resources provided in an embodiment of this application;

[0038] Figure 4 A flowchart illustrating another method for managing storage resources provided in an embodiment of this application;

[0039] Figure 5 A schematic flowchart illustrating a storage unit mounting method provided in an embodiment of this application;

[0040] Figure 6 A schematic diagram of the hardware structure of a device for managing storage resources provided in an embodiment of this application;

[0041] Figure 7 A schematic diagram of the hardware structure of another device for managing storage resources provided in an embodiment of this application;

[0042] Figure 8 This is a schematic diagram of the structure of a server provided in an embodiment of this application. Detailed Implementation

[0043] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0044] In this article, the term "and / or" is merely a description of the relationship between related objects, indicating that there can be three relationships. For example, A and / or B can represent three situations: A exists alone, A and B exist simultaneously, and B exists alone.

[0045] The terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of this application, unless otherwise stated, "multiple" means two or more. Furthermore, "at least one" means one or more, and "multiple" means two or more.

[0046] It should be noted that, in this application, the terms "exemplary" or "for example" are used to indicate that something is being described as an example, illustration, or illustration. Any embodiment or design described as "exemplary" or "for example" in this application should not be construed as being more preferred or advantageous than other embodiments or design solutions. Specifically, the use of terms such as "exemplary" or "for example" is intended to present the relevant concepts in a concrete manner.

[0047] First, some of the terms used in this application will be explained to facilitate understanding by those skilled in the art.

[0048] Central management equipment: refers to the equipment in a cloud storage system that manages gateway nodes and storage devices. Central management equipment can be in the form of a server.

[0049] Gateway device: A device in a cloud storage system responsible for loading, unloading, status reporting, and reading / writing operations on storage devices.

[0050] Storage device: A physical device that enables data transmission and storage based on standard network protocols.

[0051] Storage unit: An independent unit after the capacity space of a storage device is divided. A storage unit can be used for data reading, writing, and status monitoring, similar to a hardware storage volume. A storage unit can be understood as a virtual storage volume.

[0052] Domain: In a cloud storage system, a domain is an independent area where storage devices are divided. Data read and write operations are independent between domains.

[0053] Heterogeneous storage: Employing a novel horizontal cascading model, it online manages storage devices of various brands, models, and interfaces, breaking down capacity barriers between storage devices and enabling centralized scheduling of cross-device storage resources, ensuring efficient utilization and reliable management of storage resources. Gateway devices in a heterogeneous storage system can be called heterogeneous gateway devices, and storage devices within the system can be called heterogeneous storage devices. Heterogeneous storage devices can include various types of physical storage devices, such as network attached storage (NAS) devices, intellectual property-storage area network (IP-SAN) devices, and fiber channel-storage area network (FC-SAN) devices. NAS storage devices utilize the Common Internet File System (CIFS) protocol and the Network File System (NFS) protocol. IP-SAN uses the Internet Small Computer System Interface (iSCSI) protocol. FC-SAN uses the Fiber Channel (FC) protocol.

[0054] Mounting: Creates or links a collection of storage resources to a directory, allowing read and write operations on the data within that collection. The mounted object can be a storage unit or virtual storage volume allocated within a user's permissions.

[0055] A storage resource set refers to the collection of resources within a user's allocated permissions in a cloud storage system. A cloud storage system deploys one or more physical storage devices, connecting these devices to the system for unified management. The cloud storage system then provides users with storage space from its managed resources that meets their needs, accessible according to their permissions. Users can access the storage resources within their assigned permissions in the cloud storage system. Alternatively, a storage resource set can be understood as a virtual storage device; the two are equivalent.

[0056] In such Figure 1In the cloud storage system shown, the collection of storage resources within a user's permissions is treated as an independent storage unit, connected to a heterogeneous gateway node for loading and management. The heterogeneous gateway node manages the heterogeneous storage devices it controls, performing tasks such as mounting, unmounting, status reporting, and read / write operations. A central management node provides unified management of both the heterogeneous gateway nodes and the heterogeneous storage devices. The storage service provider allocates storage capacity and access permissions to the user based on their requests. The user manually configures the allocated storage resources as part of their storage system and mounts them, enabling the system to utilize the requested heterogeneous storage resources. When expanding the capacity of this storage resource collection later, the user must manually repeat the above configuration process; that is, the user needs to manually re-plan and configure the storage resource collection to ensure the expanded capacity is usable within the cloud storage system and that the user's storage system can recognize the newly added storage resources.

[0057] This application proposes a method and apparatus for managing storage resources. A central management device monitors the status parameters (current capacity information and / or current storage unit list information) of a target storage resource set. After the status parameters meet the conditions, the central management device automatically determines the expansion storage units for the target storage resource set to achieve automatic planning and configuration of expansion capacity. This replaces the existing manual planning and configuration operations, improves the efficiency and ease of use of cloud storage system expansion, and does not require the user's technical capabilities.

[0058] The application scenarios of this application will be described in detail below with reference to the accompanying drawings.

[0059] The solution provided in this application can be applied to... Figure 2 The cloud storage system shown. (For example...) Figure 2 As shown, the cloud storage system may include a central management device 201, a gateway device 202, and a virtual storage device 203.

[0060] The virtual storage device 203 is a collection of storage resources within a user's permissions. The storage resources included in the virtual storage device 203 can be distributed and deployed across physical storage devices in different locations. The virtual storage device 203 can be divided into storage units 2031 and mounted on the gateway device 202 to achieve storage resource mounting and management at a smaller capacity granularity, thereby balancing the storage resources managed by each gateway device 202.

[0061] Storage unit 2031, as an independent storage entity in the cloud storage system, is mounted on gateway device 202 and managed by gateway device 202. By managing the mounting at the granular level of storage unit 2031, storage units 2031 in the same virtual storage device 203 can be mounted on different gateway devices 202, enabling concurrent reading and writing of data in a single virtual storage device 203.

[0062] The central management device 201 is a node device in the cloud storage system that performs centralized management. The central management device 201 manages the gateway device 202 connected to it, and also manages the storage units 2031 partitioned by the virtual storage device 203 in the cloud storage system. For example, the central management device 201 can select the gateway device 202 to mount the storage unit 2031.

[0063] For example, the central management device 201 can receive reported parameters from the gateway device 202 to determine the mounting status of the storage unit 2031 by the gateway device 202.

[0064] For example, the central management device 201 can be connected to the virtual storage device 203 to read the status parameters of the virtual storage device 203, such as capacity information and / or storage unit list information.

[0065] The gateway device 202 is used to manage the storage unit 2031 mounted on it, and to perform loading, unloading, status reporting, read and write operations or other operations on the storage unit 2031.

[0066] For example, the central management device 201 can execute the solution provided in this application, monitor the status parameters of the virtual storage device 203, and automatically determine the storage unit 2031 to be expanded after determining that the virtual storage device 203 has been expanded. The specific process of the central management device 201 executing the solution of this application is detailed in the following content.

[0067] It should be noted that the central management device 201 and the gateway device 202 can be in the form of a server, host, or program, etc., and are not limited in the embodiments of this application.

[0068] It should also be noted that, Figure 2 The number of devices included in the cloud storage system shown can be configured according to actual needs. Figure 2 This is merely an example and does not constitute a limitation on the size of cloud storage systems.

[0069] The technical solutions in the embodiments of this application will now be described with reference to other accompanying drawings.

[0070] After a user acquires authorized storage resources through purchase or other means, these authorized storage resources can be considered as virtual storage devices corresponding to that user. Upon initial acquisition of authorized storage resources, the user configures and manages the storage resources on the control terminal according to their permissions, such as categorizing and recording them in different storage directories according to their protocol type, or performing secondary encryption. When using the authorized storage resources, the user requests to expand the storage resources as needed, i.e., the capacity of the storage resources within the user's authorized scope increases. The central management device of the cloud storage system to which the storage resources belong can automatically identify the increased capacity. This application provides a method for managing storage resources to enable the central management device to automatically identify expanded storage resources.

[0071] It should be noted that the management process of the central management device for each set of storage resources (storage resources in a virtual storage device) is the same. The following embodiments use the process of the central management device managing a target set of storage resources as an example for description, and other examples will not be repeated.

[0072] This application provides a method for managing storage resources, which can be applied to... Figure 2 The cloud storage system shown is managed by the central management device 201. For example... Figure 3 As shown, the method for managing storage resources provided in this application includes:

[0073] S301, The central management device obtains the status parameters of the target storage resource set.

[0074] The status parameters include: current capacity information and / or current list of storage units.

[0075] For example, when storage resources use NFS or CIFS storage protocols, the storage units in the storage resource set are divided by the central management device, and the status parameter can be the current capacity information to indicate the latest capacity size of the target storage resource set.

[0076] For example, when storage resources use the iSCSI storage protocol, storage units are partitioned by the storage service provider, and the status parameter can be the current list of storage units to indicate the latest list of storage units in the storage resource set. Of course, when storage resources use the iSCSI storage protocol, the status parameter can also include current capacity information to indicate the latest capacity size of the storage unit.

[0077] Specifically, all storage resource sets in the cloud storage system are connected to a central management device. Each storage resource set has its own management center, and the central management device can interact with the management center of the target storage resource set to obtain the status parameters of the target storage resource set.

[0078] In one possible implementation, the management center of the storage resource set can periodically report status parameters. Alternatively, the management center of the storage resource set can report the latest status parameters when they change.

[0079] In one possible implementation, the central management device can obtain the status parameters of the target storage resource set through a request-response mechanism with the management center of the target storage resource set. For example, the central management device can periodically request and obtain the status parameters of the target storage resource set.

[0080] For example, the value of the above period can be configured according to actual needs, such as 30 minutes.

[0081] S302. If the status parameters of the target storage resource set meet the conditions, the central management device determines the extended storage unit for expanding the target storage resource set.

[0082] Specifically, this condition refers to the status parameters that must be satisfied after the configured storage resource set is expanded. The content of the condition can be configured according to actual needs.

[0083] One possible implementation is that the status parameter must satisfy the following condition: the current capacity indicated by the current capacity information is not less than the sum of the storage device's historical capacity and a first threshold.

[0084] The historical capacity of the target storage resource set is the capacity of the target storage resource set before the execution of S301, as recorded by the central management device.

[0085] In one possible implementation, the first threshold can be 0, meaning that the target storage resource set is considered to have expanded as long as its capacity increases.

[0086] In another possible implementation, the first threshold is a preset non-zero margin of available space. The storage resource set is considered expanded only when the increased capacity is not less than this first threshold, thus avoiding the allocation of a small amount of storage resources as storage units and increasing the management burden of the cloud storage system. If the difference between the current capacity and the historical capacity (the increased capacity) is less than the first threshold, it is determined that the target storage resource set has not been expanded.

[0087] It should be noted that when the increased capacity equals the first threshold, the target storage resource set can be expanded or not expanded according to actual needs. The specific implementation of the increased capacity equaling the first threshold is not limited in this application embodiment.

[0088] For example, the first threshold could be 5 gigabytes (GB).

[0089] In another possible implementation, the condition that the state parameter satisfies may include: the current list of storage units has added storage units compared to the historical list of storage units in the storage resource set.

[0090] The storage unit list indicates the storage units contained in the target storage resource set. The current storage unit list is the latest list of storage units contained in the target storage resource set when S301 is executed; the historical storage unit list is the final list of storage units contained in the target storage resource set recorded before S301 is executed.

[0091] In another possible implementation, the conditions for satisfying the status parameters may include: the current capacity indicated by the current capacity information is not less than the sum of the historical capacity of the storage device and a first threshold, and the current storage unit list has added storage units compared to the historical storage unit list of the storage resource set.

[0092] Specifically, the process by which the central management device in S302 determines the extended storage unit for the target storage resource set expansion differs depending on the content of the status parameters that meet the conditions. This is described in detail below and may include, but is not limited to, the following two schemes:

[0093] Option 1: The status parameters meet the following conditions: the current capacity indicated by the current capacity information is not less than the sum of the historical capacity of the target storage resource set and the first threshold. In S302, the specific process by which the central management device determines the extended storage unit for the expansion of the target storage resource set is as follows: the central management device divides the difference between the current capacity and the historical capacity to obtain the extended storage unit.

[0094] Specifically, the central management device can divide the differential capacity according to the default capacity of the storage unit to obtain extended storage units.

[0095] Among them, the capacity of an extended storage unit is less than or equal to the sum of the default capacity and the second threshold.

[0096] The default capacity of the storage unit is an attribute parameter of the cloud storage system, which can be preset or dynamically adjusted; this application embodiment does not limit this. The default capacity of the storage unit described in Scheme 1 can be the default capacity of the storage unit when executing S302.

[0097] For example, the default capacity of a storage unit can be 30 terabytes (TB).

[0098] Specifically, the second threshold is the difference between the maximum capacity of the configured storage unit and the default capacity, and its value can be configured according to actual needs.

[0099] For example, the second threshold could be half the default capacity of the storage unit.

[0100] Specifically, the central management device divides the difference in capacity according to the default capacity of the storage unit to obtain the extended storage unit. The process can be as follows: when the difference in capacity is less than the sum of the default capacity and the second threshold, it is determined that the target storage resource set has been expanded by one extended storage unit. When the difference in capacity is greater than the sum of the default capacity and the second threshold, the central management device determines that the target storage resource set has been expanded by multiple extended storage units.

[0101] Specifically, when the difference in capacity exceeds the sum of the default capacity and the second threshold, the central management device divides the difference in capacity according to the default capacity of the storage unit. The remaining difference in capacity is then used to determine whether it should be considered as an extended storage unit. For example, the central management device divides the difference in capacity into extended storage units of the default capacity size. If there is no remaining difference in capacity, step S302 ends. If there is a remaining difference in capacity smaller than the default capacity, and this remaining difference in capacity is less than the second threshold, it is not considered as an independent extended storage unit but is merged into one of the already divided extended storage units. If there is a remaining difference in capacity larger than the default capacity, and this remaining difference in capacity is greater than the second threshold, it is considered as an independent extended storage unit. If there is a remaining difference in capacity smaller than the default capacity, and this remaining difference in capacity is equal to the second threshold, it can be determined, based on actual needs, that it is not considered as an independent extended storage unit and is merged into one of the already divided extended storage units, or it can be determined as an independent extended storage unit.

[0102] For example, suppose the default capacity of a storage unit is 30TB, the first threshold is 5GB, and the second threshold is half the default capacity of the storage unit, i.e., 15TB. Suppose in S301 the central management device obtains the current capacity information (A) from the status parameters of the storage unit, and the historical capacity of the storage unit is B. The central management device divides the difference in capacity according to the default capacity of the storage unit to obtain extended storage units. This can include, but is not limited to, the following scenarios:

[0103] Scenario 1: If the difference capacity (AB) is less than or equal to 5GB, for example, if the difference capacity is 3GB, then it is determined that the target storage resource set has not been expanded.

[0104] Scenario 2: The difference capacity (AB) is greater than 5G and less than or equal to 30TB. For example, if the difference capacity is 25TB, the central management device will identify the difference capacity of 25TB as an extended storage unit.

[0105] Scenario 3: The difference capacity (AB) is greater than 30TB and less than or equal to 45TB. For example, if the difference capacity is 35TB, the central management device will identify the difference capacity of 35TB as an extended storage unit.

[0106] Scenario 4: If the difference in capacity (AB) is greater than 45TB, the central management device will divide it into units based on the default capacity (30TB) of a storage unit in the user-configured cloud storage system. For example, if the difference in capacity is 60TB, the central management device will divide it into two extended storage units, each with a capacity of 30TB. If the difference in capacity is 70TB, the central management device will divide it into two extended storage units, with capacities of 30TB and 40TB respectively. If the difference in capacity is 80TB, the central management device will divide it into three extended storage units, with capacities of 30TB, 30TB, and 20TB respectively.

[0107] It should be noted that the above process of obtaining extended storage units describes the process of obtaining extended storage units when all extended storage resources use the same storage protocol.

[0108] Furthermore, in heterogeneous storage systems, since physical storage devices can include various types and employ various storage protocols, the storage resources added when expanding the target storage resource set may come from different types of physical storage devices, i.e., using different storage protocols.

[0109] In one possible implementation, while obtaining the status information in S301, the central management device can also obtain the indication information for the storage protocol type used to indicate the storage resources added during expansion. In S302, the central management device can, based on the indication information, treat the resources using the same storage protocol among the added storage resources as a whole and execute the above-mentioned process of obtaining the extended storage unit to obtain the extended storage unit. The storage resources in an extended storage unit use the same storage protocol type.

[0110] The types of physical storage devices from which the target storage resource set is added during the expansion can be determined by the storage resource provider or requested by the users of the target storage resource set when requesting expansion. This application embodiment does not limit this.

[0111] Option 2: If the status parameters meet the condition that the current storage unit list has added storage units compared to the historical storage unit list of the target storage resource set, the central management device will use the storage units added to the current storage unit list compared to the historical storage unit list of the target storage resource set as extended storage units.

[0112] Option 3: The status parameters meet the following conditions: the current capacity indicated by the current capacity information is not less than the sum of the historical capacity of the target storage resource set and the first threshold, and the current storage unit list has added storage units compared to the historical storage unit list of the target storage resource set. In S302, the central management device can use the storage units added to the current storage unit list compared to the historical storage unit list of the target storage resource set as extended storage units, or the central management device can divide the difference between the current capacity and the historical capacity to obtain extended storage units.

[0113] It should be noted that in Scheme 3, the specific implementation of the extended storage unit determined by the central management device can be configured according to actual needs, and this application embodiment does not limit this.

[0114] Obviously, through the method for managing storage resources provided in this application embodiment, the central management device can obtain the status parameters of the target storage resource set. These status parameters include the current capacity information and / or the current list of storage units for the target storage resource set. If the current capacity indicated by the obtained current capacity information is not less than the sum of the historical capacity of the target storage resource set and a first threshold; and / or, the obtained current list of storage units contains more storage units than the historical list of storage units for the target storage resource set, it indicates that the target storage resource set has expanded storage capacity, enabling the central management device to identify one or more expanded storage units. This process eliminates the need for manual planning and configuration, improving the efficiency and ease of use of cloud storage system expansion, and places no technical requirements on the user.

[0115] Furthermore, such as Figure 4 As shown, the method for managing storage resources provided in this application embodiment may further include S303 to S305.

[0116] S303, Identification of the extended storage unit configured in the central management equipment.

[0117] As one possible implementation, the central management device configures each extended storage unit with a system-wide unique identifier. The specific form of the storage unit identifier is not limited.

[0118] For example, the identifier configured for each extended storage unit by the central management device can be a 16-bit identification code. The first three bits of this identification code are the last three bytes of the media access control address (MAC) of the physical storage device to which the extended storage unit belongs. The fourth to tenth bits of this identification code determine the internal system time of the extended storage unit. The last six bits of this identification code are the count value of the internal counting unit of the cloud storage system.

[0119] The internal system time refers to the time of the system's internal clock, which can be Greenwich Mean Time (GMT), Coordinated Universal Time (UTC), or other times. This application does not impose any restrictions on this. The internal system clock time can be converted from the above encoding format into user-familiar time data such as year, month, day, hour, minute, and second, with a precision unit of milliseconds.

[0120] The internal counting unit of the cloud storage system is used to record the number of expanded storage units determined by the central management device. When the central management device determines an expanded storage unit, the count value of the counting unit is incremented by 1.

[0121] S304. The central management device records the status of the extended storage unit as pending mounting.

[0122] Specifically, the central management device records the status of the extended storage unit determined in S302 as a pending mount status, so that when the mount operation is performed, the extended storage unit determined in S302 can be mounted to the gateway device, thereby enabling the extended storage unit determined in S302 to be connected to the cloud storage system and then used by the user.

[0123] S305. The central management device mounts the storage unit to be mounted to the gateway device connected to the central management device according to the identification of the storage unit.

[0124] Specifically, the central management device selects the target gateway device to which it is connected according to the mounting strategy, and mounts the storage unit to be mounted to the target gateway device to which it is connected.

[0125] As one possible implementation, the central management device can periodically execute S305 to mount the storage units that are in the mounting state.

[0126] As one possible implementation, the central management device uses a polling method to sequentially attach storage units in a pending state to the gateway devices connected to the central management device. When attaching a storage unit in a pending state, the target gateway device connected to the central management device is selected according to the attachment policy.

[0127] As one possible implementation, the central management device periodically polls the storage units in the pending mounting state and sequentially mounts them to the gateway device connected to the central management device.

[0128] The cycle can be 30 minutes.

[0129] For example, when the central management device executes S305, the storage units in the cloud storage system that are in a state of pending mounting include the extended storage units determined in S302. Alternatively, they may also include storage units that previously failed to mount. This application embodiment does not limit the specific source of the storage units in a state of pending mounting.

[0130] For example, the central management device can poll the storage units in the pending mount state sequentially. This order can be the time order in which they entered the pending mount state, the size order of the storage unit's identifier code, or some other order.

[0131] Specifically, the process of the central management device mounting a storage unit (hereinafter referred to as the target storage unit) in a state to be mounted can be as follows: Figure 5 As shown, the following steps may be included:

[0132] S501. The central management device identifies, from the connected gateway devices, a gateway device that is in an available state and has a mounted capacity greater than or equal to the capacity of the target storage unit.

[0133] Specifically, the central management device obtains the reported parameters from each gateway device connected to it, determines the current status of each gateway device, and selects the gateway device whose current status is available.

[0134] For example, each gateway device can periodically report its own reporting parameters to the central management device it is connected to; or, each gateway device can report its own reporting parameters to the central management device it is connected to when a trigger condition is met.

[0135] The triggering conditions can be configured according to actual needs.

[0136] The reported parameters indicate the current status of the gateway device. A gateway device in an available state refers to a network management device whose reported parameters meet the availability criteria. The availability criteria can be configured according to actual needs.

[0137] For example, the reported parameters may include one or more of the following: whether the gateway device is online, the size of the mounted resources, memory usage, CPU usage, and whether it is under maintenance.

[0138] For example, availability conditions may include one or more of the following: being online, having mounted resource capacity less than its own mounting limit, having memory usage less than a third threshold, having CPU usage less than a fourth threshold, and not being in maintenance mode. The content of availability conditions depends on the content of the reported parameters.

[0139] The third and fourth thresholds can be set based on experience. For example, the first threshold can be 90% or 70%. Similarly, the second threshold can be 80% or 98%.

[0140] S502. The central management device determines the target gateway device from the available gateway devices according to the mounting policy.

[0141] The mounting strategy can include selecting the gateway device with the largest remaining capacity and the fewest mounted storage units. Currently, the mounting strategy can be configured according to actual needs.

[0142] In one possible implementation, in S502, the central management device first selects the gateway device with the largest remaining capacity from the available gateway devices. If there is only one such gateway device, it is designated as the target gateway device. If there are multiple gateway devices with the largest remaining capacity, the gateway device with the fewest mounted storage units is selected. If there is only one gateway device with the fewest mounted storage units, it is designated as the target gateway device; if there are multiple gateway devices with the fewest mounted storage units, one is selected as the target gateway device. The selection principle can be random selection or other methods, which are not limited.

[0143] In another possible implementation, in S502, the central management device first selects the gateway device with the fewest mounted storage units from the available gateway devices. If there is only one such gateway device, it is designated as the target gateway device. If there are multiple gateway devices with the fewest mounted storage units, the gateway device with the largest remaining capacity is selected. At this point, if there is only one gateway device with the largest remaining capacity, it is designated as the target gateway device; if there are multiple gateway devices with the largest remaining capacity, one is selected as the target gateway device. The selection principle can be random selection or other methods, which are not limited.

[0144] S503, The central management device mounts the target storage unit to the target gateway device.

[0145] As one possible implementation, the central management device sends the configuration information of the target storage unit to the target gateway device, so that the target gateway device can mount the target storage unit based on the configuration information.

[0146] For example, the configuration information of the target storage unit may include the identifier of the target storage unit, the mounted subdirectory corresponding to the target storage unit, and the capacity of the target storage unit. The identifier of the target storage unit can be the identifier of the extended storage unit configured by the central management device in S303.

[0147] Optionally, if the mounting is successful in S503, the target gateway device can send a notification message to the central management device indicating successful mounting, and the central management node will update the target storage unit to a mounted state. If the mounting fails, the target gateway device can also send a notification message indicating mounting failure to the central management device. Accordingly, the central management device can continue to record the target storage unit as pending mounting, waiting for subsequent mounting attempts.

[0148] It should be noted that if, in S501, it is determined that there is no gateway device in an available state with a mounted capacity greater than or equal to the target storage unit's capacity, or, after S503, the central management device will select the next storage unit in the pending mounting state of the current target storage unit as the target storage unit and execute the process from S501 to S503 until all storage units in the pending mounting state are polled. Then, it waits for the next cycle and repeats the process from S501 to S503 to poll and mount the storage units in the pending mounting state again.

[0149] Furthermore, the target storage resource set is configured with a storage directory, which records storage units that use a storage protocol, such as... Figure 4 As shown, the method for managing storage resources provided in this application embodiment may further include S306.

[0150] S306. The central management device records the extended storage units in the target storage resource set, under the storage directory corresponding to the storage protocol used by the extended storage units.

[0151] Specifically, in S302, the central management device identifies extended storage units, and the storage resources within each extended storage unit use the same storage protocol. In S306, the central management device records the extended storage units identified in S302 in the storage directory corresponding to the storage protocol used by the extended storage unit.

[0152] The storage directory corresponding to the storage protocol used by the extended storage unit refers to the storage protocol of the storage unit used for recording by the storage target, which is the same type as the storage protocol used by the extended storage unit.

[0153] For example, in S302, the central management device identifies extended storage unit 1 using the CIFS protocol, and extended storage units 2 and 3 using the iSCSI protocol. The target storage resource set is configured with storage directory a to record storage units using the iSCSI protocol and storage directory b to record storage units using the CIFS protocol. In S306, extended storage unit 1 can be recorded under storage directory b, and extended storage units 2 and 3 can be recorded under storage directory a.

[0154] As can be seen, the above mainly describes the solutions provided by the embodiments of this application from a methodological perspective. To achieve the functions, the embodiments of this application provide corresponding hardware structures and / or software modules for executing each function. Those skilled in the art should readily recognize that, in conjunction with the modules and algorithm steps of the various examples described in the embodiments disclosed herein, the embodiments of this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed in hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this invention.

[0155] This application embodiment can divide the central management device into functional modules according to the above method example. For example, each function can be divided into its own functional module, or two or more functions can be integrated into one processing module. The integrated module can be implemented in hardware or as a software functional module. Optionally, the module division in this application embodiment is illustrative and only represents one logical functional division; other division methods may be used in actual implementation.

[0156] This application provides an apparatus for managing storage resources, such as... Figure 6 As shown, the device 60 for managing storage resources includes an acquisition module 601 and a determination module 602.

[0157] The acquisition module 601 is used to acquire status parameters of the target storage resource set, including current capacity information and / or a current list of storage units. For example, this acquisition module 601 can be used by the device 60 supporting storage resource management. Figure 3 or Figure 4 S301 in the middle.

[0158] The determination module 602 is used to determine, if the status parameters meet certain conditions, the central management device to determine the extended storage units for expanding the target storage resource set. The conditions for meeting the status parameters may include: the current capacity indicated by the current capacity information is not less than the sum of the historical capacity of the target storage resource set and a first threshold; and / or, the conditions for meeting the status parameters may include: the current storage unit list has added storage units compared to the historical storage unit list of the target storage resource set. For example, this determination module 602 can be used by the device 60 supporting the management of storage resources to perform... Figure 3 or Figure 4 S302 in the middle.

[0159] Optional, such as Figure 7As shown, the device 60 for managing storage resources in a cloud storage system may further include: a partitioning module 603, a configuration module 604, a mounting module 605, and a recording module 606.

[0160] The partitioning module 603 is used to partition the difference between the current capacity and the historical capacity to obtain extended storage units. Specifically, the partitioning module 603 is used to partition the difference in capacity according to the default capacity size of the storage unit to obtain extended storage units; the capacity of an extended storage unit is less than or equal to the sum of the default capacity and a second threshold. For example, the partitioning module 603 can be used to support the device 60 for managing storage resources to execute the partitioning process of scheme 1 in S302.

[0161] Specifically, the determining module 602 can be used to take the newly added storage units in the current storage unit list compared to the historical storage unit list of the target storage resource set as extended storage units.

[0162] Configuration module 604 is used to configure the identifier of the extended storage unit. It can also be used to record the status of the extended storage unit as a pending mount state. For example, this configuration module 604 can be used by the device 60 supporting the management of storage resources. Figure 4 S303 and S304 in the example.

[0163] The mounting module 605 is used to mount the storage unit in the mounting state to the gateway device connected to the central management device according to the storage unit's identifier. Specifically, the mounting module 605 is used to select the target gateway device connected to the central management device according to the mounting strategy, and mount the storage unit in the mounting state to the target gateway device connected to the central management device. The mounting strategy includes selecting the gateway device with the largest remaining capacity and the fewest mounted storage units. For example, this mounting module 605 can be used by the device 60 supporting the management of storage resources. Figure 4 S305 and Figure 5 S501 to S503 in the series.

[0164] The recording module 606 is used to record extended storage units in the target storage resource set, under the storage directory corresponding to the storage protocol type used by the extended storage units. The target storage resource set is configured with storage directories, and each storage directory records storage units of one protocol type. The storage resources within an extended storage unit all use the same storage protocol type. For example, this recording module 606 can be used by the device 60 supporting storage resource management. Figure 4 S306 in the middle.

[0165] Furthermore, an embodiment of this application provides a schematic diagram of the structure of a server, as shown below. Figure 8As shown, the server 80 may include a processor 801, and optionally, a memory 802 connected to the processor 801.

[0166] The processor 801 is used to execute the steps in any of the methods for managing storage resources provided in the above embodiments.

[0167] Processor 801 may be a central processing unit (CPU), a general-purpose processor, a network processor (NP), a digital signal processor (DSP), a microprocessor, a microcontroller, a programmable logic device (PLD), or any combination thereof. Processor 801 may also be any other device with processing capabilities, such as a circuit, device, or software module. Processor 801 may also include multiple CPUs, and processor 801 may be a single-core processor or a multi-core processor. Here, "processor" can refer to one or more devices, circuits, or processing cores used to process data (e.g., computer program instructions).

[0168] The memory 802 may be a read-only memory (ROM) or other type of static storage device capable of storing static information and instructions, random access memory (RAM) or other type of dynamic storage device capable of storing information and instructions, or it may be an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical discs, laser discs, optical discs, digital universal optical discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium capable of carrying or storing desired program code in the form of instructions or data structures and accessible by a computer. This application embodiment does not impose any limitations on this. The memory 802 may exist independently or may be integrated with the processor 801. The memory 802 may contain computer program code. The processor 801 is used to execute the computer program code stored in the memory 802, thereby implementing any of the methods for managing storage resources in this application embodiment.

[0169] This application also provides a computer-readable storage medium including computer-executable instructions that, when run on a computer, cause the computer to perform any of the methods for managing storage resources provided in the above embodiments.

[0170] This application also provides a computer program product containing computer execution instructions, which, when run on a computer, causes the computer to execute any of the methods for managing storage resources provided in the above embodiments.

[0171] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented using software programs, implementation can be, in whole or in part, in the form of a computer program product. This computer program product includes one or more computer-executable instructions. When these computer-executable instructions are loaded and executed on a computer, all or part of the flow or function according to the embodiments of this application is generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer-executable instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, computer-executable instructions can be transmitted from one website, computer, server, or data center to another via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium accessible to a computer or a data storage device containing one or more servers, data centers, etc., that can be integrated with the medium. The available media can be magnetic media (e.g., floppy disks, hard disks, magnetic tapes), optical media (e.g., DVDs), or semiconductor media (e.g., solid-state disks, SSDs).

[0172] Although this application has been described herein in conjunction with various embodiments, those skilled in the art, by reviewing the accompanying drawings, the disclosure, and the appended claims, will understand and implement other variations of the disclosed embodiments in carrying out the claimed application. In the claims, the word "comprising" does not exclude other components or steps, and "a" or "an" does not exclude multiple instances. A single processor or other unit can implement several functions listed in the claims. While different dependent claims may recite certain measures, this does not mean that these measures cannot be combined to produce good results.

[0173] Although this application has been described in conjunction with specific features and embodiments, it is obvious that various modifications and combinations can be made thereto without departing from the spirit and scope of this application. Accordingly, this specification and drawings are merely exemplary illustrations of this application as defined by the appended claims, and are considered to cover any and all modifications, variations, combinations, or equivalents within the scope of this application. Clearly, those skilled in the art can make various alterations and modifications to this application without departing from the spirit and scope of this application. Thus, if such modifications and modifications of this application fall within the scope of the claims of this application and their equivalents, this application is also intended to include such modifications and modifications.

[0174] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any changes or substitutions within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A method for managing storage resources, characterized in that, The method includes: The central management device acquires status parameters of the target storage resource set, including: current capacity information and / or current storage unit list; the target storage resource set represents a set of resources within a user's permissions; the central management device acquires the status parameters of the target storage resource set by interacting with the management center of the target storage resource set; each storage resource set has its own management center, which is used to monitor the status parameters of the storage resource set. If the status parameters meet the conditions, the central management device determines the extended storage unit for expanding the target storage resource set; wherein, the expanded extended storage unit is the storage unit to be mounted by the target user; the target user is the user corresponding to the target storage resource set; The conditions for satisfying the status parameters include: the current capacity indicated by the current capacity information is not less than the sum of the historical capacity of the target storage resource set and the first threshold; and / or, the current storage unit list has added storage units compared to the historical storage unit list of the target storage resource set.

2. The method according to claim 1, characterized in that, The status parameters include the current capacity information, and the status parameters satisfy the condition that the current capacity is not less than the sum of the historical capacity and the first threshold. The central management device determines the extended storage units for expanding the target storage resource set, including: The central management device divides the difference between the current capacity and the historical capacity to obtain the extended storage unit.

3. The method according to claim 2, characterized in that, The central management device divides the difference between the current capacity and the historical capacity to obtain the extended storage unit, including: The central management device divides the difference capacity according to the default capacity size of the storage unit to obtain extended storage units; the capacity of an extended storage unit is less than or equal to the sum of the default capacity and the second threshold.

4. The method according to any one of claims 1-3, characterized in that, The status parameters include the current storage unit list. The status parameters satisfy the condition that the current storage unit list has added storage units compared to the historical storage unit list of the target storage resource set. The central management device determines the expanded storage units for the expansion of the target storage resource set, including: The central management device uses the storage units that are newly added to the current storage unit list compared to the historical storage unit list of the target storage resource set as the extended storage units.

5. The method according to any one of claims 1-3, characterized in that, The method further includes: The central management device configures the identifier of the extended storage unit; The central management device records the status of the extended storage unit as pending mounting. The central management device mounts the storage unit to be mounted to the gateway device connected to the central management device according to the identification of the storage unit.

6. The method according to claim 5, characterized in that, The central management device, according to the identifier of the storage unit, mounts the storage unit in the mounting state to the gateway device connected to the central management device, including: According to the mounting strategy, the central management device selects the target gateway device to which it is connected and mounts the storage unit to be mounted to the target gateway device.

7. The method according to claim 6, characterized in that, The mounting strategy includes selecting the gateway device with the largest remaining capacity and the fewest mounted storage units.

8. The method according to any one of claims 1-3, characterized in that, The target storage resource set is configured with a storage directory. One storage directory is used to record storage units of one storage protocol type, and the storage resources in an extended storage unit adopt the same storage protocol type. The method further includes: The central management device records the extended storage unit in the target storage resource set, under the storage directory corresponding to the storage protocol type adopted by the extended storage unit.

9. An apparatus for managing storage resources, characterized in that, Applied to central management equipment, the device includes: The acquisition module is used to acquire status parameters of a target storage resource set, the status parameters including: current capacity information and / or current storage unit list; the target storage resource set represents a set of resources within a user's permissions; the acquisition module acquires the status parameters of the target storage resource set by interacting with the management center of the target storage resource set; each storage resource set has its own management center, the management center is used to monitor the status parameters of the storage resource set; A determining module is configured to, if the status parameters meet certain conditions, determine the extended storage units for expanding the target storage resource set; the conditions for meeting the status parameters include: the current capacity indicated by the current capacity information is not less than the sum of the historical capacity of the target storage resource set and a first threshold; and / or, the current storage unit list has added storage units compared to the historical storage unit list of the target storage resource set; wherein the expanded storage units are the storage units to be mounted by the target user; the target user is the user corresponding to the target storage resource set.

10. The apparatus according to claim 9, characterized in that, The device further includes: a segmentation module, used to segment the difference between the current capacity and the historical capacity to obtain the extended storage unit; The segmentation module is specifically used to segment the difference capacity according to the default capacity size of the storage unit to obtain extended storage units; the capacity of an extended storage unit is less than or equal to the sum of the default capacity and the second threshold. The determining module is specifically used to use the storage units that are newly added to the current storage unit list compared to the historical storage unit list of the target storage resource set as the extended storage units; The device further includes: a configuration module for configuring the identifier of the extended storage unit; the configuration module is also used to record the status of the extended storage unit as a pending mounting status; the device further includes: a mounting module for mounting the storage unit in the pending mounting status to the gateway device connected to the device according to the identifier of the storage unit. The mounting module is specifically used to select the target gateway device connected to the device according to the mounting strategy, and mount the storage unit in the mounting state to the target gateway device connected to the device. The mounting strategy includes: selecting the gateway device with the largest remaining capacity and the fewest number of mounted storage units; The target storage resource set is configured with a storage directory, where a storage directory is used to record a storage unit of a protocol type, and the storage resources in an extended storage unit adopt the same storage protocol type; the device further includes: a recording module, used to record the extended storage unit in the target storage resource set, under the storage directory corresponding to the storage protocol type adopted by the extended storage unit.

11. A server, characterized in that, Includes one or more processors and one or more memories; The one or more memories are coupled to the one or more processors, the one or more memories being used to store computer program code, the computer program code including computer instructions, and when the one or more processors execute the computer instructions, the server performs the method as described in any one of claims 1-8.

12. A computer storage medium, characterized in that, Includes computer instructions that, when executed on a server, cause the server to perform the method as described in any one of claims 1-8.

13. A computer program product, characterized in that, When the computer program product is run on a computer, it causes the computer to perform the method as described in any one of claims 1-8.

Citation Information

Patent Citations

  • Storage management method, system and device for NAS equipment

    CN112083886A

  • Storage resource mounting method and device

    CN112468590A