断电停机,TIDB启动不了,坏了

报错日志 2019/11/08 01:32:14.923 +00:00] [ERROR] [client.go:200] ["[pd] failed to get cluster id"] [error=“rpc error: code = Unavailable desc = all SubConns are in TransientFailure, latest connection error: connection error: desc = “transport: Error while dialing dial tcp: lookup pd0 on 127.0.0.11:53: no such host””] [2019/11/08 01:32:14.927 +00:00] [ERROR] [client.go:200] ["[pd] failed to get cluster id"] [error=“rpc error: code = Unavailable desc = all SubConns are in TransientFailure, latest connection error: connection error: desc = “transport: Error while dialing dial tcp: lookup pd1 on 127.0.0.11:53: no such host””] [2019/11/08 01:32:17.927 +00:00] [ERROR] [client.go:200] ["[pd] failed to get cluster id"] [error=“rpc error: code = DeadlineExceeded desc = context deadline exceeded”] [2019/11/08 01:32:18.928 +00:00] [ERROR] [client.go:200] ["[pd] failed to get cluster id"] [error=“rpc error: code = Unavailable desc = all SubConns are in TransientFailure, latest connection error: connection error: desc = “transport: Error while dialing dial tcp: lookup pd0 on 127.0.0.11:53: no such host””] [2019/11/08 01:32:18.928 +00:00] [ERROR] [client.go:200] ["[pd] failed to get cluster id"] [error=“rpc error: code = Unavailable desc = all SubConns are in TransientFailure, latest connection error: connection error: desc = “transport: Error while dialing dial tcp: lookup pd1 on 127.0.0.11:53: no such host””] [2019/11/08 01:32:21.929 +00:00] [ERROR] [client.go:200] ["[pd] failed to get cluster id"] [error=“rpc error: code = DeadlineExceeded desc = context deadline exceeded”] [2019/11/08 01:32:22.929 +00:00] [ERROR] [client.go:200] ["[pd] failed to get cluster id"] [error=“rpc error: code = Unavailable desc = all SubConns are in TransientFailure, latest connection error: connection error: desc = “transport: Error while dialing dial tcp: lookup pd0 on 127.0.0.11:53: no such host””] [2019/11/08 01:32:22.929 +00:00] [ERROR] [client.go:200] ["[pd] failed to get cluster id"] [error=“rpc error: code = Unavailable desc = all SubConns are in TransientFailure, latest connection error: connection error: desc = “transport: Error while dialing dial tcp: lookup pd1 on 127.0.0.11:53: no such host””]

你好,请尽量按照模板补充下集群配置,上传下日志,你这个是正式环境吗? 从当前报错看,你之前怎么配置的,先尝试下能否ping通.

使用docker-compose安装的

pd日志

TIDB日志 之前 为5.7.25-TiDB-v2.1.12

logs.zip (860.1 KB)日志

你好: 从日志查看[2019/11/08 01:55:59.789 +00:00] [PANIC] [server.go:446] [“failed to recover v3 backend from snapshot”] [error=“failed to find database snapshot file (snap: snapshot file doesn’t exist)”] snapshot file不存在,从你反馈的图片看data目录是存放sst文件的吗?
image 请检查下当前目录能否正常读写,这是不是一个挂载的目录,掉电后,读写有问题?麻烦检查下,多谢