CN103399783A - Storage method and device of mirror image documents of virtual machines - Google Patents
Storage method and device of mirror image documents of virtual machines Download PDFInfo
- Publication number
- CN103399783A CN103399783A CN2013103421991A CN201310342199A CN103399783A CN 103399783 A CN103399783 A CN 103399783A CN 2013103421991 A CN2013103421991 A CN 2013103421991A CN 201310342199 A CN201310342199 A CN 201310342199A CN 103399783 A CN103399783 A CN 103399783A
- Authority
- CN
- China
- Prior art keywords
- memory
- virtual machine
- image file
- speed
- storer
- 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.)
- Pending
Links
Images
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Signal Processing For Digital Recording And Reproducing (AREA)
Abstract
The invention discloses a storage method and device of mirror image documents of virtual machines. The storage method includes that the rate of reading and writing operation of the virtual machines is detected, and according to the detected rate and the reading and writing performance of a plurality of storers, the storer where the mirror image documents of the virtual machines are located is adjusted. The storer where the mirror image documents of the virtual machines are located is adjusted according to the rate of the reading and writing operation of the virtual machines and the reading and writing performance of the storers, so that different storers can play the maximum performance, and when the multiple virtual machines are virtualized on the basis of one physical machine, the requirement for intensively and randomly reading and writing small documents based on a virtualized platform can still be met, and the reading and writing performance of the storers can be ensured.
Description
Technical field
The present invention relates to computer realm, and especially, relate to a kind of storage means and device of image file of virtual machine.
Background technology
Intel Virtualization Technology has more and more become the main flow of data center now, central store is the basis of virtual various functions, existing memory technology grew up in the seventies in last century, virtualized support was not considered to some extent, was used for doing virtual storage and was not well suited for.
A present physical machine can fictionalize many virtual machines, the disk I/O of storage will be the several times of original situation, the random read-write capabilities limits of traditional sata dish, sas dish virtualized development, need to adopt new memory device to meet the situation of virtual intensive IO.
Virtual platform requires small documents is carried out to intensive random read-write, and traditional memory devices such as hard disk can not meet the demands, and needs to adopt the mode of solid state hard disc and mechanical hard disk combination, gives full play to advantage separately.
For in correlation technique in the situation that fictionalize many virtual machines based on same physical machine, can't reach and based on virtual platform, to small documents, carry out the problem of the requirement of intensive random read-write, effective solution is not yet proposed at present.
Summary of the invention
For in correlation technique in the situation that fictionalize many virtual machines based on same physical machine, can't reach and based on virtual platform, to small documents, carry out the problem of the requirement of intensive random read-write, the present invention proposes a kind of storage means and device of image file of virtual machine, the speed that can read and write according to the virtual machine that detects and the readwrite performance of a plurality of storeies, adjust the storer at the image file place of virtual machine, thereby reach, based on virtual platform, to small documents, carry out the requirement of intensive random read-write.
Technical scheme of the present invention is achieved in that
According to an aspect of the present invention, provide a kind of storage means of image file of virtual machine, the method comprises:
Detect the speed that virtual machine carries out read-write operation;
According to the speed that detects and the readwrite performance of a plurality of storeies, adjust the storer at the image file place of virtual machine.
Wherein, each storer in a plurality of storeies all has corresponding speed or speed range, and, when the storer at the image file place of adjusting virtual machine, by the speed that detects or the corresponding storer of scope at this speed place, be defined as the storer of image file that should storage virtual machine.
Wherein, a plurality of storeies comprise first memory and second memory, and the memory property of first memory is higher than the memory property of second memory.
And, in the situation that the speed that the virtual machine that detects is read and write moves to first memory more than or equal to predetermined value (and within a period of time all the time more than or equal to this predetermined value) by the image file of virtual machine; In the situation that the speed that the virtual machine that detects is read and write moves to second memory less than predetermined value (and within a period of time all the time less than this predetermined value) by the image file of virtual machine.
Wherein, first memory is solid state hard disc, and second memory is mechanical hard disk.
In addition, when the newly-built virtual machine of needs, the virtual filesystem-aware of the image file of virtual machine and lower floor is carried out to the 4K alignment.
According to a further aspect in the invention, provide a kind of memory storage of image file of virtual machine, this device comprises:
Detection module, carry out the speed of read-write operation for detection of virtual machine;
Adjusting module, adjust the storer at the image file place of virtual machine for the readwrite performance of the speed that detects according to detection module and a plurality of storeies.
Wherein, storer comprises first memory and second memory, and the readwrite performance of first memory is higher than the readwrite performance of second memory.
In addition, adjusting module is used in the situation that the speed that detects, more than or equal to predetermined value, moves to first memory by image file; In the situation that the speed that detects moves to second memory less than predetermined value by image file.
The present invention is by carrying out the speed of read-write operation and the readwrite performance of a plurality of storeies according to virtual machine, adjust the storer at the image file place of virtual machine, can allow different storeies bring into play its maximum performance, thereby in the situation that fictionalize many virtual machines based on a physical machine, still can meet based on virtual platform small documents is carried out to intensive random read-write requirement, to guarantee its readwrite performance.
The accompanying drawing explanation
Fig. 1 is the process flow diagram according to the storage means of the image file of the virtual machine of the embodiment of the present invention;
Fig. 2 is the block diagram according to the memory storage of the image file of the virtual machine of the embodiment of the present invention.
Embodiment
According to embodiments of the invention, provide a kind of storage means of image file of virtual machine.
As shown in Figure 1, according to the storage means of the image file of the virtual machine of the embodiment of the present invention, comprise:
Step S101, detect the speed that virtual machine carries out read-write operation;
Step S103, according to the speed that detects and the readwrite performance of a plurality of storeies, adjust the storer at the image file place of virtual machine.
Wherein, each storer in a plurality of storeies all has corresponding speed or speed range, and, when the storer at the image file place of adjusting virtual machine, by the speed that detects or the corresponding storer of scope at this speed place, be defined as the storer of image file that should storage virtual machine.
In one embodiment, a plurality of storeies comprise first memory and second memory, and the readwrite performance of first memory is higher than the readwrite performance of second memory.
In addition, in the situation that the speed that detects is more than or equal to predetermined value (and in the certain hour section all the time more than or equal to this predetermined value), image file is moved to first memory (and by the image file of virtual machine from deleting the storer of former place); In the situation that the speed that detects is less than predetermined value (and in the certain hour section all the time less than this predetermined value), image file is moved to second memory (and by the image file of virtual machine from deleting the storer of former place).
Wherein, first memory is solid state hard disc, and second memory is mechanical hard disk.
In addition, the method further comprises: when the newly-built virtual machine of needs, the virtual filesystem-aware of the image file of virtual machine and lower floor is carried out to the 4K alignment.
In one embodiment, according to the storage means of the image file of virtual machine provided by the invention, step is as follows:
Step 1, be placed in solid state hard disc and mechanical hard disk in same storage server, by the raid technology, solid state hard disc and mechanical hard disk is configured to respectively to two physical volumes.Logic-based volume management technology is merged into a logical volume by two physical volumes.
Step 2, carry out the format of traditional file systems to this logical volume, the basis that virtual filesystem-aware software makes it to possess automatic adjustment virtual machine image file position is installed.
Step 3, on the virtual management platform, add the monitoring agent of storage server, make storage server can collect the readwrite performance of virtual machine, when the read-write speed of virtual machine during more than or equal to predetermined value (for example, in 5 minutes, read-write speed is all the time greater than this value), virtual filesystem-aware moves to solid state hard disc by virtual machine image file, when read-write speed during less than predetermined value (for example, in 5 minutes, read-write speed is all the time greater than this value), virtual machine image file is moved to mechanical hard disk.For example, suppose that this read-write speed predetermined value is 3000iops, when the read-write speed of the virtual machine that detects within a period of time during all the time more than or equal to 3000iops, virtual filesystem-aware can move to solid state hard disc by the image file of virtual machine, and when the read-write speed of the virtual machine that detects within a period of time during all the time less than 3000iops, virtual filesystem-aware can move to mechanical hard disk by the image file of virtual machine.
Although take 5 minutes as example, be illustrated in the above description, as the basis of time of virtual machine read-write speed greater than predetermined value, its purpose is to avoid ping-pong.In actual applications, also can this time value be set to other length, for example, can be set to 1 minute, 2 minutes, 3 minutes, 5 minutes, half an hour, one hour, a plurality of hours etc.In addition, the read-write speed of virtual machine also is not limited to above-mentioned 3000iops, according to the demand of actual conditions, above-mentioned speed threshold value can be other values, for example, can be 1000iops, 1500iops, 2000iops, 4000iops etc., this paper will not enumerate.
In addition, in other embodiments, can determine by two threshold values the memory location of virtual machine image file, for example, a larger threshold value and a less threshold value can be set, in the situation of virtual machine read-write speed higher than larger threshold value, the image file of this virtual machine is stored to speed faster in storer; And in the situation of virtual machine read-write speed less than larger threshold value, the image file of this virtual machine is stored in the slower storer of speed.
According to embodiments of the invention, also provide a kind of memory storage of image file of virtual machine.As shown in Figure 2, according to the memory storage of the image file of the virtual machine of the embodiment of the present invention, comprise:
Adjusting module 22, adjust the storer at the image file place of virtual machine for the readwrite performance of the speed that detects according to detection module and a plurality of storeies.
Wherein, storer comprises first memory and second memory, and the readwrite performance of first memory is higher than the readwrite performance of second memory.
And adjusting module is in the situation that the speed that detects, more than or equal to predetermined value (and within a period of time all the time more than or equal to this predetermined value), moves to first memory by image file; In the situation that the speed that detects moves to second memory less than predetermined value (and within a period of time all the time less than this predetermined value) by image file.in sum, by means of technique scheme of the present invention, by according to detecting virtual machine, carrying out the speed of read-write operation and the readwrite performance of a plurality of storeies, adjust the storer at the image file place of virtual machine, thereby realize in the situation that fictionalize many virtual machines based on a physical machine, still can meet based on virtual platform small documents is carried out to intensive random read-write requirement, to guarantee its readwrite performance, and the combination by solid state hard disc and mechanical hard disk, take full advantage of the large capacity advantage of high readwrite performance and the mechanical hard disk of solid state hard disc, improve cost performance.
In sum, by means of technique scheme of the present invention, by according to virtual machine, carrying out the speed of read-write operation and the readwrite performance of a plurality of storeies, adjust the storer at the image file place of virtual machine, can allow different storeies bring into play its maximum performance, thereby in the situation that fictionalize many virtual machines based on a physical machine, still can meet based on virtual platform small documents is carried out to intensive random read-write requirement, to guarantee its readwrite performance.
The foregoing is only preferred embodiment of the present invention, in order to limit the present invention, within the spirit and principles in the present invention not all, any modification of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.
Claims (10)
1. the storage means of the image file of a virtual machine, is characterized in that, comprising:
Detect the speed that virtual machine carries out read-write operation;
According to the described speed that detects and the readwrite performance of a plurality of storeies, adjust the storer at the image file place of described virtual machine.
2. method according to claim 1, it is characterized in that, each storer in described a plurality of storer all has corresponding speed or speed range, and, when the storer at the image file place of adjusting described virtual machine, by the described speed that detects or the corresponding storer of scope at this speed place, be defined as storing the storer of the image file of described virtual machine.
3. method according to claim 1, is characterized in that, described a plurality of storeies comprise first memory and second memory, and the readwrite performance of described first memory is higher than the readwrite performance of described second memory.
4. method according to claim 3, is characterized in that, comprising:
In the situation that the described speed that detects moves to described first memory more than or equal to predetermined value by described image file.
5. method according to claim 3, is characterized in that, comprising:
In the situation that the described speed that detects moves to described second memory less than predetermined value by described image file.
6. method according to claim 3, is characterized in that, described first memory is solid state hard disc, and described second memory is mechanical hard disk.
7. the described method of any one according to claim 1 to 6, is characterized in that, further comprises:
When the newly-built virtual machine of needs, by the virtual filesystem-aware 4K alignment of the described image file of described virtual machine and lower floor.
8. the memory storage of the image file of a virtual machine, is characterized in that, comprising:
Detection module, carry out the speed of read-write operation for detection of virtual machine;
Adjusting module, adjust the storer at the image file place of described virtual machine for the readwrite performance of the described speed that detects according to described detection module and a plurality of storeies.
9. device according to claim 8, is characterized in that, described storer comprises first memory and second memory, and the readwrite performance of described first memory is higher than the readwrite performance of described second memory.
10. according to claim 8 or claim 9 device, is characterized in that, described adjusting module is in the situation that the described speed that detects, more than or equal to predetermined value, moves to described first memory by described image file; In the situation that the described speed that detects moves to described second memory less than predetermined value by described image file.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2013103421991A CN103399783A (en) | 2013-08-07 | 2013-08-07 | Storage method and device of mirror image documents of virtual machines |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2013103421991A CN103399783A (en) | 2013-08-07 | 2013-08-07 | Storage method and device of mirror image documents of virtual machines |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103399783A true CN103399783A (en) | 2013-11-20 |
Family
ID=49563417
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2013103421991A Pending CN103399783A (en) | 2013-08-07 | 2013-08-07 | Storage method and device of mirror image documents of virtual machines |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103399783A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103927215A (en) * | 2013-12-17 | 2014-07-16 | 哈尔滨安天科技股份有限公司 | kvm virtual machine scheduling optimization method and system based on memory disk and SSD disk |
CN104283959A (en) * | 2014-10-14 | 2015-01-14 | 国云科技股份有限公司 | Performance-grading-based storage mechanism suitable for cloud platform |
CN110019013A (en) * | 2017-12-08 | 2019-07-16 | 中国电信股份有限公司 | Mirrored storage method, apparatus and computer readable storage medium |
US10504605B2 (en) | 2017-11-02 | 2019-12-10 | National Tsing Hua University | Method and system for testing firmware of solid-state storage device, and electronic apparatus |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101601014A (en) * | 2006-12-12 | 2009-12-09 | Lsi公司 | Utilize memory load information to come balance cluster virtual machine |
WO2010030996A1 (en) * | 2008-09-15 | 2010-03-18 | Virsto Software | Storage management system for virtual machines |
CN102541470A (en) * | 2011-12-21 | 2012-07-04 | 成都市华为赛门铁克科技有限公司 | Data object processing method and device |
CN202615266U (en) * | 2011-12-30 | 2012-12-19 | 记忆科技(深圳)有限公司 | Computer system on basis of solid state disk |
CN102841759A (en) * | 2012-05-10 | 2012-12-26 | 天津兆民云计算科技有限公司 | Memory system for ultra-large virtual machine cluster |
US8364802B1 (en) * | 2008-09-23 | 2013-01-29 | Gogrid, LLC | System and method for monitoring a grid of hosting resources in order to facilitate management of the hosting resources |
CN103019962A (en) * | 2012-12-21 | 2013-04-03 | 华为技术有限公司 | Data cache processing method, device and system |
CN103092678A (en) * | 2013-01-22 | 2013-05-08 | 华中科技大学 | Multi-increment virtual machine memory management system and method |
-
2013
- 2013-08-07 CN CN2013103421991A patent/CN103399783A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101601014A (en) * | 2006-12-12 | 2009-12-09 | Lsi公司 | Utilize memory load information to come balance cluster virtual machine |
WO2010030996A1 (en) * | 2008-09-15 | 2010-03-18 | Virsto Software | Storage management system for virtual machines |
US8364802B1 (en) * | 2008-09-23 | 2013-01-29 | Gogrid, LLC | System and method for monitoring a grid of hosting resources in order to facilitate management of the hosting resources |
CN102541470A (en) * | 2011-12-21 | 2012-07-04 | 成都市华为赛门铁克科技有限公司 | Data object processing method and device |
CN202615266U (en) * | 2011-12-30 | 2012-12-19 | 记忆科技(深圳)有限公司 | Computer system on basis of solid state disk |
CN102841759A (en) * | 2012-05-10 | 2012-12-26 | 天津兆民云计算科技有限公司 | Memory system for ultra-large virtual machine cluster |
CN103019962A (en) * | 2012-12-21 | 2013-04-03 | 华为技术有限公司 | Data cache processing method, device and system |
CN103092678A (en) * | 2013-01-22 | 2013-05-08 | 华中科技大学 | Multi-increment virtual machine memory management system and method |
Non-Patent Citations (2)
Title |
---|
沈玉良 许鲁: "一种基于虚拟机的高效磁盘I/O特征分析方法", 《软件学报》, vol. 21, no. 4, 30 April 2010 (2010-04-30) * |
熊曦: "NAS环境下虚拟机的存储性能优化", 《中国优秀硕士学位论文全文数据库 信息科技辑》, no. 9, 15 September 2012 (2012-09-15), pages 30 * |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103927215A (en) * | 2013-12-17 | 2014-07-16 | 哈尔滨安天科技股份有限公司 | kvm virtual machine scheduling optimization method and system based on memory disk and SSD disk |
CN103927215B (en) * | 2013-12-17 | 2017-09-01 | 哈尔滨安天科技股份有限公司 | Optimization method and system based on ram disk and the kvm scheduling virtual machines of SSD hard disks |
CN104283959A (en) * | 2014-10-14 | 2015-01-14 | 国云科技股份有限公司 | Performance-grading-based storage mechanism suitable for cloud platform |
CN104283959B (en) * | 2014-10-14 | 2018-01-09 | 国云科技股份有限公司 | A kind of memory mechanism based on grading performance suitable for cloud platform |
US10504605B2 (en) | 2017-11-02 | 2019-12-10 | National Tsing Hua University | Method and system for testing firmware of solid-state storage device, and electronic apparatus |
CN110019013A (en) * | 2017-12-08 | 2019-07-16 | 中国电信股份有限公司 | Mirrored storage method, apparatus and computer readable storage medium |
CN110019013B (en) * | 2017-12-08 | 2021-11-05 | 中国电信股份有限公司 | Mirror image storage method, device and computer readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9665293B2 (en) | Method for a storage device processing data and storage device | |
CN104583930B (en) | Method, controller and the data migration device of Data Migration | |
US11676671B1 (en) | Amplification-based read disturb information determination system | |
JP2017079053A (en) | Methods and systems for improving storage journaling | |
US10365845B1 (en) | Mapped raid restripe for improved drive utilization | |
CN103500072A (en) | Data migration method and data migration device | |
US8037332B2 (en) | Quad-state power-saving virtual storage controller | |
US10324794B2 (en) | Method for storage management and storage device | |
CN103729149A (en) | Data storage method | |
CN103399783A (en) | Storage method and device of mirror image documents of virtual machines | |
US11922019B2 (en) | Storage device read-disturb-based block read temperature utilization system | |
CN106844491B (en) | Temporary data writing and reading method and device | |
CN103645862A (en) | Initialization performance improvement method of redundant arrays of inexpensive disks | |
US10031689B2 (en) | Stream management for storage devices | |
US20170329553A1 (en) | Storage control device, storage system, and computer-readable recording medium | |
CN109375868B (en) | Data storage method, scheduling device, system, equipment and storage medium | |
US11922020B2 (en) | Read-disturb-based read temperature information persistence system | |
CN103064926A (en) | Data processing method and device | |
US11995340B2 (en) | Read-disturb-based read temperature information access system | |
US11928354B2 (en) | Read-disturb-based read temperature determination system | |
US11763898B2 (en) | Value-voltage-distirubution-intersection-based read disturb information determination system | |
US11983431B2 (en) | Read-disturb-based read temperature time-based attenuation system | |
US11929135B2 (en) | Read disturb information determination system | |
US11922035B2 (en) | Read-disturb-based read temperature adjustment system | |
US20230244410A1 (en) | Read-disturb-based read temperature information access system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20131120 |
|
RJ01 | Rejection of invention patent application after publication |