免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3784 | 回复: 4
打印 上一主题 下一主题

急!跪求高手指点!!!INFORMIX使用NBU,ONBAR备份问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-03-14 23:01 |只看该作者 |倒序浏览
MASTER SERVER:Solaris8
SAN Media Server:HP-UX双机

informix有4个instance

我安装完NBU,配好设备之后,测试文件级备份没有问题。

之后安装informix agent,执行informix_config脚本,选择informix home path为/opt/informix

自动在/opt/informix/etc下的sm_versions文件中加入1|1.1.0|VERITAS-NetBackup|1|

然后Linking /opt/informix/lib/ibsad001.sl to /usr/openv/netbackup/bin/infxbsa.sl64.

然后编辑onconfig文件,修改以下参数

#TAPEDEV        /dev/null                        # Tape device path       
TAPEDEV                /dev/rmt/1m        # Tape device path       

#LTAPEDEV        /dev/null        # Log tape device path
LTAPEDEV        /opt/informix/nbu_log/logs        #Log tape device path

# Backup/Restore variables
BAR_ACT_LOG   /opt/informix/bar_act.log  # ON-Bar Log file - not in /tmp please
BAR_DEBUG_LOG /opt/informix/bar_dbug.log # ON-Bar Debug Log - not in /tmp please
BAR_MAX_BACKUP        0
BAR_RETRY        1
BAR_NB_XPORT_COUNT 10
BAR_XFER_BUF_SIZE 31
#RESTARTABLE_RESTORE        ON
#BAR_PROGRESS_FREQ        0
BAR_BSALIB_PATH /opt/informix/lib/ibsad001.sl

保存之后修改脚本进行备份,脚本如下:





#!/bin/sh
# $Revision: 1.3.10.1 $
#bcpyrght
#***************************************************************************
#* $VRTScprght: Copyright 1993 - 2004 VERITAS Software Corporation, All Rights Reserved $ *
#***************************************************************************
#ecpyrght

# Replace xxxxx below with the extention used for your onconfig file.
ONCONFIG=onconfig.omp

# Replace yyyyy below with the Informix home path.
INFORMIXDIR=/opt/informix

# Replace zzzzz below with the name of the Informix server.
INFORMIXSERVER=ompserver1

# Replace informix_etc below with the name of the NetBackup server policy
# to be used to back up the $INFORMIXDIR/etc directory.
INFX_ETC_POLICY=HBDB84_1_informix_etc


echo "Started `date`"

export ONCONFIG
echo "exported ONCONFIG"

export INFORMIXDIR
echo "exported INFORMIXDIR"

export INFORMIXSERVER
echo "exported INFORMIXSERVER"

echo "INFXBSA_SERVER = $INFXBSA_SERVER"
echo "INFXBSA_SCHEDULED = $INFXBSA_SCHEDULED"
echo "INFXBSA_USER_INITIATED = $INFXBSA_USER_INITIATED"
echo "INFXBSA_FULL = $INFXBSA_FULL"
echo "INFXBSA_INCR = $INFXBSA_INCR"
echo "INFXBSA_POLICY = $INFXBSA_POLICY"

RETURN_STATUS=0

if [ "${INFXBSA_INCR}" = "1" ]
then
#         Netbackup has started an incremental backup.
    echo "$INFORMIXDIR/bin/onbar -b -L 1 ompdb"
        $INFORMIXDIR/bin/onbar -b -L 1 ompdb
        RETURN_STATUS=$?
else

    echo "$INFORMIXDIR/bin/onbar -b -L 0 ompdb"
    $INFORMIXDIR/bin/onbar -b -L 0 ompdb
    RETURN_STATUS=$?
fi

if        [ "$RETURN_STATUS" -eq "0" ]
then

        # Initiate a backup of the directory that contains the onconfig,
        # sqlhosts, oncfg_$INFORMIXSERVER.SERVERNUM, and ixbar.SERVERNUM
        # files after doing the backup.

        echo "bpbackup -p $INFX_ETC_POLICY -w 0 $INFORMIXDIR/etc"
        /usr/openv/netbackup/bin/bpbackup -p $INFX_ETC_POLICY -w 0 $INFORMIXDIR/etc
        BPBACKUP_STATUS=$?

        if [ "$BPBACKUP_STATUS" -ne "0" ]
        then
                echo ""
                echo "bpbackup of $INFORMIXDIR/etc returned $BPBACKUP_STATUS"
        fi
fi

echo "Finished `date`"

echo "exit $RETURN_STATUS"
echo ""

exit $RETURN_STATUS




备份出错,NBU报的错是6,查看informix的bar_act.log,发现
2006-03-14 10:59:06 27499  27497 Working with veritas-netbackup as generic storage manager.
2006-03-14 10:59:06 27499  27497 Unable to open connection to database server: could not fork server connection, SQLCODE -23101.
2006-03-14 10:59:06 27499  27497 /opt/informix/bin/onbar_d complete, returning 130 (0x82)



sqlhosts文件如下,NBU备份使用的都是主机名,我使用物理节点或者虚拟节点的IP,主机名都试过,现象一样

#**************************************************************************
#
#  Licensed Material - Property Of IBM
#
#  "Restricted Materials of IBM"
#
#  IBM Informix Dynamic Server
#  (c) Copyright IBM Corporation 1996, 2004 All rights reserved.
#
#   Title:        sqlhosts.demo
#   Description:
#                Default sqlhosts file for running demos.
#
#**************************************************************************

demo_on        onipcshm        on_hostname        on_servername
wnmsserver3       onipcshm        10.120.136.6  8001
wnmsserver1       onsoctcp        10.120.136.6  8002
nmosserver3       onipcshm        10.120.136.6  8003
nmosserver1       onsoctcp        10.120.136.6  8004
eomsserver1       onipcshm        10.120.136.6  8005
eomsserver3       onsoctcp        10.120.136.6  8006
server                  onsoctcp          10.120.136.6        8007
ompserver3        onipcshm        10.120.136.6  8009
ompserver1        onsoctcp        10.120.136.6  8010





请指点到底是什么地方的问题,不胜感激!!

论坛徽章:
0
2 [报告]
发表于 2007-01-26 10:57 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽

论坛徽章:
11
金牛座
日期:2015-03-19 16:56:22数据库技术版块每日发帖之星
日期:2016-08-02 06:20:00数据库技术版块每日发帖之星
日期:2016-04-24 06:20:00数据库技术版块每日发帖之星
日期:2016-04-13 06:20:00IT运维版块每日发帖之星
日期:2016-04-13 06:20:00数据库技术版块每日发帖之星
日期:2016-02-03 06:20:00数据库技术版块每日发帖之星
日期:2015-08-06 06:20:00季节之章:春
日期:2015-03-27 15:54:57羊年新春福章
日期:2015-03-27 15:54:37戌狗
日期:2015-03-19 16:56:41数据库技术版块每日发帖之星
日期:2016-08-18 06:20:00
3 [报告]
发表于 2007-01-26 11:33 |只看该作者
这是 VERITAS 双机。不会~~~

PS:沙发上的怎么就发现是河北移动问题哦。。沙发上的是厂家的?呵呵~

论坛徽章:
11
数据库技术版块每日发帖之星
日期:2016-06-25 06:20:00数据库技术版块每日发帖之星
日期:2016-06-24 06:20:00数据库技术版块每日发帖之星
日期:2016-05-03 06:20:00数据库技术版块每日发帖之星
日期:2016-04-21 06:20:00数据库技术版块每日发帖之星
日期:2016-01-23 06:20:00数据库技术版块每日发帖之星
日期:2015-12-03 06:20:00综合交流区版块每周发帖之星
日期:2015-12-02 15:03:53数据库技术版块每日发帖之星
日期:2015-10-19 06:20:00数据库技术版块每日发帖之星
日期:2015-08-20 06:20:002015年辞旧岁徽章
日期:2015-03-03 16:54:15数据库技术版块每日发帖之星
日期:2016-07-30 06:20:00
4 [报告]
发表于 2007-01-27 22:48 |只看该作者
报23101的错?

你去检查一下,是不是字符集环境变量的问题!

论坛徽章:
0
5 [报告]
发表于 2007-02-01 20:44 |只看该作者
-23101  Unable to load locale categories.

An invalid locale name was supplied for the locale initialization.
The environment variable specifying the locale category has a wrong
value.

Check the value of the corresponding environment variable,
CLIENT_LOCALE or DB_LOCALE. If this error was encountered when using
the "SET COLLATION" statement, check that the value passed to the
statement is a valid locale. If this error was encountered when using
the "SET NO COLLATION" statement, check that the session's default
locale file is still available. Also check if INFORMIXDIR points to
a valid directory where IBM Informix products are installed.  

If a client application receives this error when it requests a database
server connection, check that the client and database locales are
compatible. They are compatible if a valid locale exists on the server
computer with the name lg_tr.codeset@mod, where lg_tr (language and
territory) and mod (locale modifier) are from the CLIENT_LOCALE and
codeset is from the database locale (from the DB_LOCALE, if it is set,
or as stored in the database).
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP