免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
楼主: Johnson.Chao

[Veritas NBU] NBU 5.0 for Sybase 12.5.2 备份不了 [复制链接]

论坛徽章:
0
发表于 2005-08-21 01:20 |显示全部楼层

NBU 5.0 for Sybase 12.5.2 备份不了

不好意思,我记错了,是sybase_config  你执行一下,填上你的sybase数据库的安装路径就可以了。
你说的上面两个根本没关系的,不用执行。

论坛徽章:
0
发表于 2005-08-22 14:31 |显示全部楼层

NBU 5.0 for Sybase 12.5.2 备份不了

cd /usr/openv/netbackup/bin
# ./sybase_config

Please specify the Sybase instance home path name:
/sybase

Do you have other Sybase instances? (y/n) [n]

======================================================================
Examining /sybase:

INSTALLATION ERROR:
The file type for /sybase/ASE-12_5/bin/sybmultbuf does not
match /usr/openv/netbackup/bin/libsybackup.sl or
/usr/openv/netbackup/bin/libsybackup64.sl.

INSTALLATION WARNING:
If this Sybase installation is part of a cluster and
this node is inactive, this warning may safely be
ignored.  Otherwise, check to see if Sybase has been
installed in /sybase.
======================================================================

One or more installation errors have occurred.  Installation is not
complete.

论坛徽章:
0
发表于 2005-08-22 14:32 |显示全部楼层

NBU 5.0 for Sybase 12.5.2 备份不了

怎么会有错误呢?我该了/sybase/ASE-12_5/bin/sybmultbuf 、/usr/openv/netbackup/bin/libsybackup.sl 、/usr/openv/netbackup/bin/libsybackup64.sl翁建德属性为777也不行!

论坛徽章:
0
发表于 2005-08-22 14:36 |显示全部楼层

NBU 5.0 for Sybase 12.5.2 备份不了

是不是我的NBUY for Sybase有问题,我想问一下,NBU for Sybase都有哪几个进程!怎么检查NBU for Sybase的健康呢?

论坛徽章:
0
发表于 2005-08-22 16:17 |显示全部楼层

NBU 5.0 for Sybase 12.5.2 备份不了

This error occurs when a vault job is run for a profile that has selected automatic eject mode and the number of media to be ejected exceeds the capacity of the MAP.

论坛徽章:
0
发表于 2005-08-22 16:22 |显示全部楼层

NBU 5.0 for Sybase 12.5.2 备份不了

Error  bpsched (pid=291)suspending further backup attempts for client nms ,policy nms_sybase_backup,schedule database_dump because it has exceeded the configured number of triex
Error bpsched (pid=291|)backup of client nms exited with status 6 (the backup failed to back up thebackup failed to back up the requested files)
the backup failed to back up the requested files (6)

论坛徽章:
0
发表于 2005-08-22 16:26 |显示全部楼层

NBU 5.0 for Sybase 12.5.2 备份不了

Errors caused the user backup to fail.

论坛徽章:
0
发表于 2005-08-22 16:30 |显示全部楼层

NBU 5.0 for Sybase 12.5.2 备份不了

/syb_model_dump文件内容、:

dump DATABASE model to "sybackup::-SERV macro -CLIENT nms -POL nms_sybase_backup -SCHED database_dump"
stripe on "sybackup::-SERV macro -CLIENT nms -POL nms_sybase_backup -SCHED database_dump"
go

论坛徽章:
0
发表于 2005-08-22 23:51 |显示全部楼层

NBU 5.0 for Sybase 12.5.2 备份不了

还没解决吗?
楼猪你的脚本有问题
一个是我不知道你干吗把单路和多路都打开了
另一个是你的$DATABASE_TYPE环境变量没生效,你自己可在执行dump语句前面加一句:echo $DATABASE_TYPE >; /xxxx/xxxx就知道了。和NBU无关,把脚本弄好就OK了,sybase备份没什么的

论坛徽章:
0
发表于 2005-08-23 10:44 |显示全部楼层

NBU 5.0 for Sybase 12.5.2 备份不了

能不能明确提示一下,单路和多路在脚本的哪里限制一下!还有,你说的$DATABASE_TYPE环境变量我在脚本中根本找不到呀!我把我最新的脚本贴出来,你再帮忙看一眼!
还有一个问题根本解决不了,就是Sybase_config根本就执行不成功,上面的帖子中有错误信息。下面是我的脚本:

# more nms_sybase_backup.sh


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

#***************************************************************************
# Replace /usr/sybase12 below with the actual Sybase home directory
#***************************************************************************
SYBASE=/sybase

#***************************************************************************
# Replace SYBASE12 below with the actual name of the SQL Server
#***************************************************************************
SYBSERVER=SYBASE

#***************************************************************************
# Replace SYB_DB below with the actual name of your Sybase database
#***************************************************************************
DATABASE_NAME=model

#***************************************************************************
# Replace syb_files below with your actual name of the NetBackup
# server Policy to be used to backup the directory with Sybase script files
#***************************************************************************
SYB_FILES_POLICY=nms_sybase_backup

#***************************************************************************
# Replace /usr/sybase12/scripts below with your actual path of the Sybase files
#***************************************************************************
SYB_FILES_DIR=/sybase

#***************************************************************************
# Determine the SYBASE_ASE and SYBASE_OCS env variables for Sybase 12.x
#***************************************************************************
OCS_QUAL=
if [ -f "${SYBASE}"/SYBASE.csh ] ; then
        SYBASE_ASE=`grep "setenv SYBASE_ASE" "${SYBASE}"/SYBASE.csh | cut -f3 -d" " | sort -u | head -1`
        SYBASE_OCS=`grep "setenv SYBASE_OCS" "${SYBASE}"/SYBASE.csh | cut -f3 -d" " | sort -u | head -1`
        export SYBASE_ASE
        export SYBASE_OCS
        OCS_QUAL=/$SYBASE_OCS
elif [ -f "${SYBASE}"/SYBASE.sh ] ; then
        SYBASE_ASE=`grep "SYBASE_ASE=" "${SYBASE}"/SYBASE.sh | cut -f2 -d"=" | sort -u | head -1`
        SYBASE_OCS=`grep "SYBASE_OCS=" "${SYBASE}"/SYBASE.sh | cut -f2 -d"=" | sort -u | head -1`
        export SYBASE_ASE
        export SYBASE_OCS
        OCS_QUAL=/$SYBASE_OCS
fi

echo "Started `date`"
SYBASE=$SYBASE; export SYBASE
# These environment variables are set by NetBackup
echo "SYBACKUP_SERVER = $SYBACKUP_SERVER"
echo "SYBACKUP_POLICY = $SYBACKUP_POLICY"
echo "SYBACKUP_SCHED = $SYBACKUP_SCHED"
echo "SYBACKUP_CLIENT = $SYBACKUP_CLIENT"
echo "SYBACKUP_SCHEDULED = $SYBACKUP_SCHEDULED"
echo "SYBACKUP_USER_INITIATED = $SYBACKUP_USER_INITIATED"

RETURN_STATUS=0

#***************************************************************************
# Replace "database_dump" below with your actual NetBackup schedule name
# which is used for a full backup of the Sybase database.
#***************************************************************************
if [ "${SYBACKUP_SCHED}" = "database_dump" ]
then
############# NetBackup has started a "database_dump" backup ##############
DUMP_TYPE=DATABASE

else
############# NetBackup has started a "transaction log" backup ##############
DUMP_TYPE=TRANSACTION
fi


#***************************************************************************
# Replace "Default-Application-Backup" below with your actual NetBackup
# Application Backup type schedule name for the Sybase database.
#***************************************************************************
echo dump $DUMP_TYPE $DATABASE_NAME to \"sybackup::-SERV $SYBACKUP_SERVER -CLIENT $SYBACKUP_CLIENT -POL $SYBACK
UP_POLICY -SCHED database_dump\" >; ./syb_${DATABASE_NAME}_dump

#**************************************************************************
# Remove the '#' from the beginning of the line below if you are going to
# use multiple stripes for the backup. Repeat this line for each stripe.
# Replace "Default-Application-Backup" below with your actual NetBackup
# Application Backup type schedule name for the Sybase database.
# **************************************************************************
echo stripe on \"sybackup::-SERV $SYBACKUP_SERVER -CLIENT $SYBACKUP_CLIENT -POL $SYBACKUP_POLICY -SCHED databas
e_dump\" >;>; ./syb_${DATABASE_NAME}_dump

echo go >;>; ./syb_${DATABASE_NAME}_dump

#***************************************************************************
# Log the isql command. This line may appear in NetBackup log files.
# Do NOT replace "xxxxxxxx" with a user id or password.
#***************************************************************************
echo "$SYBASE$OCS_QUAL/bin/isql -Uxxxxxxxx -Pxxxxxxxx -I$SYBASE/interfaces -S$SYBSERVER < ./syb_${DATABASE_NAME
}_dump"

#***************************************************************************
# Replace "sa" with your Sybase server Administrator's login name.
# Replace "manager" with your Sybase server Administrator's password.
#***************************************************************************
        $SYBASE$OCS_QUAL/bin/isql -Usa -P123456 -I$SYBASE/interfaces -S$SYBSERVER < ./syb_${DATABASE_NAME}_dump
        RETURN_STATUS=$?

if [ "${DUMP_TYPE}" = "DATABASE" ]
then
#       Initiate a backup of any file related to the Sybase database, such as script files.

        echo "bpbackup -c $SYB_FILES_POLICY $SYB_FILES_DIR"
        /usr/openv/netbackup/bin/bpbackup -c $SYB_FILES_POLICY $SYB_FILES_DIR
        BPBACKUP_STATUS=$?

        if [ "$BPBACKUP_STATUS" -ne 0 ]
        then
                echo ""
                echo "bpbackup of $SYB_FILES_DIR returned $BPBACKUP_STATUS"
        fi
fi


echo "Finished `date`"

echo "exit $RETURN_STATUS"
echo ""

exit $RETURN_STATUS
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP