1. informix用户执行:
$mkdir /databak/backup/data
$mkdir /databak/backup/logs
2. 修改LTAPEDEV 参数为如下
$touch /databak/backup/ltapedev
$chmod 660 /databak/backup/ltapedev
修改为如下:
LTAPEDEV /databak/backup/ltapedev
3. 修改卷池
ISM_DATA_POOL ISMData
ISM_LOG_POOL ISMLogs
4. 开始配置ism
$su root
#ism_startup -init root
# ism_add -admin informix@linux
# ism_add -device /databak/backup/data -type file
# ism_add -device /databak/backup/logs -type file
#ism_op -label /databak/backup/logs -volume data -pool ISMData -force
#ism_op -label /databak/backup/logs -volume log -pool ISMLogs -force
#ism_op -mount /databak/backup/data
file disk data mounted on /databak/backup/data, write enabled
#ism_op -mount /databak/backup/logs
file disk log mounted on /databak/backup/logs, write enabled
5. 备份验证:
$ onbar -b -w
$onbar -v
通过以下方式也可以查看:
$onstat -m
21:46:10 Level 0 Archive started on rootdbs
21:46:11 Archive on rootdbs Completed.
21:46:12 Logical Log 3 Complete, timestamp: 0x2bf75.
21:51:22 Checkpoint Completed: duration was 0 seconds.
21:51:22 Sun Dec 26 - loguniq 4, logpos 0x8018, timestamp: 0x2c04f Interval: 14
查看ism备份进程
$ ps -ef|grep nsr
root 21297 1 0 21:31 ? 00:00:00 /opt/IBM/informix/bin/nsrexecd
root 21298 21297 0 21:31 ? 00:00:00 /opt/IBM/informix/bin/nsrexecd
root 21300 1 0 21:31 ? 00:00:00 /opt/IBM/informix/bin/nsrd
root 21305 21300 0 21:31 ? 00:00:00 /opt/IBM/informix/bin/nsrmmdbd
root 21306 21300 0 21:31 ? 00:00:00 /opt/IBM/informix/bin/nsrindexd
root 21307 21300 0 21:31 ? 00:00:00 /opt/IBM/informix/bin/nsrmmd -n 1
root 21610 21300 0 21:39 ? 00:00:00 /opt/IBM/informix/bin/nsrmmd -n 2
root 21642 21300 0 21:40 ? 00:00:00 /opt/IBM/informix/bin/nsrmmd -n 3
informix 22593 19413 0 22:07 pts/3 00:00:00 grep nsr