|
FLASHCOPY和SNAPSHOT两者有个根本的区别,就是FLASHCOPY是用TWO SETS OF HARDDISKS(PHYSICALLY),而SNAPSHOT就象是照相一样,看着有了,实际是SAME SET OF HARDDISK。
FLASHCOPY出来的BACKUP IMAGE可以直接拿到另外一个SERVER,直接就可以RESTORE AND ROLLFORWARD。
而SNAPSHOT本身并没有什么另外的STORAGE,NOT PHYSICALLY SEPARATED FROM ORIGINAL DB IMAGE。
用个例子来说明一下NAS SNAPSHOT:
Assume a file(file0) has 4 blocks, blocka0, blockb0, blockc0 and blockd0 when created, all are filled with data, and the following in sequence:
At time1: a change to blocka0, NAS will allocate a new block blocka1 to have the updated image of blocka0, while keep blocka0 unchanged.
At time2: a snapshot is taken, so there will be a file file1 consisting of blocka1/blockb0/blockc0/blockd0.
At time3: a change to blockb0, NAS will allocate a new block blockb1 to have the updated image of blockb0, while keep blockb0 unchanged.
At time4: a snapshot is taken, so there will be a file file2 consisting of blocka1/blockb1/blockc0/blockd0.
At time5: a change to blockc0, NAS will allocate a new block blockc1 to have the updated image of blockc0, while keep blockc0 unchanged.
DB BACKUP的话已经算是有了三次BACKUP了。(EDITED)
在这个时间点上,看起来FS上有三个独立的文件,file0, file1 跟 file2。而实际上这三个文件在STORAGE上却是share a common block, blockd0。如果这时候blockd0 corrupted,这三个文件都会同时坏掉。
FLASHCOPY是不会有这种问题的。 |
|