HDR:监视
本节讨论以下监视主题:
在用 onstat -g dri
检查 HDR 状态之前,先看一下 onstat 标题行 —— 它会显示以下信息之一:
IBM Informix Dynamic Server Version 11.10.FC1 -- On-Line (Prim)
|
IBM Informix Dynamic Server Version 11.10.FC1 -- Read-Only (Sec)
|
IBM Informix Dynamic Server Version 11.10.FC1 -- On-Line
|
-g dri onstat
选项输出 “完整的” HDR 监视信息。显示的信息包括:
- 服务器类型(主、从或标准)
- HDR 状态(开或关)
- 配对服务器的名称
- 最后一次 HDR 检查点的惟一逻辑日志 id 和逻辑页面
- HDR 配置参数的值
下面是来自两个服务器的输出示例:
$ onstat -g dri
IBM Informix Dynamic Server Version 11.10.FC1 -- On-Line (Prim)
Data Replication:
Type State Paired server Last DR CKPT (id/pg)
primary on october 8 / 4276
DRINTERVAL 30
DRTIMEOUT 30
DRAUTO 0
DRLOSTFOUND /cfs/mnt1/ERNS/class/rprivett/boy/dr.lostfound
DRIDXAUTO 0
ENCRYPT_HDR 0
|
$ onstat -g dri
IBM Informix Dynamic Server Version 11.10.FC1 -- Read-Only (Sec)
Data Replication:
Type State Paired server Last DR CKPT (id/pg)
HDR Secondary on boy 8 / 4276
DRINTERVAL 30
DRTIMEOUT 30
DRAUTO 0
DRLOSTFOUND /cfs/mnt1/ERNS/class/rprivett/october/dr.lostfound
DRIDXAUTO 1
ENCRYPT_HDR 0
|
在启用 HDR 时,保留的页面 PAGE_1ARCH 和 PAGE_2ARCH 存储检查点的相关信息(HDR 使用检查点对两个服务器进行同步)。清单 6 和清单 7 是输出示例:
Validating PAGE_1ARCH & PAGE_2ARCH...
Using archive page PAGE_2ARCH.
Archive Level 0
Real Time Archive Began 05/23/2007 14:21:27
Time Stamp Archive Began 0x13b833
Logical Log Unique Id 8
Logical Log Position 0xf8250
DR Ckpt Logical Log Id 8
DR Ckpt Logical Log Pos 0x10b4018
DR Last Logical Log Id 8
DR Last Logical Log Page 4276
DR Last Mode Change 7 Primary mode
|
Validating PAGE_1ARCH & PAGE_2ARCH...
Using archive page PAGE_2ARCH.
Archive Level 0
Real Time Archive Began 05/23/2007 14:21:27
Time Stamp Archive Began 0x13b833
Logical Log Unique Id 8
Logical Log Position 0xf8250
DR Ckpt Logical Log Id 8
DR Ckpt Logical Log Pos 0x10b4018
DR Last Logical Log Id 8
DR Last Logical Log Page 4277
DR Last Mode Change 8 Secondary mode
|
sysmaster:sysdri 表提供本地服务器的 HDR 状态信息。清单 8、清单 9 和清单 10 是输出示例:
> select * from sysdri;
type Primary
state On
name october
intvl 30
timeout 30
lostfound /cfs/mnt1/ERNS/class/rprivett/boy/dr.lostfound
drauto 0
dridxauto 0
1 row(s) retrieved.
|
> select * from sysdri;
type Primary
state On
name october
intvl 30
timeout 30
lostfound /cfs/mnt1/ERNS/class/rprivett/boy/dr.lostfound
drauto 0
dridxauto 0
1 row(s) retrieved.
|
> select * from sysdri;
type Standard
state Off
name
intvl 30
timeout 30
lostfound /cfs/mnt1/ERNS/class/rprivett/htdaab/dr.lostfound
drauto 0
dridxauto 0
1 row(s) retrieved.
|
阅读(1501) | 评论(0) | 转发(0) |