[ Serial ] - SSHKeySet: privateKey=/home/tidb/.tiup/storage/cluster/clusters/tidb-test/ssh/id_rsa, publicKey=/home/tidb/.tiup/storage/cluster/clusters/tidb-test/ssh/id_rsa.pub
[Parallel] - UserSSH: user=tidb, host=host1
[Parallel] - UserSSH: user=tidb, host=host1
[Parallel] - UserSSH: user=tidb, host=host2
[Parallel] - UserSSH: user=tidb, host=host1
[Parallel] - UserSSH: user=tidb, host=host1
[Parallel] - UserSSH: user=tidb, host=host3
[Parallel] - UserSSH: user=tidb, host=host3
[Parallel] - UserSSH: user=tidb, host=host1
[Parallel] - UserSSH: user=tidb, host=host2
[Parallel] - UserSSH: user=tidb, host=host3
[Parallel] - UserSSH: user=tidb, host=host1
[Parallel] - UserSSH: user=tidb, host=host2
[ Serial ] - StartCluster
Starting component pd
Starting instance pd host3:2379
Starting instance pd host2:2379
Starting instance pd host1:2379
Start pd host1:2379 success
Start pd host3:2379 success
Start pd host2:2379 success
Starting component node_exporter
Starting instance host1
Start host1 success
Starting component blackbox_exporter
Starting instance host1
systmctl list-unit
Error: failed to start: pd host1:2379, please check the instance’s log(/data1/tidb-deploy/pd-2379/log) for more detail.: timed out waiting for port 9115 to be started after 2m0s
Verbose debug logs has been written to /home/tidb/.tiup/logs/tiup-cluster-debug-2021-04-13-12-24-03.log.
Error: run /home/tidb/.tiup/components/cluster/v1.4.0/tiup-cluster (wd:/home/tidb/.tiup/data/SUSp6Qz) failed: exit status 1
2)/data1/tidb-deploy/pd-2379/log和/home/tidb/.tiup/logs/tiup-cluster-debug-2021-04-13-12-24-03.log中没有任何实际内容
通过systemctl list-units可以看到blackbox_exporter-9115.service的服务在启动activating,和其他服务状态不一样,不知为何无法启动
atd.service loaded active running Job spooling tools
auditd.service loaded active running Security Auditing Service
avahi-daemon.service loaded active running Avahi mDNS/DNS-SD Stack
blackbox_exporter-9115.service loaded activating auto-restart blackbox_exporter service
host1 os-version Fail os vendor ol not supported
host1 cpu-cores Pass number of CPU cores / threads: 8
host1 swap Fail swap is enabled, please disable it for best performance
host1 memory Pass memory size is 0MB
host1 network Pass network speed of enp0s3 is 1000MB
host1 epoll-exclusive Fail epoll exclusive is not supported
host1 selinux Pass SELinux is disabled
host1 thp Pass THP is disabled
host1 command Fail numactl not usable, bash: numactl: command not found
Error: failed to start: pd celvpvm07848.us.oracle.com:2379, please check the instance’s log(/data1/tidb-deploy/pd-2379/log) for more detail.: timed out waiting for port 9115 to be started after 2m0s
Verbose debug logs has been written to /home/tidb/.tiup/logs/tiup-cluster-debug-2021-04-15-09-10-31.log.
Error: run /home/tidb/.tiup/components/cluster/v1.4.0/tiup-cluster (wd:/home/tidb/.tiup/data/SUdjQF7) failed: exit status 1
看shell参数没问题:
cat /data1/tidb-deploy/monitor-9100/scripts/run_blackbox_exporter.sh
#!/bin/bash
set -e
WARNING: This file was auto-generated. Do not edit!
All your edit might be overwritten!
DEPLOY_DIR=/data1/tidb-deploy/monitor-9100
cd “${DEPLOY_DIR}” || exit 1
exec > >(tee -i -a “/data1/tidb-deploy/monitor-9100/log/blackbox_exporter.log”)
exec 2>&1
EXPORTER_BIN=bin/blackbox_exporter/blackbox_exporter
if [ ! -f $EXPORTER_BIN ]; then
EXPORTER_BIN=bin/blackbox_exporter
fi
exec $EXPORTER_BIN
–web.listen-address=":9115"
–log.level=“info”
–config.file=“conf/blackbox.yml”