1378442 六、發明說明.: 【發明所屬之技術領域】 本發明是有關於一種掃描檔案方法,且特別是有關於 一種掃描快照方法。 【先前技術】 邏輯卷管理器(Logical Volume Manager,LVM)是— 種分配儲存空間到邏輯磁區的方法。其中,可藉由邏輯卷 管理器’可將實體儲存元件(如實體硬碟)分割為數個實 體磁區。此外,邏輯卷管理器亦可將多個實體儲存元件重 新組合成多個邏輯磁碟(Logical v〇lume,Lv )。如此— 邏輯卷管理器不受限於實體儲存元件,而可以°、^ , 割儲存㈣。 活的分 邏輯卷管理器提供快照(snapsh〇t) 份邏輯卷上之資料。其中,藉由寫入時複:能’用以備 write,cow)實現快照功能時,僅備份 5 C0py 0n 始空間)中被變更之資料的原始值。因此, (或稱為原 需要建立一快照空間,以存放被變更之資料進行快照時, 其中’在對快照進行掃描時,需掃描其戶1始值。 q Tf;苹系 機器時’需重複掃描檔案大小極大之作酱么 f系系統檔案, 空間以及其所快照之原始空間。因此,在建立之快照 原始空間之快照進行掃描時,原始空間將被夕個具有相同 其,在應用快照建立多台具有相同作紫重複掃描。尤 (Virtual Machine)時,各虛擬機器所共同快昭屣擬機器 為作業系統檔案。因此,在掃描具有相同作=、之原始 她裴a本,堂# if痛姑械安4-.丨.κ丄t .. '、系、、紙 1378442 源 浪費了許多時間以及系統資 【發明内容】 因此,本發明之一態樣是在提 用以在對具有共同原始空間之多個快::快照方法’ 各快照之快照空間以及所快照之原始空、= = =別對 牛驟發明一實施方式,-種一 口m空間。快照原始空間並建 照空間,以取得一第二快照。二;:建立-第二快 一快昭夕-4^,, ^ + 你叹判知描第—快照以及第 二1、、之-V描指令時’對原始空 第二快照空間分別進行一次掃描。 、’、、、二間以及 依據本發明一實施例,在原始空間儲存 案時’掃描快照方法可包含以下步驟 1糸、純 並之作業系統槽案,使—第-虛擬機器啟動 荦二二快照空間以及原始空間上之作業系統樓 使第—虛擬機器啟動並運作。 依據本發明另一實施例,快照原始空間並建 :空間’以取得第一快照之步驟係藉由寫入時複;1378442 6. INSTRUCTION DESCRIPTION OF THE INVENTION: TECHNICAL FIELD OF THE INVENTION The present invention relates to a scanning archive method, and more particularly to a scanning snapshot method. [Prior Art] A Logical Volume Manager (LVM) is a method of allocating storage space to a logical magnetic area. Among them, the physical storage component (such as a physical hard disk) can be divided into several physical magnetic regions by the logical volume manager. In addition, the logical volume manager can also recombine multiple physical storage elements into multiple logical disks (Logical v〇lume, Lv). As such — the logical volume manager is not restricted to physical storage components, but can be stored in (°). The live sub-logical volume manager provides snapshots (snapsh〇t) of the data on the logical volumes. The original value of the changed data in the 5 C0py 0n start space is only backed up by the write time complex: when the snapshot function is enabled for the write/cow. Therefore, (or the original need to create a snapshot space to store the changed data for snapshots, where 'in the scan of the snapshot, you need to scan the initial value of the household 1. q Tf; Ping machine time' need to repeat The size of the scanned file is extremely large. The system space, and the original space of the snapshot. Therefore, when the snapshot of the original space of the snapshot is scanned, the original space will be the same as the snapshot, and the snapshot will be created. Multiple sets have the same purple repeat scan. In the case of Virtual Machine, each virtual machine shares the same machine as the operating system file. Therefore, the scan has the same work =, the original she 裴 a this, church # if痛姑械安4-.丨.κ丄t .. ', system, paper 1378442 source wasted a lot of time and system resources [invention] Therefore, one aspect of the invention is to have a common in the pair Multiple quick space of the original space:: Snapshot method 'The snapshot space of each snapshot and the original space of the snapshot, ===Do not invent the implementation method of the cow, and kind of m space. Snapshot original space and photo In order to get a second snapshot. Second;: build - the second fast one fast eve eve -4 ^,, ^ + you sigh the knowledge - the snapshot and the second 1, the -V trace instruction 'right The original empty second snapshot space is scanned once. The ', ', and two, and according to an embodiment of the present invention, the scan snapshot method may include the following steps: a purely integrated operating system slot case. The first virtual machine starts the second virtual machine and the operating system on the original space enables the first virtual machine to be up and running. According to another embodiment of the present invention, the snapshot original space is built: space 'to obtain the first The steps of the snapshot are repeated by writing;
On Write > C〇W) 〇 依據本發明另一實施例’快照原始空間並建立第二快 照空間,以取得第二快照之步驟係藉由寫入時複製。、 依據本發明另一實施例,掃描快照方法可包含以下步 驟:在收到掃毒第—快照以及第二快照之—掃毒指令時( 對原始空間、第—快照空間以及第二快照空間分別掃毒一 1378442 次 【實施方式】 7請參照第1圖,其繪示依照本發明一實施方式的一種 掃描快照(Snapshot)方法之流程圖。掃描快照方法在對 具有共同肩始空間之多個快照掃描時,僅分別對各快昭之 快照空間以及所快照之原始空間進行一次掃描。掃描快照 方法100包含以下步驟: 在乂驟110卜提供用以被快照之一原始空間。在步 驟二中,快照原始空間並建立一第一快照空間’以取得 第快照。其中,步驟120可藉由_ ^ p WHte,C0W)而完成。了藉由寫入時複製(Copy 0n 在中’快照原始空間並建立至少 二快照。其中,步驟“。可藉由ί 由㈣π凡成來’第一快照以及第二快昭皆葬 由快照同一原始空間所建立q ,、、、白稭 接下來·,在收到掃描第一快昭 指令(步驟160)時,對屈 ' 第一 f夬…之—掃描 二快照空間八 ’原始工間、第-快照空間以及第 右妓刀進仃一次掃描(步驟17〇)。換言之, 掐具有共同原始空間之客 σ之在知 原始空間進行一次掃描固快f夺’僅對各快照所快照之 複掃描共同快照之原始空間%者掃描各快照之過程,重 令以及苐二快照之-掃毒指 __掃毒-心二 5 1378442 空間之多個快照時’僅對各快照所快照之原始空 間W-次,而不隨著掃毒各快照之過程,重複掃描 之原始空間。 在原始空間係儲存一作業系統檔案 了取得之第-快照以及第二快照可用以建立虛原擬始= (v咖al Machine ’ VM)。因此,在步驟12〇後,可根 -快照空間以及原始空間上之作業系統㈣,使一第 擬機器啟動並運作(步驟130)。換言之,步驟⑽係使^ 一虛擬機器根據第-快照啟動並運作。此外,在步驟⑽ 可根據第二快照空間以及原始空間上之作業系統擋 案’使一第一虛擬機器啟動並運作(步驟15〇)。換言之, 步驟150係使第二虛擬機器根據第二快照啟動並運;。於 是^應^第一快照以及第二快照分別建立第一虛擬機器 以及第二虛擬機器時’可藉由步驟16〇以及步驟17〇對第 -虛擬機器以及第二虛擬機器進行掃描。如此—來,在 :虛擬機器以及第二虛擬機器進行掃描時,不需重複掃描 .棺案較大之作業系統標案,因而節省許多時間以及系統資 源。此外,亦可藉由步驟⑽以及步驟19〇對第一虛擬機 裔以及第二虛擬機器進行掃毒。如此^來,在第一虛擬機, 器以及第二虛擬機器進行掃毒時’不需重複掃毒播案較大 之作業系統樓案’因而節省許多時間以及系統資源。 由上述本發明實施方式可知,應用本發明具有下列優 點。對具有共同原始空間之多個快照掃描時,僅分別對各 快照之快照空間以及所快照之原始空間進行一次掃描。如 此-來’可省下重複掃描原始空間之時間以及系統資源。 1378442 尤其,原始空間之檔案大小通常較快照空間大。因此,應 用本發明所省下之掃描時間以及系統資源相當顯著。舉例 來說,在應用快照建立多台具有相同作業系統之虛擬機哭 時’各虛擬機器係藉由快照同一作業系統檔案而建立。其 中,隨著作業系統的不斷發展,作業系統檔案通常具有較 大之檔案大小。因此,在應用本發明對多台快照同一作業 系統檔案而建立之虛擬機器進行掃描時,藉掃 ,照之作業系統棺案,可省下大量掃描二= 貝源。、此外’在應用本發明進行步驟較為複雜之掃毒時, 亦可省下許多掃毒時間以及所需之系統資源。 定本本發明已以實施方式揭露如上,'然其並非用以限 蛇圍内,當可作各種之更動與潤飾,因 圍當視後附之中請專利範圍所界定 本^之保杨 【圖式簡單說明】On Write > C〇W) 步骤 In accordance with another embodiment of the present invention, the steps of snapshotting the original space and establishing a second snapshot space to obtain a second snapshot are by copy-on-write. According to another embodiment of the present invention, the method for scanning a snapshot may include the following steps: when receiving the anti-virus snapshot and the second snapshot-scanning instruction (for the original space, the first snapshot space, and the second snapshot space respectively) Sweeping a virus 1374442 times [Embodiment] 7 Referring to Figure 1, there is shown a flow chart of a Snapshot method according to an embodiment of the present invention. The scanning snapshot method has multiple common shoulder spaces. During the snapshot scan, only one snapshot of each snapshot space and the original space of the snapshot are scanned. The scan snapshot method 100 includes the following steps: In step 110, one original space is provided for being snapshotd. In step two, Snap the original space and create a first snapshot space 'to obtain the first snapshot. Step 120 can be completed by _ ^ p WHte, C0W). By copying when writing (Copy 0n in the 'snapshot original space and establishing at least two snapshots. Among them, step ". can be used by ί by (four) π 凡 到 ''first snapshot and the second fast singer is buried by the same snapshot The original space is created by q, , , and white straw. Next, when receiving the first scan instruction (step 160), the first copy of the first space is scanned. The first-snapshot space and the right-handed file are scanned once (step 17〇). In other words, the user who has the common original space performs a scan in the original space, and only takes snapshots of each snapshot. Scanning the original space of the common snapshot% of the process of scanning each snapshot, the re-ordering and the second snapshot - the anti-virus finger __ anti-virus - heart 2 5 1378442 space when multiple snapshots 'only the original space snapshot of each snapshot W-times, instead of scanning the original space with the process of scanning each snapshot. In the original space, a working system file is stored to obtain the first snapshot and the second snapshot can be used to establish the virtual origin = (v Cafe al Machine 'VM). Thus, after step 12, the root-snapshot space and the operating system (4) on the original space cause a first machine to be up and running (step 130). In other words, step (10) causes the virtual machine to boot according to the first snapshot. In addition, in step (10), a first virtual machine can be started and operated according to the second snapshot space and the operating system file on the original space (step 15A). In other words, step 150 causes the second virtual machine to be based on The second snapshot is started and shipped; then, the first snapshot and the second snapshot respectively establish the first virtual machine and the second virtual machine, respectively, 'by step 16〇 and step 17〇 to the first virtual machine and the second The virtual machine scans. In this way, when the virtual machine and the second virtual machine scan, there is no need to repeat the scanning. The large operating system is marked, which saves a lot of time and system resources. The first virtual machine and the second virtual machine are scanned by the step (10) and the step 19, so that the first virtual machine and the second virtual machine are performed. In the case of poisoning, it is not necessary to repeat the large-scale operation system project of the virus-sweeping program, thus saving a lot of time and system resources. As can be seen from the above embodiments of the present invention, the application of the present invention has the following advantages: multiple snapshots having a common original space When scanning, only the snapshot space of each snapshot and the original space of the snapshot are scanned once. This can save the time of repeated scanning of the original space and system resources. 1378442 In particular, the file size of the original space is usually smaller than the snapshot space. Therefore, the scan time and system resources saved by applying the present invention are quite remarkable. For example, when a snapshot is used to create a plurality of virtual machines with the same operating system, each virtual machine is snapshotted by the same operating system file. And established. Among them, with the continuous development of the writing system, the operating system files usually have a larger file size. Therefore, when the present invention is applied to scan a virtual machine established by multiple snapshots of the same operating system file, a large number of scans can be saved by swiping and scanning the operating system. In addition, in the application of the present invention, when the steps are complicated, the cleaning time and the required system resources can be saved. The present invention has been disclosed in the above embodiments, but it is not intended to be used in the inner circumference of the snake. When it is possible to make various changes and retouchings, the scope of the patent is defined by the patent scope. Simple description
為讓本發明之上述和其他目的,、 能更明顯易懂’所附圖式之說明如下:' 第1圖%示依照本發明一 法之流程圖。 實施方式的一 優點與實施例 種掃描快照方 【主要元件符號說明】 100 :掃描快照方法 〜190 :步驟 7The above and other objects of the present invention will become more apparent and understood. The description of the drawings is as follows: ' Figure 1 is a flow chart showing a method according to the present invention. One advantage and embodiment of the embodiment is to scan the snapshot side. [Main component symbol description] 100: Scan snapshot method ~190: Step 7