CN106598503A - Method and device for optimizing storage space occupied by virtual disk under cloud platform - Google Patents
Method and device for optimizing storage space occupied by virtual disk under cloud platform Download PDFInfo
- Publication number
- CN106598503A CN106598503A CN201611209018.8A CN201611209018A CN106598503A CN 106598503 A CN106598503 A CN 106598503A CN 201611209018 A CN201611209018 A CN 201611209018A CN 106598503 A CN106598503 A CN 106598503A
- Authority
- CN
- China
- Prior art keywords
- document
- space
- instruction
- memory space
- module
- 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.)
- Granted
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/0638—Organizing or formatting or addressing of data
- G06F3/0643—Management of files
-
- 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/0646—Horizontal data movement in storage systems, i.e. moving data in between storage devices or systems
- G06F3/0652—Erasing, e.g. deleting, data cleaning, moving of data to a wastebasket
-
- 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
-
- 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]
-
- 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/0673—Single storage device
- G06F3/0674—Disk device
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 invention discloses a method and a device for optimizing a storage space occupied by a virtual disk under a cloud platform. The method comprises the following steps: receiving a document deleting instruction; filling the storage space corresponding to the document in the document deleting instruction and forming a filling space; and deleting a mirror image space corresponding to the filling space in a mirror image space of the disk of a cloud host computer. According to the method and the device for optimizing the storage space occupied by the virtual disk under the cloud platform, the storage space which is not practically released after a user performs a deleting operation on the storage space in the cloud host computer can be recognized, namely, the corresponding space is recognized, filled and released after the document deleting instruction of the user is received by the cloud host computer, the mirror image space of the disk of the cloud host computer is correspondingly cleaned and the mirror image space corresponding to the filling space in the mirror image space of the disk of the cloud host computer is deleted, so that the purpose of practically releasing the storage space can be achieved.
Description
Technical field
The present invention relates to cloud adds technical field of data storage, optimize virtual disk under more particularly to a kind of cloud platform and account for
With the method and apparatus of memory space.
Background technology
With the continuous progressive and development of society, people are continuously increased to the demand of data processing.And the meter of user oneself
Calculation machine resource-constrained, it is impossible to carry out large-scale computing and data processing.If processed using mainframe computer, need special
The reservation of door, use cost are high.Meanwhile, the computer resource of many users in Many times be it is idle, computer hardware and
The development of software is very rapidly so to cause the utilization ratio of computer resource in society very low, causes whole society
The wasting of resources of meeting.
In view of the situation, cloud computing platform obtains quickly development.In cloud computing platform, user is only needed to by visitor
Family end logs in cloud computing platform, and data processing is carried out on cloud computing platform, the hardware requirement to the local computer of user
Relatively low, user need not march into the arena upgrading hardware, save cost.And for cloud calculates platform, due to the carrying out needed in society
The demand and scale of data processing is gradually increasing, and reducing user carries out the cost of data processing, also reduces cloud platform
Operation average unit cost so that the calculating of the entirety of society is substantially improved from the utilization ratio of resource.
Under cloud computing platform, as the quantity of user is very more, the use of storage resource is very frequent, memory space
Resource consumption is extremely quick, and this is accomplished by substantial amounts of storage device, and cost is very high.And have many deletion actions inside cloud main frame
In the inreal waste for being released memory space, causing storage resource.
The content of the invention
It is an object of the invention to provide optimizing the method and apparatus that virtual disk takes memory space under a kind of cloud platform, release
Put cloud body interior and complete deletion action but the memory space of inreal release, improve the service efficiency of memory space.
To solve above-mentioned technical problem, embodiments provide
The method in space, including:
Receive document and delete instruction;
The corresponding memory space of document in instruction is deleted to the document to be filled, packing space is formed;
Delete mirror image space corresponding with the packing space in cloud host disk mirror image space.
Wherein, the corresponding memory space of document in the deletion instruction to the document is filled, including:
The corresponding memory space of document in instruction is deleted to the document carries out zero padding.
Wherein, the corresponding memory space of document in the deletion instruction to the document is filled, and forms filling empty
Between, including:
After receiving the document and deleting the predetermined amount of time for instructing, the document pair in instruction is deleted to the document
The memory space answered is filled.
Wherein, it is described after receiving the document and deleting the predetermined amount of time for instructing, the document is deleted and is instructed
In the corresponding memory space of document be filled, also include:
Judge in the predetermined amount of time for receiving the document deletion instruction, if receive Document retrieval instruction;
If so, then recover the document, and stop entering the corresponding memory space of document in document deletion instruction
Row filling, if it is not, then delete the corresponding memory space of document in instruction to the document being filled.
Wherein, after mirror image space corresponding with the packing space in the deletion cloud host disk mirror image, also wrap
Include:
The cloud host disk mirror image space is converted, will be filled out described in deletion in the cloud host disk mirror image space
The disk mirroring space filled after the corresponding mirror image space in space is used as new cloud host disk mirror image space.
In addition, the embodiment of the present invention is additionally provided
Put, including:
Receiver module, deletes instruction for receiving the document that cloud main frame sends;
Filling module, deletes command reception module with the document and is connected, and deletes command reception the document is received
After the document that module sends deletes instruction, the corresponding memory space of document in instruction is deleted to the document and is filled, shape
Into packing space;
Modular converter, is connected with the filling module, deletes the document in instruction in the filling module to the document
Corresponding memory space is filled, after forming packing space, with the filling in the deletion cloud host disk mirror image space
The corresponding mirror image space in space.
Wherein, also include:
Timing module, is connected with the filling module, is received after the document deletes instruction in the filling module and is opened
Beginning timing, after predetermined amount of time, controls the filling module empty to the corresponding storage of document in document deletion instruction
Between be filled, formed packing space.
Wherein, also include:
Judge module, is connected with the timing module, the filling module, the institute after the timely module starts timing
Predetermined amount of time is stated, is judged whether to receive Document retrieval instruction, if it is, recovering the document, and is cancelled the document
Instruction is deleted, the filling module stops being filled the corresponding memory space of document in document deletion instruction, if
No, then, after the timely module completes timing, the filling module is corresponding to the document in document deletion instruction to deposit
Storage space is filled.
Wherein, also include:
Filling mark module, is connected with the filling module, and the filling module is using the filling mark module storage
Filling mark to the document delete instruction in the corresponding memory space of document be filled.
Optimize the method and apparatus that virtual disk takes memory space under cloud platform provided in an embodiment of the present invention, it is and existing
Technology compare have advantages below:
Optimize the method that virtual disk takes memory space under cloud platform provided in an embodiment of the present invention, including:
Receive document and delete instruction;
The corresponding memory space of document in instruction is deleted to the document to be filled, packing space is formed;
Delete mirror image space corresponding with the packing space in cloud host disk mirror image space.
Optimize the device that virtual disk takes memory space under cloud platform provided in an embodiment of the present invention, including:
Receiver module, deletes instruction for receiving the document that cloud main frame sends;
Filling module, deletes command reception module with the document and is connected, and deletes command reception the document is received
After the document that module sends deletes instruction, the corresponding memory space of document in instruction is deleted to the document and is filled, shape
Into packing space;
Modular converter, is connected with the filling module, deletes the document in instruction in the filling module to the document
Corresponding memory space is filled, after forming packing space, with the filling in the deletion cloud host disk mirror image space
The corresponding mirror image space in space.
Optimize the method and apparatus that virtual disk takes memory space under the cloud platform, by document having been performed in user
After deletion action, document deletion behaviour's instruction that user performs is obtained, instruction memory size is deleted to the document then and is filled,
Packing space is formed, mirror image space corresponding with the packing space in cloud host disk mirror image space is deleted, so stores empty
Between in execution the memory space of deletion action really discharged, cloud host disk mirror image space is corresponding with deleted document
Space is deleted, and carries out the arrangement of disk mirroring space, the disk mirroring of cloud main frame is diminished, save cloud storage space, improves
The utilization ratio of memory space, saves storage resource, reduces the cost of cloud storage.
Description of the drawings
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
Accompanying drawing to be used needed for having technology description is briefly described, it should be apparent that, drawings in the following description are the present invention
Some embodiments, for those of ordinary skill in the art, on the premise of not paying creative work, can be with basis
These accompanying drawings obtain other accompanying drawings.
Fig. 1 is a kind of tool for optimizing the method that virtual disk takes memory space under cloud platform provided in an embodiment of the present invention
The step of body embodiment schematic flow sheet;
Fig. 2 is that the device of optimization virtual disk occupancy memory space under cloud platform provided in an embodiment of the present invention is a kind of concrete
The structural representation of embodiment;
Fig. 3 is that the device of optimization virtual disk occupancy memory space under cloud platform provided in an embodiment of the present invention is a kind of concrete
The structural representation of embodiment.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than the embodiment of whole.It is based on
Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made
Embodiment, belongs to the scope of protection of the invention.
Fig. 1 is refer to, Fig. 1 is to optimize the side that virtual disk takes memory space under cloud platform provided in an embodiment of the present invention
A kind of the step of specific embodiment of method schematic flow sheet.
In a kind of specific embodiment, under the cloud platform, optimize the method that virtual disk takes memory space, including:
Step 1, receives document and deletes instruction;
Step 2, deletes the corresponding memory space of document in instruction to the document and is filled, form packing space;
Step 3, deletes mirror image space corresponding with the packing space in cloud host disk mirror image space.
After document deletion action having been performed in user, obtain document deletion behaviour's instruction that user performs, then to this
Document is deleted instruction memory size and is filled, and forms packing space, with the filling in deletion cloud host disk mirror image space
The corresponding mirror image space in space, the execution in such memory space the memory space of deletion action really discharged, cloud main frame
Disk mirroring space space corresponding with deleted document is deleted, and carries out the arrangement of disk mirroring space, by the disk of cloud main frame
Mirror image diminishes, and saves cloud storage space, improves the utilization ratio of memory space, saves storage resource, reduce cloud storage into
This.
The present invention is identified to the disk space being deleted, and is subsequently filled, is converted, and the disk mirroring of cloud main frame is become
It is little, cloud storage space is saved, the utilization ratio of memory space is improved, storage resource is saved, the cost of cloud storage is reduced.
In a kind of specific embodiment, the corresponding memory space of document in the deletion instruction to the document is carried out
Filling, including:
The corresponding memory space of document in instruction is deleted to the document carries out zero padding.
It is pointed out that delete the corresponding memory space of document in instruction to the document in the present invention filling out
Fill, be to delete to actual deletion from instruction in order to the document to be deleted the corresponding memory space of document in instruction, really release
Corresponding memory space is put, it is enforceable that the memory space is carried out into recovery operation, and in the mistake for withdrawing memory space
It is necessary to carry out corresponding labelling to which in journey, to be different from the memory space that user is currently in use, except to described in the present invention
The corresponding memory space of document that document is deleted in instruction carries out zero padding, can also carry out the filling of other marks, this
It is bright that this is not especially limited.
And just as, locally using memory space, the situation of maloperation sometimes occurring.User's imprudence will not
The document of the deletion is deleted, and this is solved in the computer for locally using very well, because the document being deleted is to be directly entered back
Station is received, if forcing to delete the document in recycle bin, also can be recovery.But, under cloud platform, if once cloud is flat
Platform receive user carry out document delete instruction after, be just filled operation at once, exactly memory space covered, use
Family cannot carry out Document retrieval operation, and document cannot be retrieved.Therefore it is the generation of this case that avoid, in addition it is also necessary to
Certain operation is carried out, after the document operation command for receiving user, covering is not filled to corresponding memory space at once,
But wait for a period of time, if user does not have new operation, illustrate that for the deletion of the document be correct, do not occur to miss
Operation, the filling that at this moment can be carried out deleting document memory space are covered.Therefore it is described that the document is deleted in instruction
The corresponding memory space of document be filled, formed packing space, including:
After receiving the document and deleting the predetermined amount of time for instructing, the document pair in instruction is deleted to the document
The memory space answered is filled.
It is pointed out that the present invention does not do concrete lower fixed to the time span of the predetermined amount of time, can be acquiescence
One time period, such as 5 minutes, or user are set at oneself, carry out value-added service, and the present invention does not do concrete to this
Limit.
If the user find that the deletion of document is maloperation, it is necessary to which document is recovered, therefore, in a kind of concrete reality
Apply in mode, it is within a predetermined period of time, described after receiving the document and deleting the predetermined amount of time for instructing, to the text
The corresponding memory space of document that shelves are deleted in instruction is filled, and also includes:
Judge in the predetermined amount of time for receiving the document deletion instruction, if receive Document retrieval instruction;
If so, then recover the document, and stop entering the corresponding memory space of document in document deletion instruction
Row filling, if it is not, then delete the corresponding memory space of document in instruction to the document being filled.
If it is determined that being maloperation, then recovery operation is carried out to document, while the corresponding document of revocation deletes instruction, it is no
Then, illustrate that the instruction that the document is deleted is correct, as long as predetermined amount of time one terminates, you can be filled operation, release is deposited
Storage space.
And be corresponding with memory space as the disk of cloud main frame carries out space, memory space use is how many, carries out sky
Between just corresponding increase it is how many.If memory space is filled operation and forms packing space, then be also to enter in disk mirroring
The corresponding padding of row, but the size of disk mirroring or and be not different before deleting, it is no reduced, be to change this
One situation, needs to convert which, and really the disk mirroring of cloud main frame diminishes.Therefore, in the deletion cloud host disk
In mirror image after mirror image space corresponding with the packing space, also include:
The cloud host disk mirror image space is converted, will be filled out described in deletion in the cloud host disk mirror image space
The disk mirroring space filled after the corresponding mirror image space in space is used as new cloud host disk mirror image space.
By the magnetic after the corresponding mirror image space of the packing space will be deleted in the cloud host disk mirror image space
Used as new cloud host disk mirror image space, the part that will be filled in disk mirroring is deleted, to magnetic in disk mirroring space
Disk mirroring is reduced weight accordingly, is arranged similar to disk fragmentses, really saves cloud storage space, reduces cloud storage cost.
Both reduced the operating cost of the memory space of cloud platform, also reduce can user use cost.
In addition, the embodiment of the present invention is additionally provided
Put, as shown in Figures 2 and 3, including:
Receiver module 10, deletes instruction for receiving the document that cloud main frame sends;
Filling module 20, deletes command reception module 10 with the document and is connected, and deletes instruction the document is received
After the document that receiver module 10 sends deletes instruction, the corresponding memory space of document in instruction is deleted to the document and is filled out
Fill, form packing space;
Modular converter 30, is connected with the filling module 20, is deleted in instruction in the filling module 20 pairs document
The corresponding memory space of document be filled, after forming packing space, delete in the cloud host disk mirror image space with institute
State the corresponding mirror image space of packing space.
In the present invention, receiver module 10 receives the document deletion instruction that cloud main frame sends, and refers to that user carries out document deletion
During operational order, cloud platform can receive the document of user and delete instruction, and the document deletion instruction is transmitted to excellent by such cloud platform
Change the receiver module 10 that virtual disk is taken in the device of memory space, be started and carried out disk space optimization operation.
Certainly, document here deletes instruction except being that the document that user sends deletes instruction, can also be that cloud is put down
The document that platform is sent according to user is deleted the space of the instruction triggers corresponding document that releases order and deletes instruction.
During deleting in document, it some times happens that the situation of maloperation, or document is deleted it by user
Afterwards, regret after a while, it is found that the document being deleted also has value.If no remedial measure, user are also needed to
Reworked, wasted time and efforts.To avoid the generation of this case, optimize virtual disk under the cloud platform and account for
Also included with the device of memory space:
Timing module 40, is connected with the filling module 20, is received the document deletion in the filling module 20 and is referred to
Start timing after order, after predetermined amount of time, control the filling module 20 pairs document and delete the document correspondence in instruction
Memory space be filled, formed packing space.
By the buffer time for increasing predetermined amount of time, account for user, do not perform padding at once, if
In predetermined amount of time, user is the discovery that maloperation, you can remedied, and increases the practicality in cloud platform space.
It is pointed out that the present invention is not specifically limited to the length of predetermined amount of time, can be entered by user or system
Row setting.
And maloperation is the discovery that within a predetermined period of time, document to be recovered at this moment may be with filling at once to be performed
Operation conflicts, and is at this moment accomplished by being judged, sees whether prevent padding.Therefore optimize virtual magnetic under the cloud platform
Disk takes the device of memory space also to be included:
Judge module 50, is connected with the timing module 40, the filling module 20, starts timing in the timely module
The predetermined amount of time afterwards, judges whether to receive Document retrieval instruction, if it is, recovering the document, and cancels institute
State document and delete instruction, the filling module 20 stops carrying out the corresponding memory space of document in document deletion instruction
Filling, if it is not, then after the timely module completes timing, the document of module 20 pairs of filling deletes the document in instruction
Corresponding memory space is filled.
By judge module 50, judge whether within a predetermined period of time to receive Document retrieval instruction, before if so, then illustrating
The maloperation when document on side deletes instruction, needs to be stopped, and while document is recovered, needs to cancel document deletion instruction, this
Sample filling module 20 would not receive document deletes instruction and is filled and operates.
It is pointed out that the judge module 50 can directly receive document to delete instruction or Document retrieval instruction,
As long as having, document deletes instruction or Document retrieval instruction occurs, especially Document retrieval instruction, it is necessary to check whether to hold
OK, if real occur within a predetermined period of time, can perform, can be that document deletion instruction is replaced with Document retrieval directly to refer to
Order, thus will not perform the operation of document deletion again, will not be filled again and operate, or within a predetermined period of time
The priority of the Document retrieval instruction of appearance deletes instruction higher than corresponding document, deletes instruction failure from command of execution document, so
Also Document retrieval operation will not be performed again, and otherwise, beyond predetermined amount of time, just explanation document deletes instruction through performing
, Document retrieval instruction can also be changed into illegal command.
In the present invention, Document retrieval instruction can directly be had by judge module 50 after the instruction is sent by client
Receive, or received from cloud main frame by receiver module 10, be then forwarded to judge module 50 again.Document retrieval instruction
Purpose is, for the document in the region that undeletes, to be so accomplished by Document retrieval instruction and reach judge module with the most short time
50, made a choice by judge module 50.
In the present invention, can be one judge module 50 of setting in whole memory space, dedicated for this class
The judgement of instruction, or subregion is carried out to whole memory space, in the content that document deletes instruction, comprising being to which
The document in individual region is deleted, and document when Document retrieval is instructed for which region is recovered.
In the present invention, fill module 20 and the corresponding memory space of document in instructing to document deletion is filled out
Fill, be by the document deleted in memory space, but the space that the corresponding memory space of the document does not really discharge
Operation is filled, equivalent to being reset or being formatted, the memory space of this section is changed into from the state of store document
Dummy status, and the state of memory space is different, is typically the need for identifying what is distinguished, so the document in next time write
Cheng Zhong, carries out write operation for the memory space of tagged dummy status.Therefore, it is in a kind of specific embodiment, described
Optimize the device that virtual disk takes memory space under cloud platform, also include:
Filling mark module 60, is connected with the filling module 20, and the filling module 20 is using the filling mark mould
The filling mark of the storage of block 60 is deleted the corresponding memory space of document in instruction to the document and is filled.
It is pointed out that the present invention is not concrete lower fixed, Ke Yishi to the filling mark of the filling mark module 60
In the corresponding space of document deleted, write is specific identifies, and this mark can be classification filling, such as be directed to memory space
The ability of storage or the difference of performance is classified, or whole memory space carries out the filling mark of uniformity, one
As filling be designated zero filling, i.e., zero filling operation is carried out to the space after document deletion.
In sum, optimize the method and dress that virtual disk takes memory space under cloud platform provided in an embodiment of the present invention
Put, after document deletion action having been performed in user, obtain document deletion behaviour's instruction that user performs, then the document is deleted
Except instruction memory size is filled, packing space is formed, with the packing space pair in deletion cloud host disk mirror image space
The mirror image space answered, the execution in such memory space the memory space of deletion action really discharged, cloud host disk mirror
Image space space corresponding with deleted document is deleted, and carries out the arrangement of disk mirroring space, and the disk mirroring of cloud main frame is become
It is little, cloud storage space is saved, the utilization ratio of memory space is improved, storage resource is saved, the cost of cloud storage is reduced.
The method and apparatus for taking memory space above to optimizing virtual disk under cloud platform provided by the present invention is carried out
It is discussed in detail.Specific case used herein is set forth to the principle and embodiment of the present invention, above example
Explanation be only intended to help and understand the method for the present invention and its core concept.It should be pointed out that common for the art
For technical staff, under the premise without departing from the principles of the invention, some improvement and modification can also be carried out to the present invention, these
Improve and modification is also fallen in the protection domain of the claims in the present invention.
Claims (9)
1. the method that virtual disk takes memory space is optimized under a kind of cloud platform, it is characterised in that included:
Receive document and delete instruction;
The corresponding memory space of document in instruction is deleted to the document to be filled, packing space is formed;
Delete mirror image space corresponding with the packing space in cloud host disk mirror image space.
2. the method that virtual disk takes memory space is optimized under cloud platform as claimed in claim 1, it is characterised in that described right
The corresponding memory space of document that the document is deleted in instruction is filled, including:
The corresponding memory space of document in instruction is deleted to the document carries out zero padding.
3. the method that virtual disk takes memory space is optimized under cloud platform as claimed in claim 1, it is characterised in that described right
The corresponding memory space of document that the document is deleted in instruction is filled, and forms packing space, including:
After receiving the document and deleting the predetermined amount of time for instructing, the document deleted to the document in instruction is corresponding
Memory space is filled.
4. under cloud platform as claimed in claim 3 optimize virtual disk take memory space method, it is characterised in that it is described
After receiving the predetermined amount of time that the document deletes instruction, the corresponding storage of document deleted to the document in instruction is empty
Between be filled, also include:
Judge in the predetermined amount of time for receiving the document deletion instruction, if receive Document retrieval instruction;
If so, then recover the document, and stop filling out the corresponding memory space of document in document deletion instruction
Fill, if it is not, then delete the corresponding memory space of document in instruction to the document being filled.
5. the method that virtual disk takes memory space is optimized under cloud platform as claimed in claim 1, it is characterised in that described
In deletion cloud host disk mirror image after mirror image space corresponding with the packing space, also include:
The cloud host disk mirror image space is converted, the filling will be deleted in the cloud host disk mirror image space empty
Between disk mirroring space after corresponding mirror image space as new cloud host disk mirror image space.
6. the device that virtual disk takes memory space is optimized under a kind of cloud platform, it is characterised in that included:
Receiver module, deletes instruction for receiving the document that cloud main frame sends;
Filling module, deletes command reception module with the document and is connected, and deletes command reception module the document is received
After the document for sending deletes instruction, the corresponding memory space of document in instruction is deleted to the document and is filled, formation is filled out
Fill space;
Modular converter, is connected with the filling module, and the document correspondence in instruction is deleted to the document in the filling module
Memory space be filled, after forming packing space, delete in the cloud host disk mirror image space with the packing space
Corresponding mirror image space.
7. the device that virtual disk takes memory space is optimized under cloud platform as claimed in claim 6, it is characterised in that also wrapped
Include:
Timing module, is connected with the filling module, is received after the document deletes instruction in the filling module and is started meter
When, after predetermined amount of time, control the filling module and the corresponding memory space of document in document deletion instruction is entered
Row filling, forms packing space.
8. the device that virtual disk takes memory space is optimized under cloud platform as claimed in claim 7, it is characterised in that also wrapped
Include:
Judge module, is connected with the timing module, the filling module, described pre- after the timely module starts timing
Fix time section, judge whether to receive Document retrieval instruction, if it is, recover the document, and cancel the document and delete
Instruction, the filling module stop being filled the corresponding memory space of document in document deletion instruction, if it is not, then
After the timely module completes timing, the filling module deletes the corresponding memory space of document in instruction to the document
It is filled.
9. the device that virtual disk takes memory space is optimized under cloud platform as claimed in claim 6, it is characterised in that also wrapped
Include:
Filling mark module, is connected with the filling module, filling module the filling out using the filling mark module storage
Fill to identify and the corresponding memory space of document in document deletion instruction is filled.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611209018.8A CN106598503B (en) | 2016-12-23 | 2016-12-23 | The method and apparatus that optimization virtual disk occupies memory space under a kind of cloud platform |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611209018.8A CN106598503B (en) | 2016-12-23 | 2016-12-23 | The method and apparatus that optimization virtual disk occupies memory space under a kind of cloud platform |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106598503A true CN106598503A (en) | 2017-04-26 |
CN106598503B CN106598503B (en) | 2019-09-24 |
Family
ID=58601255
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611209018.8A Active CN106598503B (en) | 2016-12-23 | 2016-12-23 | The method and apparatus that optimization virtual disk occupies memory space under a kind of cloud platform |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106598503B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113553142A (en) * | 2021-09-18 | 2021-10-26 | 云宏信息科技股份有限公司 | Storage space arrangement method and configuration method of cloud platform and readable storage medium |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1928868A (en) * | 2006-09-19 | 2007-03-14 | 珠海金山软件股份有限公司 | Method for completely crashing file data in FAT roll |
CN101986284A (en) * | 2010-11-04 | 2011-03-16 | 华中科技大学 | Dynamic recovery system for waste space of virtual machine image file |
CN102143215A (en) * | 2011-01-20 | 2011-08-03 | 中国人民解放军理工大学 | Network-based PB level cloud storage system and processing method thereof |
CN102929884A (en) * | 2011-08-10 | 2013-02-13 | 阿里巴巴集团控股有限公司 | Method and device for compressing virtual hard disk image file |
CN103473296A (en) * | 2013-09-04 | 2013-12-25 | 国云科技股份有限公司 | Recycle bin mechanism and recycle bin system applicable to cloud computing |
CN104519078A (en) * | 2013-09-26 | 2015-04-15 | 中国电信股份有限公司 | A method and a device for realizing cloud storage |
CN104572656A (en) * | 2013-10-12 | 2015-04-29 | 华为技术有限公司 | Method and device for recycling space of disk mirror image |
CN105260229A (en) * | 2015-10-28 | 2016-01-20 | 北京百度网讯科技有限公司 | Method and device for pulling mirror image files of virtual machines |
US9395923B1 (en) * | 2013-09-27 | 2016-07-19 | Emc Corporation | Method and system for recovering from embedded errors from writing data to streaming media |
-
2016
- 2016-12-23 CN CN201611209018.8A patent/CN106598503B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1928868A (en) * | 2006-09-19 | 2007-03-14 | 珠海金山软件股份有限公司 | Method for completely crashing file data in FAT roll |
CN101986284A (en) * | 2010-11-04 | 2011-03-16 | 华中科技大学 | Dynamic recovery system for waste space of virtual machine image file |
CN102143215A (en) * | 2011-01-20 | 2011-08-03 | 中国人民解放军理工大学 | Network-based PB level cloud storage system and processing method thereof |
CN102929884A (en) * | 2011-08-10 | 2013-02-13 | 阿里巴巴集团控股有限公司 | Method and device for compressing virtual hard disk image file |
CN103473296A (en) * | 2013-09-04 | 2013-12-25 | 国云科技股份有限公司 | Recycle bin mechanism and recycle bin system applicable to cloud computing |
CN104519078A (en) * | 2013-09-26 | 2015-04-15 | 中国电信股份有限公司 | A method and a device for realizing cloud storage |
US9395923B1 (en) * | 2013-09-27 | 2016-07-19 | Emc Corporation | Method and system for recovering from embedded errors from writing data to streaming media |
CN104572656A (en) * | 2013-10-12 | 2015-04-29 | 华为技术有限公司 | Method and device for recycling space of disk mirror image |
CN105260229A (en) * | 2015-10-28 | 2016-01-20 | 北京百度网讯科技有限公司 | Method and device for pulling mirror image files of virtual machines |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113553142A (en) * | 2021-09-18 | 2021-10-26 | 云宏信息科技股份有限公司 | Storage space arrangement method and configuration method of cloud platform and readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN106598503B (en) | 2019-09-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109614377A (en) | File delet method, device, equipment and the storage medium of distributed file system | |
CN110457281A (en) | Data processing method, device, equipment and medium | |
CN109189577B (en) | Method and device for preventing memory overflow during data synchronization | |
CN106506244A (en) | A kind of unified supervision device of mixed cloud | |
CN105446893A (en) | Data storage method and device | |
CN105554121A (en) | Method and system for realizing load equalization of distributed cache system | |
CN103353860B (en) | EMS memory management process and device | |
CN103218176A (en) | Data processing method and device | |
CN105306554B (en) | A kind of method of data synchronization and local server | |
CN109739933A (en) | Memory space method for releasing, device, terminal and computer readable storage medium | |
CN107688512A (en) | One kind optimization virtual-machine data backup method and system | |
CN105512171A (en) | Database synchronizing method and apparatus | |
CN104536852B (en) | Data recovery method and device | |
CN104899274A (en) | High-efficiency remote in-memory database access method | |
CN102129443A (en) | Real-time data transmission channel and method based on USAS (Univac Standard Airline Systems) host | |
CN109992219A (en) | Distributed storage method, device, equipment and computer readable storage medium | |
CN106469117A (en) | A kind of SRM method and device for virtual machine storage migration | |
CN110209654A (en) | A kind of text file data storage method, system and electronic equipment and storage medium | |
CN106227469A (en) | Data-erasure method and system for distributed storage cluster | |
CN108415962A (en) | A kind of cloud storage system | |
CN108762669A (en) | The method, apparatus and computer equipment of writing speed when promoting power down | |
CN116955225A (en) | Data caching method, device, electronic equipment and readable medium | |
CN106598503A (en) | Method and device for optimizing storage space occupied by virtual disk under cloud platform | |
CN103345486A (en) | Method for obtaining and showing picture file by client side under remote browsing environment | |
CN103412800B (en) | A kind of virtual machine warm backup method and equipment |
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 | ||
GR01 | Patent grant |