code: -7013.DMDSC 环境初始化实例报错

本文讲述了在DMDSC环境中,由于log_size配置过大导致初始化实例报错(-7013)的问题,提供了两种解决方案:修改dminit.ini以减小log_size,并扩展共享存储。详细步骤包括配置文件修改和调整共享磁盘容量。
摘要由CSDN通过智能技术生成

【场景说明】

DMDSC 环境初始化实例报错

【报错信息】

create rlog file +DMLOG/log/dsc1_log01.log failed, code: -7013.

dmdba@whx01 192.168.3.208 22:58:41 [pwd:~]$ $DM_HOME/bin/dminit control=/home/dmdba/dm8/data/dsc/config/dminit.ini
initdb V8
db version: 0x7000c
file dm.key not found, use default license!
License will expire on 2022-11-11
Normal of FAST
Normal of DEFAULT
Normal of RECYCLE
Normal of KEEP
Normal of ROLL

 log file path: +DMLOG/log/dsc0_log01.log


 log file path: +DMLOG/log/dsc0_log02.log


 log file path: +DMLOG/log/dsc1_log01.log


 log file path: +DMLOG/log/dsc1_log02.log

write to dir [+DMDATA/data/dsc].
create rlog file +DMLOG/log/dsc1_log01.log failed, code: -7013.

fail to init db.

可能的原因是:
log_size设置过大,此处需要创建4个log,故log_size必须小于+DMLOG磁盘组总大小的四分之一
我在dminit.ini 中配置的log_size=2048,但是我给共享磁盘asm log总大小为5G,所以报错

【问题处理】

● 方式1 修改dminit.ini
● 方式2 扩展共享存储

01| 方式1 修改配置文件dminit.ini

vi /home/dmdba/dm8/data/dsc/config/dminit.ini 
  db_name                  = dsc
  system_path              = +DMDATA/data
  main                     = +DMDATA/data/dsc/main.dbf
  main_size                = 128
  roll                     = +DMDATA/data/dsc/roll.dbf
  roll_size                = 128
  system                   = +DMDATA/data/dsc/system.dbf
  system_size              = 128
  ctl_path                 = +DMDATA/data/dsc/dm.ctl
  ctl_size                 = 8
  log_size                 = 1024       # 这里修成1024即1G
  dcr_path                 = /dev/raw/raw1
  dcr_seqno                = 0
  auto_overwrite           = 1
  PAGE_SIZE                = 32
  CASE_SENSITIVE           = Y
  CHARSET                  = 0

[DSC0]
  config_path              = /home/dmdba/dm8/data/dsc/config/dsc0_config
  port_num                 = 5236
  mal_host                 = 192.168.3.128
  mal_port                 = 5736
  log_path                 = +DMLOG/log/dsc0_log01.log
  log_path                 = +DMLOG/log/dsc0_log02.log 
[DSC1]
  config_path              = /home/dmdba/dm8/data/dsc/config/dsc1_config
  port_num                 = 5236
  mal_host                 = 192.168.3.129
  mal_port                 = 5737
  log_path                 = +DMLOG/log/dsc1_log01.log
  log_path                 = +DMLOG/log/dsc1_log02.log

重新初始化实例

dmdba@whx01 10.12.10.121 10:23:33 [pwd:~]$ $DM_HOME/bin/dminit control=/home/dmdba/dm8/data/dsc/config/dminit.ini
initdb V8
db version: 0x7000c
file dm.key not found, use default license!
License will expire on 2022-11-11
Normal of FAST
Normal of DEFAULT
Normal of RECYCLE
Normal of KEEP
Normal of ROLL

log file path: +DMLOG/log/dsc0_log01.log


log file path: +DMLOG/log/dsc0_log02.log


log file path: +DMLOG/log/dsc1_log01.log


log file path: +DMLOG/log/dsc1_log02.log

FILE "/home/dmdba/dm8/data/dsc/config/dsc0_config/dm.ini" has already existed
FILE "/home/dmdba/dm8/data/dsc/config/dsc0_config/sqllog.ini" has already existed
FILE "/home/dmdba/dm8/data/dsc/config/dsc1_config/dm.ini" has already existed
FILE "/home/dmdba/dm8/data/dsc/config/dsc1_config/sqllog.ini" has already existed
FILE "+DMDATA/data/dsc/dm.ctl" has already existed
FILE "+DMLOG/log/dsc0_log01.log" has already existed
FILE "+DMLOG/log/dsc0_log02.log" has already existed
write to dir [+DMDATA/data/dsc].
create dm database success. 2022-05-12 10:23:37    -- 成功

02| 方式2 扩展共享存储大小

● 关闭AB虚拟机,调整A的磁盘大小后,重启AB服务器
● 划分新的磁盘,绑定成新的裸设备,添加到LOG磁盘组中
● 重新前台启动CSS、ASM服务
● 执行初始化实例

附:友情链接链接:

达梦技术社区:https://eco.dameng.com

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值