更换tidb-data 、 tidb-deploy目录后tikv无法启动问题

把tidb-data 、 tidb-deploy目录移动到home目录下后tikv Down了,求大佬帮忙看下

Error: failed to start: failed to start tikv: failed to start: 172.16.243.235 tikv-20160.service, please check the instance’s log(/home/tidb-deploy/tikv-20160/log) for more detail.: timed out waiting for port 20160 to be started after 2m0s


tikv/log下也没生成对应的日志

这是tiup的日志:
{“error”: “operation timed out after 2m0s”}
2022-10-24T15:29:49.715+0800 DEBUG TaskFinish {“task”: “RestartCluster”, “error”: “failed to start: failed to start tikv: failed to start: 172.16.243.235 tikv-20160.service, please check the instance’s log(/home/tidb-deploy/tikv-20160/log) for more detail.: timed out waiting for port 20160 to be started after 2m0s”, “errorVerbose”: “timed out waiting for port 20160 to be started after 2m0s\ngithub.com/pingcap/tiup/pkg/cluster/module.(*WaitFor).Execute\n\tgithub.com/pingcap/tiup/pkg/cluster/module/wait_for.go:91\ngithub.com/pingcap/tiup/pkg/cluster/spec.PortStarted\n\tgithub.com/pingcap/tiup/pkg/cluster/spec/instance.go:119\ngithub.com/pingcap/tiup/pkg/cluster/spec.(*BaseInstance).Ready\n\tgithub.com/pingcap/tiup/pkg/cluster/spec/instance.go:151\ngithub.com/pingcap/tiup/pkg/cluster/operation.startInstance\n\tgithub.com/pingcap/tiup/pkg/cluster/operation/action.go:405\ngithub.com/pingcap/tiup/pkg/cluster/operation.StartComponent.func1\n\tgithub.com/pingcap/tiup/pkg/cluster/operation/action.go:534\ngolang.org/x/sync/errgroup.(*Group).Go.func1\n\tgolang.org/x/sync@v0.0.0-20220819030929-7fc1605a5dde/errgroup/errgroup.go:75\nruntime.goexit\n\truntime/asm_amd64.s:1594\nfailed to start: 172.16.243.235 tikv-20160.service, please check the instance’s log(/home/tidb-deploy/tikv-20160/log) for more detail.\nfailed to start tikv\nfailed to start”}
2022-10-24T15:29:49.715+0800 INFO Execute command finished {“code”: 1, “error”: “failed to start: failed to start tikv: failed to start: 172.16.243.235 tikv-20160.service, please check the instance’s log(/home/tidb-deploy/tikv-20160/log) for more detail.: timed out waiting for port 20160 to be started after 2m0s”, “errorVerbose”: “timed out waiting for port 20160 to be started after 2m0s\ngithub.com/pingcap/tiup/pkg/cluster/module.(*WaitFor).Execute\n\tgithub.com/pingcap/tiup/pkg/cluster/module/wait_for.go:91\ngithub.com/pingcap/tiup/pkg/cluster/spec.PortStarted\n\tgithub.com/pingcap/tiup/pkg/cluster/spec/instance.go:119\ngithub.com/pingcap/tiup/pkg/cluster/spec.(*BaseInstance).Ready\n\tgithub.com/pingcap/tiup/pkg/cluster/spec/instance.go:151\ngithub.com/pingcap/tiup/pkg/cluster/operation.startInstance\n\tgithub.com/pingcap/tiup/pkg/cluster/operation/action.go:405\ngithub.com/pingcap/tiup/pkg/cluster/operation.StartComponent.func1\n\tgithub.com/pingcap/tiup/pkg/cluster/operation/action.go:534\ngolang.org/x/sync/errgroup.(*Group).Go.func1\n\tgolang.org/x/sync@v0.0.0-20220819030929-7fc1605a5dde/errgroup/errgroup.go:75\nruntime.goexit\n\truntime/asm_amd64.s:1594\nfailed to start: 172.16.243.235 tikv-20160.service, please check the instance’s log(/home/tidb-deploy/tikv-20160/log) for more detail.\nfailed to start tikv\nfailed to start”}

直接move或cp过去的? 找下tikv-20160.service 文件然后看看里面的启动文件路径修改下,tiup cluster edit-config 修改下这个tikv的目录

是的,cp过去的

config tikv的路径是对的

你在~/.tiup目录find下meta.yaml 看看里面对不

也是对的 :saluting_face:

请问按照这个操作了嘛?有没有发现缺少的文件?