CN112162700B - Storage volume creation method and device, electronic equipment and storage medium - Google Patents
Storage volume creation method and device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN112162700B CN112162700B CN202010986815.7A CN202010986815A CN112162700B CN 112162700 B CN112162700 B CN 112162700B CN 202010986815 A CN202010986815 A CN 202010986815A CN 112162700 B CN112162700 B CN 112162700B
- Authority
- CN
- China
- Prior art keywords
- target
- storage volume
- disk array
- creation
- initiator
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 34
- 239000003999 initiator Substances 0.000 claims abstract description 78
- 238000003491 array Methods 0.000 claims abstract description 35
- 238000004590 computer program Methods 0.000 claims description 11
- 230000008676 import Effects 0.000 claims description 4
- 238000005516 engineering process Methods 0.000 description 9
- 238000004891 communication Methods 0.000 description 7
- 238000010586 diagram Methods 0.000 description 5
- 235000019580 granularity Nutrition 0.000 description 5
- 230000009471 action Effects 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- 230000006978 adaptation Effects 0.000 description 2
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 238000007726 management method Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000013459 approach Methods 0.000 description 1
- 230000000712 assembly Effects 0.000 description 1
- 238000000429 assembly Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0602—Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
- G06F3/0604—Improving or facilitating administration, e.g. storage management
- G06F3/0607—Improving or facilitating administration, e.g. storage management by facilitating the process of upgrading existing storage systems, e.g. for improving compatibility between host and storage device
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0662—Virtualisation aspects
- G06F3/0665—Virtualisation aspects at area level, e.g. provisioning of virtual or logical volumes
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0668—Interfaces specially adapted for storage systems adopting a particular infrastructure
- G06F3/0671—In-line storage system
- G06F3/0683—Plurality of storage devices
- G06F3/0689—Disk arrays, e.g. RAID, JBOD
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The application discloses a storage volume creation method, a storage volume creation device, electronic equipment and a readable storage medium, wherein the method comprises the following steps: creating a plurality of disk arrays in a storage pool, and dividing each disk array based on the preset logical storage space size; receiving a creation request for creating a target storage volume, and acquiring a target disk array designated by an initiator of the creation request and the proportion of each target disk array in the total capacity of the target storage volume; and selecting corresponding logic storage spaces in the target disk array to form the storage space of the target storage volume according to the proportion size, and completing the creation of the target storage volume. The application can create the target storage volume by utilizing the storage space of the specified disk array according to the specified proportion, meets the customization requirement of users, and can distribute the capacity distribution of the storage volume according to the requirement. In addition, when the target disk array and the proportion are selected, the current capacity use condition of the disk arrays can be combined, and balanced use of a plurality of disk arrays is facilitated.
Description
Technical Field
The present application relates to the field of storage technologies, and in particular, to a storage volume creation method and apparatus, an electronic device, and a computer readable storage medium.
Background
The storage system can manage the physical hard disk and provide functions such as data storage. In general, a plurality of physical hard disks can be assembled into 1 large-capacity virtual disk by using Raid (Redundant Arrays of INDEPENDENT DISKS, disk array) technology, volume capacity is allocated in the virtual disk capacity, and the volume is mapped to an external host, so that services such as data reading, writing, backup and the like can be provided.
However, when allocating capacity for a storage volume, it is common to default to use all virtual disks in the storage pool, and allocate capacity for the storage volume in such a way that the storage volume capacity is evenly distributed among the individual virtual disks. This approach cannot meet the customization needs of the user, and cannot consider the occupied storage capacity of each virtual disk, which results in unbalanced use of the capacity of each virtual disk.
Disclosure of Invention
The application aims to provide a storage volume creation method and device, electronic equipment and a computer readable storage medium, which can distribute the capacity distribution of the storage volume according to the need and meet the customization requirement of users.
In order to achieve the above object, the present application provides a storage volume creation method, including:
Creating a plurality of disk arrays in a storage pool, and dividing each disk array based on a preset logical storage space size;
Receiving a creation request for creating a target storage volume, and acquiring a target disk array designated by an initiator of the creation request and the proportion of each target disk array in the total capacity of the target storage volume;
And selecting corresponding logic storage spaces in the target disk array to form the storage space of the target storage volume according to the proportion and the size, and completing the creation of the target storage volume.
Optionally, the receiving a creation request for creating a target storage volume, obtaining a target disk array specified by an initiator of the creation request, and a proportion of each target disk array in the total capacity of the target storage volume, including:
after receiving a creation request for creating a target storage volume, returning a visualized configuration interface to an initiator of the creation request;
And receiving a target disk array designated by the initiator through the configuration interface, and the proportion of each target disk array in the total capacity of the target storage volume.
Optionally, the receiving, through the configuration interface, the target disk array specified by the initiator includes:
Displaying all the existing disk arrays in the storage pool through the configuration interface;
And receiving a selection instruction of the initiator for the disk array to determine a target disk array designated by the initiator.
Optionally, the receiving a creation request for creating a target storage volume, obtaining a target disk array specified by an initiator of the creation request, and a proportion of each target disk array in the total capacity of the target storage volume, including:
receiving a creation request for creating a target storage volume to acquire a user configuration file uploaded by the initiator through a file import interface;
And analyzing the user configuration file to obtain a target disk array designated by the initiator of the creation request and the proportion of each target disk array in the total capacity of the target storage volume.
Optionally, the obtaining the target disk array specified by the initiator of the creation request, and before the size of the proportion occupied by each target disk array in the total capacity of the target storage volume, further includes:
Returning a mode selection interface to an initiator of the creation request so that the initiator selects a custom creation mode or a default creation mode;
If the initiator selects a custom creation mode, entering a step of acquiring a target disk array designated by the initiator of the creation request and the proportion of each target disk array in the total capacity of the target storage volume;
if the initiator selects the default creation mode, selecting corresponding logic storage spaces from all the existing disk arrays in the storage pool to form the storage space of the target storage volume by default according to the average allocation proportion, and completing the creation of the target storage volume.
Optionally, the proportional size is achieved by setting a distribution order of the target storage volume capacity in the target disk array;
correspondingly, the selecting the corresponding logic storage space in the target disk array to form the storage space of the target storage volume according to the proportion size, and completing the creation of the target storage volume comprises the following steps:
And sequentially selecting the logic storage space in the target disk array based on the distribution sequence until the specified capacity of the target storage volume is reached, and completing the creation of the target storage volume.
To achieve the above object, the present application provides a storage volume creation apparatus comprising:
The disk array creation module is used for creating a plurality of disk arrays in a storage pool and dividing each disk array based on the preset logical storage space size;
The storage volume creating module is used for receiving a creating request for creating a target storage volume, acquiring a target disk array designated by an initiator of the creating request and the proportion of each target disk array in the total capacity of the target storage volume;
And the storage space selection module is used for selecting corresponding logic storage spaces in the target disk array to form the storage space of the target storage volume according to the proportion and the size, so as to complete the creation of the target storage volume.
Optionally, the method further comprises:
The mode selection module is used for returning a mode selection interface to the initiator of the creation request before acquiring the target disk array appointed by the initiator of the creation request so that the initiator can select a custom creation mode or a default creation mode;
The custom creation module is used for entering a step of acquiring a target disk array designated by the initiator of the creation request and the proportion of each target disk array in the total capacity of the target storage volume if the initiator selects a custom creation mode;
And the default creation module is used for selecting corresponding logic storage spaces from all the existing disk arrays in the storage pool to form the storage space of the target storage volume by default according to the average allocation proportion if the initiator selects the default creation mode, so as to complete the creation of the target storage volume.
To achieve the above object, the present application provides an electronic device including:
a memory for storing a computer program;
A processor for implementing the steps of any of the storage volume creation methods disclosed above when executing the computer program.
To achieve the above object, the present application provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of any one of the storage volume creation methods disclosed above.
According to the scheme, the storage volume creation method provided by the application comprises the following steps: creating a plurality of disk arrays in a storage pool, and dividing each disk array based on a preset logical storage space size; receiving a creation request for creating a target storage volume, and acquiring a target disk array designated by an initiator of the creation request and the proportion of each target disk array in the total capacity of the target storage volume; and selecting corresponding logic storage spaces in the target disk array to form the storage space of the target storage volume according to the proportion and the size, and completing the creation of the target storage volume. According to the method, after the disk array is firstly created and divided into smaller logic storage spaces, after the creation request for the target storage volume is received, the target disk array appointed by the initiator according to the self demand and the distribution proportion of the capacity of the target storage volume in the target disk array can be obtained, and then the target storage volume can be created by utilizing the storage space of the appointed disk array according to the appointed proportion, so that the customization requirement of a user is met, and the capacity distribution of the storage volume can be distributed according to the requirement. In addition, when the target disk array and the proportion are selected, the current capacity use condition of the disk arrays can be combined, and balanced use of a plurality of disk arrays is facilitated.
The application also discloses a storage volume creation device, an electronic device and a computer readable storage medium, and the technical effects can be realized.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application as claimed.
Drawings
In order to more clearly illustrate the embodiments of the application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a method for creating a storage volume according to an embodiment of the present application;
FIG. 2 is a schematic diagram of a default create storage volume scheme disclosed in an embodiment of the present application;
FIG. 3 is a schematic diagram of a specific storage volume creation scheme disclosed in an embodiment of the present application;
FIG. 4 is a block diagram of a storage volume creation apparatus according to an embodiment of the present application;
FIG. 5 is a block diagram of an electronic device according to an embodiment of the present application;
Fig. 6 is a block diagram of another electronic device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The embodiment of the application discloses a storage volume creation method, which can distribute the capacity distribution of the storage volume according to the need and meet the customization requirement of users.
Referring to fig. 1, a storage volume creation method disclosed in an embodiment of the present application includes:
s101: creating a plurality of disk arrays in a storage pool, and dividing each disk array based on a preset logical storage space size;
In the embodiment of the application, a plurality of disk arrays can be created in the storage pool in advance, and each disk array is divided. Specifically, when the disk array is divided, the disk array may be divided based on a preset logical storage space size, that is, the logical storage space size is taken as a dividing unit, and the specific size thereof may be set according to a specific implementation scenario.
S102: receiving a creation request for creating a target storage volume, and acquiring a target disk array designated by an initiator of the creation request and the proportion of each target disk array in the total capacity of the target storage volume;
In this step, the user may initiate a creation request for creating the target storage volume, and after the system receives the creation request, the target disk array specified by the request initiator may be obtained, and the set proportion size of each target disk array in the total capacity of the target storage volume, and the distribution situation of the total capacity of the target storage volume in each target disk array.
As a specific implementation manner, after receiving a creation request initiated by a user for creating a target storage volume, the embodiment of the present application may return a visualized configuration interface to an initiator of the creation request; and receiving the target disk arrays designated by the initiator and the proportion of each target disk array in the total capacity of the target storage volume through a configuration interface. That is, the user may set the target disk array and the corresponding scale size through a configuration interface provided by the system.
It may be understood that, when the embodiment of the present application returns to the visualized configuration interface, all disk arrays existing in the current storage pool may be specifically displayed through the configuration interface; and receiving a selection instruction of the initiator for the disk array to determine a target disk array designated by the initiator. In this manner, the selectable disk arrays may be directly visually displayed to the user for selection by the user.
As another specific implementation manner, after receiving a creation request for creating a target storage volume, the embodiment of the present application may obtain, through a file import interface, a user configuration file uploaded by an initiator; and analyzing the user configuration file to obtain the target disk arrays designated by the initiator of the creation request and the proportion of each target disk array in the total capacity of the target storage volume. That is, the user can directly upload the pre-written configuration file including the designated target disk array and the corresponding proportional size information, and can obtain the user-defined configuration by analyzing the file.
S103: and selecting corresponding logic storage spaces in the target disk array to form the storage space of the target storage volume according to the proportion and the size, and completing the creation of the target storage volume.
It may be appreciated that, after determining the user-defined configuration, the storage volume may be created according to the proportional size specified by the user and the target disk array, and specifically, the corresponding logical storage space may be selected from the target disk array according to the specified proportional size, so as to generate the storage space of the target storage volume in a combined manner.
In one possible implementation, the user may specifically set the distribution order of the target storage volume capacities in the target disk arrays when setting the proportion of each target disk array in the total capacity of the target storage volume. By setting the distribution sequence, when the target storage volume is created, the logic storage space can be sequentially selected in the target disk array based on the distribution sequence until the designated capacity of the target storage volume is reached, and the creation of the target storage volume is completed.
In an embodiment of the present application, before obtaining a target disk array specified by an initiator of a creation request and a proportion of each target disk array in a total capacity of the target storage volume, a mode selection interface may be returned to the initiator of the creation request, so that the initiator selects a custom creation mode or a default creation mode; if the initiator selects a custom creation mode, entering a step of acquiring a target disk array designated by the initiator of the creation request and the proportion of each target disk array in the total capacity of the target storage volume; if the initiator selects the default creation mode, selecting corresponding logic storage spaces from all the existing disk arrays in the storage pool to form the storage space of the target storage volume by default according to the average allocation proportion, and completing the creation of the target storage volume.
That is, the embodiment of the application can provide the user-defined creation mode and the default creation mode of two storage volumes, and can firstly return the mode selection interface to the user after receiving the request of the user to create the storage volumes. The user may select custom creation or default creation through a mode selection interface. If the default creation is selected, all disk arrays in the storage pool can be automatically utilized to form the storage space of the storage volume, and the storage space of the storage volume is distributed in each disk array as evenly as possible. Referring to fig. 2, the default creation manner may specifically be: in this embodiment, a plurality of Raid, such as raid#1, raid#2, and raid#3, are created in advance in the storage pool. Each Raid divides a plurality of extensions according to the same granularity, the extensions represent basic capacity units, and can support various granularities, namely, the capacity of the extensions can be set according to the requirement. When creating volumes in a storage pool, if the capacity of which Raid is used is not specified, the storage space of the storage volumes is composed by default using the contents in all the raids, and the storage volume capacity is distributed in each Raid as evenly as possible.
According to the scheme, the storage volume creation method provided by the application comprises the following steps: creating a plurality of disk arrays in a storage pool, and dividing each disk array based on a preset logical storage space size; receiving a creation request for creating a target storage volume, and acquiring a target disk array designated by an initiator of the creation request and the proportion of each target disk array in the total capacity of the target storage volume; and selecting corresponding logic storage spaces in the target disk array to form the storage space of the target storage volume according to the proportion and the size, and completing the creation of the target storage volume. According to the method, after the disk array is firstly created and divided into smaller logic storage spaces, after the creation request for the target storage volume is received, the target disk array appointed by the initiator according to the self demand and the distribution proportion of the capacity of the target storage volume in the target disk array can be obtained, and then the target storage volume can be created by utilizing the storage space of the appointed disk array according to the appointed proportion, so that the customization requirement of a user is met, and the capacity distribution of the storage volume can be distributed according to the requirement. In addition, when the target disk array and the proportion are selected, the current capacity use condition of the disk arrays can be combined, and balanced use of a plurality of disk arrays is facilitated.
A specific method for creating a storage volume is disclosed in the following embodiments of the present application. Referring to fig. 3, the present embodiment creates a plurality of raids in advance in a storage pool, each of which is divided into a plurality of extensions at the same granularity. If three Raid are designated to be used by the user when creating the storage volume, for example, three Raid #1, raid #2, and Raid #3 are selected, and the capacity proportion is set by setting the distribution order of the capacity of the storage volume in the three Raid, for example, the capacity of the storage volume may be set to be distributed in the three Raid in the order of 1:2:1:3:1, then 1 extension in the Raid #1 is selected, then one extension in the Raid #2 is selected, and then the extensions in the Raid #1, the Raid #3, and the Raid #1 are sequentially selected. If the selected total capacity of the extension does not exceed the specified total capacity of the storage volume, selecting again according to the distribution sequence, and pushing the same until the selected total capacity of the extension reaches the specified total capacity of the storage volume.
Through the self-defining configuration mode, a user can self-define a selected Raid list and the capacity use condition of each Raid, so that the customization requirement is met; in addition, the content can support configuration of various granularities, so that the setting of the content granularity can be freely carried out according to management overhead and capacity utilization rate, and management overhead or capacity waste can be effectively reduced.
A storage volume creation apparatus provided in the embodiments of the present application is described below, and a storage volume creation apparatus described below and a storage volume creation method described above may be referred to each other.
Referring to fig. 4, a storage volume creation apparatus provided in an embodiment of the present application includes:
The disk array creation module 201 is configured to create a plurality of disk arrays in a storage pool, and divide each disk array based on a preset logical storage space size;
A storage volume creation module 202, configured to receive a creation request for creating a target storage volume, obtain a target disk array specified by an initiator of the creation request, and a proportion of each target disk array in a total capacity of the target storage volume;
and the storage space selecting module 203 is configured to select, according to the ratio, a storage space formed by corresponding logical storage spaces in the target disk array to complete creation of the target storage volume.
For the specific implementation of the modules 201 to 203, reference may be made to the corresponding contents disclosed in the foregoing embodiments, and no further description is given here.
On the basis of the foregoing embodiment, as a preferred implementation manner, the storage volume creating apparatus provided by the embodiment of the present application may further include:
The mode selection module is used for returning a mode selection interface to the initiator of the creation request before acquiring the target disk array appointed by the initiator of the creation request so that the initiator can select a custom creation mode or a default creation mode;
The custom creation module is used for entering a step of acquiring a target disk array designated by the initiator of the creation request and the proportion of each target disk array in the total capacity of the target storage volume if the initiator selects a custom creation mode;
And the default creation module is used for selecting corresponding logic storage spaces from all the existing disk arrays in the storage pool to form the storage space of the target storage volume by default according to the average allocation proportion if the initiator selects the default creation mode, so as to complete the creation of the target storage volume.
The application also provides an electronic device, referring to fig. 5, and the electronic device provided by the embodiment of the application includes:
A memory 100 for storing a computer program;
The processor 200, when executing the computer program, may implement the steps provided in the above embodiments.
Specifically, the memory 100 includes a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and computer readable instructions, and the internal memory provides an environment for the operating system and the execution of the computer readable instructions in the non-volatile storage medium. The processor 200 may be a central processing unit (Central Processing Unit, CPU), a controller, a microcontroller, a microprocessor, or other data processing chip in some embodiments, to provide computing and control capabilities for the electronic device, and to implement the storage volume creation method disclosed in the foregoing embodiments when executing the computer program stored in the memory 100.
On the basis of the above embodiment, as a preferred implementation manner, referring to fig. 6, the electronic device further includes:
an input interface 300, coupled to the processor 200, for obtaining externally imported computer programs, parameters and instructions, which are stored in the memory 100 under control of the processor 200. The input interface 300 may be coupled to an input device for receiving parameters or instructions manually entered by a user. The input device can be a touch layer covered on a display screen, can also be a key, a track ball or a touch pad arranged on a terminal shell, and can also be a keyboard, a touch pad or a mouse, etc.
And a display unit 400 connected to the processor 200 for displaying data processed by the processor 200 and for displaying a visualized user interface. The display unit 400 may be an LED display, a liquid crystal display, a touch-control type liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, or the like.
The network port 500 is connected to the processor 200 and is used for communication connection with external terminal devices. The communication technology adopted by the communication connection can be a wired communication technology or a wireless communication technology, such as a mobile high definition link technology (MHL), a Universal Serial Bus (USB), a High Definition Multimedia Interface (HDMI), a wireless fidelity technology (WiFi), a Bluetooth communication technology with low power consumption, a communication technology based on IEEE802.11s, and the like.
Fig. 6 illustrates only an electronic device having assemblies 100-500, and it will be understood by those skilled in the art that the configuration illustrated in fig. 6 is not limiting of the electronic device and may include fewer or more components than illustrated, or may combine certain components, or a different arrangement of components.
The present application also provides a computer-readable storage medium, which may include: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes. The storage medium has stored thereon a computer program which, when executed by a processor, implements the storage volume creation method disclosed in the foregoing embodiments.
After the disk array is firstly created and divided into smaller logic storage spaces, after receiving a creation request for a target storage volume, the method can acquire the target disk array appointed by an initiator according to own requirements and the distribution proportion of the capacity of the target storage volume in the target disk array, further can create the target storage volume according to the appointed proportion by utilizing the storage space of the appointed disk array, meets the customization requirement of a user, and can distribute the capacity distribution of the storage volume according to the needs. In addition, when the target disk array and the proportion are selected, the current capacity use condition of the disk arrays can be combined, and balanced use of a plurality of disk arrays is facilitated.
In the description, each embodiment is described in a progressive manner, and each embodiment is mainly described by the differences from other embodiments, so that the same similar parts among the embodiments are mutually referred. For the system disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant points refer to the description of the method section. It should be noted that it will be apparent to those skilled in the art that various modifications and adaptations of the application can be made without departing from the principles of the application and these modifications and adaptations are intended to be within the scope of the application as defined in the following claims.
It should also be noted that in this specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Claims (4)
1. A storage volume creation method, comprising:
Creating a plurality of disk arrays in a storage pool, and dividing each disk array based on a preset logical storage space size;
Receiving a creation request for creating a target storage volume, and acquiring a target disk array designated by an initiator of the creation request and the proportion of each target disk array in the total capacity of the target storage volume;
selecting corresponding logic storage spaces in the target disk array to form the storage space of the target storage volume according to the proportion and the size, and completing the creation of the target storage volume;
The proportion size is realized by setting the distribution sequence of the capacity of the target storage volume in the target disk array; correspondingly, selecting corresponding logic storage spaces in the target disk array to form the storage space of the target storage volume according to the proportion, completing creation of the target storage volume, specifically selecting the logic storage spaces in the target disk array in turn based on the distribution sequence, and if the total capacity of the selected logic storage spaces does not exceed the designated total capacity of the target storage volume, selecting again according to the distribution sequence until reaching the designated capacity of the target storage volume, completing creation of the target storage volume;
The receiving a creation request for creating a target storage volume, obtaining a target disk array specified by an initiator of the creation request, and a proportion of each target disk array in the total capacity of the target storage volume, including:
after receiving a creation request for creating a target storage volume, returning a visualized configuration interface to an initiator of the creation request;
Receiving a target disk array designated by the initiator through the configuration interface, and the proportion of each target disk array in the total capacity of the target storage volume;
the receiving, through the configuration interface, the target disk array specified by the initiator includes:
Displaying all the existing disk arrays in the storage pool through the configuration interface;
Receiving a selection instruction of the initiator for the disk array to determine a target disk array designated by the initiator;
The receiving a creation request for creating a target storage volume, obtaining a target disk array specified by an initiator of the creation request, and a proportion of each target disk array in the total capacity of the target storage volume, including:
receiving a creation request for creating a target storage volume to acquire a user configuration file uploaded by the initiator through a file import interface;
analyzing the user configuration file to obtain a target disk array designated by the initiator of the creation request and the proportion of each target disk array in the total capacity of the target storage volume;
The method for obtaining the target disk arrays specified by the initiator of the creation request, and before the size of the proportion of each target disk array in the total capacity of the target storage volume, further comprises:
Returning a mode selection interface to an initiator of the creation request so that the initiator selects a custom creation mode or a default creation mode;
If the initiator selects a custom creation mode, entering a step of acquiring a target disk array designated by the initiator of the creation request and the proportion of each target disk array in the total capacity of the target storage volume;
if the initiator selects the default creation mode, selecting corresponding logic storage spaces from all the existing disk arrays in the storage pool to form the storage space of the target storage volume by default according to the average allocation proportion, and completing the creation of the target storage volume.
2. A storage volume creation apparatus, comprising:
The disk array creation module is used for creating a plurality of disk arrays in a storage pool and dividing each disk array based on the preset logical storage space size;
The storage volume creating module is used for receiving a creating request for creating a target storage volume, acquiring a target disk array designated by an initiator of the creating request and the proportion of each target disk array in the total capacity of the target storage volume; specifically, after receiving a creation request for creating a target storage volume, returning a visualized configuration interface to an initiator of the creation request; displaying all the existing disk arrays in the storage pool through the configuration interface; receiving a selection instruction of the initiator for a disk array to determine a target disk array designated by the initiator and the proportion of each target disk array in the total capacity of the target storage volume; or receiving a creation request for creating a target storage volume to acquire a user configuration file uploaded by the initiator through a file import interface; analyzing the user configuration file to obtain a target disk array designated by the initiator of the creation request and the proportion of each target disk array in the total capacity of the target storage volume;
The storage space selecting module is used for selecting corresponding logic storage spaces in the target disk array to form the storage space of the target storage volume according to the proportion and the size, and completing the creation of the target storage volume;
The proportion size is realized by setting the distribution sequence of the capacity of the target storage volume in the target disk array; correspondingly, the storage space selection module is specifically configured to sequentially select a logical storage space in the target disk array based on the distribution sequence, and if the total capacity of the selected logical storage space does not exceed the specified total capacity of the target storage volume, select again according to the distribution sequence until reaching the specified capacity of the target storage volume, so as to complete creation of the target storage volume; further comprises:
The mode selection module is used for returning a mode selection interface to the initiator of the creation request before acquiring the target disk array appointed by the initiator of the creation request so that the initiator can select a custom creation mode or a default creation mode;
The custom creation module is used for entering a step of acquiring a target disk array designated by the initiator of the creation request and the proportion of each target disk array in the total capacity of the target storage volume if the initiator selects a custom creation mode;
And the default creation module is used for selecting corresponding logic storage spaces from all the existing disk arrays in the storage pool to form the storage space of the target storage volume by default according to the average allocation proportion if the initiator selects the default creation mode, so as to complete the creation of the target storage volume.
3. An electronic device, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the storage volume creation method of claim 1 when executing the computer program.
4. A computer readable storage medium, characterized in that the computer readable storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of the storage volume creation method of claim 1.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010986815.7A CN112162700B (en) | 2020-09-18 | 2020-09-18 | Storage volume creation method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010986815.7A CN112162700B (en) | 2020-09-18 | 2020-09-18 | Storage volume creation method and device, electronic equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112162700A CN112162700A (en) | 2021-01-01 |
CN112162700B true CN112162700B (en) | 2024-07-02 |
Family
ID=73859097
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010986815.7A Active CN112162700B (en) | 2020-09-18 | 2020-09-18 | Storage volume creation method and device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112162700B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112882653B (en) * | 2021-01-26 | 2024-07-02 | 北京金山云网络技术有限公司 | Storage volume creation method and device and electronic equipment |
CN113031875B (en) * | 2021-03-31 | 2024-08-27 | 中国建设银行股份有限公司 | Storage volume management method, device, storage medium and system |
CN113721850B (en) * | 2021-08-26 | 2023-08-25 | 苏州浪潮智能科技有限公司 | Volume management method, system, equipment and medium |
CN113867644B (en) * | 2021-09-30 | 2023-08-04 | 苏州浪潮智能科技有限公司 | Disk array optimization method, disk array optimization device, computer equipment and storage medium |
CN115639970B (en) * | 2022-12-05 | 2023-03-31 | 苏州浪潮智能科技有限公司 | Storage virtualization method, system, device and equipment based on disk array card |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101510143A (en) * | 2009-03-13 | 2009-08-19 | 杭州华三通信技术有限公司 | Storage space dynamic assignment method, system and storage apparatus |
CN111090394A (en) * | 2019-12-05 | 2020-05-01 | 烽火通信科技股份有限公司 | Volume-level RAID-based magnetic array management method and device |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103608784B (en) * | 2013-06-26 | 2015-06-10 | 华为技术有限公司 | Method for creating network volumes, data storage method, storage device and storage system |
CN103631535B (en) * | 2013-11-20 | 2016-08-17 | 华为技术有限公司 | A kind of realize the method and device of space distribution in storage pool |
CN105808157A (en) * | 2014-12-31 | 2016-07-27 | 中兴通讯股份有限公司 | Storage architecture creating method, storage access method and storage system |
CN109032521B (en) * | 2018-07-25 | 2019-09-10 | 星环信息科技(上海)有限公司 | Storage volume creation method, device, server and storage medium |
CN110673787A (en) * | 2019-09-04 | 2020-01-10 | 苏州浪潮智能科技有限公司 | Volume configuration method and device |
-
2020
- 2020-09-18 CN CN202010986815.7A patent/CN112162700B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101510143A (en) * | 2009-03-13 | 2009-08-19 | 杭州华三通信技术有限公司 | Storage space dynamic assignment method, system and storage apparatus |
CN111090394A (en) * | 2019-12-05 | 2020-05-01 | 烽火通信科技股份有限公司 | Volume-level RAID-based magnetic array management method and device |
Also Published As
Publication number | Publication date |
---|---|
CN112162700A (en) | 2021-01-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112162700B (en) | Storage volume creation method and device, electronic equipment and storage medium | |
CN108287669B (en) | Date storage method, device and storage medium | |
US8688909B2 (en) | Storage apparatus and data management method | |
JP5932043B2 (en) | Volatile memory representation of non-volatile storage set | |
JP5400482B2 (en) | Management computer, resource management method, resource management program, recording medium, and information processing system | |
KR101482285B1 (en) | Selectively utilizing a plurality of disparate solid state storage locati0ns | |
US9489409B2 (en) | Rollover strategies in a N-bit dictionary compressed column store | |
US10387038B1 (en) | Storage space allocation for logical disk creation | |
US10261811B2 (en) | Systems and methods for contextually allocating emulation resources | |
US7979648B2 (en) | Dynamic interleaving | |
US20160019159A1 (en) | Storage system and data storing method | |
JP6014274B2 (en) | Method and system for mapping a plurality of virtual machines and client device | |
CN111124280A (en) | Data additional writing method and device, electronic equipment and storage medium | |
CN102221981A (en) | Method and apparatus to manage tier information | |
US9569569B1 (en) | Data storage system modeling | |
CN111124269B (en) | Method, electronic device, and computer-readable storage medium for storage management | |
CN111104219A (en) | Binding method, device, equipment and storage medium of virtual core and physical core | |
CN104123228A (en) | Data storage system and application method thereof | |
CN109196458B (en) | Storage system available capacity calculation method and device | |
CN113867644A (en) | Disk array optimization method and device, computer equipment and storage medium | |
CN103176913A (en) | Hard disk dynamic mapping method and server for applying same | |
US20150363118A1 (en) | Techniques for harmonic-resistant file striping | |
US20130166840A1 (en) | Dynamic hard disk mapping method and server using the same | |
CN113535087B (en) | Data processing method, server and storage system in data migration process | |
CN110809030A (en) | Network flow control method and device, coder-decoder and storage device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant |