vertica数据库自动启动未运行

问题描述 投票:0回答:1

我已安装了具有3个主机的vertica群集。我想在启动主机时自动启动数据库(当所有主机都关闭时,现在我打开它们)。在/etc/init.d/中的每个主机上,我添加了脚本myscript.sh:

sudo -u myuser /opt/vertica/bin/admintools -t start_db -d test

当我手动运行此脚本时,它可以工作并且数据库正在启动。但是,在操作系统启动时启动脚本时,数据库不会启动。在adminTools.log日志中,我没有看到启动错误,仅看到了预期的vsql命令...,并且db test中的所有节点都处于状态DOWN

2020-06-08 16:42:08.526 agent/752:0x7f195dffb700 [vsql._just_connect] <INFO> pexpecting vsql command: /opt/vertica/bin/vsql --no-vsqlrc -n  -p 5433 -U myuser -h 192.168.0.5 test -P pager -A
2020-06-08 16:42:08.984 agent/752:0x7f195dffb700 [vsql._just_connect] <INFO> pexpecting vsql command: /opt/vertica/bin/vsql --no-vsqlrc -n  -p 5433 -U myuser -h 192.168.0.6 test -P pager -A
2020-06-08 16:42:09.459 agent/752:0x7f195dffb700 [vsql._just_connect] <INFO> pexpecting vsql command: /opt/vertica/bin/vsql --no-vsqlrc -n  -p 5433 -U myuser -h 192.168.0.7 test -P pager -A
2020-06-08 16:43:05.639 admintools/3701:0x7f456298c740 [adminExec.getCollapsedClusterState] <INFO> All nodes in db test are in state DOWN

为什么?

vertica
1个回答
0
投票

是,我的操作系统是Centos 7

但是Verticad服务不起作用

我运行systemctl start verticad

然后我运行:systemctl status verticad

verticad.service - Vertica server restart oneshot
Loaded: loaded (/etc/systemd/system/verticad.service; enabled; vendor preset: disabled)
Active: inactive (dead) since Thu 2020-06-11 07:19:43 MSK; 38min ago
Process: 650 ExecStart=/opt/vertica/sbin/verticad start (code=exited, status=0/SUCCESS)
Main PID: 650 (code=exited, status=0/SUCCESS)

    Jun 11 07:19:09 verticaserv1 systemd[1]: Starting Vertica server restart oneshot...
    Jun 11 07:19:13 verticaserv1 su[706]: (to mydba) root on none
    Jun 11 07:19:43 verticaserv1 verticad[650]: Vertica: start OK for users: mydba
    Jun 11 07:19:43 verticaserv1 verticad[650]: [  OK  ]
    Jun 11 07:19:43 verticaserv1 systemd[1]: Started Vertica server restart oneshot.

在日志中(/opt/vertica/log/verticad.log和/ var / log / messages),我只能看到:

vertica process is not running
Vertica: start not OK
© www.soinside.com 2019 - 2024. All rights reserved.