指定目录也失败。看了一下,应该是最开始部署的时候,各个组件的log都存放在同一个目录log_dir: /home/tidb/tidb-logs
。
[root@tidb01 config-tidb]# cat /root/.tiup/storage/cluster/clusters/hrdb/meta.yaml
user: tidb
tidb_version: v6.1.0
last_ops_ver: |-
1.10.2 tiup
Go Version: go1.18.3
Git Ref: v1.10.2
GitHash: 2de5b500c9fae6d418fa200ca150b8d5264d6b19
topology:
global:
user: tidb
ssh_port: 22
ssh_type: builtin
deploy_dir: /home/tidb/tidb-deploy
data_dir: /home/tidb/tidb-data
log_dir: /home/tidb/tidb-logs
os: linux
arch: amd64
monitored:
node_exporter_port: 9100
blackbox_exporter_port: 9115
deploy_dir: /home/tidb/tidb-deploy/monitor-9100
data_dir: /home/tidb/tidb-data/monitor-9100
log_dir: /home/tidb/tidb-deploy/monitor-9100/log
server_configs:
tidb:
log.slow-threshold: 300
tikv: {}
pd:
replication.enable-placement-rules: true
schedule.leader-schedule-limit: 4
schedule.region-schedule-limit: 2048
schedule.replica-schedule-limit: 64
tiflash:
profiles.default.max_memory_usage: 10000000000
profiles.default.max_memory_usage_for_all_queries: 0
tiflash-learner: {}
pump: {}
drainer: {}
cdc: {}
grafana: {}
tidb_servers:
- host: 172.23.20.71
ssh_port: 22
port: 4000
status_port: 10080
deploy_dir: /home/tidb/tidb-deploy/tidb-4000
log_dir: /home/tidb/tidb-logs
arch: amd64
os: linux
- host: 172.23.20.79
ssh_port: 22
port: 4000
status_port: 10080
deploy_dir: /home/tidb/tidb-deploy/tidb-4000
log_dir: /home/tidb/tidb-logs
arch: amd64
os: linux
- host: 172.23.20.72
ssh_port: 22
port: 4000
status_port: 10080
deploy_dir: /home/tidb/tidb-deploy/tidb-4000
log_dir: /home/tidb/tidb-logs
arch: amd64
os: linux
tikv_servers:
- host: 172.23.20.51
ssh_port: 22
port: 20160
status_port: 20180
deploy_dir: /home/tidb/tidb-deploy/tikv-20160
data_dir: /home/tidb/tidb-data/tikv-20160
log_dir: /home/tidb/tidb-logs
arch: amd64
os: linux
- host: 172.23.20.53
ssh_port: 22
port: 20160
status_port: 20180
deploy_dir: /home/tidb/tidb-deploy/tikv-20160
data_dir: /home/tidb/tidb-data/tikv-20160
log_dir: /home/tidb/tidb-logs
arch: amd64
os: linux
- host: 172.23.20.72
ssh_port: 22
port: 20160
status_port: 20180
deploy_dir: /home/tidb/tidb-deploy/tikv-20160
data_dir: /home/tidb/tidb-data/tikv-20160
log_dir: /home/tidb/tidb-logs
arch: amd64
os: linux
tiflash_servers: []
pd_servers:
- host: 172.23.20.71
ssh_port: 22
name: pd-172.23.20.71-2379
client_port: 2379
peer_port: 2380
deploy_dir: /home/tidb/tidb-deploy/pd-2379
data_dir: /home/tidb/tidb-data/pd-2379
log_dir: /home/tidb/tidb-logs
arch: amd64
os: linux
- host: 172.23.20.79
ssh_port: 22
name: pd-172.23.20.79-2379
client_port: 2379
peer_port: 2380
deploy_dir: /home/tidb/tidb-deploy/pd-2379
data_dir: /home/tidb/tidb-data/pd-2379
log_dir: /home/tidb/tidb-logs
arch: amd64
os: linux
- host: 172.23.20.72
ssh_port: 22
name: pd-172.23.20.72-2379
client_port: 2379
peer_port: 2380
deploy_dir: /home/tidb/tidb-deploy/pd-2379
data_dir: /home/tidb/tidb-data/pd-2379
log_dir: /home/tidb/tidb-logs
arch: amd64
os: linux
monitoring_servers:
- host: 172.23.20.71
ssh_port: 22
port: 9090
ng_port: 12020
deploy_dir: /home/tidb/tidb-deploy/prometheus-9090
data_dir: /home/tidb/tidb-data/prometheus-9090
log_dir: /home/tidb/tidb-logs
external_alertmanagers: []
arch: amd64
os: linux
grafana_servers:
- host: 172.23.20.71
ssh_port: 22
port: 3000
deploy_dir: /home/tidb/tidb-deploy/grafana-3000
arch: amd64
os: linux
username: admin
password: admin
anonymous_enable: false
root_url: ""
domain: ""
alertmanager_servers:
- host: 172.23.20.71
ssh_port: 22
web_port: 9093
cluster_port: 9094
deploy_dir: /home/tidb/tidb-deploy/alertmanager-9093
data_dir: /home/tidb/tidb-data/alertmanager-9093
log_dir: /home/tidb/tidb-logs
arch: amd64
os: linux