集群host2异常关闭后,集群删除该节点,因为无法和host2通信:
$ tiup cluster scale-in tidb-test -N host2:4000
Starting component cluster
: /home/tidb/.tiup/components/cluster/v1.4.0/tiup-cluster scale-in tidb-test -N host2:4000
This operation will delete the host2:4000 nodes in tidb-test
and all their data.
Do you want to continue? [y/N]:(default=N) y
Scale-in nodes…
- [ Serial ] - SSHKeySet: privateKey=/home/tidb/.tiup/storage/cluster/clusters/tidb-test/ssh/id_rsa, publicKey=/home/tidb/.tiup/storage/cluster/clusters/tidb-test/ssh/id_rsa.pub
- [Parallel] - UserSSH: user=tidb, host=host1
- [Parallel] - UserSSH: user=tidb, host=host1
- [Parallel] - UserSSH: user=tidb, host=host3
- [Parallel] - UserSSH: user=tidb, host=kv1
- [Parallel] - UserSSH: user=tidb, host=host1
- [Parallel] - UserSSH: user=tidb, host=host1
- [Parallel] - UserSSH: user=tidb, host=host1
- [Parallel] - UserSSH: user=tidb, host=host2
- [Parallel] - UserSSH: user=tidb, host=kv2
- [Parallel] - UserSSH: user=tidb, host=kv3
- [Parallel] - UserSSH: user=tidb, host=host3
- [Parallel] - UserSSH: user=tidb, host=host2
- [ Serial ] - ClusterOperate: operation=ScaleInOperation, options={Roles:[] Nodes:[host2:4000] Force:false SSHTimeout:5 OptTimeout:120 APITimeout:300 IgnoreConfigCheck:false NativeSSH:false SSHType: CleanupData:false CleanupLog:false RetainDataRoles:[] RetainDataNodes:[]}
Stopping component tidb
Stopping instance host2
Error: failed to scale in: failed to stop tidb: failed to stop: tidb host2:4000, please check the instance’s log(/data1/tidb-deploy/tidb-4000/log) for more detail.: executor.ssh.execute_failed: Failed to execute command over SSH for ‘tidb@host2:22’ {ssh_stderr: , ssh_stdout: , ssh_command: export LANG=C; PATH=$PATH:/usr/bin:/usr/sbin sudo -H bash -c “systemctl daemon-reload && systemctl stop tidb-4000.service”}, cause: dial tcp 10.65.48.10:22: i/o timeout
Verbose debug logs has been written to /home/tidb/.tiup/logs/tiup-cluster-debug-2021-04-18-08-39-57.log.
Error: run /home/tidb/.tiup/components/cluster/v1.4.0/tiup-cluster
(wd:/home/tidb/.tiup/data/SUv9sho) failed: exit status 1
请问有没有强制删除的命令?