一、DSC 安装时的报错解决方法
报错一、[ASM]: 通知EP ASM1[0]启动失败,强制halt
[ASM]: 通知EP ASM1[0]启动失败,强制halt
shutdown ep[0] abort!
[2023-02-23 18:34:21:654] [ASM]: 设置EP [255]为控制节点
[2023-02-23 18:34:22:663] [ASM]: 设置命令[SYS HALT], 目标站点 ASM1[0], 命令序号[16]
[2023-02-23 18:34:22:664] [ASM]: 设置EP ASM1[0]为控制节点
[2023-02-23 18:34:22:665] [ASM]: 设置命令[START NOTIFY], 目标站点 ASM1[0], 命令序号[18]
后台日志
tail -f dm_ASM1_202302.log
2023-02-23 10:41:37.079 [INFO] dmasmsvr P0000009785 T0000000000000009790 dm_mal_recv_thd started, src_site:0, dest_site:0
2023-02-23 10:41:37.081 [INFO] dmasmsvr P0000009785 T0000000000000009795 mal_lsnr_thread created success, port_num=7236
2023-02-23 10:41:38.083 [INFO] dmasmsvr P0000009785 T0000000000000009796 mal_site_ctl_link_create startup from mal_site(0) to mal_site(0)!
2023-02-23 10:41:38.084 [INFO] dmasmsvr P0000009785 T0000000000000009796 mal_site_magic_gen site_magic[59929], src_site:0, dst_site:0
2023-02-23 10:41:38.084 [INFO] dmasmsvr P0000009785 T0000000000000009796 site[0] mal_site_ctl_port_set to site[0, IP: 192.168.111.11, port_num: 7236], socket handle = 11, site_magic = 59929
2023-02-23 10:41:38.084 [INFO] dmasmsvr P0000009785 T0000000000000009795 site[0] mal_site_data_port_set from site[0, IP: 192.168.111.11, port_num: 7236], socket handle = 12, site_magic = 59929
2023-02-23 10:41:38.084 [INFO] dmasmsvr P0000009785 T0000000000000009790 mal_site_port_get site_magic:59929, src_site:0, dst_site:0
2023-02-23 10:41:38.084 [INFO] dmasmsvr P0000009785 T0000000000000009789 mal_site_port_get site_magic:59929, src_site:0, dst_site:0
2023-02-23 10:41:38.084 [ERROR] dmasmsvr P0000009785 T0000000000000009796 Can't connect to DM server on '192.168.111.12' port(7236) errno(113)
解决方法
排查之后发现 telnet 192.168.111.12 7336 报错找不到主机路由
原因是:firewalld、selinux 没关闭
cat /etc/selinux/config
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of three values:
# targeted - Targeted processes are protected,
# minimum - Modification of targeted policy. Only selected processes are protected.
# mls - Multi Level Security protection.
SELINUXTYPE=targeted
setenfore 0
systemctl stop firewalld
systemctl disable --now firewalld
两个节点重启dmcss、dmasm 正常
[2023-02-23 18:55:42:102] [CSS]: 重启本地DB实例,命令:[/dmdsc8/dmdbms/bin/dmserver path=/dmdsc8/dsc1_config/dm.ini dcr_ini=/dmdsc8/config/dmdcr.ini]
Waitpid error!
file dm.key not found, use default license!
open ini file /dmdsc8/dsc1_config/dm.ini failed!
dmserver startup failed, code = -140 [Can not access INI file]
nsvr_ini_file_read failed, [code: -140]