为提高效率,请提供以下信息,问题描述清晰能够更快得到解决:
【 TiDB  使用环境】
【概述】换IP后无法启动
【背景】
操作步骤:
1、运维通知机器要换IP
2、停止集群
3、运维换IP(由192.168.0.* 修改为:10.31.4.*)
4、修改配置文件中的IP:vi /home/tidb/.tiup/storage/cluster/clusters/tidb-test/meta.yaml
5、tiup cluster start tidb-test
6、tiup cluster:v1.8.2 reload tidb-test -R pd --force
7、tiup cluster start tidb-test -R pd --force
【现象】业务和数据库现象
【业务影响】
集群无法启动
修改IP后发现PD的IP还是192.168.0.*,进程信息如下:
tidb      9274     1  0 10:10 ?        00:00:00 bin/pd-server --name=pd-192.168.0.212-2379 --client-urls=http://0.0.0.0:2379 --advertise-client-urls=http://192.168.0.212:2379 --peer-urls=http://0.0.0.0:2380 --advertise-peer-urls=http://192.168.0.212:2380 --data-dir=/data/tidb-data/pd-2379 --initial-cluster=pd-192.168.0.210-2379=http://192.168.0.210:2380,pd-192.168.0.211-2379=http://192.168.0.211:2380,pd-192.168.0.212-2379=http://192.168.0.212:2380 --config=conf/pd.toml --log-file=/data/tidb-deploy/pd-2379/log/pd.log
【TiDB 版本】v5.2.0
【附件】
这个启动集群日志中也有“192.168.122.1”IP信息
tiup-cluster-debug-2022-01-12-10-12-19.log (1.7 MB)
- 相关日志 和 监控
- 
TiUP Cluster Display 信息 
 
- 
TiUP Cluster Edit Config 信息 
global:
  user: tidb
  ssh_port: 22
  ssh_type: builtin
  deploy_dir: /data/tidb-deploy
  data_dir: /data/tidb-data
  os: linux
monitored:
  node_exporter_port: 9100
  blackbox_exporter_port: 9115
  deploy_dir: /data/tidb-deploy/monitor-9100
  data_dir: /data/tidb-data/monitor-9100
  log_dir: /data/tidb-deploy/monitor-9100/log
server_configs:
  tidb:
    log.level: error
    prepared-plan-cache.enabled: true
  tikv:
    log-level: error
    rocksdb.defaultcf.block-cache-size: 24GB
    rocksdb.writecf.block-cache-size: 6GB
  pd:
    replication.enable-placement-rules: true
  tiflash: {}
  tiflash-learner: {}
  pump: {}
  drainer: {}
  cdc: {}
tidb_servers:
- host: 10.31.4.240
  ssh_port: 22
  port: 4000
  status_port: 10080
  deploy_dir: /data/tidb-deploy/tidb-4000
  log_dir: /data/tidb-deploy/tidb-4000/log
  arch: amd64
  os: linux
- host: 10.31.4.241
  ssh_port: 22
  port: 4000
  status_port: 10080
  deploy_dir: /data/tidb-deploy/tidb-4000
  log_dir: /data/tidb-deploy/tidb-4000/log
  arch: amd64
  os: linux
- host: 10.31.4.232
  ssh_port: 22
  port: 4000
  status_port: 10080
  deploy_dir: /data/tidb-deploy/tidb-4000
  log_dir: /data/tidb-deploy/tidb-4000/log
  arch: amd64
  os: linux
tikv_servers:
- host: 10.31.4.233
  ssh_port: 22
  port: 20160
  status_port: 20180
  deploy_dir: /data/tidb-deploy/tikv-20160
  data_dir: /data/tidb-data/tikv-20160
  log_dir: /data/tidb-deploy/tikv-20160/log
  arch: amd64
  os: linux
- host: 10.31.4.234
  ssh_port: 22
  port: 20160
  status_port: 20180
  deploy_dir: /data/tidb-deploy/tikv-20160
  data_dir: /data/tidb-data/tikv-20160
  log_dir: /data/tidb-deploy/tikv-20160/log
  arch: amd64
  os: linux
- host: 10.31.4.240
  ssh_port: 22
  port: 20160
  status_port: 20180
  deploy_dir: /data/tidb-deploy/tikv-20160
  data_dir: /data/tidb-data/tikv-20160
  log_dir: /data/tidb-deploy/tikv-20160/log
  arch: amd64
  os: linux
- host: 10.31.4.241
  ssh_port: 22
  port: 20160
  status_port: 20180
  deploy_dir: /data/tidb-deploy/tikv-20160
  data_dir: /data/tidb-data/tikv-20160
  log_dir: /data/tidb-deploy/tikv-20160/log
  arch: amd64
  os: linux
- host: 10.31.4.246
  ssh_port: 22
  port: 20160
  status_port: 20180
  deploy_dir: /data/tidb-deploy/tikv-20160
  data_dir: /data/tidb-data/tikv-20160
  log_dir: /data/tidb-deploy/tikv-20160/log
  arch: amd64
  os: linux
tiflash_servers:
- host: 10.31.4.245
  ssh_port: 22
  tcp_port: 9000
  http_port: 8123
  flash_service_port: 3930
  flash_proxy_port: 20170
  flash_proxy_status_port: 20292
  metrics_port: 8234
  deploy_dir: /data/tidb-deploy/tiflash-9000
  data_dir: /data/tidb-data/tiflash-9000
  log_dir: /data/tidb-deploy/tiflash-9000/log
  arch: amd64
  os: linux
pd_servers:
- host: 10.31.4.240
  ssh_port: 22
  name: pd-10.31.4.240-2379
  client_port: 2379
  peer_port: 2380
  deploy_dir: /data/tidb-deploy/pd-2379
  data_dir: /data/tidb-data/pd-2379
  log_dir: /data/tidb-deploy/pd-2379/log
  arch: amd64
  os: linux
- host: 10.31.4.241
  ssh_port: 22
  name: pd-10.31.4.241-2379
  client_port: 2379
  peer_port: 2380
  deploy_dir: /data/tidb-deploy/pd-2379
  data_dir: /data/tidb-data/pd-2379
  log_dir: /data/tidb-deploy/pd-2379/log
  arch: amd64
  os: linux
- host: 10.31.4.232
  ssh_port: 22
  name: pd-10.31.4.232-2379
  client_port: 2379
  peer_port: 2380
  deploy_dir: /data/tidb-deploy/pd-2379
  data_dir: /data/tidb-data/pd-2379
  log_dir: /data/tidb-deploy/pd-2379/log
  arch: amd64
  os: linux
cdc_servers:
- host: 10.31.4.233
  ssh_port: 22
  port: 8300
  deploy_dir: /data/tidb-deploy/cdc-8300
  data_dir: /data/tidb-data/cdc-8300
  log_dir: /data/tidb-deploy/cdc-8300/log
  arch: amd64
  os: linux
- host: 10.31.4.234
  ssh_port: 22
  port: 8300
  deploy_dir: /data/tidb-deploy/cdc-8300
  data_dir: /data/tidb-data/cdc-8300
  log_dir: /data/tidb-deploy/cdc-8300/log
  arch: amd64
  os: linux
- host: 10.31.4.246
  ssh_port: 22
  port: 8300
  deploy_dir: /data/tidb-deploy/cdc-8300
  data_dir: /data/tidb-data/cdc-8300
  log_dir: /data/tidb-deploy/cdc-8300/log
  arch: amd64
  os: linux
monitoring_servers:
- host: 10.31.4.246
  ssh_port: 22
  port: 9090
  deploy_dir: /data/tidb-deploy/prometheus-9090
  data_dir: /data/tidb-data/prometheus-9090
  log_dir: /data/tidb-deploy/prometheus-9090/log
  external_alertmanagers: []
  arch: amd64
  os: linux
grafana_servers:
- host: 10.31.4.246
  ssh_port: 22
  port: 3000
  deploy_dir: /data/tidb-deploy/grafana-3000
  arch: amd64
  os: linux
  username: admin
  password: admin
  anonymous_enable: false
  root_url: ""
  domain: ""
alertmanager_servers:
- host: 10.31.4.246
  ssh_port: 22
  web_port: 9093
  cluster_port: 9094
  deploy_dir: /data/tidb-deploy/alertmanager-9093
  data_dir: /data/tidb-data/alertmanager-9093
  log_dir: /data/tidb-deploy/alertmanager-9093/log
  arch: amd64
  os: linux
- TiDB- Overview 监控
- 对应模块日志(包含问题前后1小时日志)

