Hi TiDB顧問們 你們好,
根據官網以下TiKV配置文件參數做配置: (yaml檔案在附件)
https://docs.pingcap.com/zh/tidb/stable/tikv-configuration-file
在進行TiUP佈署時正常如下,但在啟動時會無法啟動TiKV,查看log,錯誤訊息為:
[FATAL] [lib.rs:483] [“couldn’t find the OPTIONS file”]
[tidb@tidb01 ~]$ tiup cluster deploy tidb-test v4.0.6 ./topology.yaml --user tidb -i /home/tidb/.ssh/id_rsa
Starting component cluster
: /home/tidb/.tiup/components/cluster/v1.1.2/tiup-cluster deploy tidb-test v4.0.6 ./topology.yaml --user tidb -i /home/tidb/.ssh/id_rsa
Please confirm your topology:
tidb Cluster: tidb-test
tidb Version: v4.0.6
Type Host Ports OS/Arch Directories
pd 192.168.33.11 2379/2380 linux/x86_64 /tidb-deploy/pd-2379,/tidb-data/pd-2379
pd 192.168.33.12 2379/2380 linux/x86_64 /tidb-deploy/pd-2379,/tidb-data/pd-2379
pd 192.168.33.13 2379/2380 linux/x86_64 /tidb-deploy/pd-2379,/tidb-data/pd-2379
tikv 192.168.33.11 20160/20180 linux/x86_64 /tidb-deploy/tikv-20160,/tidb-data/tikv-20160
tikv 192.168.33.12 20160/20180 linux/x86_64 /tidb-deploy/tikv-20160,/tidb-data/tikv-20160
tikv 192.168.33.13 20160/20180 linux/x86_64 /tidb-deploy/tikv-20160,/tidb-data/tikv-20160
tidb 192.168.33.11 4000/10080 linux/x86_64 /tidb-deploy/tidb-4000
tidb 192.168.33.12 4000/10080 linux/x86_64 /tidb-deploy/tidb-4000
tidb 192.168.33.13 4000/10080 linux/x86_64 /tidb-deploy/tidb-4000
tiflash 192.168.33.14 9000/8123/3930/20170/20292/8234 linux/x86_64 /tidb-deploy/tiflash-9000,/tidb-data/tiflash-9000
prometheus 192.168.33.14 9090 linux/x86_64 /tidb-deploy/prometheus-8249,/tidb-data/prometheus-8249
grafana 192.168.33.14 3000 linux/x86_64 /tidb-deploy/grafana-3000
alertmanager 192.168.33.14 9093/9094 linux/x86_64 /tidb-deploy/alertmanager-9093,/tidb-data/alertmanager-9093
Attention:
1. If the topology is not what you expected, check your yaml file.
2. Please confirm there is no port/directory conflicts in same host.
Do you want to continue? [y/N]: y
- Generate SSH keys … Done
- Download TiDB components
- Download pd:v4.0.6 (linux/amd64) … Done
- Download tikv:v4.0.6 (linux/amd64) … Done
- Download tidb:v4.0.6 (linux/amd64) … Done
- Download tiflash:v4.0.6 (linux/amd64) … Done
- Download prometheus:v4.0.6 (linux/amd64) … Done
- Download grafana:v4.0.6 (linux/amd64) … Done
- Download alertmanager:v0.17.0 (linux/amd64) … Done
- Download node_exporter:v0.17.0 (linux/amd64) … Done
- Download blackbox_exporter:v0.12.0 (linux/amd64) … Done
- Initialize target host environments
- Prepare 192.168.33.11:22 … Done
- Prepare 192.168.33.12:22 … Done
- Prepare 192.168.33.13:22 … Done
- Prepare 192.168.33.14:22 … Done
- Copy files
- Copy pd → 192.168.33.11 … Done
- Copy pd → 192.168.33.12 … Done
- Copy pd → 192.168.33.13 … Done
- Copy tikv → 192.168.33.11 … Done
- Copy tikv → 192.168.33.12 … Done
- Copy tikv → 192.168.33.13 … Done
- Copy tidb → 192.168.33.11 … Done
- Copy tidb → 192.168.33.12 … Done
- Copy tidb → 192.168.33.13 … Done
- Copy tiflash → 192.168.33.14 … Done
- Copy prometheus → 192.168.33.14 … Done
- Copy grafana → 192.168.33.14 … Done
- Copy alertmanager → 192.168.33.14 … Done
- Copy node_exporter → 192.168.33.11 … Done
- Copy node_exporter → 192.168.33.12 … Done
- Copy node_exporter → 192.168.33.13 … Done
- Copy node_exporter → 192.168.33.14 … Done
- Copy blackbox_exporter → 192.168.33.11 … Done
- Copy blackbox_exporter → 192.168.33.12 … Done
- Copy blackbox_exporter → 192.168.33.13 … Done
- Copy blackbox_exporter → 192.168.33.14 … Done
- Check status
Deployed clustertidb-test
successfully, you can start the cluster viatiup cluster start tidb-test
tiup cluster start tidb-test
Error: failed to start tikv: tikv 192.168.33.11:20160 failed to start: timed out waiting for port 20160 to be started after 2m0s, please check the log of the instance: timed out waiting for port 20160 to be started after 2m0s
查看TiKV log,訊息如下:
[2020/09/29 02:17:20.280 +00:00] [FATAL] [lib.rs:483] [“couldn’t find the OPTIONS file”] [backtrace="stack backtrace:
0: tikv_util::set_panic_hook::{{closure}}
at components/tikv_util/src/lib.rs:482
1: std::panicking::rust_panic_with_hook
at src/libstd/panicking.rs:475
2: std::panicking::begin_panic
at /rustc/0de96d37fbcc54978458c18f5067cd9817669bc8/src/libstd/panicking.rs:404
3: engine::rocks::util::new_engine_opt::{{closure}}
at components/engine/src/rocks/util/mod.rs:159
core::option::Option::unwrap_or_else
at /rustc/0de96d37fbcc54978458c18f5067cd9817669bc8/src/libcore/option.rs:422
engine::rocks::util::new_engine_opt
at components/engine/src/rocks/util/mod.rs:157
4: cmd::server::TiKVServer::init_engines
at cmd/src/server.rs:356
cmd::server::run_tikv
at cmd/src/server.rs:98
5: tikv_server::main
at cmd/src/bin/tikv-server.rs:166
6: std::rt::lang_start::{{closure}}
at /rustc/0de96d37fbcc54978458c18f5067cd9817669bc8/src/libstd/rt.rs:67
7: main
8: __libc_start_main
9:
"] [location=components/engine/src/rocks/util/mod.rs:159] [thread_name=main]
topology.yaml (52.8 KB)