楼主: beginner_bj

[精华] 有没有生产环境只用ONLINE BACKUP的?

[复制链接]
招聘 : c/c++研发
论坛徽章:
45
技术图书徽章
日期:2014-03-10 14:09:192012新春纪念徽章
日期:2012-02-13 15:12:092012新春纪念徽章
日期:2012-02-13 15:12:092012新春纪念徽章
日期:2012-01-04 11:51:22ITPUB十周年纪念徽章
日期:2011-11-01 16:21:15现任管理团队成员
日期:2011-05-07 01:45:082011新春纪念徽章
日期:2011-01-25 15:42:562011新春纪念徽章
日期:2011-01-25 15:42:332011新春纪念徽章
日期:2011-01-25 15:42:152011新春纪念徽章
日期:2011-01-25 15:41:50
21#
发表于 2007-8-3 22:39 | 只看该作者
强,学习了

使用道具 举报

回复
论坛徽章:
1
ITPUB新首页上线纪念徽章
日期:2007-10-20 08:38:44
22#
发表于 2007-8-4 22:28 | 只看该作者
快照和snapshot都是一种东西,flashcopy就是基于snapshot的,有两种方式,copy on write,或者redirect write。

这个就像oralce里的undo segment一个道理。

使用道具 举报

回复
论坛徽章:
21
在线时间
日期:2007-07-25 04:01:022012新春纪念徽章
日期:2012-02-13 15:09:232012新春纪念徽章
日期:2012-02-13 15:09:232012新春纪念徽章
日期:2012-02-13 15:09:232012新春纪念徽章
日期:2012-02-13 15:09:23马上有车
日期:2014-02-19 11:55:14马上有房
日期:2014-02-19 11:55:14马上有钱
日期:2014-02-19 11:55:14马上有对象
日期:2014-02-19 11:55:142012新春纪念徽章
日期:2012-02-13 15:09:23
23#
发表于 2007-8-6 13:15 | 只看该作者
最初由 wangzhonnew 发布
[B]强,学习了 [/B]


有兴趣的话可以看看Using SANs and NAS。现在大一点的数据库都开始用非传统的方法来备份了。

http://www.itpub.net/445019,6.html

使用道具 举报

回复
论坛徽章:
21
在线时间
日期:2007-07-25 04:01:022012新春纪念徽章
日期:2012-02-13 15:09:232012新春纪念徽章
日期:2012-02-13 15:09:232012新春纪念徽章
日期:2012-02-13 15:09:232012新春纪念徽章
日期:2012-02-13 15:09:23马上有车
日期:2014-02-19 11:55:14马上有房
日期:2014-02-19 11:55:14马上有钱
日期:2014-02-19 11:55:14马上有对象
日期:2014-02-19 11:55:142012新春纪念徽章
日期:2012-02-13 15:09:23
24#
发表于 2007-8-6 13:29 | 只看该作者
flashCopy is kind of storage synchronization between two sets of disks, while snapshot is just a snapshot, no more, no less.

想做FLASHCOPY的话,得要有两份IDENTICAL STORAGE。若是DB有500GB with 10 LUNs, BACKUP SERVER也要有同样的500GB with 10 LUNs,并且FS CONFIGURATION也是一样的。在做BACKUP时,会有如下PROCEDURE:
0) Attach (?) the backup storage to the db storage(I cant remember the exact word used to describe this action), i.e. establish the link between backup storage and the db storage
1) Put DB into backup mode (Oracle) or suspend write to the DB (DB2)
2) synchronize the db storage and the backup storage (flashcopy)
3) Detach the backup storage(break the link between db storage and the backup storage)
4) Pull db out of backup mode (Oracle) or resume write to DB (DB2)
5) Import the backup storage into the backup server
6) Send the backup image to tape library

而SNAPSHOT就简单一些:
1) Put the db into backup mode (Oracle. No experience on db2 on NAS snapshot)
2) Take a snapshot of the file system(s) for data files (nothing to synchronize)
3) Pull the db out of backup mode
4) Archive redo logs
5) Take a snapshot of the file system(s) for the archived log.
6) Backup server then sends the backup image to the tape library

使用道具 举报

回复
论坛徽章:
21
在线时间
日期:2007-07-25 04:01:022012新春纪念徽章
日期:2012-02-13 15:09:232012新春纪念徽章
日期:2012-02-13 15:09:232012新春纪念徽章
日期:2012-02-13 15:09:232012新春纪念徽章
日期:2012-02-13 15:09:23马上有车
日期:2014-02-19 11:55:14马上有房
日期:2014-02-19 11:55:14马上有钱
日期:2014-02-19 11:55:14马上有对象
日期:2014-02-19 11:55:142012新春纪念徽章
日期:2012-02-13 15:09:23
25#
发表于 2007-8-6 13:43 | 只看该作者
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是不会有这种问题的。

使用道具 举报

回复
论坛徽章:
21
在线时间
日期:2007-07-25 04:01:022012新春纪念徽章
日期:2012-02-13 15:09:232012新春纪念徽章
日期:2012-02-13 15:09:232012新春纪念徽章
日期:2012-02-13 15:09:232012新春纪念徽章
日期:2012-02-13 15:09:23马上有车
日期:2014-02-19 11:55:14马上有房
日期:2014-02-19 11:55:14马上有钱
日期:2014-02-19 11:55:14马上有对象
日期:2014-02-19 11:55:142012新春纪念徽章
日期:2012-02-13 15:09:23
26#
发表于 2007-8-6 13:48 | 只看该作者
理论上,FLASHCOPY可以做REVERSE SYNCHRONIZATION to restore a database in seconds,而SNAPSHOT只能是用OS COPY来RESTORE A DATABASE。两者不可同日而言。

以上是我关于两者的理解。就正于方家。

使用道具 举报

回复
论坛徽章:
21
在线时间
日期:2007-07-25 04:01:022012新春纪念徽章
日期:2012-02-13 15:09:232012新春纪念徽章
日期:2012-02-13 15:09:232012新春纪念徽章
日期:2012-02-13 15:09:232012新春纪念徽章
日期:2012-02-13 15:09:23马上有车
日期:2014-02-19 11:55:14马上有房
日期:2014-02-19 11:55:14马上有钱
日期:2014-02-19 11:55:14马上有对象
日期:2014-02-19 11:55:142012新春纪念徽章
日期:2012-02-13 15:09:23
27#
发表于 2007-8-6 13:52 | 只看该作者
再有,ORACLE UNDO SEGMENT是为了能有个version consistent data by SCN,所以会不停地往回滚,until the latest possible SCN。

而NAS SNAPSHOT是as it is,没有往回滚的可能。

使用道具 举报

回复
论坛徽章:
1
ITPUB新首页上线纪念徽章
日期:2007-10-20 08:38:44
28#
发表于 2007-8-6 15:07 | 只看该作者
实际上,flashcopy,就是copy的snapshot,没有snapshot,就没有flashcopy。不copy,不能保证数据安全,就这样。

使用道具 举报

回复
论坛徽章:
21
在线时间
日期:2007-07-25 04:01:022012新春纪念徽章
日期:2012-02-13 15:09:232012新春纪念徽章
日期:2012-02-13 15:09:232012新春纪念徽章
日期:2012-02-13 15:09:232012新春纪念徽章
日期:2012-02-13 15:09:23马上有车
日期:2014-02-19 11:55:14马上有房
日期:2014-02-19 11:55:14马上有钱
日期:2014-02-19 11:55:14马上有对象
日期:2014-02-19 11:55:142012新春纪念徽章
日期:2012-02-13 15:09:23
29#
发表于 2007-8-6 15:30 | 只看该作者
最初由 冬瓜头 发布
[B]实际上,flashcopy,就是copy的snapshot,没有snapshot,就没有flashcopy。不copy,不能保证数据安全,就这样。 [/B]


可以把你对COPY,SNAPSHOT的定义分享一下吗?我恐怕我们在谈的是不同的东西。

使用道具 举报

回复
论坛徽章:
1
ITPUB新首页上线纪念徽章
日期:2007-10-20 08:38:44
30#
发表于 2007-8-6 15:42 | 只看该作者
flash copy并不是flash速度完成的,snapshot才是。
定义和你的一样,只不过表达不一样,我只是想说,flashcopy是copy的snapshot,所以没有snapshot技术,就没有flashcopy技术。flashcopy是snapshot技术的具体实现方式。其他品牌的盘阵比如hds的,用truecopy,还有比如用其他某某名词的,其实他们都是急于snapshot的技术思想来实现的。

使用道具 举报

回复

您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

TOP技术积分榜 社区积分榜 徽章 团队 统计 知识索引树 积分竞拍 文本模式 帮助
  ITPUB首页 | ITPUB论坛 | 数据库技术 | 企业信息化 | 开发技术 | 微软技术 | 软件工程与项目管理 | IBM技术园地 | 行业纵向讨论 | IT招聘 | IT文档
  ChinaUnix | ChinaUnix博客 | ChinaUnix论坛
CopyRight 1999-2011 itpub.net All Right Reserved. 北京盛拓优讯信息技术有限公司版权所有 联系我们 未成年人举报专区 
京ICP备16024965号-8  北京市公安局海淀分局网监中心备案编号:11010802021510 广播电视节目制作经营许可证:编号(京)字第1149号
  
快速回复 返回顶部 返回列表