【场景说明】
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