每个PD日志都有啊,这已经保障丢不了。
参考:
方法1:
cat /u01/tidb/deploy/pd-2379/log/pd.log | grep “init cluster id”
[2024/01/17 11:49:47.039 +08:00] [INFO] [server.go:346] [“init cluster id”] [cluster-id=7212470665861270901]
方法2:
tiup ctl:v6.5.7 pd -u ip:port store --jq=“.stores[] | {id: .store.id, address: .store.…