免费注册 查看新帖 |

Chinaunix

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

求助Networker 7.4 + NMS3.0 + Sybase 12.54 无法自动备份,谢谢大家 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-05-28 17:27 |只看该作者 |倒序浏览
1.现在备份sybase、在sybase用户可以手工备份,自动备份会报错,无法进行下去

手动备份可以
bash-3.00$ /usr/sbin/nsrsybsv -U sa -P sybase -s sc1 -l full SYBASE:/SC
Backing up database master.
Truncating transaction log for database "master".
Backing up database model.
Truncating transaction log for database "model".
Backing up database sybsystemdb.
Truncating transaction log for database "sybsystemdb".
Backing up database sybsystemprocs.
Truncating transaction log for database "sybsystemprocs".
24193:nsrsybsv:******** SUMMARY OF SYBASE BACKUP ********
53359:nsrsybsv:sc1: SYBASE:/SC/master Level=full, 6193 KB 00:00:10
53360:nsrsybsv:Completion time for NMS backup=1210963573
53359:nsrsybsv:sc1: SYBASE:/SC/model Level=full, 366 KB 00:00:10
53360:nsrsybsv:Completion time for NMS backup=1210963573
53359:nsrsybsv:sc1: SYBASE:/SC/sybsystemdb Level=full, 416 KB 00:00:10
53360:nsrsybsv:Completion time for NMS backup=1210963573
53359:nsrsybsv:sc1: SYBASE:/SC/sybsystemprocs Level=full, 86 MB 00:00:10
53360:nsrsybsv:Completion time for NMS backup=1210963573
24196:nsrsybsv:******* END OF SYBASE SUMMARY *********



2.自动报错输出和在root用户下备份的报错是一样的,怀疑为console服务器不能控制用哪个用户进行备份,或者是哪里没设置对。备份命令nsrsybsv不能在root用户下进行。
   在脚本nsrsyb没有找到可以定义备份用户的地方。

root@sc1 # /usr/sbin/nsrsybsv -Usa -Psybase -s sc1 -l full SYBASE:/SC
Backing up database master.
24146:nsrsybsv:Error from server SC_BS: Msg 412402, Level 2, State 1
        Backup Server: 4.124.2.1: Archive API error for device='bms::sc1.SC.master../nsr/tmp/sysDaaBi::00': Vendor application name=Legato, Library version=200, API routine=syb_open(), Message=unable to create environment variables.
24146:nsrsybsv:Error from server SC: Msg 8009, Level 16, State 1
        Error encountered by Backup Server.  Please refer to Backup Server messages for details.
24115:nsrsybsv:Error: unable to dump database master in instance SC.


3.nms_config 做过,/nsr/tmp 也设成777或者4755,都试过。到库下,手动dump也是可以的。感觉没什么办法了。


4./usr/sbin/nsrsyb里面是否可以加su - sybase,应该如何加?


请指教,不胜感激


论坛徽章:
10
处女座
日期:2015-01-22 16:08:50技术图书徽章
日期:2018-09-13 11:25:52技术图书徽章
日期:2018-09-13 11:25:45技术图书徽章
日期:2018-09-13 11:25:37技术图书徽章
日期:2018-09-13 11:25:29黑曼巴
日期:2018-06-04 09:03:192017金鸡报晓
日期:2017-01-10 15:19:56极客徽章
日期:2016-12-07 14:03:402015年迎新春徽章
日期:2015-03-04 09:50:28技术图书徽章
日期:2018-09-13 11:26:01
2 [报告]
发表于 2010-05-28 17:35 |只看该作者
重启下备份服务器试试

论坛徽章:
0
3 [报告]
发表于 2010-05-28 17:39 |只看该作者
回复 2# michael1983


    感谢,,重启过啊,感觉不解决问题啊,呵呵

论坛徽章:
10
处女座
日期:2015-01-22 16:08:50技术图书徽章
日期:2018-09-13 11:25:52技术图书徽章
日期:2018-09-13 11:25:45技术图书徽章
日期:2018-09-13 11:25:37技术图书徽章
日期:2018-09-13 11:25:29黑曼巴
日期:2018-06-04 09:03:192017金鸡报晓
日期:2017-01-10 15:19:56极客徽章
日期:2016-12-07 14:03:402015年迎新春徽章
日期:2015-03-04 09:50:28技术图书徽章
日期:2018-09-13 11:26:01
4 [报告]
发表于 2010-05-28 17:41 |只看该作者
什么时候开始出错的?
以前有备份成功吗?

论坛徽章:
0
5 [报告]
发表于 2010-05-28 17:44 |只看该作者
呵呵,从来就没有成功过,新开局的,但是数据库部分已经上线。就差备份这点了,压力大啊。

弄不明白,为什么手动备份可以,自动备份就不行。看了很多帖子说nsrsyb的问题,但没能解决。

谢谢

论坛徽章:
1
荣誉版主
日期:2011-11-23 16:44:17
6 [报告]
发表于 2010-05-28 18:04 |只看该作者
说了半天,nsrsyb的脚本贴出来啊


普通用户可以,root不行,脚本变量有问题吧

论坛徽章:
0
7 [报告]
发表于 2010-05-28 18:08 |只看该作者
哈哈,看见有关于networker的帖子就有您在。

除了加了SYBASE=xxxxxx,其他都没动

###########################################################################
# This value MUST be set for scheduled backups to run.
###########################################################################
#
# Variable: SYBASE
# Default value:
# Description: Specifies where the Sybase RDBMS is installed.
# For ASE version 12.0, set this variable to the directory
# where Sybase OCS version 12.5 software is installed.
# For ASE version 12.5 and later, set this variable to the
# directory where Sybase ASE software is installed.
# This *must* be set for scheduled backups to be able to find the
# Sybase libraries and executables.
#
SYBASE=/opt/sybase
. $SYBASE/SYBASE.sh
###########################################################################


#
# Configuration variables, modifiable by users.
#
###########################################################################
# The following lines may be edited to change the default settings.  These
# are for advanced tailoring of backups and should be edited carefully.
###########################################################################

#
# Variable: USE_CONSISTENCY_CHECK
# Default value: true
# If set, this puts a consistency check into the PRECMD variable.
# To disable this, set the USE_CONSISTENCY_CHECK value as follows:
# USE_CONSISTENCY_CHECK=
#
# If this is on, it will set the PRECMD to do a consistency check.
# If you need to customize the PRECMD to do other work, unset this
# value and perform any desired consistency checks in your own
# script.
#
USE_CONSISTENCY_CHECK=true

#
# Variable: DBCCOPT
# Default value: none
# If set, these are the options that the nsrsybcc program uses in its
# consistency check.  If not set, the options will be the program defaults
# from the nsrsybcc program.
#
DBCCOPT=

#
# Variable: PRECMD
# Default value:
# Description: This variable can be used to run a command before nsrsybsv.
#
# If USE_CONSISTENCY_CHECK is set, the PRECMD will be constructed to perform
# a nsrsybcc check on the given saveset.  A PRECMD that you set here will
# not be overwritten by a consistency check, however.
#
PRECMD=

#
# Variable: POSTCMD
# Default value: NONE
# Description: This variable can be used to run a command after nsrsybsv
# has completed.
#
POSTCMD=

#
# Variable: BACKUP_OPT
# Default value: none
# If set, these are the options that will be passed to the nsrsybsv
# program in addition to the ones set from savegrp.  This is useful
# for setting the debug level.
# Passing -N option is not recommended as it will be overwritten by
# what is passed from the savegroup.
#
#BACKUP_OPT="-D 4"
#
BACKUP_OPT=

#
# Variable: NSR_DATA_VOLUME_POOL
# Default value: none
# Description: If this variable is set to name a media pool, then database
# backups will be directed to the named media pool.
#
NSR_DATA_VOLUME_POOL=

#
# Variable: NSR_LOG_VOLUME_POOL
# Default value: none
# Description: If this variable is set to name a media pool, then
# transaction log backups will be directed to the named media pool.
#
NSR_LOG_VOLUME_POOL=

#
# Variable: NSR_COMPRESSION
# Default value: FALSE
# Description: This environment variable specifies whether client-side
# compression is performed on the data.
#
NSR_COMPRESSION=FALSE

#
# Variable: NSR_ENCRYPTION
# Default value: FALSE
# Description: This environment variable specifies whether encryption
# is used between the client and server.
#
NSR_ENCRYPTION=FALSE


您看我需要怎么改改?

论坛徽章:
10
处女座
日期:2015-01-22 16:08:50技术图书徽章
日期:2018-09-13 11:25:52技术图书徽章
日期:2018-09-13 11:25:45技术图书徽章
日期:2018-09-13 11:25:37技术图书徽章
日期:2018-09-13 11:25:29黑曼巴
日期:2018-06-04 09:03:192017金鸡报晓
日期:2017-01-10 15:19:56极客徽章
日期:2016-12-07 14:03:402015年迎新春徽章
日期:2015-03-04 09:50:28技术图书徽章
日期:2018-09-13 11:26:01
8 [报告]
发表于 2010-05-28 18:10 |只看该作者
完全不懂了

论坛徽章:
0
9 [报告]
发表于 2010-05-28 18:12 |只看该作者
本帖最后由 —_—!搏 于 2010-05-28 18:27 编辑
说了半天,nsrsyb的脚本贴出来啊


普通用户可以,root不行,脚本变量有问题吧
yddll 发表于 2010-05-28 18:04



    请问,脚本变量应该如何加呢。
   

   就是nsrsyb,这个脚本不能在root下成功运行

   或者说console 服务器不能用sybase用户调用nsrsyb脚本

   
   哪种方法能实现呢?

   谢谢

论坛徽章:
1
荣誉版主
日期:2011-11-23 16:44:17
10 [报告]
发表于 2010-05-28 18:38 |只看该作者
检查你的SYBASE变量是不是正确的
检查$SYBASE下的SYBASE.sh里的内容是符合现状,SYBASE.sh是安装sybase的时候,sybase为sybase用户创建的环境变量脚本,以root用户执行这个脚本,即是给root用户加载sybase用户的环境变量,有可能谁在安装sybase之后做过手工修改,而没有体现到这个脚本里去

另外,把USE_CONSISTENCY_CHECK注释掉
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP