【场景说明】

已经将

D

M

H

O

M

E

DM_HOME环境变量写入

DMH​OME环境变量写入PATH的情况下,单独执行dmcss 命令报错 带上绝对路径执行也会出现报错信息,有的时候也会成功 注意:这个报错存在于DM很多命令中,即便配置了环境变量也会报错,如dmasmsvr

【报错信息】

以下可以看到,仅执行dmcss help 都会报错

dmdba@whx01 192.168.3.208 22:31:35 [pwd:~]$ dmcss DCR_INI=/home/dmdba/dm8/data/dsc/config/dmdcr.ini

dmcss: error while loading shared libraries: libdmcalc.so: cannot open shared object file: No such file or directory

dmdba@whx01 192.168.3.208 22:32:54 [pwd:~/dm8/data/dsc/config]$ ll /home/dmdba/dm8/data/dsc/config/dmdcr.ini

-rw-r--r--. 1 dmdba dinstall 600 May 11 22:31 /home/dmdba/dm8/data/dsc/config/dmdcr.ini

dmdba@whx01 192.168.3.208 22:35:45 [pwd:~]$ dmcss help

dmcss: error while loading shared libraries: libdmcalc.so:

cannot open shared object file: No such file or directory

dmdba@whx01 192.168.3.208 22:36:38 [pwd:~/dm8/dm_home/bin]$ dmcss DCR_INI=/home/dmdba/dm8/data/dsc/config/dmdcr.ini

DMCSS V8

Vote disk check n_group:[0] failed, please check and try again.

dmcss startup failed:[CODE:-13217],error info:磁盘checksum校验失败

【问题原因】

这种报错应该属于DM系统本身的bug,处理的方法也很简单 ● 将路径切换到$DM_HOME/bin下,再执行命令

【问题处理】

dmdba@whx01 192.168.3.208 22:36:53 [pwd:~]$ cd $DM_HOME/bin

dmdba@whx01 192.168.3.208 22:36:54 [pwd:~/dm8/dm_home/bin]$ dmasmcmd

DMASMCMD V8

ASM>init dcrdisk '/dev/raw/raw1' from '/home/dmdba/dm8/data/dsc/config/dmdcr_cfg.ini' identified by 'admin1234'

[Trace]DG 126 allocate 4 extents for file 0xfe000002.

ASM>init votedisk '/dev/raw/raw2' from '/home/dmdba/dm8/data/dsc/config/dmdcr_cfg.ini'Used time: 53.427(ms).

[Trace]DG 125 allocate 4 extents for file 0xfd000002.

Used time: 16.095(ms).

ASM>

ASM>exit

dmdba@whx01 192.168.3.208 22:39:54 [pwd:~/dm8/dm_home/bin]$ dmcss DCR_INI=/home/dmdba/dm8/data/dsc/config/dmdcr.ini

DMCSS V8

DMCSS IS READY

[CSS]: 设置EP CSS0[0]为控制节点

附:友情链接链接:

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

参考阅读

评论可见,请评论后查看内容,谢谢!!!评论后请刷新页面。