CN106598503B - The method and apparatus that optimization virtual disk occupies memory space under a kind of cloud platform - Google Patents

The method and apparatus that optimization virtual disk occupies memory space under a kind of cloud platform Download PDF

Info

Publication number
CN106598503B
CN106598503B CN201611209018.8A CN201611209018A CN106598503B CN 106598503 B CN106598503 B CN 106598503B CN 201611209018 A CN201611209018 A CN 201611209018A CN 106598503 B CN106598503 B CN 106598503B
Authority
CN
China
Prior art keywords
document
instruction
space
memory space
filling
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
Application number
CN201611209018.8A
Other languages
Chinese (zh)
Other versions
CN106598503A (en
Inventor
胡玉鹏
刘俊朋
李新虎
于辉
郭锋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201611209018.8A priority Critical patent/CN106598503B/en
Publication of CN106598503A publication Critical patent/CN106598503A/en
Application granted granted Critical
Publication of CN106598503B publication Critical patent/CN106598503B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0638Organizing or formatting or addressing of data
    • G06F3/0643Management of files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0646Horizontal data movement in storage systems, i.e. moving data in between storage devices or systems
    • G06F3/0652Erasing, e.g. deleting, data cleaning, moving of data to a wastebasket
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0662Virtualisation aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/067Distributed or networked storage systems, e.g. storage area networks [SAN], network attached storage [NAS]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0673Single storage device
    • G06F3/0674Disk 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 the method and apparatus for optimizing virtual disk occupancy memory space under a kind of cloud platform, wherein method includes: to receive document to delete instruction;The corresponding memory space of document in instruction is deleted to the document to be filled, and forms filling space;Delete mirror image space corresponding with the filling space in cloud host disk mirror image space.Optimize the method and apparatus that virtual disk occupies memory space under the cloud platform, by executing delete operation to the user inside cloud host, but the memory space not discharged really is identified, i.e. after the document that cloud host receives user deletes instruction, its corresponding space is identified, filled and discharged, and the disk mirroring space of cloud host is subjected to corresponding arrangement, mirror image space corresponding with the filling space in cloud host disk mirror image space is deleted, achievees the purpose that really to discharge memory space.

Description

The method and apparatus that optimization virtual disk occupies memory space under a kind of cloud platform
Technical field
The present invention relates to clouds to add technical field of data storage, accounts for more particularly to virtual disk is optimized under a kind of cloud platform With the method and apparatus of memory space.
Background technique
Being constantly progressive and develop with society, demand of the people to data processing is continuously increased.And the meter of user oneself Calculation machine resource is limited, can not carry out large-scale operation and data processing.If handled using mainframe computer, need specially 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 that the utilization efficiency that will cause the computer resource in society in this way is very low, causes entire society The wasting of resources of meeting.
In view of the situation, cloud computing platform obtains quick development.In cloud computing platform, user only needs to pass through visitor Family end logs in cloud computing platform, and data processing is carried out on cloud computing platform, to the hardware requirement of the local computer of user Lower, user saves cost without upgrading hardware of marching into the arena.And for cloud calculates platform, due to the progress needed in society The demand and scale of data processing are gradually increasing, and reduce the cost that user carries out data processing, also reduce cloud platform Average unit cost is run, so that the whole calculating of society is substantially improved from the utilization efficiency of resource.
Under cloud computing platform, since the quantity of user is very more, very frequent, the memory space of use of storage resource Resource consumption is extremely quick, this just needs largely to store equipment, and cost is very high.And there are many delete operations inside cloud host In be not released memory space really, cause the waste of storage resource.
Summary of the invention
The object of the present invention is to provide the method and apparatus for optimizing virtual disk occupancy memory space under a kind of cloud platform, release The memory space that cloud body interior is completed delete operation but do not discharged really is put, the service efficiency of memory space is improved.
In order to solve the above technical problems, the embodiment of the invention provides optimize virtual disk under a kind of cloud platform to occupy storage The method in space, comprising:
It receives document and deletes instruction;
The corresponding memory space of document in instruction is deleted to the document to be filled, and forms filling space;
Delete mirror image space corresponding with the filling space in cloud host disk mirror image space.
Wherein, the corresponding memory space of document in document deletion instruction is filled, comprising:
The corresponding memory space of document in instruction is deleted to the document and carries out zero padding.
Wherein, the corresponding memory space of document in document deletion instruction is filled, and it is empty to form filling Between, comprising:
Instruction is deleted after a predetermined period of time receiving the document, and the document pair in instruction is deleted to the document The memory space answered is filled.
Wherein, described to receive the document deletion instruction after a predetermined period of time, the document is deleted and is instructed In the corresponding memory space of document be filled, further includes:
Judge in the predetermined amount of time for receiving the document deletion instruction, if receive Document retrieval instruction;
If so, restore the document, and stop deleting the document the corresponding memory space of document in instruction into Row filling is filled if it is not, then deleting the corresponding memory space of document in instruction to the document.
Wherein, it is also wrapped after mirror image space corresponding with the filling space in the deletion cloud host disk mirror image It includes:
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 after the corresponding mirror image space in space is filled as new cloud host disk mirror image space.
In addition to this, the embodiment of the invention also provides the dresses for optimizing virtual disk occupancy memory space under a kind of cloud platform It sets, comprising:
Receiving module, the document for receiving the sending of cloud host delete instruction;
Module is filled, command reception module is deleted with the document and connect, deletes command reception receiving the document After the document that module issues deletes instruction, the corresponding memory space of document in instruction is deleted to the document and is filled, shape At filling space;
Conversion module is connect with the filling module, and the document in instruction is deleted the document in the filling module Corresponding memory space is filled, formed filling space after, delete in the cloud host disk mirror image space with the filling The corresponding mirror image space in space.
Wherein, further includes:
Timing module is connect with the filling module, is received after the document deletes instruction and is opened in the filling module It is empty to control the corresponding storage of document that the filling module deletes the document in instruction after predetermined amount of time for beginning timing Between be filled, formed filling space.
Wherein, further includes:
Judgment module is connect, the institute after the timely module starts timing with the timing module, the filling module Predetermined amount of time is stated, judges whether to receive Document retrieval instruction, if it is, restoring the document, and cancels 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 be deposited Storage space is filled.
Wherein, further includes:
Mark module is filled, is connect with the filling module, the filling module is stored using the filling mark module Filling mark to the document delete instruction in the corresponding memory space of document be filled.
Optimize the method and apparatus that virtual disk occupies memory space under cloud platform provided in an embodiment of the present invention, and it is existing Technology compare have the advantage that
Optimize the method that virtual disk occupies memory space under cloud platform provided in an embodiment of the present invention, comprising:
It receives document and deletes instruction;
The corresponding memory space of document in instruction is deleted to the document to be filled, and forms filling space;
Delete mirror image space corresponding with the filling space in cloud host disk mirror image space.
Optimize the device that virtual disk occupies memory space under cloud platform provided in an embodiment of the present invention, comprising:
Receiving module, the document for receiving the sending of cloud host delete instruction;
Module is filled, command reception module is deleted with the document and connect, deletes command reception receiving the document After the document that module issues deletes instruction, the corresponding memory space of document in instruction is deleted to the document and is filled, shape At filling space;
Conversion module is connect with the filling module, and the document in instruction is deleted the document in the filling module Corresponding memory space is filled, formed filling space after, delete in the cloud host disk mirror image space with the filling The corresponding mirror image space in space.
Optimize the method and apparatus that virtual disk occupies memory space under the cloud platform, by having executed document in user After delete operation, obtains the document that user executes and deletes behaviour's instruction, instruction memory size then is deleted to the document and is filled, Filling space is formed, mirror image space corresponding with the filling space in cloud host disk mirror image space is deleted, storage in this way is empty Between in execution the memory space of delete operation 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 host is become smaller, cloud storage space is saved, and is improved The utilization efficiency of memory space saves storage resource, reduces the cost of cloud storage.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is the present invention Some embodiments for those of ordinary skill in the art without creative efforts, can also basis These attached drawings obtain other attached drawings.
Fig. 1 is a kind of tool for the method that optimization virtual disk occupies memory space under cloud platform provided in an embodiment of the present invention The step flow diagram of body embodiment;
Fig. 2 is that optimization virtual disk occupies device one kind of memory space specifically under cloud platform provided in an embodiment of the present invention The structural schematic diagram of embodiment;
Fig. 3 is that optimization virtual disk occupies device one kind of memory space specifically under cloud platform provided in an embodiment of the present invention The structural schematic diagram of embodiment.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
Referring to FIG. 1, Fig. 1 is the side that optimization virtual disk occupies memory space under cloud platform provided in an embodiment of the present invention A kind of step flow diagram of specific embodiment of method.
In a specific embodiment, optimize the method that virtual disk occupies memory space under the cloud platform, comprising:
Step 1, it receives document and deletes instruction;
Step 2, the corresponding memory space of document in instruction is deleted to the document to be filled, form filling space;
Step 3, mirror image space corresponding with the filling space in cloud host disk mirror image space is deleted.
Behaviour's instruction is deleted by after user has executed document delete operation, obtaining the document that user executes, then to this Document delete instruction memory size be filled, formed filling space, delete cloud host disk mirror image space in the filling The corresponding mirror image space in space, execution in such memory space the memory space of delete operation really discharged, cloud host Disk mirroring space space corresponding with deleted document is deleted, and the arrangement of disk mirroring space is carried out, by the disk of cloud host Mirror image becomes smaller, and saves cloud storage space, improves the utilization efficiency of memory space, saves storage resource, reduce cloud storage at This.
The present invention identifies deleted disk space, is subsequently filled, converts, and the disk mirroring of cloud host is become It is small, cloud storage space is saved, the utilization efficiency of memory space is improved, storage resource is saved, reduces the cost of cloud storage.
In a specific embodiment, described that the corresponding memory space progress of document in instruction is deleted to the document Filling, comprising:
The corresponding memory space of document in instruction is deleted to the document and carries out zero padding.
It is filled out it should be pointed out that deleting the corresponding memory space of document in instruction to the document in the present invention It fills, is really released in order to which the corresponding memory space of document deleted the document in instruction is deleted from instruction to practical deletion Corresponding memory space is put, it is enforceable that the memory space is subjected to recovery operation, and in the mistake for withdrawing memory space It is necessary to be marked accordingly to it in journey, to be different from user's memory space currently in use, in addition to described in the present invention Document deletes the corresponding memory space of document in instruction and carries out zero padding, can also carry out the filling of other marks, this hair It is bright that this is not especially limited.
And the case where just as sometimes will appear maloperation locally using memory space.User accidentally will not The document of the deletion is deleted, this is solved very well in the computer locally used, because deleted document is to be directly entered back Station is received, if forcing to delete the document in recycle bin, still can be restored.But under cloud platform, if once cloud is flat Platform is just filled operation at once, exactly covers memory space, use after receiving user and carrying out document deletion instruction Family can not carry out Document retrieval operation, and document can not be retrieved.Therefore the generation to avoid this case, it is also necessary to Certain operation is carried out, after receiving the document operation command of user, covering is not filled to corresponding memory space at once, But wait for a period of time, if the operation that user is not new, illustrate it is that correctly, there is no accidentally for the deletion of the document At this moment operation can be carried out the filling covering for deleting document memory space.Therefore described that the document is deleted in instruction The corresponding memory space of document be filled, formed filling space, comprising:
Instruction is deleted after a predetermined period of time receiving the document, and the document pair in instruction is deleted to the document The memory space answered is filled.
It should be pointed out that the present invention is fixed under not doing specifically to the time span of the predetermined amount of time, default can be One period, such as 5 minutes, it is also possible to user and oneself is setting, carry out value-added service, the present invention does not do this specifically It limits.
If the user find that the deletion of document is maloperation, it is necessary to restore to document, therefore, in a kind of specific reality It applies in mode, it is within a predetermined period of time, described to receive the document deletion instruction after a predetermined period of time, to the text The corresponding memory space of document that shelves are deleted in instruction is filled, further includes:
Judge in the predetermined amount of time for receiving the document deletion instruction, if receive Document retrieval instruction;
If so, restore the document, and stop deleting the document the corresponding memory space of document in instruction into Row filling is filled if it is not, then deleting the corresponding memory space of document in instruction to the document.
If it is determined that being maloperation, then recovery operation is carried out to document, while cancelling corresponding document and deleting instruction, it is no Then, illustrate that the instruction that the document is deleted is correctly, as long as predetermined amount of time one terminates, can be filled operation, release is deposited Store up space.
And due to the disk of cloud host carry out space with memory space be it is corresponding, memory space using how much, carry out sky Between just it is corresponding increase how much.If memory space is filled operation and forms filling space, be also in disk mirroring into The corresponding padding of row, but the size of disk mirroring still and before deleting is not different, and is not reduced, to change this One situation needs to convert it, and really the disk mirroring of cloud host becomes smaller.Therefore, in the deletion cloud host disk In mirror image after mirror image space corresponding with the filling space, further includes:
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 after the corresponding mirror image space in space is filled as new cloud host disk mirror image space.
By the way that the magnetic after the corresponding mirror image space in the filling space will be deleted in the cloud host disk mirror image space The part being filled in disk mirroring is deleted, as new cloud host disk mirror image space to magnetic in disk mirroring space Disk mirroring is reduced weight accordingly, is similar to disk fragments and is arranged, really save 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 to this, the embodiment of the invention also provides the dresses for optimizing virtual disk occupancy memory space under a kind of cloud platform It sets, as shown in Figures 2 and 3, comprising:
Receiving module 10, the document for receiving the sending of cloud host delete instruction;
Module 20 is filled, command reception module 10 is deleted with the document and connect, deletes instruction receiving the document After the document that receiving module 10 issues deletes instruction, the corresponding memory space of document in instruction is deleted to the document and is filled out It fills, forms filling space;
Conversion module 30 is connect with the filling module 20, is deleted in instruction in the filling module 20 document The corresponding memory space of document be filled, formed filling space after, delete in the cloud host disk mirror image space with institute State the corresponding mirror image space in filling space.
In the present invention, receiving module 10 receives the document that cloud host issues and deletes instruction, refers to that user carries out document deletion When operational order, the document that cloud platform will receive user deletes instruction, and the document deletion instruction is transmitted to excellent by such cloud platform Change the receiving module 10 in the device of virtual disk occupancy memory space, is started and carried out disk space optimization operation.
Certainly, document here deletes instruction and deletes instruction in addition to can be the document of user's sending, can also be that cloud is flat The space that document that platform is issued according to user the deletes instruction triggers corresponding document that releases order deletes instruction.
Due to during document is deleted, it some times happens that the case where maloperation or document is deleted it by user Afterwards, regret after a period of time, it is found that there are also utility values for deleted document.If user also needs without remedial measure It reworks, wastes time and efforts.For the generation for avoiding this case, optimization virtual disk is accounted under the cloud platform With the device of memory space further include:
Timing module 40 is connect 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, it is corresponding to control the document that the filling module 20 deletes the document in instruction Memory space be filled, formed filling space.
By the buffer time of increase predetermined amount of time, is accounted for user, do not execute padding at once, if In predetermined amount of time, user is the discovery that maloperation, can be remedied, and the practicability in cloud platform space is increased.
It should be pointed out that the present invention is not specifically limited the length of predetermined amount of time, can by user or system into Row setting.
And it is the discovery that maloperation within a predetermined period of time, Yao Huifu document at this moment may be with the filling to be executed at once Operation conflicts, and is at this moment just judged, sees whether prevent padding.Therefore optimize virtual magnetic under the cloud platform The device of disk occupancy memory space further include:
Judgment module 50, connect 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, restoring the document, and cancels institute It states document and deletes instruction, the corresponding memory space of document that the filling module 20 stops deleting the document in instruction carries out Filling, if it is not, the filling module 20 deletes the document document in instruction then after the timely module completes timing Corresponding memory space is filled.
By judgment module 50, judge whether to receive Document retrieval instruction within a predetermined period of time, if so, before explanation The maloperation when document on side deletes instruction, needs to be stopped, and while restoring document, needs to cancel document and deletes instruction, this Sample filling module 20, which would not receive document, deletes instruction and is filled and operates.
It should be pointed out that the judgment module 50, which can be, directly receives document deletion instruction or Document retrieval instruction, As long as having, document deletes instruction or Document retrieval instruction occurs, and especially Document retrieval instructs, it is necessary to check whether to hold If row occurs within a predetermined period of time real, can execute, and can be document is directly deleted instruction to replace with Document retrieval and refers to It enables, will not thus execute the operation of document deletion again, will not be filled and operate again, be also possible within a predetermined period of time The priority of the Document retrieval instruction of appearance is higher than corresponding document and deletes instruction, deletes instruction failure from command of execution document, in this way Document retrieval operation will not be executed again, otherwise, exceeds predetermined amount of time, just illustrated that document is deleted to instruct to have been subjected to and executed , Document retrieval, which instructs, can also become illegal command.
In the present invention, Document retrieval instruction can be and directly be had after issuing the instruction by judgment module 50 by client It receives, is also possible to be received from cloud host by receiving module 10, is then forwarded to judgment module 50 again.Document retrieval instruction Purpose is thus to need Document retrieval instruction to reach judgment module in the shortest possible time for the document in the region that undeletes 50, it is made a choice by judgment module 50.
In the present invention, it can be one judgment module 50 of setting in entire memory space, dedicated for this kind The judgement of instruction is also possible to carry out subregion to entire memory space, in the content that document deletes instruction, comprising being to which The document in a region is deleted, and document when Document retrieval instructs for which region is restored.
In the present invention, filling module 20 is filled out for deleting the corresponding memory space of document in instruction to document It fills, is but the space that the corresponding memory space of the document does not discharge really by the document deleted in memory space It is filled operation, is equivalent to and is reset either formatting, the memory space of this section is become from the state of storage document Dummy status, and the state of memory space is different, is generally the need for what mark was distinguished, the document in next time was written in this way Cheng Zhong carries out write operation for the memory space of tagged dummy status.Therefore, in a specific embodiment, described Optimize the device that virtual disk occupies memory space under cloud platform, further includes:
Mark module 60 is filled, is connect with the filling module 20, the filling module 20 identifies mould using the filling The filling mark that block 60 stores is deleted the corresponding memory space of document in instruction to the document and is filled.
It should be pointed out that the present invention is fixed under not doing specifically to the filling mark of the filling mark module 60, can be Specific mark is written in the corresponding space of document of deletion, this mark can be classification filling, such as be directed to memory space The ability of storage or the difference of performance classify, be also possible to the filling mark that entire memory space carries out uniformity, one As filling be identified as zero filling, i.e., the space after deleting document carries out zero filling operation.
In conclusion optimizing method and dress that virtual disk occupies memory space under cloud platform provided in an embodiment of the present invention It sets, deletes behaviour's instruction by after user has executed document delete operation, obtaining the document that user executes, then the document is deleted Except instruction memory size is filled, formed filling space, delete cloud host disk mirror image space in the filling space pair The mirror image space answered, execution in such memory space the memory space of delete operation 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 host is become It is small, cloud storage space is saved, the utilization efficiency of memory space is improved, storage resource is saved, reduces the cost of cloud storage.
The method and apparatus for optimizing virtual disk occupancy memory space under cloud platform provided by the present invention are carried out above It is discussed in detail.Used herein a specific example illustrates the principle and implementation of the invention, above embodiments Explanation be merely used to help understand method and its core concept of the invention.It should be pointed out that for the common of the art , without departing from the principle of the present invention, can be with several improvements and modifications are made to the present invention for technical staff, these Improvement and modification are also fallen within the protection scope of the claims of the present invention.

Claims (9)

1. optimizing the method that virtual disk occupies memory space under a kind of cloud platform characterized by comprising
It receives document and deletes instruction;
The corresponding memory space of document in instruction is deleted to the document to be filled, and forms filling space;
Delete mirror image space corresponding with the filling space in cloud host disk mirror image space.
2. optimizing the method that virtual disk occupies memory space under cloud platform as described in claim 1, which is characterized in that described right The corresponding memory space of document that the document is deleted in instruction is filled, comprising:
The corresponding memory space of document in instruction is deleted to the document and carries out zero padding.
3. optimizing the method that virtual disk occupies memory space under cloud platform as described in claim 1, which is characterized in that described right The corresponding memory space of document that the document is deleted in instruction is filled, and forms filling space, comprising:
Instruction is deleted after a predetermined period of time receiving the document, and it is corresponding to delete the document in instruction to the document Memory space is filled.
4. under cloud platform as claimed in claim 3 optimize virtual disk occupy memory space method, which is characterized in that it is described It receives the document and deletes instruction after a predetermined period of time, it is empty to delete the corresponding storage of document in instruction to the document Between be filled, further includes:
Judge in the predetermined amount of time for receiving the document deletion instruction, if receive Document retrieval instruction;
If so, restoring the document, and stop filling out the corresponding memory space of document in document deletion instruction It fills, is filled if it is not, then deleting the corresponding memory space of document in instruction to the document.
5. optimizing the method that virtual disk occupies memory space under cloud platform as described in claim 1, which is characterized in that described It deletes in cloud host disk mirror image after mirror image space corresponding with the filling space, further includes:
The cloud host disk mirror image space is converted, it is empty that the filling will be deleted in the cloud host disk mirror image space Between disk mirroring space after corresponding mirror image space as new cloud host disk mirror image space.
6. optimizing the device that virtual disk occupies memory space under a kind of cloud platform characterized by comprising
Receiving module, the document for receiving the sending of cloud host delete instruction;
Module is filled, command reception module is deleted with the document and connect, deletes command reception module receiving the document After the document of 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;
Conversion module is connect with the filling module, and it is corresponding to delete the document in instruction to the document in the filling module Memory space be filled, formed filling space after, delete in the cloud host disk mirror image space with the filling space Corresponding mirror image space.
7. optimizing the device that virtual disk occupies memory space under cloud platform as claimed in claim 6, which is characterized in that also wrap It includes:
Timing module is connect with the filling module, is received after the document deletes instruction in the filling module and is started to count When, after predetermined amount of time, control it is described filling module to the document delete instruction in the corresponding memory space of document into Row filling forms filling space.
8. optimizing the device that virtual disk occupies memory space under cloud platform as claimed in claim 7, which is characterized in that also wrap It includes:
Judgment module is connect with the timing module, the filling module, described pre- after the timing module starts timing It fixes time section, judges whether to receive Document retrieval instruction, if it is, restoring the document, and cancel the document and delete Instruction, the filling module stops being filled the corresponding memory space of document in document deletion instruction, if it is not, then After the timing module completes timing, it is empty that the filling module deletes the corresponding storage of document in instruction to the document Between be filled.
9. optimizing the device that virtual disk occupies memory space under cloud platform as claimed in claim 6, which is characterized in that also wrap It includes:
Mark module is filled, is connect with the filling module, filling module the filling out using the filling mark module storage Mark is filled to be filled the corresponding memory space of document in document deletion instruction.
CN201611209018.8A 2016-12-23 2016-12-23 The method and apparatus that optimization virtual disk occupies memory space under a kind of cloud platform Active CN106598503B (en)

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 CN106598503A (en) 2017-04-26
CN106598503B true 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)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113553142B (en) * 2021-09-18 2022-01-25 云宏信息科技股份有限公司 Storage space arrangement method and configuration method of cloud platform and readable storage medium

Citations (9)

* Cited by examiner, † Cited by third party
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

Patent Citations (9)

* Cited by examiner, † Cited by third party
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

Also Published As

Publication number Publication date
CN106598503A (en) 2017-04-26

Similar Documents

Publication Publication Date Title
US10817386B2 (en) Virtual machine recovery method and virtual machine management device
CN106062742B (en) System and method for improving snapshot performance
US8069191B2 (en) Method, an apparatus and a system for managing a snapshot storage pool
CN104335175B (en) The method and system of thread is identified and migrated between system node based on system performance metric
CN101770410B (en) System reducing method based on client operating system, virtual machine manager and system
CN102035697A (en) Concurrent connections performance testing system and method for file system
CN104468521B (en) Online moving method, device and system
CN109739933A (en) Memory space method for releasing, device, terminal and computer readable storage medium
CN105446893A (en) Data storage method and device
CN103399781B (en) Cloud Server and virtual machine management method thereof
CN109189577B (en) Method and device for preventing memory overflow during data synchronization
CN107977167A (en) Optimization method is read in a kind of degeneration of distributed memory system based on correcting and eleting codes
CN106155943B (en) A kind of method and device of the power down protection of dual control storage equipment
CN110990133B (en) Edge computing service migration method and device, electronic equipment and medium
CN104536852B (en) Data recovery method and device
CN101945131A (en) Storage virtualization-based data migration method
CN102129443A (en) Real-time data transmission channel and method based on USAS (Univac Standard Airline Systems) host
CN106708627A (en) Multi-virtual-machine mapping and multipath fuse acceleration method and system based on kvm
CN108415962A (en) A kind of cloud storage system
CN106598503B (en) The method and apparatus that optimization virtual disk occupies memory space under a kind of cloud platform
CN111104404B (en) Data storage method and device based on distributed objects
CN103412800B (en) A kind of virtual machine warm backup method and equipment
CN107102889A (en) A kind of resources of virtual machine method of adjustment and device
CN112286640B (en) Podman automatic migration system and method based on CRU
CN104391735B (en) Virtualize dispatching method of virtual machine and system in all-in-one machine cluster

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