问题现象
ps -ef | grep yas 查看无yasom和yasagent进程,且在{数据库安装目录}/om/{数据库名称}的目录下没有conf、data、log等目录,确定数据库不是用yasboot安装,是用脚本安装的
问题的风险及影响
非yasboot安装,ycm无法完成托管,无法监控
问题影响的版本
不涉及ycm的版本问题
问题发生原因
数据库版本太旧或安装数据库的人没有按照规范使用yasboot安装
解决方法及规避方式
将数据库先托管到yasom中,再托管到ycm中
问题分析和处理过程
(1)生成配置文件
-- ip必须是本机ip,install-path不能和安装的数据库path重重复
./bin/yasboot package config gen --cluster yasdb -u yashan -p Cod-2024 --ip 192.168.39.70 --install-path /home/yashan/yashandb/yasdb_yasom -t se
[yashan@KylinV10 yasdb_yasom]$ ./bin/yasboot package config gen --cluster yasdb -u yashan -p Cod-2024 --ip 192.168.39.70 --install-path /home/yashan/yashandb/yasdb_yasom -t se
192.168.39.70
192.168.39.70:1688 is already used
hostid | group | node_type | node_name | listen_addr | din_addr | replication_addr | data_path
--------------------------------------------------------------------------------------------------------------------------------------------------------
host0001 | dbg1 | db | 1-1 | 192.168.39.70:1688 | 192.168.39.70:1689 | 192.168.39.70:1690 | /home/yashan/yashandb/yasdb_yasom/data/yasdb
----------+-------+-----------+-----------+--------------------+--------------------+