Storage resource management method and device, electronic equipment and storage medium

By using local hard disk pooling technology, storage resources from multiple computing nodes are integrated, and storage space is dynamically adjusted to meet user needs. This solves the problem of poor storage resource management and improves the utilization and management efficiency of storage resources.

CN118210618BActive Publication Date: 2026-06-23CHINA UNITED NETWORK COMM GRP CO LTD +2

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
CHINA UNITED NETWORK COMM GRP CO LTD
Filing Date
2024-01-03
Publication Date
2026-06-23

AI Technical Summary

Technical Problem

Existing storage resource management methods are not effective in dynamic adjustment, resulting in low storage space utilization and resource waste.

Method used

By using local hard disk pooling technology, the storage resources provided by the physical disks of multiple computing nodes are integrated into a pooled hard disk, which is dynamically adjusted according to user needs, including pooling and re-pooling operations, to expand the hard disk capacity to meet the demand.

Benefits of technology

It improves the utilization and management efficiency of storage resources, and realizes high-performance, low-latency and high-reliability storage services.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118210618B_ABST
    Figure CN118210618B_ABST
Patent Text Reader

Abstract

The application provides a storage resource management method and device, electronic equipment and storage medium. The method comprises the following steps: determining a storage resource allocation request and a local pooled hard disk corresponding to the storage resource allocation request; if the storage capacity in the local pooled hard disk is less than the storage demand capacity in the storage resource allocation request, determining an expansion capacity according to the storage capacity in the local pooled hard disk and the storage demand capacity in the storage resource allocation request; if the expansion capacity is greater than the available capacity of a global local hard disk, determining a first other local pooled hard disk according to the hard disk type information in the storage resource allocation request; and expanding the local pooled hard disk according to the first target local hard disk and the first other local pooled hard disk to obtain a target local pooled hard disk, wherein the first target local hard disk is a hard disk in an available state in the global local hard disk. The method improves the allocation effect of the local storage resource.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and in particular to a storage resource management method, apparatus, electronic device, and storage medium. Background Technology

[0002] In the field of cloud computing, storage systems are the core infrastructure of data centers and the ultimate carriers of data access. With the explosion of data and the growth of information, traditional local storage methods can no longer meet the needs of large-scale data storage and processing. To improve storage efficiency and management capabilities, dynamic management technologies need to be introduced to intelligently schedule and optimize data based on data access patterns and business requirements.

[0003] Currently, users typically choose to use the local disks that come with virtual machines or physical machines to provide low-latency, extremely high IOPS, and high-throughput storage resources. Virtual machine support for local disks is generally implemented based on LVM technology. The platform needs to be configured with the corresponding volume type, and creating a local disk requires configuring the InstanceLocationFilter in Cinder to ensure that the newly created disk can be assigned to the same compute node as the virtual machine.

[0004] However, existing storage resource management methods suffer from poor management effectiveness. Summary of the Invention

[0005] This application provides a storage resource management method, apparatus, electronic device, and storage medium to solve the problem of poor dynamic adjustment effect of storage resources.

[0006] Firstly, this application provides a storage resource management method, including:

[0007] Determine the storage resource allocation request and the corresponding local pooled hard disk;

[0008] If the storage capacity in the local pooled hard disk is less than the storage demand in the storage resource allocation request, then the expansion capacity is determined based on the storage capacity in the local pooled hard disk and the storage demand in the storage resource allocation request.

[0009] If the expansion capacity is greater than the available capacity of the global local hard disk, then the first other local pooled hard disk is determined according to the hard disk type information in the storage resource allocation request. The first other local pooled hard disk is a pooled hard disk that corresponds to the local pooled hard disk type and has available allocation capacity.

[0010] Based on the first target local hard disk and the first other local pooled hard disk, the local pooled hard disk is expanded to obtain the target local pooled hard disk. The first target local hard disk is a hard disk in an available state among the global local hard disks.

[0011] In this embodiment of the application, determining the storage resource allocation request and the local pooled hard disk corresponding to the storage resource allocation request includes:

[0012] Receive storage resource allocation requests;

[0013] Based on the storage resource allocation request, the current local pooled hard disk and its pooling information are displayed on the display page of the interactive unit in the storage resource management system. The pooling information of the current local pooled hard disk includes attribute information, pooling usage status information, and mount information. The pooling usage status information includes used status and unused status.

[0014] In response to user actions on the currently pooled local disks displayed on the page, determine the local pooled disks.

[0015] In this embodiment of the application, after receiving a storage resource allocation request, and before displaying the currently local pooled hard disk and its pooling information on the display page of the interactive unit in the storage resource management system according to the storage resource allocation request, the method further includes:

[0016] The pooled hard disk creation page is displayed in the interactive unit of the storage resource management system;

[0017] Responding to user input on the pooled disk creation page, obtain creation information;

[0018] Based on the creation information, the target local hard disk is pooled to obtain the current local pooled hard disk with an unused pooled usage status.

[0019] In this embodiment of the application, the local pooled hard disk is expanded based on the first target local hard disk and the first other local pooled hard disks to obtain the target local pooled hard disk, including:

[0020] The expanded capacity is determined based on the available capacity of the first target local hard disk and the available allocated capacity of the first other local pooled hard disks;

[0021] If the expanded capacity is greater than or equal to the expanded capacity, then the local pooled hard disks are expanded according to the first target local hard disk and the first other local pooled hard disks to obtain the target local pooled hard disk.

[0022] In this embodiment of the application, after determining the expanded capacity based on the available capacity of the first target local hard disk and the available allocated capacity of the first other local pooled hard disks, the method further includes:

[0023] If the expanded capacity is less than the expanded capacity, then the local pooled hard disk is expanded according to the first target local hard disk, the second target local hard disk, and the first other local pooled hard disk to obtain the target local pooled hard disk. The second target local hard disk is the hard disk in the reserved state among the global local hard disks.

[0024] Based on the second target local hard disk, a second other local pooled hard disk is determined. The second other local pooled hard disk is a pooled hard disk that is different from the local pooled hard disk in type and has available allocation capacity.

[0025] Adjust the spare capacity of the global local hard disk based on the allocated capacity of the second other local pooled hard disks.

[0026] In this embodiment of the application, after expanding the local pooled hard disk based on the first target local hard disk and the first other local pooled hard disks to obtain the target local pooled hard disk, the method further includes:

[0027] Based on the storage resource allocation request, the storage resources of the target local pooled hard disk are allocated to obtain a storage resource volume;

[0028] Mount the storage resource volume to the virtual machine's directory to obtain the virtual machine storage resource volume;

[0029] Based on the preset performance management strategy, the performance of the virtual machine storage resource volume is adjusted to obtain the target virtual machine storage resource volume.

[0030] In this embodiment of the application, before allocating storage resources to the target local pooled hard disk according to the storage resource allocation request to obtain a storage resource volume, the method further includes:

[0031] Receive snapshot request;

[0032] Based on the snapshot request, obtain the snapshot information of the target local pooled disk. The snapshot information includes operation information and time information.

[0033] Store snapshot information to perform recovery processing on the target local pooled disk in the event of a target local pooled disk failure, based on the snapshot information.

[0034] In this embodiment of the application, the performance of the virtual machine storage resource volume is adjusted according to a preset performance management strategy to obtain the target virtual machine storage resource volume, including:

[0035] Based on the performance management strategy, determine the available bandwidth threshold and the bandwidth value of the virtual machine storage resource volume;

[0036] If the bandwidth value of a virtual machine storage resource volume is greater than the available bandwidth threshold, the virtual machine storage resource volume is allocated to other virtual machine storage resource volumes, and the allocated target virtual machine storage resource volume is obtained, wherein the bandwidth value of the other virtual machine storage resource volume is less than the available bandwidth threshold.

[0037] Secondly, this application provides a storage resource management device, comprising:

[0038] The first determining module is used to determine the storage resource allocation request and the local pooled hard disk corresponding to the storage resource allocation request;

[0039] The second determining module is used to determine the expansion capacity based on the storage capacity of the local pooled hard disk and the storage demand capacity in the storage resource allocation request if the storage capacity in the local pooled hard disk is less than the storage demand capacity in the storage resource allocation request.

[0040] The third determining module is used to determine the first other local pooled hard disk based on the hard disk type information in the storage resource allocation request if the expansion capacity is greater than the available capacity of the global local hard disk. The first other local pooled hard disk is a pooled hard disk that corresponds to the local pooled hard disk type and has available allocation capacity.

[0041] The module is used to expand the local pooled disks based on the first target local disk and the first other local pooled disks to obtain the target local pooled disks. The first target local disk is a disk in an available state among the global local disks.

[0042] Thirdly, this application provides an electronic device, including: a processor, and a memory communicatively connected to the processor;

[0043] The memory stores the instructions that the computer executes;

[0044] The processor executes computer execution instructions stored in the memory to implement the data filling and display method of this application embodiment.

[0045] Fourthly, a computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the storage resource management method of the embodiments of this application.

[0046] The storage resource management method, apparatus, electronic device, and storage medium provided in this application determine a storage resource allocation request and a corresponding local pooled hard disk. If the storage capacity of the local pooled hard disk is less than the storage demand capacity in the storage resource allocation request, an expansion capacity is determined based on the storage capacity of the local pooled hard disk and the storage demand capacity in the storage resource allocation request. If the expansion capacity is greater than the available capacity of the global local hard disk, a first other local pooled hard disk is determined based on the hard disk type information in the storage resource allocation request. The first other local pooled hard disk is a pooled disk that corresponds to the local pooled hard disk type and has available allocation capacity. The method involves expanding the local pooled hard disks based on the first target local hard disk and the first other local pooled hard disks to obtain the target local pooled hard disk. The first target local hard disk is a hard disk that is available in the global local hard disks. This allows the allocation of local pooled hard disks upon receiving a storage resource allocation request. If the capacity of the local pooled hard disk is less than the capacity to be allocated, then unpooled local hard disks of the same type are retrieved for expansion. If the available capacity of unpooled local hard disks of the same type is still insufficient to meet the storage resource allocation request, then other local pooled hard disks of the same type are retrieved, disassembled, and expanded until the demand is met, thus achieving the effect of dynamically adjusting local storage resources according to user needs. Attached Figure Description

[0047] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.

[0048] Figure 1 A flowchart illustrating the storage resource management method provided in an embodiment of this application;

[0049] Figure 2 A flowchart illustrating another storage resource management method provided in an embodiment of this application;

[0050] Figure 3 This is a schematic diagram of the structure of the storage resource management device provided in the embodiments of this application;

[0051] Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application.

[0052] The accompanying drawings illustrate specific embodiments of this application, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concept of this application to those skilled in the art through reference to particular embodiments. Detailed Implementation

[0053] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.

[0054] In existing technologies, nova only considers computing resources. For virtual machines with local disks that are not distributed storage, it is easy for a certain computing node to have sufficient computing resources but insufficient storage resources. At the same time, users cannot customize the storage space size when using local disks and can only determine it based on the physical machine's hard drive capacity. This may lead to problems such as low storage space utilization and resource waste.

[0055] This application embodiment can integrate the storage pool resources provided by the physical disks of multiple computing nodes through virtualization based on the pooling of local hard disks, and provide unified services to users. The local storage resources in the computer are divided into pooled hard disks, hard disks and reserved hard disks. According to the user's storage resource needs, the corresponding storage resources can be provided to the user through pooling or de-pooling operations. Dynamic adjustment is made among the three types of storage resources, thereby producing the effect of dynamically adjusting local storage resources according to user needs.

[0056] This application provides a storage resource management method, apparatus, electronic device, and storage medium.

[0057] The execution entity of this storage resource management method can be a server. The server can be a mobile phone, tablet, computer, or other device. This embodiment does not impose any particular restrictions on the implementation method of the execution entity, as long as the execution entity can determine the storage resource allocation request and the corresponding local pooled hard disk. If the storage capacity of the local pooled hard disk is less than the storage demand capacity in the storage resource allocation request, then the expansion capacity is determined based on the storage capacity of the local pooled hard disk and the storage demand capacity in the storage resource allocation request. If the expansion capacity is greater than the available capacity of the global local hard disk, then the first other local pooled hard disk is determined based on the hard disk type information in the storage resource allocation request. The first other local pooled hard disk is a pooled hard disk that corresponds to the type of local pooled hard disk and has available allocation capacity. Based on the first target local hard disk and the first other local pooled hard disk, the local pooled hard disk is expanded to obtain the target local pooled hard disk. The first target local hard disk is a hard disk in the global local hard disk that is in an available state.

[0058] Local pooled hard drives refer to a storage resource pool composed of multiple local hard drives, which is managed and dynamically allocated through virtualization technology. This improves storage resource utilization and management efficiency, while also ensuring data reliability and scalability. It is typically implemented using distributed storage technology and intelligent management platforms, providing high-performance, low-latency, and highly reliable storage services.

[0059] Figure 1 This is a flowchart illustrating the storage resource management method provided in an embodiment of this application. The executing entity of this method can be a server or other servers; this embodiment does not impose any particular limitation. Figure 1 As shown, this method may include:

[0060] S101. Determine the storage resource allocation request and the local pooled hard disk corresponding to the storage resource allocation request.

[0061] Storage resource allocation requests refer to requests submitted by users to the storage management system when they need storage space. These requests may include the required storage capacity, storage type, access speed, reliability, and other relevant parameters.

[0062] The local pooled hard disk corresponding to the storage resource allocation request can refer to the local pooled hard disk whose type of hard disk in the pooled hard disk corresponds to the storage type in the storage resource allocation request. The storage type can be NVME SSD, SATA SSD, or SATA HDD.

[0063] In this embodiment of the application, the method for determining the storage resource allocation request and the local pooled hard disk corresponding to the storage resource allocation request may include:

[0064] Receive storage resource allocation requests;

[0065] Based on the storage resource allocation request, the current local pooled hard disk and its pooling information are displayed on the display page of the interactive unit in the storage resource management system. The pooling information of the current local pooled hard disk includes attribute information, pooling usage status information, and mount information. The pooling usage status information includes used status and unused status.

[0066] In response to user actions on the currently pooled local disks displayed on the page, determine the local pooled disks.

[0067] The methods for receiving storage resource allocation requests may include receiving storage resource allocation requests through an API interface or using a command-line interface.

[0068] In response to user actions on the currently pooled local hard drives displayed on the page, methods for determining the local pooled hard drives may include input via information controls. Information controls can refer to reusable functional modules for setting the currently pooled local hard drives. For example, information controls can be electronic touch keys in the server inspection system interface, which users can operate by clicking, voice input, or other means.

[0069] Attribute information can refer to the hard disk type of the local pooled hard disk, pooling usage status information can refer to the current capacity and usage of the pooled hard disk, for example, the capacity is 20GB and 10GB has been used, and mount information can refer to the virtual machine instance mounted on the local pooled hard disk.

[0070] In this embodiment of the application, after receiving the storage resource allocation request, and before displaying the currently local pooled hard disk and its pooling information on the display page of the interactive unit in the storage resource management system according to the storage resource allocation request, the method may further include:

[0071] The pooled hard disk creation page is displayed in the interactive unit of the storage resource management system;

[0072] Responding to user input on the pooled disk creation page, obtain creation information;

[0073] Based on the creation information, the target local hard disk is pooled to obtain the current local pooled hard disk with an unused pooled usage status.

[0074] One method for displaying the pooled hard disk creation page in the interactive unit of the storage resource management system can be through a graphical interface, where users can intuitively see the configuration and status of the hard disk pool and operate it through interactive elements such as buttons and options on the interface. Alternatively, the pooled hard disk creation page can be displayed in the form of a data table, where the system displays the relevant parameters and configurations to the user in the form of a table, and the user can perform the creation operation by editing the data in the table.

[0075] The creation information can refer to the information required by the user to pool the local hard disk, which may include cloud service provider, resource pool, local disk type, local disk size, etc.

[0076] S102. If the storage capacity in the local pooled hard disk is less than the storage demand capacity in the storage resource allocation request, then the expansion capacity is determined based on the storage capacity in the local pooled hard disk and the storage demand capacity in the storage resource allocation request.

[0077] Among them, expanded capacity can refer to the storage capacity required in storage resource allocation requests when the storage capacity in the local pooled hard disks cannot meet the storage demand.

[0078] S103. If the expansion capacity is greater than the available capacity of the global local hard disk, then the first other local pooled hard disk is determined according to the hard disk type information in the storage resource allocation request. The first other local pooled hard disk is a pooled hard disk that corresponds to the local pooled hard disk type and has available allocation capacity.

[0079] Among them, global local hard disk can refer to all unpooled hard disks in the computer.

[0080] If the expansion capacity is greater than the available capacity of the global local hard disk, it indicates that the remaining capacity of the hard disk that can be expanded through pooling is insufficient. In this case, other pooled hard disks of the same type with remaining capacity can be used for expansion.

[0081] S104. Based on the first target local hard disk and the first other local pooled hard disk, the local pooled hard disk is expanded to obtain the target local pooled hard disk. The first target local hard disk is a hard disk in an available state among the global local hard disks.

[0082] The method of expanding the local pooled hard disk to obtain the target local pooled hard disk based on the first target local hard disk and the first other local pooled hard disk may include performing a return-to-pooling operation on the unused hard disks in the first other local pooled hard disks, and then expanding the local pooled hard disk with the returned-to-pooled hard disks and the first target local hard disk. The return-to-pooling method may include calling the RAID and pooling destruction interface to return to the pool.

[0083] In this embodiment of the application, the method of expanding the local pooled hard disk based on the first target local hard disk and the first other local pooled hard disks to obtain the target local pooled hard disk may include:

[0084] The expanded capacity is determined based on the available capacity of the first target local hard disk and the available allocated capacity of the first other local pooled hard disks;

[0085] If the expanded capacity is greater than or equal to the expanded capacity, then the local pooled hard disks are expanded according to the first target local hard disk and the first other local pooled hard disks to obtain the target local pooled hard disk.

[0086] The expanded capacity refers to the capacity that can be expanded by combining the available hard drives in the global local hard drive and the pooled hard drives. If this capacity can meet the required expansion capacity, the expansion is completed.

[0087] In this embodiment of the application, after determining the expanded capacity based on the available capacity of the first target local hard disk and the available allocated capacity of the first other local pooled hard disks, the method may further include:

[0088] If the expanded capacity is less than the expanded capacity, then the local pooled hard disk is expanded according to the first target local hard disk, the second target local hard disk, and the first other local pooled hard disk to obtain the target local pooled hard disk. The second target local hard disk is the hard disk in the reserved state among the global local hard disks.

[0089] Based on the second target local hard disk, a second other local pooled hard disk is determined. The second other local pooled hard disk is a pooled hard disk that is different from the local pooled hard disk in type and has available allocation capacity.

[0090] Adjust the spare capacity of the global local hard disk based on the allocated capacity of the second other local pooled hard disks.

[0091] The second target local hard disk can refer to a hard disk reserved in the computer for data backup and to ensure system smoothness. In the embodiments of this application, the second target hard disk can refer to a hard disk among the reserved hard disks that has a low frequency of use and a low probability of use recently.

[0092] The method for adjusting the spare capacity of the global local hard disk based on the allocated capacity of the second other local pooled hard disks may include taking out hard disks of the same type as the local pooled hard disks from the reserved hard disks for expansion. In order to ensure that the capacity of the reserved hard disks is sufficient, other types of local pooled hard disks can be returned to the pool, and the other types of hard disks obtained from the return to the pool can be called as reserved hard disks, so as to realize the dynamic adjustment of the local hard disks.

[0093] In this embodiment of the application, after expanding the local pooled hard disk based on the first target local hard disk and the first other local pooled hard disks to obtain the target local pooled hard disk, the method may further include:

[0094] Based on the storage resource allocation request, the storage resources of the target local pooled hard disk are allocated to obtain a storage resource volume;

[0095] Mount the storage resource volume to the virtual machine's directory to obtain the virtual machine storage resource volume;

[0096] Based on the preset performance management strategy, the performance of the virtual machine storage resource volume is adjusted to obtain the target virtual machine storage resource volume.

[0097] In this context, a storage resource volume refers to a storage resource volume in a storage resource management system that combines multiple independent physical storage devices (such as hard drives, solid-state drives, etc.) into a logically unified storage resource volume.

[0098] Methods for mounting storage resource volumes to a virtual machine's directory can include using command-line tools to perform the mounting operation. This involves running the corresponding command in the virtual machine's operating system, specifying the path and target directory of the storage resource volume to be mounted, and then executing the mount command.

[0099] A virtual machine storage resource volume can refer to a storage resource volume that has been mounted on a virtual machine.

[0100] The preset performance management strategy may include setting a performance threshold for a resource volume. For example, if the bandwidth of a resource volume is 2Gbps and the performance management strategy sets the maximum bandwidth to 1Gbps, then the 1Gbps of idle bandwidth of the current resource volume will be allocated to other resource volumes with bandwidths less than the bandwidth threshold of the performance management strategy. In this embodiment, different bandwidths can be allocated to each request through QoS (Quality of Service) to adjust the performance.

[0101] The target virtual machine storage resource volume can refer to a resource volume that, after performance tuning, can guarantee the quality of service.

[0102] In this embodiment of the application, before allocating storage resources of the target local pooled hard disk according to the storage resource allocation request to obtain a storage resource volume, the method may further include:

[0103] Receive snapshot request;

[0104] Based on the snapshot request, obtain the snapshot information of the target local pooled disk. The snapshot information includes operation information and time information.

[0105] Store snapshot information to perform recovery processing on the target local pooled disk in the event of a target local pooled disk failure, based on the snapshot information.

[0106] In a storage resource management system, a snapshot request can refer to a user's or system's request to create a snapshot of a storage resource. A snapshot can refer to a process of copying the data content of a storage resource at a certain moment and storing it as another independent data file. Through snapshots, users can preserve the state of data at a specific moment for subsequent recovery or backup.

[0107] Methods for storing snapshot information may include storing operation information and time information in a computer database. Upon receiving information about a hard disk error, the snapshot information in the database can be retrieved to restore the contents of the hard disk.

[0108] In this embodiment of the application, the method for adjusting the performance of a virtual machine storage resource volume according to a preset performance management strategy to obtain a target virtual machine storage resource volume may include:

[0109] Based on the performance management strategy, determine the available bandwidth threshold and the bandwidth value of the virtual machine storage resource volume;

[0110] If the bandwidth value of a virtual machine storage resource volume is greater than the available bandwidth threshold, the virtual machine storage resource volume is allocated to other virtual machine storage resource volumes, and the allocated target virtual machine storage resource volume is obtained, wherein the bandwidth value of the other virtual machine storage resource volume is less than the available bandwidth threshold.

[0111] The methods for determining the available bandwidth threshold and the bandwidth value of the virtual machine storage resource volume may include retrieving the bandwidth threshold set in the performance management policy and monitoring the bandwidth value of the virtual machine storage resource volume in real time through plugins or scripts.

[0112] The storage resource management method provided in this application embodiment can integrate the storage pool resources provided by the physical disks of multiple computing nodes through virtualization based on the pooling of local hard disks, and provide unified services to users. The local storage resources in the computer are divided into pooled hard disks, hard disks and reserved hard disks. According to the user's storage resource needs, the corresponding storage resources can be provided to the user through pooling or de-pooling operations. Dynamic adjustments can be made among the three types of storage resources, thereby producing the effect of dynamically adjusting local storage resources according to user needs.

[0113] Figure 2 A flowchart illustrating another storage resource management method provided in this application embodiment is shown below. Figure 2 As shown, the method includes:

[0114] S201. Receive a storage resource allocation request, wherein the storage resource allocation request includes allocation capacity information and hard disk type information.

[0115] The methods for receiving storage resource allocation requests may include receiving storage resource allocation requests through an API interface or using a command-line interface.

[0116] S202. Based on the storage resource allocation request, allocate storage resources to the pooled local disk to obtain a storage resource volume, wherein the pooled local disk is a storage resource pool composed of multiple hard disks.

[0117] In this context, a storage resource volume refers to a storage resource volume in a storage resource management system that combines multiple independent physical storage devices (such as hard drives, solid-state drives, etc.) into a logically unified storage resource volume.

[0118] S203. Mount the storage resource volume to the virtual machine's directory to obtain the virtual machine storage resource volume.

[0119] One method for mounting a storage resource volume to a virtual machine's directory can be to use a command-line tool to perform the mounting operation. This involves running the corresponding command in the virtual machine's operating system, specifying the path and target directory of the storage resource volume to be mounted, and then executing the mount command.

[0120] S204. Adjust the performance of the virtual machine storage resource volume according to the virtual machine storage resource volume and the preset performance management policy. The performance management policy is a policy for managing the performance of the virtual machine storage resource volume according to business needs.

[0121] The performance management policy may include setting a performance threshold for a resource volume. For example, if the bandwidth of a resource volume is 2Gbps and the performance management policy sets the maximum bandwidth to 1Gbps, then the 1Gbps of idle bandwidth of the current resource volume will be allocated to other resource volumes with bandwidths less than the bandwidth threshold of the performance management policy.

[0122] Another storage resource management method provided in this application embodiment can manage and constrain the performance of local hard disks based on pooled local hard disks, thereby ensuring service quality.

[0123] Figure 3 This is a schematic diagram of the structure of a storage resource management device provided in an embodiment of this application. Figure 3 As shown, the storage resource management device 30 includes: a first determining module 301, a second determining module 302, a third determining module 303, and a obtaining module 304. Wherein:

[0124] The first determining module 301 is used to determine the storage resource allocation request and the local pooled hard disk corresponding to the storage resource allocation request;

[0125] The second determining module 302 is used to determine the expansion capacity based on the storage capacity of the local pooled hard disk and the storage demand capacity in the storage resource allocation request if the storage capacity in the local pooled hard disk is less than the storage demand capacity in the storage resource allocation request.

[0126] The third determining module 303 is used to determine the first other local pooled hard disk based on the hard disk type information in the storage resource allocation request if the expansion capacity is greater than the available capacity of the global local hard disk. The first other local pooled hard disk is a pooled hard disk that corresponds to the local pooled hard disk type and has available allocation capacity.

[0127] The module 304 is used to expand the local pooled hard disks based on the first target local hard disk and the first other local pooled hard disks to obtain the target local pooled hard disk. The first target local hard disk is a hard disk in an available state among the global local hard disks.

[0128] In this embodiment of the application, the first determining module 301 can also be used for:

[0129] Receive storage resource allocation requests;

[0130] Based on the storage resource allocation request, the current local pooled hard disk and its pooling information are displayed on the display page of the interactive unit in the storage resource management system. The pooling information of the current local pooled hard disk includes attribute information, pooling usage status information, and mount information. The pooling usage status information includes used status and unused status.

[0131] In response to user actions on the currently pooled local disks displayed on the page, determine the local pooled disks.

[0132] In this embodiment of the application, the first determining module 301 can also be used for:

[0133] The pooled hard disk creation page is displayed in the interactive unit of the storage resource management system;

[0134] Responding to user input on the pooled disk creation page, obtain creation information;

[0135] Based on the creation information, the target local hard disk is pooled to obtain the current local pooled hard disk with an unused pooled usage status.

[0136] In this embodiment of the application, module 304 can also be used for:

[0137] The expanded capacity is determined based on the available capacity of the first target local hard disk and the available allocated capacity of the first other local pooled hard disks;

[0138] If the expanded capacity is greater than or equal to the expanded capacity, then the local pooled hard disks are expanded according to the first target local hard disk and the first other local pooled hard disks to obtain the target local pooled hard disk.

[0139] In this embodiment of the application, module 304 can also be used for:

[0140] If the expanded capacity is less than the expanded capacity, then the local pooled hard disk is expanded according to the first target local hard disk, the second target local hard disk, and the first other local pooled hard disk to obtain the target local pooled hard disk. The second target local hard disk is the hard disk in the reserved state among the global local hard disks.

[0141] Based on the second target local hard disk, a second other local pooled hard disk is determined. The second other local pooled hard disk is a pooled hard disk that is different from the local pooled hard disk in type and has available allocation capacity.

[0142] Adjust the spare capacity of the global local hard disk based on the allocated capacity of the second other local pooled hard disks.

[0143] In this embodiment of the application, module 304 can also be used for:

[0144] Based on the storage resource allocation request, the storage resources of the target local pooled hard disk are allocated to obtain a storage resource volume;

[0145] Mount the storage resource volume to the virtual machine's directory to obtain the virtual machine storage resource volume;

[0146] Based on the preset performance management strategy, the performance of the virtual machine storage resource volume is adjusted to obtain the target virtual machine storage resource volume.

[0147] In this embodiment of the application, module 304 can also be used for:

[0148] Receive snapshot request;

[0149] Based on the snapshot request, obtain the snapshot information of the target local pooled disk. The snapshot information includes operation information and time information.

[0150] Store snapshot information to perform recovery processing on the target local pooled disk in the event of a target local pooled disk failure, based on the snapshot information.

[0151] In this embodiment of the application, module 304 can also be used for:

[0152] Based on the performance management strategy, determine the available bandwidth threshold and the bandwidth value of the virtual machine storage resource volume;

[0153] If the bandwidth value of a virtual machine storage resource volume is greater than the available bandwidth threshold, the virtual machine storage resource volume is allocated to other virtual machine storage resource volumes, and the allocated target virtual machine storage resource volume is obtained, wherein the bandwidth value of the other virtual machine storage resource volume is less than the available bandwidth threshold.

[0154] As can be seen from the above, the storage resource management device of this application embodiment comprises a first determining module 301, used to determine a storage resource allocation request and a local pooled hard disk corresponding to the storage resource allocation request; a second determining module 302, used to determine an expansion capacity based on the storage capacity of the local pooled hard disk and the storage demand capacity in the storage resource allocation request if the storage capacity in the local pooled hard disk is less than the storage demand capacity in the storage resource allocation request; a third determining module 303, used to determine a first other local pooled hard disk based on the hard disk type information in the storage resource allocation request if the expansion capacity is greater than the available capacity of the global local hard disk, wherein the first other local pooled hard disk is a pooled hard disk corresponding to the type of the local pooled hard disk and having available allocation capacity; and a obtaining module 304, used to expand the local pooled hard disk based on the first target local hard disk and the first other local pooled hard disk to obtain a target local pooled hard disk, wherein the first target local hard disk is a hard disk in the global local hard disk that is in an available state. Therefore, the embodiments of this application can provide corresponding storage resources to users based on the pooling of local hard disks and according to the user's storage resource needs, through pooling or re-pooling operations, and dynamically adjust among the three types of storage resources, thereby producing the effect of dynamically adjusting local storage resources according to user needs.

[0155] Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Figure 4 As shown, the electronic device 40 includes:

[0156] The electronic device 40 may include a processor 401 with one or more processing cores, a memory 402 with one or more computer-readable storage media, a communication component 403, and other components. The processor 401, memory 402, and communication component 403 are connected via a bus 404.

[0157] In the specific implementation process, at least one processor 401 executes computer execution instructions stored in memory 402, causing at least one processor 401 to execute the storage resource management method described above.

[0158] The specific implementation process of processor 401 can be found in the above method embodiments, and its implementation principle and technical effect are similar. It will not be repeated here.

[0159] In the above Figure 4In the illustrated embodiments, it should be understood that the processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), etc. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in this invention can be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules within the processor.

[0160] The memory may include random access memory (RAM) and may also include non-volatile memory (NVM), such as at least one disk storage device.

[0161] The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. Buses can be categorized as address buses, data buses, control buses, etc. For ease of illustration, the buses shown in the accompanying drawings are not limited to a single bus or a single type of bus.

[0162] In some embodiments, a computer program product is also provided, including a computer program or instructions that, when executed by a processor, implement the steps in any of the above-described storage resource management methods.

[0163] For details on the implementation of each of the above operations, please refer to the previous examples, which will not be repeated here.

[0164] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be performed by instructions, or by instructions controlling related hardware. These instructions can be stored in a computer-readable storage medium and loaded and executed by a processor.

[0165] Therefore, embodiments of this application provide a computer-readable storage medium storing a plurality of instructions that can be loaded by a processor to execute steps in any of the storage resource management methods provided in embodiments of this application.

[0166] The storage medium may include: read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.

[0167] According to one aspect of this application, a computer program product or computer program is provided, the computer program product or computer program including computer instructions stored in a computer-readable storage medium.

[0168] Since the instructions stored in the storage medium can execute the steps of any of the storage resource management methods provided in the embodiments of this application, the beneficial effects that any of the storage resource management methods provided in the embodiments of this application can achieve can be realized. For details, please refer to the previous embodiments, which will not be repeated here.

[0169] Other embodiments of this application will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of this application that follow the general principles of this application and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this application are indicated by the following claims.

[0170] It should be understood that this application is not limited to the precise structure described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this application is limited only by the appended claims.

Claims

1. A storage resource management method, characterized in that, Applications in storage resource management systems include: Determine the storage resource allocation request and the local pooled hard disk corresponding to the storage resource allocation request; If the storage capacity in the local pooled hard disk is less than the storage demand capacity in the storage resource allocation request, then the expansion capacity is determined based on the storage capacity in the local pooled hard disk and the storage demand capacity in the storage resource allocation request. If the expansion capacity is greater than the available capacity of the global local hard disk, then based on the hard disk type information in the storage resource allocation request, a first other local pooled hard disk is determined. The first other local pooled hard disk is a pooled hard disk of the same type as the local pooled hard disk and has available allocation capacity. Based on the first target local hard disk and the first other local pooled hard disk, the local pooled hard disk is expanded to obtain a target local pooled hard disk, wherein the first target local hard disk is a hard disk in an available state among the global local hard disks; The step of expanding the local pooled hard disks based on the first target local hard disk and the first other local pooled hard disks to obtain a target local pooled hard disk includes: The expanded capacity is determined based on the available capacity of the first target local hard disk and the available allocated capacity of the first other local pooled hard disks; If the expanded capacity is greater than or equal to the expanded capacity, then the unused disks in the first other local pooled disks are returned to the pool, and then the returned disks and the first target local disks are used to expand the local pooled disks to obtain the target local pooled disk. The return to the pool operation includes calling the RAID and pooling destruction interface to return to the pool.

2. The method according to claim 1, characterized in that, The process of determining the storage resource allocation request and the local pooled hard disk corresponding to the storage resource allocation request includes: Receive storage resource allocation requests; According to the storage resource allocation request, the current local pooled hard disk and the pooling information of the current local pooled hard disk are displayed on the display page of the interactive unit in the storage resource management system. The pooling information of the current local pooled hard disk includes attribute information, pooling usage status information, and mounting information. The pooling usage status information includes used status and unused status. In response to the user's operation on the currently local pooled hard disk within the displayed page, the local pooled hard disk is determined.

3. The method according to claim 2, characterized in that, After receiving the storage resource allocation request, and before displaying the currently local pooled hard disk and its pooling information on the display page of the interactive unit in the storage resource management system according to the storage resource allocation request, the method further includes: The pooled hard disk creation page is displayed in the interactive unit of the storage resource management system. In response to user input on the pooled hard disk creation page, obtain creation information; Based on the creation information, the target local hard disk is pooled to obtain the current local pooled hard disk with an unused pooled usage status.

4. The method according to claim 1, characterized in that, After determining the expanded capacity based on the available capacity of the first target local hard disk and the available allocated capacity of the first other local pooled hard disks, the method further includes: If the expanded capacity is less than the expanded capacity, then the local pooled hard disk is expanded according to the first target local hard disk, the second target local hard disk and the first other local pooled hard disk to obtain the target local pooled hard disk, wherein the second target local hard disk is a hard disk in the reserved state among the global local hard disks; Based on the second target local hard disk, a second other local pooled hard disk is determined. The second other local pooled hard disk is a pooled hard disk that is different from the local pooled hard disk and has available allocation capacity. The spare capacity of the global local hard disk is adjusted according to the allocated capacity of the second other local pooled hard disk.

5. The method according to claim 1, characterized in that, After expanding the local pooled hard disks based on the first target local hard disk and the first other local pooled hard disks to obtain the target local pooled hard disk, the method further includes: Based on the storage resource allocation request, the storage resources of the target local pooled hard disk are allocated to obtain a storage resource volume; The storage resource volume is mounted to the virtual machine's directory to obtain the virtual machine storage resource volume; According to the preset performance management strategy, the performance of the virtual machine storage resource volume is adjusted to obtain the target virtual machine storage resource volume.

6. The method according to claim 5, characterized in that, Before allocating storage resources to the target local pooled hard disk according to the storage resource allocation request to obtain a storage resource volume, the method further includes: Receive snapshot request; Based on the snapshot request, obtain snapshot information of the target local pooled hard disk, the snapshot information including operation information and time information; The snapshot information is stored so that, in the event of an anomaly in the target local pooled hard disk, the target local pooled hard disk can be recovered based on the snapshot information.

7. The method according to claim 5, characterized in that, The step of adjusting the performance of the virtual machine storage resource volume according to a preset performance management strategy to obtain the target virtual machine storage resource volume includes: Based on the performance management strategy, determine the available bandwidth threshold and the bandwidth value of the virtual machine storage resource volume; If the bandwidth value of the virtual machine storage resource volume is greater than the available bandwidth threshold, the virtual machine storage resource volume is allocated to other virtual machine storage resource volumes, and the allocated target virtual machine storage resource volume is obtained, wherein the bandwidth value of the other virtual machine storage resource volume is less than the available bandwidth threshold.

8. A storage resource management device, characterized in that, include: The first determining module is used to determine the storage resource allocation request and the local pooled hard disk corresponding to the storage resource allocation request; The second determining module is used to determine the expansion capacity based on the storage capacity of the local pooled hard disk and the storage demand capacity in the storage resource allocation request if the storage capacity in the local pooled hard disk is less than the storage demand capacity in the storage resource allocation request. The third determining module is used to determine a first other local pooled hard disk based on the hard disk type information in the storage resource allocation request if the expansion capacity is greater than the available capacity of the global local hard disk. The first other local pooled hard disk is a pooled hard disk of the same type as the local pooled hard disk and has available allocation capacity. The module is used to expand the local pooled disks based on the first target local disk and the first other local pooled disks to obtain a target local pooled disk, wherein the first target local disk is a disk in an available state among the global local disks; The obtaining module can also be used to determine the expanded capacity based on the available capacity of the first target local hard disk and the available allocated capacity of the first other local pooled hard disks. If the expanded capacity is greater than or equal to the expanded capacity, then the unused disks in the first other local pooled disks are returned to the pool, and then the returned disks and the first target local disks are used to expand the local pooled disks to obtain the target local pooled disk. The return to the pool operation includes calling the RAID and pooling destruction interface to return to the pool.

9. An electronic device, characterized in that, include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executed instructions; The processor executes computer execution instructions stored in the memory to implement the method as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the storage resource management method as described in any one of claims 1 to 7.