【TiDB 使用环境】测试/ Poc
【TiDB 版本】 v8.
192.168.2.72的PD 的status 一直在重启,无法恢复正常。
ID Role Host Ports OS/Arch Status Since Data Dir Deploy Dir
-- ---- ---- ----- ------- ------ ----- -------- ----------
192.168.2.71:9093 alertmanager 192.168.2.71 9093/9094 linux/x86_64 Up 1h4m34s /u01/tidb-data/alertmanager-9093 /u01/tidb-deploy/alertmanager-9093
192.168.2.72:8300 cdc 192.168.2.72 8300 linux/x86_64 Up 1h4m39s /u01/tidb-data/cdc-8300 /u01/tidb-deploy/cdc-8300
192.168.2.73:8300 cdc 192.168.2.73 8300 linux/x86_64 Up 1h4m39s /u01/tidb-data/cdc-8300 /u01/tidb-deploy/cdc-8300
192.168.2.71:3000 grafana 192.168.2.71 3000 linux/x86_64 Up 1h4m36s - /u01/tidb-deploy/grafana-3000
192.168.2.71:2379 pd 192.168.2.71 2379/2380 linux/x86_64 Up 1h5m15s /u01/tidb-data/pd-2379 /u01/tidb-deploy/pd-2379
192.168.2.72:2379 pd 192.168.2.72 2379/2380 linux/x86_64 Down|UI 3s /u01/tidb-data/pd-2379 /u01/tidb-deploy/pd-2379
192.168.2.73:2379 pd 192.168.2.73 2379/2380 linux/x86_64 Up|L 1h5m15s /u01/tidb-data/pd-2379 /u01/tidb-deploy/pd-2379
192.168.2.71:9090 prometheus 192.168.2.71 9090/12020 linux/x86_64 Up 1h4m37s /u01/tidb-data/prometheus-9090 /u01/tidb-deploy/prometheus-9090
192.168.2.71:4000 tidb 192.168.2.71 4000/10080 linux/x86_64 Up 1h4m50s - /u01/tidb-deploy/tidb-4000
192.168.2.72:4000 tidb 192.168.2.72 4000/10080 linux/x86_64 Up 1h4m51s - /u01/tidb-deploy/tidb-4000
192.168.2.73:4000 tidb 192.168.2.73 4000/10080 linux/x86_64 Up 1h4m51s - /u01/tidb-deploy/tidb-4000
192.168.2.71:20160 tikv 192.168.2.71 20160/20180 linux/x86_64 Up 1h5m14s /u01/tidb-data/tikv-20160 /u01/tidb-deploy/tikv-20160
192.168.2.72:20160 tikv 192.168.2.72 20160/20180 linux/x86_64 Up 1h5m14s /u01/tidb-data/tikv-20160 /u01/tidb-deploy/tikv-20160
192.168.2.73:20160 tikv 192.168.2.73 20160/20180 linux/x86_64 Up 1h5m13s /u01/tidb-data/tikv-20160 /u01/tidb-deploy/tikv-20160
Total nodes: 14
[tidb@tidb01 ~]$
对应的pd log日志
[2025/12/01 16:16:09.957 +08:00] [INFO] [stream.go:412] ["established TCP streaming connection with remote peer"] [stream-reader-type="stream MsgApp v2"] [local-member-id=36bda1842c68a23a] [remote-peer-id=5b383763007fc455]
[2025/12/01 16:16:09.957 +08:00] [INFO] [stream.go:412] ["established TCP streaming connection with remote peer"] [stream-reader-type="stream Message"] [local-member-id=36bda1842c68a23a] [remote-peer-id=42843e713797aa2a]
[2025/12/01 16:16:09.959 +08:00] [INFO] [etcd.go:599] ["serving peer traffic"] [address="[::]:2380"]
[2025/12/01 16:16:09.959 +08:00] [INFO] [etcd.go:571] [cmux::serve] [address="[::]:2380"]
[2025/12/01 16:16:09.959 +08:00] [INFO] [etcd.go:279] ["now serving peer/client/metrics"] [local-member-id=36bda1842c68a23a] [initial-advertise-peer-urls="[http://192.168.2.72:2380]"] [listen-peer-urls="[http://0.0.0.0:2380]"] [advertise-client-urls="[http://192.168.2.72:2379]"] [listen-client-urls="[http://0.0.0.0:2379]"] [listen-metrics-urls="[]"]
[2025/12/01 16:16:09.959 +08:00] [INFO] [raft] [zap_raft.go:77] ["raft.node: 36bda1842c68a23a elected leader 42843e713797aa2a at term 266"]
[2025/12/01 16:16:09.959 +08:00] [INFO] [stream.go:249] ["set message encoder"] [from=36bda1842c68a23a] [to=5b383763007fc455] [stream-type="stream MsgApp v2"]
[2025/12/01 16:16:09.960 +08:00] [INFO] [stream.go:274] ["established TCP streaming connection with remote peer"] [stream-writer-type="stream MsgApp v2"] [local-member-id=36bda1842c68a23a] [remote-peer-id=5b383763007fc455]
[2025/12/01 16:16:09.960 +08:00] [INFO] [stream.go:249] ["set message encoder"] [from=36bda1842c68a23a] [to=42843e713797aa2a] [stream-type="stream Message"]
[2025/12/01 16:16:09.960 +08:00] [INFO] [stream.go:274] ["established TCP streaming connection with remote peer"] [stream-writer-type="stream Message"] [local-member-id=36bda1842c68a23a] [remote-peer-id=42843e713797aa2a]
[2025/12/01 16:16:09.960 +08:00] [INFO] [stream.go:249] ["set message encoder"] [from=36bda1842c68a23a] [to=5b383763007fc455] [stream-type="stream Message"]
[2025/12/01 16:16:09.960 +08:00] [INFO] [stream.go:274] ["established TCP streaming connection with remote peer"] [stream-writer-type="stream Message"] [local-member-id=36bda1842c68a23a] [remote-peer-id=5b383763007fc455]
[2025/12/01 16:16:09.960 +08:00] [INFO] [stream.go:249] ["set message encoder"] [from=36bda1842c68a23a] [to=42843e713797aa2a] [stream-type="stream MsgApp v2"]
[2025/12/01 16:16:09.960 +08:00] [INFO] [stream.go:274] ["established TCP streaming connection with remote peer"] [stream-writer-type="stream MsgApp v2"] [local-member-id=36bda1842c68a23a] [remote-peer-id=42843e713797aa2a]
[2025/12/01 16:16:10.007 +08:00] [INFO] [server.go:790] ["initialized peer connections; fast-forwarding election ticks"] [local-member-id=36bda1842c68a23a] [forward-ticks=4] [forward-duration=2s] [election-ticks=6] [election-timeout=3s] [active-remote-members=2]
[2025/12/01 16:16:10.072 +08:00] [INFO] [server.go:2118] ["published local member to cluster through raft"] [local-member-id=36bda1842c68a23a] [local-member-attributes="{Name:pd-192.168.2.72-2379 ClientURLs:[http://192.168.2.72:2379]}"] [request-path=/0/members/36bda1842c68a23a/attributes] [cluster-id=9e63bd2785c31a28] [publish-timeout=11s]
[2025/12/01 16:16:10.072 +08:00] [INFO] [serve.go:103] ["ready to serve client requests"]
[2025/12/01 16:16:10.072 +08:00] [INFO] [health.go:61] ["grpc service status changed"] [service=] [status=SERVING]
[2025/12/01 16:16:10.073 +08:00] [INFO] [registry.go:69] ["gRPC service already registered"] [prefix=pd-192.168.2.72-2379] [service-name=MetaStorage]
[2025/12/01 16:16:10.073 +08:00] [INFO] [registry.go:69] ["gRPC service already registered"] [prefix=pd-192.168.2.72-2379] [service-name=ResourceManager]
[2025/12/01 16:16:10.073 +08:00] [INFO] [serve.go:187] ["serving client traffic insecurely; this is strongly discouraged!"] [traffic=grpc+http] [address="[::]:2379"]
[2025/12/01 16:16:10.076 +08:00] [INFO] [cluster_id.go:43] ["existed cluster id"] [cluster-id=7555433645641740151]
[2025/12/01 16:16:10.076 +08:00] [INFO] [member.go:350] ["member joining election"] [member-info="name:\"pd-192.168.2.72-2379\" member_id:3944486437699232314 peer_urls:\"http://192.168.2.72:2380\" client_urls:\"http://192.168.2.72:2379\" "] [root-path=/pd/7555433645641740151]
[2025/12/01 16:16:10.095 +08:00] [FATAL] [main.go:288] ["run server failed"] [error="[PD:leveldb:ErrLevelDBOpen]leveldb: manifest corrupted (field 'comparer'): missing [file=MANIFEST-000137]: leveldb: manifest corrupted (field 'comparer'): missing [file=MANIFEST-000137]"] [stack="main.start\n\t/workspace/source/pd/cmd/pd-server/main.go:288\nmain.createServerWrapper\n\t/workspace/source/pd/cmd/pd-server/main.go:194\ngithub.com/spf13/cobra.(*Command).execute\n\t/root/go/pkg/mod/github.com/spf13/cobra@v1.8.0/command.go:987\ngithub.com/spf13/cobra.(*Command).ExecuteC\n\t/root/go/pkg/mod/github.com/spf13/cobra@v1.8.0/command.go:1115\ngithub.com/spf13/cobra.(*Command).Execute\n\t/root/go/pkg/mod/github.com/spf13/cobra@v1.8.0/command.go:1039\nmain.main\n\t/workspace/source/pd/cmd/pd-server/main.go:71\nruntime.main\n\t/usr/local/go/src/runtime/proc.go:272"]
我认为关键的信息是
error=“[PD:leveldb:ErrLevelDBOpen]leveldb: manifest corrupted (field ‘comparer’): missing [file=MANIFEST-000137]: leveldb: manifest corrupted (field ‘comparer’): missing [file=MANIFEST-000137]”]
如何解决下呢