数据库
的复制,所以主备操作系统必须同一类型,比如必须都是 /' 平台,版本完全相同
的 2-/ 版本
>支持主流关系数据库系统,包括 2-/5!5*+ 和 (3,',数据文件
的存放格式包括逻辑卷裸设备或者文件系统9
支持共享的集群环境中的逻辑卷复制,比如 2-/ 0 /0))/'-'(
/&注:本文中采用的是单节点 2-/ 复制9
支持 .'8/&,9
支持 #!#+/!('(环境的数据复制9
VVR 数据复制系统主要由下面五个组件组成:
■ )/'-./&,$&) .$复制卷组
.$ 是位于 ..磁盘组!$内的一组逻辑卷, .$ 隶属于磁盘组的一部分,
通过定义这些逻辑卷,
应用对逻辑卷的写操作都可以保持以主节点上同样的顺序,来写到备用节点上。
对于多数数据库系统来说,都是由一些特定的进程完成对磁盘的写操作,比如
2-/ 系统中的 :2;
和 !; 进程,而这些写操作总是依照着一定顺序,从而来保证实例恢复中数据
的一致和完整。比如
数据库变化通常在写入日志文件后才会写入数据文件,所以当日志文件和数据文件
属于要复制的不同
逻辑卷的时候,它们必须被定义到同一组 .$ 中。
每组 .$ 最多可以包括 个数据卷。
下面介绍 : 和 :1?,它们也包括在 .$ 中。
■ )/'-: :
: 用于记录 .$ 中数据写操作的日志,并循环被使用。每个 .$ 包括一个
:。数据在写入 .$ 中的卷之前,首先要写到主节点的 : 中。
从 .. 的角度来看, : 是一个单独的卷,因为所有的写操作首先要写到 :
中,这个卷需要有较好的写性能,所以多数情况下需要对这个卷进行条带化,并且在不
同的盘上 ,'
以保护数据,同时数据卷和 : 卷最好分布在不同的物理磁盘上以得
到更好的性能。
不允许人工直接对 : 进行访问。
■ )/'-'(:'(@A :1?
用于连接主 .$ 和备用 .$ 之间的一个“链接”,一个主的 .$ 最多可以有 个
:1?。可以定义 :1?
的多个属性来调整数据复制的参数,比如指定复制的网络。
■ !4()!
■ )/'-! !
一个 ! 包括了所有的主节点和备用节点的复制卷组 .$。 ! 不是一个具体
存在的对象,而是一个 .. 复制技术中的一个概念。
在异步模式下 .. 的数据复制和数据流向