GBase 8s
备份恢复
问答

第三方xbsa备份时调BSAGetEnvironment()之后报错:ASSERT: file bar_unix.c line 1318 - contact product support

发表于2025-05-20 16:23:16195次浏览11个评论

为提高效率,提问时请提供以下信息,问题描述清晰可优先响应。

【GBase版本】: GBase8sV8.8_3.6.3_3X1_1_e10e03_RHEL6_x86_64

【操作系统】: x86 centos7

【CPU】: 虚拟机 8核

【问题描述】*: 用自己开发的xbsa.so,备份命令“onbar -b -L 0”,日志显示调完BSAGetEnvironment()之后assert报错。【同一个so,备份恢复informix是可以的,而且看informix的dbug.log里也没有调BSAGetEnvironment()】。

bar_act.log:

 2025-05-20 15:38:07 11947  11945 Working with 1.1.1 as generic storage manager.
2025-05-20 15:38:07 11947  11945 Successfully connected to Storage Manager.
2025-05-20 15:38:07* 11947  11945 (-43087) WARNING: BAR_TIMEOUT The storage manager progress might be stalled for
at least 18 minutes.
2025-05-20 15:58:42* 11947  11945 ASSERT: file bar_unix.c line 1318 - contact product support
2025-05-20 15:58:42* 11947  11945 See also: /opt/gbase/tmp/core

================================================

bar_dbug.log:

2025-05-20 16:17:58 11550  11548 bar_get_hostname: enter                                                                                                                                             

 2025-05-20 16:17:58 11550  11548 bar_get_hostname: input new_svr gbaseserver                                                                                                                         

 2025-05-20 16:17:58 11550  11548 bar_get_hostname: output hostname 192.168.100.131                                                                                                                   

 2025-05-20 16:17:58 11550  11548 bar_get_hostname: return 0 (0x00)                                                                                                                                   

 2025-05-20 16:17:58 11550  11548 bar_get_fname: enter                                                                                                                                                

 2025-05-20 16:17:58 11550  11548 bar_get_fname: output fname: /opt/gbase/etc/ixbar.33                                                                                                                

 2025-05-20 16:17:58 11550  11548 bar_get_fname: return 0 (0x00)                                                                                                                                      

 2025-05-20 16:17:58 11550  11548 bar_get_fname: enter                                                                                                                                                

 2025-05-20 16:17:58 11550  11548 bar_get_fname: output fname: /opt/gbase/etc/oncfg_gbaseserver.33                                                                                                    

 2025-05-20 16:17:58 11550  11548 bar_get_fname: return 0 (0x00)                                                                                                                                      

 2025-05-20 16:17:58 11550  11548 bar_get_fname: enter                                                                                                                                                

 2025-05-20 16:17:58 11550  11548 bar_get_fname: output fname: /opt/gbase/etc/sqlhosts.gbaseserver                                                                                                    

 2025-05-20 16:17:58 11550  11548 bar_get_fname: return 0 (0x00)                                                                                                                                      

 2025-05-20 16:17:58 11550  11548 setting progress_freq to 0                                                                                                                                          

 2025-05-20 16:17:58 11550  11548 setting alarm_freq to 240                                                                                                                                           

 2025-05-20 16:17:58 11550  11548 setting bar_timeout to 600                                                                                                                                          

 2025-05-20 16:17:58 11550  11548 read_config:server  gbaseserver:33  max_backup 1  retry    1  actfd        3                                                                                        

 2025-05-20 16:17:58 11550  11548             debugfd 4  debug      9  bootfd   -1  log_blks     10000                                                                                                

 2025-05-20 16:17:58 11550  11548             buf size   65536  buf count 20  ltapedev /opt/gbase/ltapedev                                                                                            

 2025-05-20 16:17:58 11550  11548 backup filter , restore filter                                                                                                                                      

 2025-05-20 16:17:58 11550  11548 read_config: return 0 (0x00)                                                                                                                                        

 2025-05-20 16:17:58 11550  11548 bar_srv_status: enter                                                                                                                                               

 2025-05-20 16:17:58 11550  11548 bar_srv_status: return 5 (0x05)                                                                                                                                     

 2025-05-20 16:17:58 11550  11548 bar_main: server status 5                                                                                                                                           

 2025-05-20 16:17:58 11550  11548 do_args: enter                                                                                                                                                      

 2025-05-20 16:17:58 11550  11548 do_args: input status 5 argc 4 argv 0x7ffdd9226e40                                                                                                                  

 2025-05-20 16:17:58 11550  11548 do_args: got command, -b                                                                                                                                            

 2025-05-20 16:17:58 11550  11548 do_args: got command, -L                                                                                                                                            

 2025-05-20 16:17:58 11550  11548 do_args: got command option, 0                                                                                                                                      

 2025-05-20 16:17:58 11550  11548 do_args: workflags 3 (0x3)                                                                                                                                          

 2025-05-20 16:17:58 11550  11548 do_args: return 0 (0x00)                                                                                                                                            

 2025-05-20 16:17:58 11550  11548 bar_siginit: enter                                                                                                                                                  

 2025-05-20 16:17:58 11550  11548 bar_siginit: return                                                                                                                                                 

 2025-05-20 16:17:58 11550  11548 bar_alarm: enter                                                                                                                                                    

 2025-05-20 16:17:58 11550  11548 bar_alarm: input 240 seconds                                                                                                                                        

 2025-05-20 16:17:58 11550  11548 bar_alarm: return 0 (0x00)                                                                                                                                          

 2025-05-20 16:17:58 11550  11548 bar_is_drsec: enter                                                                                                                                                 

 2025-05-20 16:17:58 11550  11548 bar_is_drsec: Server type '0'                                                                                                                                       

 2025-05-20 16:17:58 11550  11548 bar_is_drsec: return 0 (0x00)                                                                                                                                       

 2025-05-20 16:17:58 11550  11548 bar_exec: enter                                                                                                                                                     

 2025-05-20 16:17:58 11550  11548 BSAQueryApi: enter                                                                                                                                                  

 2025-05-20 16:17:58 11550  11548 bar_loadXBSA: enter                                                                                                                                                 

 2025-05-20 16:17:58 11550  11548 bar_loadXBSA: on entry shl_lib_open = 0                                                                                                                             

 2025-05-20 16:17:58 11550  11548 bar_loadXBSA: return 0 (0x00)                                                                                                                                       

 2025-05-20 16:17:58 11550  11548 BSAQueryApiVersion: enter                                                                                                                                           

 2025-05-20 16:17:58 11550  11548 bar_alarm: enter                                                                                                                                                    

 2025-05-20 16:17:58 11550  11548 bar_alarm: input 240 seconds                                                                                                                                        

 2025-05-20 16:17:58 11550  11548 bar_alarm: return 240 (0xf0)                                                                                                                                        

 2025-05-20 16:17:58 11550  11548 BSAQueryApiVersion: return                                                                                                                                          

 2025-05-20 16:17:58 11550  11548 barQueryApi: BSA version 1.1.1                                                                                                                                      

 2025-05-20 16:17:58 11550  11548 BSAGetLastError: enter                                                                                                                                              

 2025-05-20 16:17:58 11550  11548 bar_alarm: enter                                                                                                                                                    

 2025-05-20 16:17:58 11550  11548 bar_alarm: input 240 seconds                                                                                                                                        

 2025-05-20 16:17:58 11550  11548 bar_alarm: return 240 (0xf0)                                                                                                                                        

 2025-05-20 16:17:58 11550  11548 BSAGetLastError: return 0 (0x00)                                                                                                                                    

 2025-05-20 16:17:58 11550  11548 BSAQueryServiceProvider: enter                                                                                                                                      

 2025-05-20 16:17:58 11550  11548 bar_alarm: enter                                                                                                                                                    

 2025-05-20 16:17:58 11550  11548 bar_alarm: input 240 seconds                                                                                                                                        

 2025-05-20 16:17:58 11550  11548 bar_alarm: return 240 (0xf0)                                                                                                                                        

 2025-05-20 16:17:58 11550  11548 BSAQueryServiceProvider: return 0 (0x00)                                                                                                                            

 2025-05-20 16:17:58 11550  11548 barQueryApi: set ccb->bar_sm to 1.1.1                                                                                                                               

 2025-05-20 16:17:58 11550  11548 macro: set ccb->bar_sm_code to 0                                                                                                                                    

 2025-05-20 16:17:58 11550  11548 barQueryApi: set ccb->bsa_ses_style to 0                                                                                                                            

 2025-05-20 16:17:58 11550  11548 barBsaInit: enter                                                                                                                                                   

 2025-05-20 16:17:58 11550  11548 initObjDesc: enter                                                                                                                                                  

 2025-05-20 16:17:58 11550  11548 initObjDesc: input: obj_desc is NULL                                                                                                                                

 2025-05-20 16:17:58 11550  11548 initObjOwner: enter                                                                                                                                                 

 2025-05-20 16:17:58 11550  11548 initObjOwner:bsa owner GBASEDBT app owner                                                                                                                           

 2025-05-20 16:17:58 11550  11548 initObjOwner: return                                                                                                                                                

 2025-05-20 16:17:58 11550  11548 buildObjName: enter                                                                                                                                                 

 2025-05-20 16:17:58 11550  11548 buildObjName: obj_desc is NULL                                                                                                                                      

 2025-05-20 16:17:58 11550  11548 buildObjName: set server_name to gbaseserver                                                                                                                        

 2025-05-20 16:17:58 11550  11548 buildObjName: output objectSpaceName /gbaseserver, pathName /gbaseserver/*                                                                                          

 2025-05-20 16:17:58 11550  11548 buildObjName: return 0 (0x00)                                                                                                                                       

 2025-05-20 16:17:58 11550  11548 initObjDesc: output: object owner      name                          createTime                                                                                     

 2025-05-20 16:17:58 11550  11548 initObjDesc: output: GBASEDBT          /gbaseserver /gbaseserver/*                    0  0  0  0  0  0                                                              

 2025-05-20 16:17:58 11550  11548 initObjDesc: output: copytype copyid        restoreOrder    size  resource type status desc objectInfo                                                              

 2025-05-20 16:17:58 11550  11548 initObjDesc: output: 3          0 0               0 0          0 0        4    1                                                                                    

 2025-05-20 16:17:58 11550  11548 initObjDesc: return                                                                                                                                                 

 2025-05-20 16:17:58 11550  11548 barBsaInit: envtab[0] ISM_SERVER=192.168.100.131                                                                                                                    

 2025-05-20 16:17:58 11550  11548 barBsaInit: envtab[1] ISM_DATA_VOLUME_POOL=ISMData                                                                                                                  

 2025-05-20 16:17:58 11550  11548 barBsaInit: envtab[2] ISM_LOG_VOLUME_POOL=ISMLogs                                                                                                                   

 2025-05-20 16:17:58 11550  11548 barBsaInit: envtab[3] ISM_SAVESET_NAME=GBASEDBT:/gbaseserver/*                                                                                                      

 2025-05-20 16:17:58 11550  11548 BSAInit: enter                                                                                                                                                      

 2025-05-20 16:17:58 11550  11548 BSAInit: input tokenPtr  owner GBASEDBT                                                                                                                             

 2025-05-20 16:17:58 11550  11548 bar_alarm: enter                                                                                                                                                    

 2025-05-20 16:17:58 11550  11548 bar_alarm: input 240 seconds                                                                                                                                        

 2025-05-20 16:17:58 11550  11548 bar_alarm: return 240 (0xf0)                                                                                                                                        

 2025-05-20 16:17:58 11550  11548 BSAInit: return 0 (0x00)                                                                                                                                            

 2025-05-20 16:17:58 11550  11548 barBsaInit: return 0 (0x00)                                                                                                                                         

 2025-05-20 16:17:58 11550  11548 barGetEnvironment: enter                                                                                                                                            

 2025-05-20 16:17:58 11550  11548 initObjOwner: enter                                                                                                                                                 

 2025-05-20 16:17:58 11550  11548 initObjOwner:bsa owner GBASEDBT app owner                                                                                                                           

 2025-05-20 16:17:58 11550  11548 initObjOwner: return                                                                                                                                                

 2025-05-20 16:17:58 11550  11548 BSAGetEnvironment: enter                                                                                                                                            

 2025-05-20 16:17:58 11550  11548 bar_alarm: enter                                                                                                                                                    

 2025-05-20 16:17:58 11550  11548 bar_alarm: input 240 seconds                                                                                                                                        

 2025-05-20 16:17:58 11550  11548 bar_alarm: return 240 (0xf0)                                                                                                                                        

 2025-05-20 16:17:58 11550  11548 BSAGetEnvironment: return 0 (0x00)                                                                                                                                  

 2025-05-20 16:17:58 11550  11548 barGetEnvironment: return 0 (0x00)                                                                                                                                  

 2025-05-20 16:17:58* 11550  11548 bar_sighdlr: enter                                                                                                                                                 

 2025-05-20 16:17:58* 11550  11548 bar_sighdlr: input signo: 11                                                                                                                                       

 2025-05-20 16:17:58* 11550  11548 get_pid: enter                                                                                                                                                     

 2025-05-20 16:17:58* 11550  11548 getpid: return 11550 (0x2d1e)                                                                                                                                      

 2025-05-20 16:17:58* 11550  11548 barEndTxn: enter                                                                                                                                                   

 2025-05-20 16:17:58* 11550  11548 barEndTxn: return 0 (0x00)                                                                                                                                         

 2025-05-20 16:17:58* 11550  11548 barTerminate: enter                                                                                                                                                

 2025-05-20 16:17:58* 11550  11548 BSATerminate: enter                                                                                                                                                

 2025-05-20 16:17:58* 11550  11548 bar_alarm: enter                                                                                                                                                   

 2025-05-20 16:17:58* 11550  11548 bar_alarm: input 240 seconds                                                                                                                                       

 2025-05-20 16:17:58* 11550  11548 bar_alarm: return 240 (0xf0)                                                                                                                                       

 2025-05-20 16:17:58* 11550  11548 BSATerminate: return 0 (0x00)                                                                                                                                      

 2025-05-20 16:17:58* 11550  11548 barTerminate: return 141 (0x8d)                                                                                                                                    

 2025-05-20 16:17:58* 11550  11548 bar_debug: enter                                                                                                                                                   

 2025-05-20 16:17:58* 11550  11548 bar_debug: Called from file bar_unix.c line 1318

评论

登录后才可以发表评论
用户头像
路路路发表于 1年前
请稍等
用户头像
liaosnet发表于 1年前
INFORMIX的环境变量,跟GBase 8s的环境变量还是不一样的。请确认程序中环境变量的需求吧。
GBase用户27335发表于 1年前
@liaosnet:请问gbase的环境变量需求是什么呢,我看文档里也没写
用户头像
liaosnet发表于 1年前
@GBase用户27335:环境变量中的INFORMIX,全换成GBASEDBT。
BTW:指的是你xbsa需要的环境变量。
GBase用户27335发表于 1年前
@liaosnet:但是我备份informix并不需要额外的环境变量,目前xbsa只是备到磁盘,也不需要环境变量……
GBase用户27335发表于 1年前
@liaosnet:我看的是《GBase 8s 备份与恢复指南》,里面提到一本《GBase 8s Storage Manager 管理员指南》这个还找不到
用户头像
曾阿牛发表于 1年前
@GBase用户27335:先配置PSM,在PSM里面试试
用户头像
levvel发表于 8个月前
给你点个赞
用户头像
levvel发表于 8个月前
我看好你哟!
GBase用户47954发表于 3个月前
感谢作者的精彩分享!
GBase用户47954发表于 3个月前
感谢作者的精彩分享!