PD-Server cannot start

Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: PD-Server无法启动

| username: Kiwi

I am conducting a TiDB migration performance test using a cluster of three Huawei Cloud instances. After inserting tens of millions of rows, the CPU usage is excessively high. I attempted to restart the cluster, but after the restart, one of the PD Servers in TiDB failed to start. The error log is as follows:

[“run server failed”] [error=“[PD:leveldb:ErrLevelDBOpen]leveldb: manifest corrupted (field ‘comparer’): missing [file=MANIFEST-000007]: leveldb: manifest corrupted (field ‘comparer’): missing [file=MANIFEST-000007]”] [stack=“main.start\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/pd/cmd/pd-server/main.go:235\nmain.createServerWrapper\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/pd/cmd/pd-server/main.go:147\ngithub.com/spf13/cobra.(*Command).execute\n\t/go/pkg/mod/github.com/spf13/cobra@v1.0.0/command.go:846\ngithub.com/spf13/cobra.(*Command).ExecuteC\n\t/go/pkg/mod/github.com/spf13/cobra@v1.0.0/command.go:950\ngithub.com/spf13/cobra.(*Command).Execute\n\t/go/pkg/mod/github.com/spf13/cobra@v1.0.0/command.go:887\nmain.main\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/pd/cmd/pd-server/main.go:56\nruntime.main\n\t/usr/local/go/src/runtime/proc.go:250”]

Cluster configuration is as follows:

How can I fix this PD node?

| username: h5n1 | Original post link

The file is corrupted, try scaling in and then scaling out again.

| username: tidb菜鸟一只 | Original post link

Check the MANIFEST-* files in the pd data directory to see if they are different from the current version. If they are different, you will need to shrink the capacity and then expand it again.

| username: zhanggame1 | Original post link

Only supports scaling up and down.

| username: cassblanca | Original post link

The file is corrupted. Scale in this PD node and then scale out a new one.

| username: redgame | Original post link

Scale-in and scale-out

| username: system | Original post link

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.