流程上服务器是跟其他部门申请拿到的,root密码因为权限管控我们自己拿不到,以前ansible的时候添加互信然后执行部署就可以了
现在tiup就不行了,试过执行ssh tidb@10.38.112.56可以正常连接,但是执行扩容就报错,卡在EvnInit,怎么才能跳过初始化呢,或者可以手动改某个文件吗
[tidb@52-136 tiup-config]$ tiup cluster scale-out test-cluster scale-out.20201203-2.yaml --user=tidb
Starting component `cluster`: scale-out test-cluster scale-out.20201203-2.yaml --user=tidb
Please confirm your topology:
Cluster type: tidb
Cluster name: test-cluster
Cluster version: v4.0.8
Type Host Ports OS/Arch Directories
---- ---- ----- ------- -----------
tikv 10.38.112.56 20160/20180 linux/x86_64 /home/tidb/deploy/tikv-20160,data
Attention:
1. If the topology is not what you expected, check your yaml file.
2. Please confirm there is no port/directory conflicts in same host.
Do you want to continue? [y/N]: y
+ [ Serial ] - SSHKeySet: privateKey=/home/tidb/.tiup/storage/cluster/clusters/test-cluster/ssh/id_rsa, publicKey=/home/tidb/.tiup/storage/cluster/clusters/test-cluster/ssh/id_rsa.pub
- Download tikv:v4.0.8 (linux/amd64) ... Done
+ [ Serial ] - RootSSH: user=tidb, host=10.38.112.56, port=22, key=/home/tidb/.ssh/id_rsa
+ [ Serial ] - EnvInit: user=tidb, host=10.38.112.56
Error: Failed to initialize TiDB environment on remote host '10.38.112.56' (task.env_init.failed)
caused by: Failed to create '~/.ssh' directory for user 'tidb'
caused by: Failed to execute command over SSH for 'tidb@10.38.112.56:22'
caused by: Process exited with status 1