CN105573813A - Continuous snapshooting method and device of virtual machine - Google Patents
Continuous snapshooting method and device of virtual machine Download PDFInfo
- Publication number
- CN105573813A CN105573813A CN201410532668.0A CN201410532668A CN105573813A CN 105573813 A CN105573813 A CN 105573813A CN 201410532668 A CN201410532668 A CN 201410532668A CN 105573813 A CN105573813 A CN 105573813A
- Authority
- CN
- China
- Prior art keywords
- virtual machine
- page
- bitmap information
- value
- written
- 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
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
本发明提供一种虚拟机连续快照方法和装置,虚拟机连续快照方法包括:将虚拟机停机;根据虚拟机中各页面的第一位图信息的值更新各页面的第二位图信息的值;初始化虚拟机中各页面的第一位图信息的值;恢复虚拟机的运行;依次判断虚拟机中各页面的第二位图信息的值是否为第一预设的值,并将第二位图信息的值为第一预设的值的各页面保存到缓存区。虚拟机连续快照装置仅需在虚拟机停机过程中对各页面位图信息进行操作,而该过程所需的时间很短,缩短了快照过程中虚拟机停机时间,虚拟机连续快照时依次对需要保存的各页面进行快照保存,仅保存未被保存的页面,大大缩短了虚拟机一次快照的时间,降低了快照过程对虚拟机性能的影响。
The present invention provides a virtual machine continuous snapshot method and device. The virtual machine continuous snapshot method includes: stopping the virtual machine; updating the value of the second bitmap information of each page according to the value of the first bitmap information of each page in the virtual machine ; Initialize the value of the first bitmap information of each page in the virtual machine; resume the operation of the virtual machine; determine in turn whether the value of the second bitmap information of each page in the virtual machine is the first preset value, and set the second Each page whose value of the bitmap information is the first preset value is saved to the cache area. The virtual machine continuous snapshot device only needs to operate the bitmap information of each page during the virtual machine shutdown process, and the time required for this process is very short, which shortens the virtual machine downtime during the snapshot process. Each saved page is saved as a snapshot, and only the unsaved pages are saved, which greatly shortens the time for a snapshot of the virtual machine and reduces the impact of the snapshot process on the performance of the virtual machine.
Description
技术领域technical field
本发明涉及计算机技术领域,尤其涉及一种虚拟机连续快照方法和装置。The invention relates to the technical field of computers, in particular to a method and device for continuous snapshots of a virtual machine.
背景技术Background technique
虚拟化技术可以有效整合和利用计算机资源,因此成为了云计算领域的关键支撑计算。为了提供连续、高可用的云服务,虚拟机中的数据和状态需要满足可靠性和安全性,由此引入了快照技术。快照技术可以保存虚拟机运行过程中的完整状态,包括虚拟机的磁盘状态、内存状态及设备状态,如CPU、网络等,在虚拟机故障时用于恢复虚拟机的状态,尽量少的丢失虚拟机的数据和状态。Virtualization technology can effectively integrate and utilize computer resources, so it has become a key supporting computing in the field of cloud computing. In order to provide continuous and highly available cloud services, the data and state in the virtual machine need to meet the requirements of reliability and security, thus introducing the snapshot technology. The snapshot technology can save the complete state of the virtual machine during running, including the disk state, memory state and device state of the virtual machine, such as CPU, network, etc. Machine data and status.
目前,虚拟机对内存状态进行快照时主要采用停机拷贝。停机拷贝是在进行虚拟机连续快照时将虚拟机挂起,当所有的内存数据被保存了后再恢复虚拟机运行,以保证此次快照时虚拟机内存中的各页面的数据完整,未被修改。At present, when a virtual machine takes a snapshot of the memory state, it mainly uses downtime copying. Shutdown copy is to suspend the virtual machine when taking continuous snapshots of the virtual machine, and then resume the virtual machine after all the memory data is saved, so as to ensure that the data of each page in the virtual machine memory is complete during this snapshot, and has not been deleted. Revise.
但是,停机拷贝使得每次快照时虚拟机的宕机时间非常长,影响了虚拟机的性能。However, downtime copying makes the downtime of the virtual machine very long during each snapshot, which affects the performance of the virtual machine.
发明内容Contents of the invention
本发明提供一种虚拟机连续快照方法和装置,用于解决现有技术中虚拟机连续快照方法使虚拟机宕机时间长,影响虚拟机性能的问题。The present invention provides a virtual machine continuous snapshot method and device, which are used to solve the problem in the prior art that the virtual machine continuous snapshot method makes the virtual machine down for a long time and affects the performance of the virtual machine.
本发明提供一种虚拟机连续快照方法,包括:The present invention provides a virtual machine continuous snapshot method, including:
将虚拟机停机;Stop the virtual machine;
根据所述虚拟机中各页面的第一位图信息的值更新各页面的第二位图信息的值,所述第一位图信息用于标识各页面是否已被修改,所述第二位图信息用于标识所述各页面是否需要保存,所述各页面的第一位图信息和第二位图信息与各页面的地址一一对应;Update the value of the second bitmap information of each page according to the value of the first bitmap information of each page in the virtual machine, the first bitmap information is used to identify whether each page has been modified, and the second bitmap information The map information is used to identify whether the pages need to be saved, and the first bitmap information and the second bitmap information of the pages are in one-to-one correspondence with the addresses of the pages;
初始化所述虚拟机中各页面的第一位图信息的值;Initialize the value of the first bitmap information of each page in the virtual machine;
恢复所述虚拟机的运行;resume operation of the virtual machine;
依次判断所述虚拟机中各页面的第二位图信息的值是否为第一预设的值;sequentially determine whether the value of the second bitmap information of each page in the virtual machine is the first preset value;
将第二位图信息的值为第一预设的值的各页面保存到缓存区,并将保存到缓存区的各页面的第二位图信息的值更改为第二预设的值。saving each page whose value of the second bitmap information is the first preset value into the buffer area, and changing the value of the second bitmap information of each page saved into the buffer area to the second preset value.
本发明提供一种虚拟机连续快照装置,包括:The present invention provides a virtual machine continuous snapshot device, including:
停机模块,用于将虚拟机停机;A shutdown module, configured to shut down the virtual machine;
更新模块,用于根据所述虚拟机中各页面的第一位图信息的值更新各页面的第二位图信息的值,所述第一位图信息用于标识各页面是否已被修改,所述第二位图信息用于标识所述各页面是否需要保存,所述各页面的第一位图信息和第二位图信息与各页面的地址一一对应;An update module, configured to update the value of the second bitmap information of each page according to the value of the first bitmap information of each page in the virtual machine, the first bitmap information is used to identify whether each page has been modified, The second bitmap information is used to identify whether each page needs to be saved, and the first bitmap information and the second bitmap information of each page are in one-to-one correspondence with the address of each page;
初始化模块,用于初始化所述虚拟机中各页面的第一位图信息的值;an initialization module, configured to initialize the value of the first bitmap information of each page in the virtual machine;
恢复模块,用于恢复所述虚拟机的运行;A recovery module, configured to recover the operation of the virtual machine;
判断模块,用于依次判断所述虚拟机中各页面的第二位图信息的值是否为第一预设的值;A judging module, configured to sequentially judge whether the value of the second bitmap information of each page in the virtual machine is the first preset value;
处理模块,用于将第二位图信息的值为第一预设的值的各页面保存到缓存区,并将保存到缓存区的各页面的第二位图信息的值更改为第二预设的值。A processing module, configured to save each page whose value of the second bitmap information is the first preset value to the buffer area, and change the value of the second bitmap information of each page saved to the buffer area to the second preset value. set value.
本发明提供的虚拟机连续快照方法和装置,虚拟机连续快照装置仅需在虚拟机停机过程中将虚拟机中各页面的第一位图信息的值复制到第二位图信息中,即可恢复虚拟机的运行,在虚拟机运行过程中根据各页面的第二位图信息的值依次对需要保存的各页面进行快照保存,由于对各页面位图信息的操作所需的时间很短,使得一次快照过程中虚拟机停机时间较短,且在虚拟机连续快照时仅需保存自上次快照后被修改的页面,使得所有的页面仅被保存一次,保存的页面数量少,从而大大缩短了虚拟机一次快照的时间,降低了虚拟机连续快照过程对虚拟机性能的影响。In the virtual machine continuous snapshot method and device provided by the present invention, the virtual machine continuous snapshot device only needs to copy the value of the first bitmap information of each page in the virtual machine to the second bitmap information during the shutdown process of the virtual machine. To restore the operation of the virtual machine, during the operation of the virtual machine, snapshots are sequentially saved for each page that needs to be saved according to the value of the second bitmap information of each page. Since the time required for the operation of the bitmap information for each page is very short, The downtime of the virtual machine during a snapshot is shorter, and only the pages modified since the last snapshot need to be saved during continuous snapshots of the virtual machine, so that all pages are only saved once, and the number of saved pages is small, thus greatly shortening The time for one snapshot of the virtual machine is reduced, and the impact of the continuous snapshot process of the virtual machine on the performance of the virtual machine is reduced.
附图说明Description of drawings
图1为本发明提供的一种虚拟机连续快照方法实施例一的流程示意图;FIG. 1 is a schematic flowchart of Embodiment 1 of a continuous snapshot method for a virtual machine provided by the present invention;
图2为本发明提供的一种虚拟机连续快照方法实施例二的流程示意图;FIG. 2 is a schematic flow diagram of Embodiment 2 of a virtual machine continuous snapshot method provided by the present invention;
图3为本发明提供的一种虚拟机连续快照方法实施例三的流程示意图;FIG. 3 is a schematic flow diagram of Embodiment 3 of a virtual machine continuous snapshot method provided by the present invention;
图4为本发明提供的一种虚拟机连续快照装置实施例一的结构示意图;FIG. 4 is a schematic structural diagram of Embodiment 1 of a virtual machine continuous snapshot device provided by the present invention;
图5为本发明提供的一种虚拟机连续快照装置实施例二的结构示意图。FIG. 5 is a schematic structural diagram of Embodiment 2 of a virtual machine continuous snapshot device provided by the present invention.
具体实施方式detailed description
图1为本发明提供的一种虚拟机连续快照方法实施例一的流程示意图。如图1所示,该方法包括:FIG. 1 is a schematic flowchart of Embodiment 1 of a method for continuous snapshot of a virtual machine provided by the present invention. As shown in Figure 1, the method includes:
S10,将虚拟机停机。S10, stop the virtual machine.
S11,根据所述虚拟机中各页面的第一位图信息的值更新各页面的第二位图信息的值。S11. Update the value of the second bitmap information of each page according to the value of the first bitmap information of each page in the virtual machine.
其中,所述第一位图信息用于标识各页面是否已被修改,所述第二位图信息用于标识所述各页面是否需要保存,所述各页面的第一位图信息和第二位图信息与各页面的地址一一对应。Wherein, the first bitmap information is used to identify whether each page has been modified, the second bitmap information is used to identify whether each page needs to be saved, the first bitmap information and the second bitmap information of each page The bitmap information is in one-to-one correspondence with the address of each page.
具体的,本方法实施例由虚拟机连续快照装置执行。本发明中虚拟机内存的最小单位为页面,每个页面对应一个页面地址。本发明提供的虚拟机连续快照方法以对虚拟机的内存快照为例进行说明,首先为虚拟机中各页面建立位图信息表,位图信息表中包括虚拟机中各页面的地址与第一位图信息和第二位图信息的对应关系。可以分别通过一个比特的值来表示第一位图信息和第二位图信息的两种状态。比如分别用1或0来表示第一位图信息和第二位图信息的两种状态。Specifically, this embodiment of the method is executed by a virtual machine continuous snapshot device. The minimum unit of the virtual machine memory in the present invention is a page, and each page corresponds to a page address. The continuous snapshot method of the virtual machine provided by the present invention takes the memory snapshot of the virtual machine as an example to illustrate. Firstly, a bitmap information table is established for each page in the virtual machine, and the bitmap information table includes the addresses and the first Correspondence between the bitmap information and the second bitmap information. The two states of the first bitmap information and the second bitmap information can be represented by a value of one bit respectively. For example, 1 or 0 are respectively used to represent the two states of the first bitmap information and the second bitmap information.
为方便说明,本发明各实施例中,第一位图信息的值用0表示该页面被写保护,未被修改,用1表示改页面已被修改;第二位图信息的值用1表示该页面需要保存但未保存,用0表示该页面已经被保存或不需要保存为例进行说明。For convenience of description, in each embodiment of the present invention, the value of the first bitmap information is represented by 0 that the page is write-protected and has not been modified, and 1 is used to represent that the page has been modified; the value of the second bitmap information is represented by 1 The page needs to be saved but has not been saved. Use 0 to indicate that the page has been saved or does not need to be saved as an example for illustration.
本实施例中在进行虚拟机连续快照时,首先将虚拟机停机,然后将位图信息表中第一位图信息的值拷贝到第二位图信息中,这样虚拟机连续快照装置即可根据该页面是否被修改来判断该页面是否需要保存了。举例来说,若虚拟机中共包括3个页面,虚拟机停机时,第一页面和第三页面的第一位图信息的值均为1,第二页面的第一位图信息的值为0,则说明第一页面和第三页面已被修改,第二页面未被修改,将各页面的第一位图信息复制到第二位图信息后,第一页面和第三页面的第二位图信息为1,第二页面的第二位图信息为0,则说明第一页面和第三页面需要保存,而第二页面不需要保存。In this embodiment, when performing continuous snapshots of a virtual machine, the virtual machine is first shut down, and then the value of the first bitmap information in the bitmap information table is copied to the second bitmap information, so that the continuous snapshot device for the virtual machine can Whether the page is modified to determine whether the page needs to be saved. For example, if the virtual machine includes 3 pages in total, when the virtual machine stops, the values of the first bitmap information of the first page and the third page are both 1, and the value of the first bitmap information of the second page is 0 , it means that the first page and the third page have been modified, and the second page has not been modified. After copying the first bitmap information of each page to the second bitmap information, the second bitmap information of the first page and the third page If the map information is 1, and the second bitmap information of the second page is 0, it means that the first page and the third page need to be saved, but the second page does not need to be saved.
S12,初始化所述虚拟机中各页面的第一位图信息的值。S12. Initialize the value of the first bitmap information of each page in the virtual machine.
具体的,将虚拟机中各页面的第一位图信息复制到第二位图信息后,为记录此次快照过程中各页面的被修改情况,将各页面的第一位图信息初始化,即将各页面的第一位图信息的值置0。在下次快照开始前,虚拟机连续快照装置再将各页面的第一位图信息值复制到第二位图信息中,此时根据各页面的第二位图信息即可确定在上次快照过程中被修改的页面,从而只保存相应被修改过的页面了。Specifically, after copying the first bitmap information of each page in the virtual machine to the second bitmap information, in order to record the modification of each page in the snapshot process, initialize the first bitmap information of each page, that is, The value of the first bitmap information of each page is set to 0. Before the next snapshot starts, the virtual machine continuous snapshot device copies the first bitmap information value of each page to the second bitmap information. The modified pages in , so that only the corresponding modified pages are saved.
S13,恢复所述虚拟机的运行。S13. Resume running of the virtual machine.
需要说明的是,上述S11和S12仅是一些简单的数据操作,所需时间很短,从而使虚拟机停机的时间很短。It should be noted that the above S11 and S12 are only some simple data operations, and the required time is very short, so that the virtual machine stops for a very short time.
S14,依次判断所述虚拟机中各页面的第二位图信息的值是否为第一预设的值。S14, sequentially determine whether the value of the second bitmap information of each page in the virtual machine is a first preset value.
S15,将第二位图信息的值为第一预设的值的各页面保存到缓存区,并将保存到缓存区的各页面的第二位图信息的值更改为第二预设的值。S15, saving each page whose value of the second bitmap information is the first preset value to the buffer area, and changing the value of the second bitmap information of each page saved to the buffer area to the second preset value .
具体的,本实施例中的第一预设的值即为1。虚拟机连续快照装置在虚拟机停机后,仅将虚拟机中各页面的第一位图信息的值复制到第二位图信息后,即恢复虚拟机的运行,之后,依次判断虚拟机中各页面的第二位图信息的标识,若某页面的第二位图信息的标识是0,则说明该页面已经被保存或无需保存,若为1,则说明该页面需要保存但未保存,将虚拟机中第二位图信息的值为1的各页面保存到缓存区中,另外为防止虚拟机连续快照装置在依次判断各页面的第二位图信息是否为1的过程中,对某一页面进行了重复判断,而多次保存的情况,虚拟机连续快照装置在根据第二位图信息标识将需要保存的页面保存到缓存区后,再将该页面地址对应的第二位图信息的标识更改为0。Specifically, the first preset value in this embodiment is 1. After the virtual machine continuous snapshot device is shut down, it only copies the value of the first bitmap information of each page in the virtual machine to the second bitmap information, and resumes the operation of the virtual machine, and then judges the information of each page in the virtual machine in turn. The identifier of the second bitmap information of the page. If the identifier of the second bitmap information of a page is 0, it means that the page has been saved or does not need to be saved. If it is 1, it means that the page needs to be saved but has not been saved. Each page in the virtual machine whose second bitmap information value is 1 is stored in the cache area. In addition, in order to prevent the continuous snapshot device of the virtual machine from sequentially judging whether the second bitmap information of each page is 1, the If the page has been repeatedly judged and saved multiple times, the continuous snapshot device of the virtual machine saves the page to be saved in the cache area according to the second bitmap information identifier, and then the second bitmap information corresponding to the page address ID changed to 0.
在本发明提供的虚拟机连续快照方法中,在对虚拟机第一次快照前,可将虚拟机中各页面的第二位图信息的值统一设置为1,这样虚拟机连续快照装置对虚拟机进行第一次快照时,可以依次将各页面保存到缓存中。在之后的快照过程中,各页面的第二位图信息的值可以根据该页面的第一位图信息的值来确定,若页面被修改了,则将页面的第二位图信息值修改为1,以便下次快照时虚拟机连续快照装置保存该页面,使得虚拟机连续快照装置每次快照时只对需要保存的页面进行缓存,保证了虚拟机连续快照的完整性。In the virtual machine continuous snapshot method provided by the present invention, before the first snapshot of the virtual machine, the value of the second bitmap information of each page in the virtual machine can be uniformly set to 1, so that the virtual machine continuous snapshot device When the machine takes its first snapshot, each page can be saved in the cache in turn. In the subsequent snapshot process, the value of the second bitmap information of each page can be determined according to the value of the first bitmap information of the page. If the page is modified, the value of the second bitmap information of the page is modified to 1, so that the virtual machine continuous snapshot device saves the page in the next snapshot, so that the virtual machine continuous snapshot device only caches the pages that need to be saved each time, ensuring the integrity of the virtual machine continuous snapshot.
本发明提供的虚拟机连续快照方法,虚拟机连续快照装置仅需在虚拟机停机过程中将虚拟机中各页面的第一位图信息的值复制到第二位图信息中,即可恢复虚拟机的运行,在虚拟机运行过程中根据各页面的第二位图信息的值依次对需要保存的各页面进行快照保存,由于对各页面位图信息的操作所需的时间很短,使得一次快照过程中虚拟机停机时间较短,且在虚拟机连续快照过程中仅需保存自上次快照后被修改的页面,使得所有的页面仅被保存一次,保存的页面数量少,从而大大缩短了虚拟机一次快照的时间,降低了虚拟机连续快照过程对虚拟机性能的影响。图2为本发明提供是虚拟机连续快照方法实施例二的流程示意图。如图2所示,在上述S13之前,该方法还包括:In the virtual machine continuous snapshot method provided by the present invention, the virtual machine continuous snapshot device only needs to copy the value of the first bitmap information of each page in the virtual machine to the second bitmap information to restore the virtual machine During the operation of the virtual machine, according to the value of the second bitmap information of each page, the snapshots of each page to be saved are sequentially saved. Since the time required for the operation of the bitmap information of each page is very short, one time During the snapshot process, the downtime of the virtual machine is short, and only the pages modified since the last snapshot need to be saved during the continuous snapshot process of the virtual machine, so that all pages are only saved once, and the number of saved pages is small, which greatly shortens the The time for one snapshot of the virtual machine reduces the impact of the continuous snapshot process of the virtual machine on the performance of the virtual machine. FIG. 2 is a schematic flow chart of Embodiment 2 of the continuous snapshot method of a virtual machine provided by the present invention. As shown in Figure 2, before the above S13, the method also includes:
S20,对所述虚拟机的内存页面进行写保护。S20. Write-protect the memory page of the virtual machine.
具体的,虚拟机连续快照装置为了实时截获对虚拟机内存页面的写请求,需要对虚拟机进行写保护。Specifically, in order to capture the write request to the memory page of the virtual machine in real time, the continuous snapshot device for the virtual machine needs to implement write protection for the virtual machine.
上述S13之后,该方法还包括:After the above S13, the method also includes:
S21,截获对虚拟机的被写保护的内存页面的写请求,所述写请求中包括待写入的数据及待写入数据的页面的地址。S21. Intercept a write request for a write-protected memory page of the virtual machine, where the write request includes data to be written and an address of the page to which the data is to be written.
具体的,当网络中任一实体需要向虚拟机内存中的页面写入新数据时,可以向虚拟机发送写请求,由于虚拟机进行了写保护,对内存页面的写操作会使得虚拟机陷出到虚拟机监控器,从而虚拟快照装置能够截获到对虚拟机的写请求。其中,写请求中包括待写入新数据的页面的地址。Specifically, when any entity in the network needs to write new data to a page in the virtual machine memory, it can send a write request to the virtual machine. Since the virtual machine is write-protected, the write operation to the memory page will cause the virtual machine to crash. output to the virtual machine monitor, so that the virtual snapshot device can intercept the write request to the virtual machine. Wherein, the write request includes the address of the page where new data is to be written.
S22,将与所述待写入数据的页面的第一位图信息的值更改为第三预设的值。S22. Change the value of the first bitmap information related to the page to be written into a third preset value.
具体的,虚拟机连续快照装置在截获到有写请求时,即可确定与该写请求中的页面地址对应的第一位图信息的值为0,即说明该页面被写保护,不允许修改,则虚拟机连续快照装置可将该页面的第一位图信息的值更改为1,以标记该页面被修改。Specifically, when the virtual machine continuous snapshot device intercepts a write request, it can determine that the value of the first bitmap information corresponding to the page address in the write request is 0, which means that the page is write-protected and cannot be modified. , the virtual machine continuous snapshot apparatus may change the value of the first bitmap information of the page to 1 to mark the page as modified.
S23,判断所述待写入数据的页面的第二位图信息的值是否为第一预设的值,若是则执行S24,否则执行S25。S23, judging whether the value of the second bitmap information of the page to be written with data is a first preset value, if so, execute S24, otherwise execute S25.
S24,将所述待写入数据的页面保存到缓存区。S24. Save the page of the data to be written into the cache area.
S25,去除对所述待写入数据的页面的写保护,并将所述待写入的数据写入到所述待写入数据的页面中。S25. Remove the write protection of the page of data to be written, and write the data to be written into the page of data to be written.
需要说明的是,本实施例中的上述步骤S20对虚拟机进行写保护的操作与上述S11及S12间无固定的先后顺序,只要保证S11、S12和S20在S13前执行即可,图2中以S20在S12之后为例进行说明。另外本实施例中的步骤S21~S25是在截获到对虚拟机的写请求后触发的,它们的执行与上述S14由虚拟机连续快照装置主动发起的动作之间可以是同时进行的。上述S14可以由虚拟机连续快照装置在后台一直重复执行,而步骤S10~S13、S21~S25需要在前台操作控制实现,即两个过程是并行进行的两个线程,互不影响。It should be noted that there is no fixed sequence between the above-mentioned step S20 in this embodiment to write-protect the virtual machine and the above-mentioned S11 and S12, as long as S11, S12 and S20 are executed before S13, as shown in FIG. 2 Take S20 after S12 as an example for illustration. In addition, steps S21-S25 in this embodiment are triggered after the write request to the virtual machine is intercepted, and their execution may be performed simultaneously with the above-mentioned S14 action initiated by the virtual machine continuous snapshot device. The above S14 can be repeatedly executed by the continuous snapshot device of the virtual machine in the background, while the steps S10-S13, S21-S25 need to be implemented in the foreground operation control, that is, the two processes are two threads running in parallel and do not affect each other.
为了防止待写入数据的页面在被修改前未被保存,本实施例中在对待写入数据的页面进行修改前先判断该页面是否已存入缓存区,即先判断该页面的第二位图信息的值是否为1,若是1则先将该页面存入缓存区后再对该页面进行修改,若是0,则说明该页面被修改前的数据可能已在虚拟机连续快照装置执行上述S14的过程中存入了缓存区,无需再保存。In order to prevent the page of data to be written from being not saved before being modified, in this embodiment, before the page of data to be written is modified, it is first judged whether the page has been stored in the cache area, that is, the second bit of the page is first judged Whether the value of the map information is 1, if it is 1, store the page in the cache area first and then modify the page, if it is 0, it means that the data of the page may have been executed in the virtual machine continuous snapshot device before the above S14 It is stored in the cache area during the process, and there is no need to save it again.
本发明提供的虚拟机连续快照方法,虚拟机连续快照装置仅需在虚拟机停机过程中将虚拟机中各页面的第一位图信息的值复制到第二位图信息中,即可恢复虚拟机的运行,虚拟机运行时根据各页面的第二位图信息的值依次对需要保存的各页面进行快照保存,由于对各页面位图信息的操作所需的时间很短,缩短了虚拟机的停机时间,且在虚拟机连续快照过程中仅需保存自上次快照后被修改的页面,使得所有的页面仅被保存一次,保存的页面数量少,从而大大缩短了虚拟机一次快照的时间,降低了虚拟机连续快照过程对虚拟机性能的影响。另外,在收到对虚拟机的写请求时,在修改了待写入数据的页面的第一位图信息的值后,先确定待写入数据的页面已保存后再对该页面进行修改,使得待写入数据的页面在写入数据前后的状态能在前后两次的快照过程中被保存下来,保证了虚拟机连续快照的完整性和连续性。In the virtual machine continuous snapshot method provided by the present invention, the virtual machine continuous snapshot device only needs to copy the value of the first bitmap information of each page in the virtual machine to the second bitmap information to restore the virtual machine When the virtual machine is running, according to the value of the second bitmap information of each page, the snapshots of the pages that need to be saved are saved sequentially. Since the time required for the operation of the bitmap information of each page is very short, it shortens the time required for the virtual machine. The downtime of the virtual machine is reduced, and only the modified pages after the last snapshot need to be saved during the continuous snapshot of the virtual machine, so that all pages are saved only once, and the number of saved pages is small, which greatly shortens the time for a snapshot of the virtual machine , reducing the impact of the continuous snapshot process of the virtual machine on the performance of the virtual machine. In addition, when receiving a write request to the virtual machine, after modifying the value of the first bitmap information of the page to be written to data, first confirm that the page to be written to data has been saved before modifying the page, The state of the page to be written to before and after the data is written can be saved in the two snapshots before and after, which ensures the integrity and continuity of the continuous snapshots of the virtual machine.
图3为本发明提供的虚拟机连续快照方法实施例三的流程示意图。如图3所示,该方法还包括:FIG. 3 is a schematic flowchart of Embodiment 3 of the continuous snapshot method for a virtual machine provided by the present invention. As shown in Figure 3, the method also includes:
S30,监测所述缓存区的剩余容量是否已达到第四预设的值,若是则执行S31,否则执行S34。S30, monitor whether the remaining capacity of the buffer area has reached a fourth preset value, if so, execute S31, otherwise execute S34.
具体的,虚拟机连续快照装置在向缓存区中存入页面时,也要同时监测缓存区的剩余容量,以防止缓存区已存满或容量不够,而存入的新的页面并未被保存。第五预设的值可以根据缓存区的容量设置,比如设置为缓存区容量的1%、3%或者0等等。本实施例对此不做限定。Specifically, when the virtual machine continuous snapshot device stores pages into the cache area, it also monitors the remaining capacity of the cache area at the same time, so as to prevent that the cache area is full or the capacity is not enough, and the new pages stored are not saved. . The fifth preset value can be set according to the capacity of the buffer area, such as 1%, 3% or 0 of the capacity of the buffer area. This embodiment does not limit this.
S31,将所述缓存区中保存的页面移存至指定的位置,并记录所用时间T1。S31. Move the pages stored in the cache area to a designated location, and record the time T1 used.
由于将缓存区中的数据转存至磁盘时,会占用宿主机大量的输入输出(InputandOutput,简称IO)速率,从而影响虚拟机对IO资源的访问,影响虚拟机的性能,因此本发明实施例中可以控制虚拟机连续快照装置将缓存区中的数据移存至指定位置的速率。Since the data in the cache area is transferred to the disk, a large amount of input and output (IO) rate of the host machine will be occupied, thereby affecting the virtual machine's access to IO resources and affecting the performance of the virtual machine, so the embodiment of the present invention You can control the rate at which the virtual machine continuous snapshot device moves the data in the cache area to the specified location.
S32,判断所述时间T1是否小于预设的时间T2,若是,则执行S33,否则执行S34。S32, judging whether the time T1 is less than the preset time T2, if yes, execute S33, otherwise execute S34.
本发明实施例以相邻两次将缓存区中的数据移存至指定位置的开始时刻为一个周期,若能控制每个周期内将缓存区中的数据移存至指定位置占用宿主机的IO速率尽量不影响虚拟机占用的IO速率,即可改善虚拟机的性能。In the embodiment of the present invention, the start time of two consecutive shifts of the data in the cache area to the specified location is regarded as a cycle. If the data in the buffer area can be controlled to be moved to the specified location in each cycle, the IO of the host machine will be occupied. The speed should not affect the IO rate occupied by the virtual machine as far as possible, so as to improve the performance of the virtual machine.
则该方法中还包括:Then the method also includes:
记录从前一次所述将缓存区中保存的页面移存至指定的位置的操作结束时至本次将缓存区中保存的页面移存至指定的位置的操作的时间间隔T4内所述虚拟机的实际输入输出速率Vvm。Record the time interval T4 of the virtual machine from the end of the previous operation of moving the pages stored in the cache to the specified location to the current operation of moving the pages stored in the cache to the specified location Actual input and output rate V vm .
具体的,在虚拟机运行过程中,记录每一次IO操作的数据的大小,通常虚拟机的IO操作以扇区为单位,每个扇区默认为512字节,所以记录时只记录每次IO操作的扇区个数即可。假设在T4内记录的扇区总数为N,则可确定在T4时间内虚拟机的实际输入输出速率Vvm=(N*512)/T4。Specifically, during the running of the virtual machine, the data size of each IO operation is recorded. Usually, the IO operation of the virtual machine is in units of sectors, and each sector defaults to 512 bytes, so only each IO operation is recorded when recording The number of sectors to operate is sufficient. Assuming that the total number of recorded sectors in T4 is N, the actual input and output rate V vm of the virtual machine within T4 can be determined = (N*512)/T4.
根据所述虚拟机的最大输入输出速率Vmax及所述实际输入输出速率Vvm,确定所述虚拟机的可用输入输出速率Vava=Vmax-Vvm。According to the maximum input and output rate V max of the virtual machine and the actual input and output rate V vm , determine the available input and output rate of the virtual machine V ava =V max −V vm .
通常,管理员在虚拟机启动时会给定虚拟机一个最大IO速率Vmax,由此可确定虚拟机的可用IO速率Vava=Vmax-Vvm。Usually, the administrator will give the virtual machine a maximum IO rate V max when the virtual machine is started, so that the available IO rate V ava of the virtual machine can be determined V ava =V max -V vm .
根据所述缓存区当前的存储量Sbuf及所述虚拟机的可用输入输出速率Vava确定所述预设的时间T2=Sbuf/Vava。若缓存区此次的存储量为Sbuf,则可确定此次将缓存区的数据移存至指定位置可用的时间,即预设的时间T2=Sbuf/Vava=Sbuf/(Vmax-Vvm)=Sbuf/(Vmax-(N*512)/T4)。The preset time T2=S buf /V ava is determined according to the current storage capacity S buf of the buffer area and the available input and output rate V ava of the virtual machine. If the storage capacity of the buffer area this time is S buf , the available time for moving the data in the buffer area to the designated location can be determined this time, that is, the preset time T2=S buf /V ava =S buf /(V max -V vm )=S buf /(V max -(N*512)/T4).
S33,将所述将第二位图信息的值为第一预设的值的各页面保存到缓存区的操作挂起T3时间,所述T3=T2-T1。S33, suspending the operation of saving each page whose value of the second bitmap information is the first preset value to the cache area for T3 time, where T3=T2-T1.
若通过比较确定此次将缓存区的数据写入磁盘所用的时间T1比本周期内可用的时间T2短,那么说明此次将缓存区的数据写入磁盘的速率可能大于可用的IO速率,为了使本次周期内将缓存区的数据写入磁盘所用的速率比较均匀,可以将虚拟机的快照进程挂起T3时间,从而保证从整体上看该次将缓存区的数据写入磁盘的操作时间T1与T2相当,继而保证将缓存区的数据写入磁盘的速度小于上述可用的IO速率。If it is determined by comparison that the time T1 used to write the data in the cache area to the disk this time is shorter than the available time T2 in this period, it means that the rate at which the data in the cache area is written to the disk this time may be greater than the available IO rate. To make the rate of writing the data in the cache area to the disk relatively uniform in this cycle, you can suspend the snapshot process of the virtual machine for T3 time, so as to ensure the operation time for writing the data in the cache area to the disk as a whole T1 is equivalent to T2, and then ensures that the speed of writing the data in the cache area to the disk is lower than the above-mentioned available IO rate.
需要说明的是上述S30~S33的过程与上述S10~S14及S20~S25的过程之间没有固定的先后顺序,可以是并行进行的过程,也可以在虚拟机连续快照装置每完成一次快照时,即触发执行一次S30~S33,或者也可以设定一个固定的时间间隔,在每隔该时间间隔后,虚拟机连续快照装置即触发执行一次S30~S33等等,本实施例对此不做限定。It should be noted that there is no fixed sequence between the above-mentioned processes of S30-S33 and the above-mentioned processes of S10-S14 and S20-S25, they can be parallel processes, or each time the virtual machine continuous snapshot device completes a snapshot, That is to trigger the execution of S30-S33 once, or a fixed time interval can also be set. After each time interval, the virtual machine continuous snapshot device triggers the execution of S30-S33 once, etc., which is not limited in this embodiment .
S34,执行依次判断所述虚拟机中各页面的第二位图信息的值是否为第一预设的值的操作。S34, performing an operation of sequentially judging whether the value of the second bitmap information of each page in the virtual machine is a first preset value.
具体的,若虚拟机连续快照装置判断缓存区的容量仍可继续保存页面时,则可继续判断虚拟机中的各页面的第二位图信息是否为1,并将第二位图信息为1的页面保存到缓存区中。Specifically, if the virtual machine continuous snapshot device judges that the capacity of the cache area can still save pages, it can continue to judge whether the second bitmap information of each page in the virtual machine is 1, and set the second bitmap information to 1 The pages are stored in the cache.
本实施例提供的虚拟机连续快照方法,虚拟机连续快照装置在将虚拟机内存中的页面存入到缓存区的过程中,同时检测缓存区的容量,以及时将缓存区中的页面移存至指定的位置,且根据将缓存区的页面移至指定位置的时间,控制将快照过程挂起的时间,通过控制每次将缓存区中的页面移存至指定的位置的速率,尽量降低了将缓存区中的页面移存至指定的位置对虚拟机性能的影响。In the virtual machine continuous snapshot method provided in this embodiment, the virtual machine continuous snapshot device detects the capacity of the cache area at the same time during the process of storing the pages in the virtual machine memory into the cache area, and then timely shifts the pages in the cache area To the specified location, and according to the time to move the pages in the cache area to the specified location, control the time to suspend the snapshot process. By controlling the rate at which the pages in the cache area are moved to the specified location each time, minimize the The impact of moving the pages in the cache area to the specified location on the performance of the virtual machine.
图4为本发明提供的虚拟机连续快照装置实施例一的结构示意图。如图1所示,该虚拟机连续快照装置400,包括:停机模块401、更新模块402、初始化模块403、恢复模块404、判断模块405及处理模块406。其中,停机模块401用于将虚拟机停机;更新模块402用于根据所述虚拟机中各页面的第一位图信息的值更新各页面的第二位图信息的值,所述第一位图信息用于标识各页面是否已被修改,所述第二位图信息用于标识所述各页面是否需要保存,所述各页面的第一位图信息和第二位图信息与各页面的地址一一对应;初始化模块403用于初始化所述虚拟机中各页面的第一位图信息的值;恢复模块404用于恢复所述虚拟机的运行;判断模块405用于依次判断所述虚拟机中各页面的第二位图信息的值是否为第一预设的值;处理模块406用于将第二位图信息的值为第一预设的值的各页面保存到缓存区,并将保存到缓存区的各页面的第二位图信息的值更改为第二预设的值。FIG. 4 is a schematic structural diagram of Embodiment 1 of a virtual machine continuous snapshot device provided by the present invention. As shown in FIG. 1 , the virtual machine continuous snapshot device 400 includes: a shutdown module 401 , an update module 402 , an initialization module 403 , a recovery module 404 , a judging module 405 and a processing module 406 . Wherein, the shutdown module 401 is used to stop the virtual machine; the update module 402 is used to update the value of the second bitmap information of each page according to the value of the first bitmap information of each page in the virtual machine, the first bit The map information is used to identify whether each page has been modified, the second bitmap information is used to identify whether each page needs to be saved, the first bitmap information and the second bitmap information of each page are consistent with the One-to-one address correspondence; the initialization module 403 is used to initialize the value of the first bitmap information of each page in the virtual machine; the recovery module 404 is used to restore the operation of the virtual machine; the judging module 405 is used to judge the virtual Whether the value of the second bitmap information of each page in the machine is the first preset value; the processing module 406 is used to save each page whose value of the second bitmap information is the first preset value to the cache area, and The value of the second bitmap information of each page saved in the cache area is changed to a second preset value.
本实施例提供的虚拟机连续快照装置中各模块的具体功能及虚拟机连续快照处理流程可参照上述虚拟机连续快照方法实施例一的详细描述,此处不再赘述。For the specific functions of each module in the virtual machine continuous snapshot device provided in this embodiment and the virtual machine continuous snapshot processing flow, refer to the detailed description of the first embodiment of the virtual machine continuous snapshot method, and will not be repeated here.
本实施例提供的虚拟机连续快照装置,虚拟机连续快照装置仅需在虚拟机停机过程中将虚拟机中各页面的第一位图信息的值复制到第二位图信息中,即可恢复虚拟机的运行,在虚拟机运行过程中根据各页面的第二位图信息的值依次对需要保存的各页面进行快照保存,由于对各页面位图信息的操作所需的时间很短,使得一次快照过程中虚拟机停机时间较短,且在虚拟机连续快照过程中仅需保存自上次快照后被修改的页面,使得所有的页面仅被保存一次,保存的页面数量少,从而大大缩短了虚拟机一次快照的时间,降低了虚拟机连续快照过程对虚拟机性能的影响。In the virtual machine continuous snapshot device provided in this embodiment, the virtual machine continuous snapshot device only needs to copy the value of the first bitmap information of each page in the virtual machine to the second bitmap information during the shutdown process of the virtual machine to recover During the operation of the virtual machine, the snapshots of the pages to be saved are sequentially saved according to the value of the second bitmap information of each page during the running of the virtual machine. Since the time required for the operation of the bitmap information of each page is very short, the The downtime of the virtual machine during a snapshot is short, and only the pages modified since the last snapshot need to be saved during the continuous snapshot of the virtual machine, so that all pages are saved only once, and the number of saved pages is small, thus greatly shortening the The time for one snapshot of the virtual machine is reduced, and the impact of the continuous snapshot process of the virtual machine on the performance of the virtual machine is reduced.
图5为本发明提供的虚拟机连续快照装置实施例二的结构示意图。如图5所示,在图4所示的基础上,该虚拟机连续快照装置400还包括:写保护模块501和截获模块502。FIG. 5 is a schematic structural diagram of Embodiment 2 of a virtual machine continuous snapshot device provided by the present invention. As shown in FIG. 5 , on the basis of that shown in FIG. 4 , the virtual machine continuous snapshot device 400 further includes: a write protection module 501 and an interception module 502 .
其中,写保护模块501用于对所述虚拟机的内存页面进行写保护;截获模块502用于截获对虚拟机的被写保护的内存页面的写请求,所述写请求中包括待写入的数据及待写入数据的页面的地址;所述处理模块406还用于将与所述待写入数据的页面的第一位图信息的值更改为第三预设的值;所述判断模块405还用于判断所述待写入数据的页面的第二位图信息的值是否为第一预设的值;所述处理模块406还用于若是,则将所述待写入数据的页面保存到缓存区;所述处理模块406还用于去除对所述待写入数据的页面的写保护,并将所述待写入的数据写入到所述待写入数据的页面中。Wherein, the write protection module 501 is used to write-protect the memory page of the virtual machine; the interception module 502 is used to intercept the write request to the write-protected memory page of the virtual machine, and the write request includes the data and the address of the page to be written into the data; the processing module 406 is also used to change the value of the first bitmap information related to the page of the data to be written into a third preset value; the judging module 405 is also used to determine whether the value of the second bitmap information of the page to be written in data is the first preset value; the processing module 406 is also used to write the page of data to be written into Save to the cache area; the processing module 406 is further configured to remove the write protection of the page of the data to be written, and write the data to be written into the page of the data to be written.
进一步地,该虚拟机连续快照装置还包括:监测模块503。Further, the device for continuous snapshot of the virtual machine further includes: a monitoring module 503 .
其中,监测模块503用于监测所述缓存区的剩余容量是否已达到第五预设的值;所述处理模块406还用于若是,则将所述缓存区中保存的页面移存至指定的位置,并记录所用时间T1;所述判断模块405还用于判断所述时间T1是否小于预设的时间T2;所述处理模块406还用于若是,则将所述将第二位图信息的值为第一预设的值的各页面保存到缓存区的操作挂起T3时间,所述T3=T2-T1。Wherein, the monitoring module 503 is used to monitor whether the remaining capacity of the cache area has reached the fifth preset value; the processing module 406 is also used to move the pages saved in the cache area to the specified location, and record the time T1 used; the judging module 405 is also used to judge whether the time T1 is less than the preset time T2; the processing module 406 is also used to convert the second bitmap information to The operation of saving each page with the first preset value to the cache area is suspended for T3 time, where T3=T2-T1.
本发明的一种可能的实现形式中,上述处理模块406还用于若否,则继续执行依次判断所述虚拟机中各页面的第二位图信息的值是否为第一预设的值的操作。In a possible implementation form of the present invention, the above-mentioned processing module 406 is further configured to, if not, proceed to sequentially determine whether the value of the second bitmap information of each page in the virtual machine is the first preset value operate.
本发明的一种较优的实现形式中,虚拟机连续快照装置400还包括:运算模块504。In a preferred implementation form of the present invention, the virtual machine continuous snapshot device 400 further includes: a computing module 504 .
其中,运算模块504用于记录从前一次所述将缓存区中保存的页面移存至指定的位置的操作结束时至本次将缓存区中保存的页面移存至指定的位置的操作的时间间隔T4内所述虚拟机的实际输入输出速率Vvm;所述运算模块504还用于根据所述虚拟机的最大输入输出速率Vmax及所述实际输入输出速率Vvm,确定所述虚拟机的可用输入输出速率Vava=Vmax-Vvm;所述运算模块504还用于根据所述缓存区当前的存储量Sbuf及所述虚拟机的可用输入输出速率Vava确定所述预设的时间T2=Sbuf/Vava。Wherein, the operation module 504 is used to record the time interval from the previous operation of moving the pages stored in the cache to the specified location to the current operation of moving the pages stored in the cache to the specified location The actual input and output rate V vm of the virtual machine in T4; the operation module 504 is further configured to determine the virtual machine's input and output rate V vm according to the maximum input and output rate V max of the virtual machine and the actual input and output rate V vm . available input and output rate V ava =V max -V vm ; the operation module 504 is also used to determine the preset Time T2 = S buf /V ava .
本实施例提供的虚拟机连续快照装置中各模块的具体功能及处理流程可参照上述虚拟机连续快照处理方法实施例二和三的详细描述,此处不再赘述。For the specific functions and processing flow of each module in the virtual machine continuous snapshot device provided in this embodiment, reference may be made to the detailed descriptions of Embodiments 2 and 3 of the above-mentioned virtual machine continuous snapshot processing method, and details are not repeated here.
本发明提供的虚拟机连续快照方法,虚拟机连续快照装置仅需在虚拟机停机过程中将虚拟机中各页面的第一位图信息的值复制到第二位图信息中,即恢复虚拟机的运行,在虚拟机运行时根据各页面的第二位图信息的值依次对需要保存的各页面进行快照保存,由于对各页面位图信息的操作所需的时间很短,缩短了虚拟机的停机时间,且在虚拟机连续快照过程中仅需保存自上次快照后被修改的页面,使得所有的页面仅被保存一次,保存的页面数量少,从而大大缩短了虚拟机一次快照的时间,降低了虚拟机连续快照过程对虚拟机性能的影响。另外,在收到对虚拟机的写请求时,在修改了待写入数据的页面的第一位图信息的值后,先确定待写入数据的页面已保存后再对该页面进行修改,使得待写入数据的页面在写入数据前后的状态能在前后两次的快照过程中被保存下来,保证了虚拟机连续快照的完整性和连续性。另外,根据将缓存区的页面移至指定位置的时间,控制将快照过程挂起的时间,通过控制每次将缓存区中的页面移存至指定的位置的速率,尽量降低了将缓存区的快照移存时对虚拟机性能的影响。In the virtual machine continuous snapshot method provided by the present invention, the virtual machine continuous snapshot device only needs to copy the value of the first bitmap information of each page in the virtual machine to the second bitmap information during the shutdown process of the virtual machine, that is, restore the virtual machine When the virtual machine is running, according to the value of the second bitmap information of each page, the snapshots of the pages that need to be saved are sequentially saved. Since the time required for the operation of the bitmap information of each page is very short, the virtual machine is shortened. The downtime of the virtual machine is reduced, and only the modified pages after the last snapshot need to be saved during the continuous snapshot of the virtual machine, so that all pages are saved only once, and the number of saved pages is small, which greatly shortens the time for a snapshot of the virtual machine , reducing the impact of the continuous snapshot process of the virtual machine on the performance of the virtual machine. In addition, when receiving a write request to the virtual machine, after modifying the value of the first bitmap information of the page to be written to data, first confirm that the page to be written to data has been saved before modifying the page, The state of the page to be written to before and after the data is written can be saved in the two snapshots before and after, which ensures the integrity and continuity of the continuous snapshots of the virtual machine. In addition, according to the time when the pages in the cache area are moved to the specified location, the time to suspend the snapshot process is controlled. Impact on virtual machine performance during snapshot migration.
本领域普通技术人员可以理解:实现上述各方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成。前述的程序可以存储于一计算机可读取存储介质中。该程序在执行时,执行包括上述各方法实施例的步骤;而前述的存储介质包括:ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。Those of ordinary skill in the art can understand that all or part of the steps for implementing the above method embodiments can be completed by program instructions and related hardware. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above-mentioned method embodiments; and the aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk and other various media that can store program codes.
最后应说明的是:以上各实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述各实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present invention, rather than limiting them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: It is still possible to modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements for some or all of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the technical solutions of the various embodiments of the present invention. scope.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201410532668.0A CN105573813B (en) | 2014-10-10 | 2014-10-10 | The continuous Snapshot Method of virtual machine and device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201410532668.0A CN105573813B (en) | 2014-10-10 | 2014-10-10 | The continuous Snapshot Method of virtual machine and device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN105573813A true CN105573813A (en) | 2016-05-11 |
| CN105573813B CN105573813B (en) | 2018-11-13 |
Family
ID=55883985
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201410532668.0A Active CN105573813B (en) | 2014-10-10 | 2014-10-10 | The continuous Snapshot Method of virtual machine and device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN105573813B (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110825497A (en) * | 2019-11-22 | 2020-02-21 | 北京浪潮数据技术有限公司 | Virtual machine startup and shutdown method, device, equipment and medium |
| CN113849341A (en) * | 2021-08-31 | 2021-12-28 | 苏州浪潮智能科技有限公司 | A performance optimization method, system, device and readable storage medium for NAS snapshots |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20110167196A1 (en) * | 2010-01-06 | 2011-07-07 | Vmware, Inc. | Method and System for Frequent Checkpointing |
| CN102331949A (en) * | 2011-10-12 | 2012-01-25 | 华为技术有限公司 | Methods for generating and restoring memory snapshot of virtual machine, device and system |
| CN102436410A (en) * | 2011-12-12 | 2012-05-02 | 华中科技大学 | Online saving method of virtual machine checkpoint |
| CN103092673A (en) * | 2012-11-27 | 2013-05-08 | 北京航空航天大学 | Snapshot processing method and device for virtual machine |
-
2014
- 2014-10-10 CN CN201410532668.0A patent/CN105573813B/en active Active
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20110167196A1 (en) * | 2010-01-06 | 2011-07-07 | Vmware, Inc. | Method and System for Frequent Checkpointing |
| CN102331949A (en) * | 2011-10-12 | 2012-01-25 | 华为技术有限公司 | Methods for generating and restoring memory snapshot of virtual machine, device and system |
| CN102436410A (en) * | 2011-12-12 | 2012-05-02 | 华中科技大学 | Online saving method of virtual machine checkpoint |
| CN103092673A (en) * | 2012-11-27 | 2013-05-08 | 北京航空航天大学 | Snapshot processing method and device for virtual machine |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110825497A (en) * | 2019-11-22 | 2020-02-21 | 北京浪潮数据技术有限公司 | Virtual machine startup and shutdown method, device, equipment and medium |
| CN110825497B (en) * | 2019-11-22 | 2022-04-22 | 北京浪潮数据技术有限公司 | Virtual machine startup and shutdown method, device, equipment and medium |
| CN113849341A (en) * | 2021-08-31 | 2021-12-28 | 苏州浪潮智能科技有限公司 | A performance optimization method, system, device and readable storage medium for NAS snapshots |
| CN113849341B (en) * | 2021-08-31 | 2023-09-08 | 苏州浪潮智能科技有限公司 | Performance optimization method, system and equipment for NAS snapshot and readable storage medium |
Also Published As
| Publication number | Publication date |
|---|---|
| CN105573813B (en) | 2018-11-13 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US11436091B2 (en) | Method and apparatus for generating virtual machine snapshot | |
| US9400611B1 (en) | Data migration in cluster environment using host copy and changed block tracking | |
| US9811422B2 (en) | Head start population of an image backup | |
| US10884645B2 (en) | Virtual machine hot migration method, host machine and storage medium | |
| CN105144113B (en) | Recover to apply from snapshot | |
| CN107615255B (en) | Computing device and method utilizing persistent memory | |
| US8990164B1 (en) | Systems and methods for performing incremental backups | |
| CN106569738B (en) | A kind of method and device for deleting cascade snapshot | |
| US9218255B2 (en) | Multi-volume instant virtual copy freeze | |
| CN102999564B (en) | Write the method for data, device and equipment | |
| JP2013542486A5 (en) | ||
| CN106055431A (en) | Data backup and recovery method and data backup and recovery device based on snapshot online rollback | |
| CN107003893A (en) | Virtual machine backup method, backup device and host computer | |
| CN101266565A (en) | Method and device for data backup | |
| WO2012097691A1 (en) | Data backup method and device | |
| US10725907B2 (en) | Information processing apparatus for specifying data region of garbage collection, information processing system and information processing method | |
| CN110188068A (en) | A volume-level backup method and device for ensuring file system data consistency | |
| CN107133132A (en) | Data sending method, data receiving method and storage device | |
| CN106293882A (en) | A kind of virtual disk snapshot implementing method and device | |
| US8966207B1 (en) | Virtual defragmentation of a storage | |
| WO2021174698A1 (en) | Virtual machine snapshot creation method and apparatus, and storage medium and computer device | |
| CN110413565A (en) | Method, device and medium for synchronizing snapshots of multiple storage devices | |
| JP2014194664A (en) | Storage device, allocation release control method, and allocation release control program | |
| CN104484354A (en) | Snapshot method for guaranteeing data consistency and storage equipment | |
| CN105573813B (en) | The continuous Snapshot Method of virtual machine and device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |