TW201621649A - Offsite backup system and migration method of using the same - Google Patents
Offsite backup system and migration method of using the same Download PDFInfo
- Publication number
- TW201621649A TW201621649A TW103142246A TW103142246A TW201621649A TW 201621649 A TW201621649 A TW 201621649A TW 103142246 A TW103142246 A TW 103142246A TW 103142246 A TW103142246 A TW 103142246A TW 201621649 A TW201621649 A TW 201621649A
- Authority
- TW
- Taiwan
- Prior art keywords
- image file
- host
- file
- snapshot
- original image
- Prior art date
Links
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
Description
本發明關於一種異地備援系統及備份方法,特別是應用在虛擬機器架構。 The invention relates to a remote backup system and a backup method, in particular to a virtual machine architecture.
參考第1圖,繪示習知技術的異地備援系統的架構示意圖。該備援系統10包括一第一主機20、一第二主機30與一共享空間40。該第一主機20包括一第一虛擬機器21與一第一掛載單元22。該第二主機30包括一第一虛擬機器31與一第一掛載單元32。該共享空間40用於存放一完整映像檔41。正常操作情況下,該第一掛載單元22根據該完整映像檔41建立該第一虛擬機器21,用以提供服務。當第一主機20的硬體故障或所在地產生任何可能使該第一主機20無法繼續提供服務的問題(如天災)時,該第二掛載單元32根據該完整映像檔41建立該第二虛擬機器31,該第二虛擬機器31接替該第一虛擬機器21繼續提供服務。然而,該完整映像檔41通常很大,除非網路速度極快,在該第二虛擬機器31建立之前容易產生連接上的問題。因此若是將該第一主機20與該第二主機30設置於地理位置上相對遙遠的兩個地方(需要使用網際網路才能連接的兩個地方),快速的建 立該第二虛擬機器31是一個亟需解決的問題。 Referring to FIG. 1 , a schematic diagram of the architecture of a remote backup system of the prior art is shown. The backup system 10 includes a first host 20, a second host 30, and a shared space 40. The first host 20 includes a first virtual machine 21 and a first mount unit 22. The second host 30 includes a first virtual machine 31 and a first mount unit 32. The shared space 40 is used to store a complete image file 41. In the normal operation, the first mounting unit 22 establishes the first virtual machine 21 according to the complete image file 41 to provide a service. When the hardware failure or location of the first host 20 generates any problem that may cause the first host 20 to continue to provide services (such as a natural disaster), the second mounting unit 32 establishes the second virtual image according to the complete image 41. The machine 31, the second virtual machine 31 takes over the first virtual machine 21 to continue providing services. However, the full image 41 is typically large, unless the network is extremely fast, and the connection problem is easily created before the second virtual machine 31 is established. Therefore, if the first host 20 and the second host 30 are placed in two geographically distant places (two places that need to be connected by using the Internet), the rapid construction is completed. Establishing the second virtual machine 31 is an urgent problem to be solved.
為了解決上述問題,本發明的一目的在於提出一種異地備援系統,用於提供快速備份系統。 In order to solve the above problems, it is an object of the present invention to provide an off-site backup system for providing a fast backup system.
為達到上述發明目的,異地備援系統包括第一主機以及第二主機。 To achieve the above object, the remote backup system includes a first host and a second host.
第一主機包含第一組合單元與第一掛載單元。第一組合單元用於組合第一快照映像檔與第一原始映像檔產生第一實時映像檔。第一掛載單元根據第一實時映像檔建立第一虛擬機器。 The first host includes a first combination unit and a first mount unit. The first combination unit is configured to combine the first snapshot image file with the first original image file to generate a first live image file. The first mount unit establishes the first virtual machine according to the first real-time image file.
第二主機與第一主機透過網路連接。第二主機包含第二組合單元與第二掛載單元。第二組合單元用於組合第二快照映像檔與第二原始映像檔產生第二實時映像檔。第二掛載單元根據第二實時映像檔建立第二虛擬機器。 The second host is connected to the first host through a network. The second host includes a second combination unit and a second mount unit. The second combination unit is configured to combine the second snapshot image file and the second original image file to generate a second real-time image file. The second mount unit establishes the second virtual machine according to the second real-time image file.
第一原始映像檔與第二原始映像檔是相同的。當第一主機發生故障時,第二主機同步建立第二虛擬機器接替第一主機提供服務。 The first original image is the same as the second original image. When the first host fails, the second host synchronously establishes the second virtual machine to take over the first host to provide the service.
在一較佳實施例中,全球檔案系統(global file system)用於使第一快照映像檔與第二快照映像檔的資料同步。 In a preferred embodiment, a global file system is used to synchronize the first snapshot image with the data of the second snapshot image.
在一較佳實施例中,第一快照映像檔與第二快照映像檔的檔案是可改變的。 In a preferred embodiment, the files of the first snapshot image and the second snapshot image are changeable.
在一較佳實施例中,第一原始映像檔與第二原始 映像檔的檔案是不可改變的。 In a preferred embodiment, the first original image file and the second original image The file of the image file is immutable.
在一較佳實施例中,第一快照映像檔與第二快照映像檔的檔案大小皆小於第一原始映像檔與第二原始映像檔。 In a preferred embodiment, the file size of the first snapshot image file and the second snapshot image file are both smaller than the first original image file and the second original image file.
為了解決上述問題,本發明的另一目的在於提出一種異地備援系統的備份方法,用於提供快速備份系統。備援系統包括第一主機及第二主機,第一主機包含第一組合單元與第一掛載單元,第一組合單元用於組合第一快照映像檔與第一原始映像檔產生第一實時映像檔,第一掛載單元根據第一實時映像檔建立第一虛擬機器,第二主機與第一主機透過網路連接,且包含第二組合單元與第二掛載單元。且此方法包含以下步驟:首先,第二主機判斷第一主機故障。接著,第二組合單元組合第二主機的第二快照映像檔與第二主機的第二原始映像檔。接著,第二組合單元產生第二實時映像檔。接著,第二掛載單元根據第二實時映像檔建立第二主機的第二虛擬機器。最後,第二虛擬機器取代第一虛擬機器繼續提供服務。 In order to solve the above problems, another object of the present invention is to provide a backup method for a remote backup system for providing a fast backup system. The backup system includes a first host and a second host, the first host includes a first combination unit and a first mount unit, and the first combination unit is configured to combine the first snapshot image file and the first original image file to generate a first live image And the first mounting unit establishes the first virtual machine according to the first real-time image file, and the second host is connected to the first host through the network, and includes the second combining unit and the second mounting unit. And the method includes the following steps: First, the second host determines that the first host is faulty. Next, the second combining unit combines the second snapshot image file of the second host with the second original image file of the second host. Next, the second combining unit generates a second live image file. Then, the second mounting unit establishes the second virtual machine of the second host according to the second real-time image file. Finally, the second virtual machine replaces the first virtual machine to continue providing services.
在一較佳實施例中,全球檔案系統(global file system)用於使第一快照映像檔與第二快照映像檔的資料同步。 In a preferred embodiment, a global file system is used to synchronize the first snapshot image with the data of the second snapshot image.
在一較佳實施例中,第一快照映像檔與第二快照映像檔的檔案是可改變的。 In a preferred embodiment, the files of the first snapshot image and the second snapshot image are changeable.
在一較佳實施例中,第一原始映像檔與第二原始映像檔的檔案是不可改變的。 In a preferred embodiment, the files of the first original image file and the second original image file are immutable.
在一較佳實施例中,第一快照映像檔與第二快照映像檔的檔案大小皆小於第一原始映像檔與第二原始映像檔。 In a preferred embodiment, the file size of the first snapshot image file and the second snapshot image file are both smaller than the first original image file and the second original image file.
相較於習知技術,本發明透過將一完整映像檔劃分為一較大的(Giga bytes)原始映像檔與一較小的(Mega bytes)快照映像檔,讓不同主機在做備份工作時只需要傳送快照映像檔,即使在網路速度不高的環境,也能夠快速地讓異地的主機快速完成備份工作,接替故障的主機繼續提供服務。 Compared with the prior art, the present invention divides a complete image into a larger (Giga bytes) original image file and a smaller (Mega bytes) snapshot image file, so that different hosts can only perform backup work. Need to transfer the snapshot image file, even in the environment where the network speed is not high, it can quickly enable the remote host to complete the backup work quickly, and take over the faulty host to continue to provide services.
10、100‧‧‧備援系統 10, 100‧‧‧ backup system
20、110‧‧‧第一主機 20, 110‧‧‧ first host
21、116‧‧‧第一虛擬機器 21, 116‧‧‧ first virtual machine
22、111‧‧‧第一掛載單元 22, 111‧‧‧ first mount unit
30、120‧‧‧第二主機 30, 120‧‧‧ second host
31、126‧‧‧第二虛擬機器 31, 126‧‧‧ second virtual machine
32、121‧‧‧第二掛載單元 32, 121‧‧‧Second mount unit
40‧‧‧共享空間 40‧‧‧ shared space
41‧‧‧完整映像檔 41‧‧‧Complete image file
112‧‧‧第一組合單元 112‧‧‧ first combination unit
113‧‧‧第一原始映像檔 113‧‧‧ first original image file
114‧‧‧第一快照映像檔 114‧‧‧First snapshot image file
115‧‧‧第一實時映像檔 115‧‧‧ first live image file
122‧‧‧第二組合單元 122‧‧‧Second combination unit
123‧‧‧第二原始映像檔 123‧‧‧Second original image file
124‧‧‧第二快照映像檔 124‧‧‧Second snapshot image file
125‧‧‧第二實時映像檔 125‧‧‧Second real-time image file
130‧‧‧全球檔案系統 130‧‧‧Global File System
S01~S05‧‧‧皆為步驟 S01~S05‧‧‧ are steps
第1圖,繪示一種習知異地備援系統的架構示意圖。 FIG. 1 is a schematic diagram showing the architecture of a conventional remote backup system.
第2圖,繪示一種根據本發明之一較佳實施例的異地備援系統的架構示意圖。 FIG. 2 is a schematic diagram showing the architecture of a remote backup system according to a preferred embodiment of the present invention.
第3圖,繪示一種根據本發明之一較佳實施例的異地備援系統的備份方法流程圖。 FIG. 3 is a flow chart showing a backup method of a remote backup system according to a preferred embodiment of the present invention.
以下各實施例的說明是參考圖式,用以說明本發明可用以實施的特定實施例。本發明所提到的方向用語,例如「上」、「下」、「前」、「後」、「左」、「右」、「內」、「外」、「側面」等,僅是參考圖式的方向。因此,使用的方向用語是用以說明及理解本發明,而非用以限制本發明。 The following description of various embodiments is presented to illustrate the specific embodiments The directional terms mentioned in the present invention, such as "upper", "lower", "before", "after", "left", "right", "inside", "outside", "side", etc., are merely references. The direction of the schema. Therefore, the directional terminology used is for the purpose of illustration and understanding of the invention.
參考第2圖,繪示一種根據本發明之一較佳實施例的異地備援系統100的架構示意圖。此異地備援系統100包括第 一主機110以及第二主機120,例如各類型的伺服器。 Referring to FIG. 2, a schematic diagram of an architecture of a remote backup system 100 in accordance with a preferred embodiment of the present invention is shown. This remote backup system 100 includes A host 110 and a second host 120, such as various types of servers.
第一主機110包含第一組合單元112與第一掛載單 元111。第一組合單元112用於組合第一快照映像檔114與第一原始映像檔113產生第一實時映像檔115。第一掛載單元111根據第一實時映像檔115建立第一虛擬機器116。第二主機120與第一主機110透過網路連接。第二主機120包含第二組合單元122與第二掛載單元121。第二組合單元122用於組合第二快照映像檔124與第二原始映像檔123產生第二實時映像檔125。第二掛載單元121根據第二實時映像檔125建立第二虛擬機器126。第一原始映像檔113與第二原始映像檔123是相同的。當第一主機110發生故障時,第二主機120同步建立第二虛擬機器126接替第一主機110提供服務。 The first host 110 includes a first combination unit 112 and a first mount list Yuan 111. The first combination unit 112 is configured to combine the first snapshot image file 114 with the first original image file 113 to generate a first live image file 115. The first mount unit 111 establishes the first virtual machine 116 according to the first live image file 115. The second host 120 is connected to the first host 110 through a network. The second host 120 includes a second combining unit 122 and a second mounting unit 121. The second combining unit 122 is configured to combine the second snapshot image file 124 and the second original image file 123 to generate a second real-time image file 125. The second mount unit 121 establishes the second virtual machine 126 according to the second live image file 125. The first original image file 113 is identical to the second original image file 123. When the first host 110 fails, the second host 120 synchronously establishes the second virtual machine 126 to take over the first host 110 to provide the service.
在本發明中,第一原始映像檔113與第二原始映像 檔123是不會改變的;然而,第一快照映像檔114與第二快照映像檔124的檔案是可改變的。是由於一般而言,當大多數的服務(軟體)架設(安裝)完畢後,大部份的資料(原始映像檔)是不會再改變的,會改變的是對於服務(軟體)的設定的檔案(快照映像檔)。因此本發明就是利用此一特點,將習知技術中一完整映像檔分成原始映像檔與快照映像檔。再透過一全球檔案系統130使第一快照映像檔114與第二快照映像檔124的資料同步,結合快照映像檔的檔案很小的特點,使的第一主機110與第二主機120之間的備份速度能夠更加快速。 In the present invention, the first original image file 113 and the second original image File 123 is not changed; however, the files of first snapshot image 114 and second snapshot image 124 are changeable. Generally speaking, when most services (software) are installed (installed), most of the data (original image files) will not be changed, and the changes will be made to the settings of the service (software). File (snapshot image file). Therefore, the present invention utilizes this feature to divide a complete image file in the prior art into a raw image file and a snapshot image file. Synchronizing the data of the first snapshot image file 114 with the second snapshot image file 124 through a global file system 130, combined with the small file size of the snapshot image file, between the first host 110 and the second host 120 Backup speeds can be faster.
請參考第3圖,係繪示一種根據本發明之一較佳實 施例的異地備援系統的備份方法流程圖。本方法中所使用的元件請參考第2圖所示,不再贅述。 Please refer to FIG. 3, which illustrates a preferred embodiment of the present invention. Flow chart of the backup method of the remote backup system of the embodiment. Please refer to Figure 2 for the components used in this method, and will not be described again.
當第一主機110因為特定原因(硬體故障或天災)而 無法繼續提供服務時,第二主機120可以藉由網路確認第一主機110的狀態。首先,執行步驟S01,第二主機120判斷第一主機110故障。當第一主機110已經被確認是故障後,後續便開始備份的作業。 When the first host 110 is for a specific reason (hardware failure or natural disaster) When the service cannot be continued, the second host 120 can confirm the status of the first host 110 by the network. First, in step S01, the second host 120 determines that the first host 110 is faulty. After the first host 110 has been confirmed to be a failure, the backup job is started.
接著,執行步驟S02,第二組合單元122組合第二 主機120的第二快照映像檔124與第二主機120的第二原始映像檔123。 Next, step S02 is performed, and the second combining unit 122 combines the second The second snapshot image file 124 of the host 120 and the second original image file 123 of the second host 120.
接著,執行步驟S03,第二組合單元122產生一第 二實時映像檔125。 Next, step S03 is performed, and the second combining unit 122 generates a first Two live image files 125.
接著,執行步驟S04,第二掛載單元121根據第二 實時映像檔125建立第二主機120的第二虛擬機器126。 Next, step S04 is performed, and the second mounting unit 121 is configured according to the second The live image file 125 establishes a second virtual machine 126 of the second host 120.
最後,執行步驟S05,第二虛擬機器126取代第一 虛擬機器116繼續提供服務。 Finally, step S05 is performed, and the second virtual machine 126 replaces the first Virtual machine 116 continues to provide services.
綜上所述,本發明透過將一完整映像檔劃分為一 較大的原始映像檔與一較小的快照映像檔,讓不同主機在做備份工作時只需要傳送快照映像檔,即使在網路速度不高的環境,也能夠快速地讓異地的主機快速完成備份工作,接替故障的主機繼續提供服務。 In summary, the present invention divides a complete image into one Larger original image files and a smaller snapshot image file allow different hosts to transfer snapshot images only when doing backup work, even in environments with low network speeds, they can quickly complete remote hosts. Backup work, the host that takes over the failure continues to provide services.
以上僅是本發明的較佳實施方式,應當指出,對 於熟悉本技術領域的技術人員,在不脫離本發明原理的前提下,還可以做出若干改進和潤飾,這些改進和潤飾也應視為本發明的保護範圍。 The above is only a preferred embodiment of the present invention, it should be noted that A number of modifications and refinements can be made by those skilled in the art without departing from the principles of the invention, and such modifications and refinements are also considered to be within the scope of the invention.
100‧‧‧備援系統 100‧‧‧Backup system
110‧‧‧第一主機 110‧‧‧First host
111‧‧‧第一掛載單元 111‧‧‧First Mounting Unit
112‧‧‧第一組合單元 112‧‧‧ first combination unit
113‧‧‧第一原始映像檔 113‧‧‧ first original image file
114‧‧‧第一快照映像檔 114‧‧‧First snapshot image file
115‧‧‧第一實時映像檔 115‧‧‧ first live image file
116‧‧‧第一虛擬機器 116‧‧‧First virtual machine
120‧‧‧第二主機 120‧‧‧second host
121‧‧‧第二掛載單元 121‧‧‧Second mount unit
122‧‧‧第二組合單元 122‧‧‧Second combination unit
123‧‧‧第二原始映像檔 123‧‧‧Second original image file
124‧‧‧第二快照映像檔 124‧‧‧Second snapshot image file
125‧‧‧第二實時映像檔 125‧‧‧Second real-time image file
126‧‧‧第二虛擬機器 126‧‧‧Second virtual machine
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW103142246A TWI553557B (en) | 2014-12-04 | 2014-12-04 | Offsite backup system and migration mthod of using the same |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW103142246A TWI553557B (en) | 2014-12-04 | 2014-12-04 | Offsite backup system and migration mthod of using the same |
Publications (2)
Publication Number | Publication Date |
---|---|
TW201621649A true TW201621649A (en) | 2016-06-16 |
TWI553557B TWI553557B (en) | 2016-10-11 |
Family
ID=56755474
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW103142246A TWI553557B (en) | 2014-12-04 | 2014-12-04 | Offsite backup system and migration mthod of using the same |
Country Status (1)
Country | Link |
---|---|
TW (1) | TWI553557B (en) |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6959310B2 (en) * | 2002-02-15 | 2005-10-25 | International Business Machines Corporation | Generating data set of the first file system by determining a set of changes between data stored in first snapshot of the first file system, and data stored in second snapshot of the first file system |
US7107385B2 (en) * | 2002-08-09 | 2006-09-12 | Network Appliance, Inc. | Storage virtualization by layering virtual disk objects on a file system |
CN103970585B (en) * | 2013-01-31 | 2017-10-27 | 新华三技术有限公司 | Create the method and device of virtual machine |
CN104063262A (en) * | 2014-06-16 | 2014-09-24 | 南京信息工程大学 | Remote disaster recovery system and remote disaster recovery method based on virtual machines |
-
2014
- 2014-12-04 TW TW103142246A patent/TWI553557B/en active
Also Published As
Publication number | Publication date |
---|---|
TWI553557B (en) | 2016-10-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11809367B2 (en) | Programmed input/output mode | |
CN109213702B (en) | Communication between virtual dual control modules in a virtual machine environment | |
US10067837B1 (en) | Continuous data protection with cloud resources | |
US10101943B1 (en) | Realigning data in replication system | |
US10169167B2 (en) | Reduced recovery time in disaster recovery/replication setup with multitier backend storage | |
CN104780115B (en) | Load-balancing method and system in cloud computing environment | |
US10565071B2 (en) | Smart data replication recoverer | |
CN103761166A (en) | Hot standby disaster tolerance system for network service under virtualized environment and method thereof | |
US10826812B2 (en) | Multiple quorum witness | |
US20170124021A1 (en) | Methods for enabling direct memory access (dma) capable devices for remote dma (rdma) usage and devices thereof | |
CN108604163B (en) | Synchronous replication for file access protocol storage | |
US10459806B1 (en) | Cloud storage replica of a storage array device | |
US20140298078A1 (en) | SYNCHRONOUS MIRRORING OF NVLog TO MULTIPLE DESTINATIONS (ARCHITECTURE LEVEL) | |
US11093141B2 (en) | Method and apparatus for caching data | |
US10216586B2 (en) | Unified data layer backup system | |
CN112860479A (en) | Data storage method and cloud data center | |
JP2016508349A (en) | Service migration across cluster boundaries | |
US10884886B2 (en) | Copy-on-read process in disaster recovery | |
US10601692B2 (en) | Integrating a communication bridge into a data processing system | |
US9049265B1 (en) | Serving remote access to storage resources | |
US20200192762A1 (en) | Methods, apparatuses and systems for configuring a network environment for a server | |
CN103631903A (en) | System for synchronizing data of database | |
TWI553557B (en) | Offsite backup system and migration mthod of using the same | |
US10896201B2 (en) | Synchronization of block based volumes | |
CN103327105B (en) | Slave node service automatic recovery method in hadoop system |