Informix IDS 11琐细管理(918测验)认证指南,第6部分:IDS备份和恢复(8)

监视和调试备份和恢复进程

在运用 ontape 时,只能监视节制台和日记静态。

OnBar 实用步伐为监视和调试备份和恢复操纵供应了更多选项。可以监视 BAR_ACT_LOG 和 BAR_DEBUG_LOG 指定的日记,还可以设置其他设置配备陈设参数。

BAR_PERFORMANCE

这个新特征可以陈说 OnBar 备份和恢复的成效。可以运用新的设置配备陈设参数 BAR_PERFORMANCE 设置写入 OnBar 活动日记的陈说级别。可以让陈说搜罗 OnBar 活动的次秒级(sub-second)时间戳,OnBar 和存储管理器以及 OnBar 和 IDS 实例之间的传输速率。

要想表现 IDS 实例和存储管理器之间传输数据耗费的时间,就将这个参数设置为 1。

要想表现次秒级精度的时间戳,就将这个参数设置为 2。

要想同时表现时间戳和传输统计数据,就将这个参数设置为 3。


BAR_PROGRESS_FREQ

以分钟为单位指定备份或恢复静态在活动日记中出现的频率。

在调试 OnBar 的标题时,最有价值的工具是 BAR_ACT_LOG 和 BAR_DEBUG_LOG。将 BAR_DEBUG 设置为 9,就会起头跟踪 OnBar 和 XBSA 调用,并在 BAR_DEBUG_LOG 天生静态,可以运用这些静态领会哪些调用失败了,大要前往碰到的错误。

检讨备份(archecker)

可以以 ontape(Standalone)和 onbar(Integrated)体式格局运用 archecker 实用步伐:

  • 检讨备份
  • 实施表级恢复
  • 从存档中提取特定的页面

archecker 实用步伐无法反省逻辑日记备份。archecker 实用步伐不实施恢复。

设置 archecker 并不庞大,可是需求创设一个 archecker 设置配备陈设文件:

  • 这个文件搜罗 archecker 需求的全数设置。
  • 默许的文件名是 $INFORMIXDIR/etc/ac_config.std。
  • 要是不运用默许的 archecker 设置配备陈设文件,那么将状况变量 AC_CONFIG 设置为指向 archecker 设置配备陈设文件的文件名(无缺或相对路子名)。
  • archecker 用户必须对 AC_CONFIG 文件有读权限。
  • 文件中的参数如下(括号中是默许值):
    • AC_STORAGE —— 且则存储的路子(/tmp)。要是没有指定 AC_STORAGE,默许目录是今后目录
    • AC_MSGPATH —— 静态日记的文件名(/tmp/ac_msg.log)
    • AC_VERBOSE —— 细致输出 [默许状况下关闭](0)
    • AC_CLEANUP —— 清除早年运转 archecker 发生的旧信息(0)
    • AC_TAPEDEV —— 磁带配备的路子(onconfig:TAPEDEV;无默许值)
    • AC_TAPEBLOCK —— 磁带的块大小(关于 ontape,onconfig:TAPEBLK;无默许值)。关于 OnBar,要达到最大 bar 传输大小,在 2k 页面琐细上 AC_TAPEBLOCK 是 62,在 4k 页面琐细上是 60。
    • AC_IXBAR —— 在运用 OnBar 时运用。
    • AC_SCHEMA —— 用于表级恢复(不运用 -f)

运转 archecker 的步伐如下:

  1. 设置 ac_config 文件中的参数。
  2. 导出状况变量 AC_CONFIG。
  3. 在 standalone 体式格局中实施 archecker -tvs 饬令,反省 ontape 存档。要是运用 OnBar,可以实施饬令 archecker -bvs 或运用 onbar -v

应该会看到下面何等的输出。

清单 21. archecker 的输出示例

                    
Program Name:   archecker
Version:        8.0
Released:       2007-04-19 23:00:58
CSDK:           IBM Informix CSDK Version 2.91
ESQL:           IBM Informix-ESQL Version 2.91.UN220
Compiled:       04/19/07 23:01  on SunOS 5.9 Generic_118558-28
AC_STORAGE               /space/products/v11.Beta.6/arch_storage
AC_MSGPATH               /home/informix/ac_msg.log
AC_VERBOSE               on
AC_TAPEDEV               /space/TAPE/v11backup/
AC_TAPEBLOCK             32 KB
AC_LTAPEDEV              /space/TAPE/v11backup/
AC_LTAPEBLOCK            32 KB
AC_TIMEOUT               300
AC_SESSION
Archive file /space/TAPE/v11backup/blazer_110_L0
Tape type:      Archive Backup Tape
OnLine version: IBM Informix Dynamic Server Version 11.10.UB6TL
Archive date:   Sun May  6 15:29:41 2007
Archive level:  0
Tape blocksize:  32768
Tape size:  2147483647
Tape number in series:  1
Scan PASSED
Control page checks PASSED
Reserve page validation PASSED
Checking rootdbs:TBLSpace
Checking sysmaster:sysdatabases
Checking sysmaster:systables
.......
.......     
Table checks PASSED
Tables/Fragments validated:     293
Archive Validation PASSED.


对外部备份和恢复的支撑

ontape 和 OnBar 都支撑外部备份和恢复。

在操纵琐细级实施数据备份的体歧下:

  • UNIX 饬令:
    • cpio
    • tar
    • dd
  • 文件琐细快照
  • 第三镜像停止
  • 存储管理器 “原始” 备份

在外部备份时代,必须运用 onmode -c block 饬令壅闭数据库干事器。OnBar 和 ontape 的外部备份/恢复特征都支撑逻辑恢复。

长处

  • 可用性和速率。可以更快地备份和恢双数据,让数据更快地变为可用。
  • 可以留存相同数据的多个拷贝。
  • 可以复制原始物理配备。
  • 要是与 ontape 或 OnBar 外部恢复联络运用,就可以实施逻辑恢复。

缺陷

  • 第三镜像停止或其他处理奖惩方案有额外的开支。
  • IDS 不合错误外部备份实施介质跟踪。

在 UNIX 上设置 IBM Informix Storage Manager(ISM)

清单 22. ISM 设置示例

                    
To set up ISM to run on UNIX, follow these steps:
	1.  Log in as informix to the machine where your engine is installed. 
	Set up your environment to use the engine.
	2.  Create a directory in which to store the savesets for logical log backup.
	This step is only needed if you want to be able to save storage spaces
	or logical logs to files.
	3.  In the ONCONFIG configuration file of the engine, 
	specify the volume pool names for storage spaces and logical logs
	by adding the following:
	ISM_DATA_POOL    datapool
	ISM_LOG_POOL     logpool
	datapool
	If you are going to archiving your storage spaces to tape devices
	then use the value ISMData here.
	If you are going to archiving your storage spaces to files
	then use the value ISMDiskData here.
	logpool
	If you are going to be backing up your logical logs to tape devices
	then use the value ISMLogs here.
	If you are going to be backing up your logical logs to files
	then use the value ISMDiskLogs here.
	Example:
	These parameters are for a system where devices will be used
	to archive storage spaces but the logical logs will be backed up to files.
	ISM_DATA_POOL    ISMData
	ISM_LOG_POOL     ISMDiskLogs
	4.  Set the LTAPEDEV parameter in the ONCONFIG file
	to anything but /dev/null.
	5.  Log in as root.  Set up your environment to use the engine.
	6.  From the command line type:
	ism_startup -init
	7.  Add user informix as an administrator by using
	the ism_add command with the following syntax:
	ism_add -admin informix@machine_name
	machine_name
	Host machine name. The name should be the fully qualified name for the machine
	of which include the domain name. 
	8.   Add the storage devices to the ISM server by using the
	ism_add command with the following syntax:
         ism_add -device device_name -type Media_type_name
        device_name
	Full path to the device.
	media_type_name
	Type of media used by the storage device.
	Check ISM user guide for list of valid devices.
	Example:
	This command adds an 8mm DAT as a storage device.
	The device is located at /dev/rmt/0mn in the file system.
	ism_add -device /dev/rmt/0mn -type 8mm
	This command adds the directory /tmp/logfiles.bak as a storage device.
	ism_add -device /tmp/logfiles.bak -type file
	9.  Label the devices by using the ism_op command with this syntax:
	ism_op -label device_name -volume volume_name 
	 -pool pool_name
	device_name
	Full path name to the device.
	pool_name
	The name of the volume pool to which the storage volume will belong. 
	You must assign at least one device to each volume pool that you used in step 3.
	volume_name
	Volume name. Any descriptive name for this volume. 
	Examples:
	This command labels the device /dev/rmt/0mn with a volume name of ISMData
	and puts it in the pool ISMData.
	ism_op -label /dev/rmt/0mn -pool 
	ISMData -volume ISMData
	This command labels the directory /tmp/logfiles.bak with a volume name
	of ISMLogs and puts it in the pool ISMDiskLogs.
	ism_op -label /tmp/logfiles.bak -pool 
	ISMDiskLogs -volume ISMLogs 
	10.  Mount the devices by using ism_op command with this syntax: 
	ism_op -mount device_name
	device_name
	Full path name to the device.
	Example:
	To mount the device /dev/rmt/0mn use this command:
	ism_op -mount /dev/rmt/0mn 
	To mount the device /tmp/logfiles.bak use this command:
	ism_op -mount /tmp/logfiles.bak
	The set up is complete. Test the backup and restore using onBar commands.
				



终了语

目下当今,您应该曾经掌握了本教程评论争持的内容:

  • 创设恢复战略和备份计划所需的概念(包含全琐细备份、dbspace 备份、次序备份、并行备份、逻辑日记备份、冷恢复、热恢复、混杂恢复、物理恢复、逻辑恢复和时间点恢复)。
  • IDS 备份和恢复实用步伐及其遵守(OnBar、ontape、archecker 和 ISM)。
  • 备份和恢复实用步伐的设置配备陈设参数和文件,以及存储配备选项和需求。
  • OnBar 备份和恢复的成效优化和监视体例,以及诊断存档标题所需的调试日记。
  • 实施备份、恢复、存档检讨和 ISM 设置所需的饬令。



版权声明: 原创作品,允许转载,转载时请务必以超链接形式标明文章 原始来由 、作者信息和本声明。否则将穷究功令责任。

转载于:https://www.cnblogs.com/zgqjymx/archive/2011/03/07/1973013.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值