CN105487826B - A kind of method that the distribution of cloud storage resource excess uses - Google Patents
A kind of method that the distribution of cloud storage resource excess uses Download PDFInfo
- Publication number
- CN105487826B CN105487826B CN201510980718.6A CN201510980718A CN105487826B CN 105487826 B CN105487826 B CN 105487826B CN 201510980718 A CN201510980718 A CN 201510980718A CN 105487826 B CN105487826 B CN 105487826B
- Authority
- CN
- China
- Prior art keywords
- volume
- pond
- simplification
- physics
- excess
- 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
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/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
- G06F12/00—Accessing, addressing or allocating within memory systems or architectures
- G06F12/02—Addressing or allocation; Relocation
- G06F12/08—Addressing or allocation; Relocation in hierarchically structured memory systems, e.g. virtual memory systems
- G06F12/0802—Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches
-
- 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/067—Distributed or networked storage systems, e.g. storage area networks [SAN], network attached storage [NAS]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1097—Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2212/00—Indexing scheme relating to accessing, addressing or allocation within memory systems or architectures
- G06F2212/10—Providing a specific technical effect
- G06F2212/1041—Resource optimization
- G06F2212/1044—Space efficiency improvement
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2212/00—Indexing scheme relating to accessing, addressing or allocation within memory systems or architectures
- G06F2212/15—Use in a specific computing environment
- G06F2212/151—Emulated environment, e.g. virtual machine
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2212/00—Indexing scheme relating to accessing, addressing or allocation within memory systems or architectures
- G06F2212/15—Use in a specific computing environment
- G06F2212/154—Networked environment
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The present invention relates to cloud platform storage technical field of virtualization, especially a kind of cloud storage resource excess distributes the method used.The present invention creates volume group VG first;Pond is simplified in creation;Excess distributes simplification volume;Virtual machine is created based on simplification volume;Periodically obtain the true service condition of physics for simplifying pond;Physics is checked using whether being more than threshold value if so then execute next step, if otherwise continuing to judge to execute whether need to continue excess distribution, if so then execute the process of excess distribution simplification volume, if otherwise executing the regular process for obtaining and checking the true service condition of physics in simple pond;To volume group dilatation;Finally to pond dilatation is simplified, the process for periodically obtaining the true service condition of physics for checking simple pond is then repeated.The present invention solves the problems, such as that cloud storage resource is unable to excess distribution;It can be applied to cloud platform storage virtualization.
Description
Technical field
The present invention relates to cloud platform storage technical field of virtualization, what especially a kind of cloud storage resource excess distribution used
Method.
Background technique
The general cloud computing platform newly built, the more difficult planning of memory space;Administrator is intended to through predistribution
When, the enough memory spaces of each virtual machine are first divided, the maintenance work in later period can be reduced in this way, can be brought so following
Problem:
First is that the planning that memory space uses is inaccurate, there is a part of virtual machine insufficient space, another part is virtual
There are many machine Spatial Residual.
Second is that initial stage investment carrying cost is high.
Third is that actual physics have always used space very little, but the storage resource being available can not be distributed in need virtual
Machine uses.
To solve the above-mentioned problems, a kind of method used suitable for the distribution of cloud storage resource excess is needed.Each void
Quasi- machine can be created that very big Virtual Space at the beginning, and later maintenance is simpler.Sufficiently improve physical store
Space utilization rate just needs to extend, and is easy to use space according to physics when amount of physical memory reaches certain degree
Growth pattern come plan the later period store equipment purchase plan.
Summary of the invention
Present invention solves the technical problem that being to provide a kind of method that the distribution of cloud storage resource excess uses;Solve storage
It can not be distributed to when utilization rate is not high enough, initial stage investment carrying cost is high, actual physics are always seldom with space in need
Virtual machine use the problems such as.
The technical solution that the present invention solves above-mentioned technical problem is:
The method includes the following steps:
Step 1: creation volume group VG;
Step 2: pond is simplified in creation;
Step 3: excess distributes simplification volume;
Step 4: virtual machine is created based on simplification volume;
Step 5: periodically obtaining the true service condition of physics for simplifying pond;
Step 6: checking physics using whether being more than threshold value, if otherwise performing the next step, if so then execute step 8;
Step 7: whether needing to continue excess distribution, if so then execute step 3, then follow the steps 5 if not;
Step 8: to volume group dilatation;
Step 9: to simplifying pond dilatation;
Step 10: process terminates.
Pond is simplified in the creation to be created by volume group.The reference command format in pond is simplified in creation are as follows: lvcreate-L
The size of volume group -- thinpool simplifies the title in pond.
It is big that total disk space size that the excess distribution simplification volume is allocated to multiple simplification volumes is greater than volume group space
It is small;As a volume group maximum 1TB, total disk space of multiple simplification volumes can be 3TB;
The simplification volume refers to the logical volume by simplifying pond creation;Create command format are as follows: lvcreate-V is virtual
Size -- thin-n file label claim volumegroup name claim/simplify Pool name.
Described is magnetic disk of virtual machine file injection simplification volume based on simplification volume creation virtual machine, uses the form of simplification volume
Create virtual machine.
Whether check that physics uses in the step 6 is more than that threshold value refers to whether physics is more than that physics is always empty with space
Between certain percentage;When physics is more than threshold value with space, it is necessary to be extended to simplification volume, avoid physics empty
Between be not enough supplied to virtual machine use.
The present invention distributes the method used suitable for cloud storage resource excess by a kind of, and it is inadequate to solve space utilisation
High, initial stage investment carrying cost height, actual physics, which can not distribute to virtual machine in need when always seldom with space, to be made
The problems such as using.The present invention be adapted to be locally stored or SAN network storage carry out excess distribution use.The present invention is by simplifying
The mode of pond and simplification volume uses to realize that memory space excess is distributed, and is different from the method by mapping or mapping table.This hair
It is bright by using pond is simplified, be different from generally through volume group but the not method by simplifying pond.The present invention is eventually by simplifying pond
It achieves the goal to create simplification volume, each simplification volume has the sizes of virtual of default and is not take up physical space, region is general
The method that logical volume or storage volume occupy a large amount of physical space.The present invention does not need specific hardware supported, and region generally needs
The method for wanting hardware supported.
Detailed description of the invention
The following further describes the present invention with reference to the drawings:
Fig. 1 is flow chart;
Fig. 2 is building-block of logic of the present invention.
Specific embodiment
As shown in Figure 1, 2, specific implementation process is as follows:
1, volume group VG is created, code is as follows:
/ * *
* volume group VG is created
*@param pv physical volume
*@return VGService is returned the result
*/
public VGService createVG(String pv){
return Manager.createVG(pv);
}
2, pond is simplified in creation, and code is as follows:
/ * *
* pond is simplified in creation
*@param name file label claims
*@return ThinPoolservice is returned the result
*/
public ThinPoolService createThinPool(String name){
return VGService.createThinPool(name);
}
3, excess distributes simplification volume, and code is as follows:
/ * *
* excess distributes simplification volume
*@param size volume size
*@param name file label claims
*@return boolean
*/
Public boolean createThinVolume (int size, String name)
return ThinPoolService.createThinVolume (size, name);
4, virtual machine created based on simplification volume, code is as follows:
/ * *
* virtual machine is created based on simplification volume
*@param volumeId volume ID
*@param name virtual machine title
*@return is without return value
*/
Public void createVm (String volumeId, String name)
VmService.createVm (volumeId, name);
}
5, the true service condition of physics for simplifying pond is periodically obtained, code is as follows:
/ * *
* the true service condition of physics for simplifying pond is periodically obtained
*@param volumeId volume ID
*@return ThinPollUsed returns to service condition object
*/
public ThinPollUsed getThinPollUsed(String volumeId){
return ThinPoolService.getThinPollUsed(volumeId);
}
6, physics is checked using whether being more than threshold value, and code is as follows:
/ * *
* check that whether physics uses more than threshold value
*@param poolName simplifies Pool name
*@return boolean is returned the result
*/
public boolean checkThreshold(String poolName){
return ThinPoolService.checkThreshold(poolName);
}
7, it needs to continue excess distribution, distributes simplification volume process if so then execute excess, inspect periodically essence if otherwise executing
The true service condition process of the physics in simple pond.
8, to volume group dilatation, code is as follows:
/ * *
* to volume group dilatation
* path where@param path physical volume
*@param name volumegroup name claims
*@return is without return value
*/
Public void extendVG (String name, String path)
Manager.extendVG (name, path);
}
9, to pond dilatation is simplified, code is as follows:
/ * *
* to simplifying pond dilatation
*@param poolName simplifies Pool name
*@return boolean is returned the result
*/
public boolean extendThinPool(String poolName){
return VGService.extendThinPool(poolName);
}
Whole flow process terminates.
Claims (6)
1. a kind of cloud storage resource excess distributes the method used, it is characterised in that: the method includes the following steps:
Step 1: creation volume group VG;
Step 2: pond is simplified in creation;
Step 3: excess distributes simplification volume;
Step 4: virtual machine is created based on simplification volume;
Step 5: periodically obtaining the true service condition of physics for simplifying pond;
Step 6: checking physics using whether being more than threshold value, if otherwise performing the next step, if so then execute step 8;
Step 7: whether needing to continue excess distribution, if so then execute step 3, then follow the steps 5 if not;
Step 8: to volume group dilatation;
Step 9: to simplifying pond dilatation;
Step 10: process terminates.
2. according to the method described in claim 1, it is characterized by: pond is simplified in the creation to be created by volume group;Creation
Simplify the reference command format in pond are as follows: the size of lvcreate-L volumes of group -- thinpool simplifies the title in pond.
3. according to the method described in claim 1, it is characterized by: the excess distribution simplification volume is allocated to multiple simplify
Total disk space size of volume is greater than volume group space size;As a volume group maximum 1TB, total disk space of multiple simplification volumes
It can be 3TB;
The simplification volume refers to the logical volume by simplifying pond creation;Create command format are as follows: lvcreate-V is virtually big
It is small -- thin-n file label claim volumegroup name claim/simplify Pool name.
4. according to the method described in claim 2, it is characterized by: the excess distribution simplification volume is allocated to multiple simplify
Total disk space size of volume is greater than volume group space size;As a volume group maximum 1TB, total disk space of multiple simplification volumes
It can be 3TB;
The simplification volume refers to the logical volume by simplifying pond creation;Create command format are as follows: lvcreate-V is virtually big
It is small -- thin-n file label claim volumegroup name claim/simplify Pool name.
5. method according to any one of claims 1 to 4, it is characterised in that: described to create virtual machine based on simplification volume
It is magnetic disk of virtual machine file injection simplification volume, creates virtual machine using the form of simplification volume.
6. method according to any one of claims 1 to 4, it is characterised in that: check that physics use is in the step 6
No is more than that threshold value refers to whether physics is more than the certain percentage of physics gross space with space;When physics is more than threshold with space
When value, it is necessary to be extended to pond is simplified, physical space is avoided not enough to be supplied to virtual machine use.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510980718.6A CN105487826B (en) | 2015-12-22 | 2015-12-22 | A kind of method that the distribution of cloud storage resource excess uses |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510980718.6A CN105487826B (en) | 2015-12-22 | 2015-12-22 | A kind of method that the distribution of cloud storage resource excess uses |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105487826A CN105487826A (en) | 2016-04-13 |
CN105487826B true CN105487826B (en) | 2019-04-26 |
Family
ID=55674831
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510980718.6A Active CN105487826B (en) | 2015-12-22 | 2015-12-22 | A kind of method that the distribution of cloud storage resource excess uses |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105487826B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109739688B (en) * | 2018-12-18 | 2021-01-26 | 杭州宏杉科技股份有限公司 | Snapshot resource space management method and device and electronic equipment |
CN111176570B (en) * | 2019-12-27 | 2021-07-16 | 浪潮电子信息产业股份有限公司 | Thick backup roll creating method, device, equipment and medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103678151A (en) * | 2013-12-20 | 2014-03-26 | 汉柏科技有限公司 | Configuration method and configuration device of block storage device of virtual machine |
CN104484279A (en) * | 2014-12-05 | 2015-04-01 | 国云科技股份有限公司 | Centralized storage over-allotment using method suitable for cloud computing |
CN104714851A (en) * | 2015-03-30 | 2015-06-17 | 中国联合网络通信集团有限公司 | Method and device for realizing resource distribution |
CN104765642A (en) * | 2015-03-24 | 2015-07-08 | 长沙理工大学 | Virtual machine deployment method and system based on dynamic prediction model in cloud environment |
-
2015
- 2015-12-22 CN CN201510980718.6A patent/CN105487826B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103678151A (en) * | 2013-12-20 | 2014-03-26 | 汉柏科技有限公司 | Configuration method and configuration device of block storage device of virtual machine |
CN104484279A (en) * | 2014-12-05 | 2015-04-01 | 国云科技股份有限公司 | Centralized storage over-allotment using method suitable for cloud computing |
CN104765642A (en) * | 2015-03-24 | 2015-07-08 | 长沙理工大学 | Virtual machine deployment method and system based on dynamic prediction model in cloud environment |
CN104714851A (en) * | 2015-03-30 | 2015-06-17 | 中国联合网络通信集团有限公司 | Method and device for realizing resource distribution |
Also Published As
Publication number | Publication date |
---|---|
CN105487826A (en) | 2016-04-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103810048B (en) | Automatic adjusting method and device for thread number aiming to realizing optimization of resource utilization | |
CN106557906A (en) | A kind of warehouse management method and system based on three-dimensional modeling | |
CN104283959B (en) | A kind of memory mechanism based on grading performance suitable for cloud platform | |
CN104270421A (en) | Multi-user cloud platform task scheduling method supporting bandwidth guarantee | |
CN104484279B (en) | A kind of method that centrally stored above quota distribution suitable for cloud computing uses | |
CN104063265A (en) | Method for comprehensively evaluating virtual resources | |
CN105487826B (en) | A kind of method that the distribution of cloud storage resource excess uses | |
CN107590075A (en) | A kind of method for testing software and device | |
CN107977396A (en) | A kind of update method of the tables of data of KeyValue databases and table data update apparatus | |
CN108519919A (en) | A method of realizing server resource dynamic dispatching under virtual cluster environment | |
CN110196775A (en) | A kind of calculating task processing method, device, equipment and readable storage medium storing program for executing | |
CN104572296B (en) | A kind of method for predicting cloud platform storage resource increment | |
CN104298761B (en) | The implementation method that master data is matched between a kind of heterogeneous software system | |
CN107977773A (en) | A kind of method for the entry resource amount for managing multiple cloud platforms | |
CN102520887A (en) | Storage space configuration and management method applied to cloud computing | |
CN109614040A (en) | Storage method, storage medium, electronic equipment and system with more storage pools | |
GB2602948A (en) | Virtual memory metadata management | |
CN105450684A (en) | Cloud computing resource scheduling method and system | |
CN106775987A (en) | A kind of dispatching method of virtual machine for improving resource efficiency safely in IaaS cloud | |
CN102917014A (en) | Resource scheduling method and device | |
CN109284209A (en) | The automated testing method of different type Vdisk under a kind of Mcs system | |
CN103631988A (en) | Multi-user simulation data management platform for electric power system simulation | |
CN104376047B (en) | A kind of big table join methods based on HBase | |
CN106547523A (en) | Progress bar progress display packing, apparatus and system | |
CN106776356A (en) | A kind of system and method for realizing that internal memory is interactive at a high speed |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Address after: 523808 19th Floor, Cloud Computing Center, Chinese Academy of Sciences, No. 1 Kehui Road, Songshan Lake Hi-tech Industrial Development Zone, Dongguan City, Guangdong Province Applicant after: G-Cloud Technology Co., Ltd. Address before: 523808 No. 14 Building, Songke Garden, Songshan Lake Science and Technology Industrial Park, Dongguan City, Guangdong Province Applicant before: G-Cloud Technology Co., Ltd. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant |