案例1
[問(wèn)題澄清]
集群升級(jí)過(guò)程中報(bào)錯(cuò):
fatal: [192.xxx.1.190]: FAILED! => {“changed”: false, “content”: “”, “msg”: “Status code was -1 and not [200]: Request failed: <urlopen error [Errno 111] Connection refused>”, “redirected”: false, “status”: -1, “url”: “http://192.xxx.1.190:2379/pd/api/v1/members”}
[原因分析]
在關(guān)閉集群狀態(tài)下升級(jí)
[解決方案]
啟動(dòng)集群,在運(yùn)行狀態(tài)下執(zhí)行升級(jí)操作
[參考案例]
https://asktug.com/t/tidbv2-1-1-v3-0-1/1638
[學(xué)習(xí)引申點(diǎn)]
TiDB 3.0升級(jí)操作指南
https://pingcap.com/docs-cn/stable/how-to/upgrade/from-previous-version/
案例2
[問(wèn)題澄清]
集群升級(jí)過(guò)程中報(bào)錯(cuò):
[tikv01]: Ansible FAILED! => playbook: excessive_rolling_update.yml; TASK: wait until the TiKV status page is available; message: {“attempts”: 12, “changed”: false, “content”: “”, “msg”: “Status code was -1 and not [200]: Request failed: <urlopen error [Errno 111] Connection refused>”, “redirected”: false, “status”: -1, “url”: “http://tikv01:20180/status”}
[原因分析]
1.注冊(cè)到 pd 中的 store 使用的是域名
2.如果是啟動(dòng)過(guò)程中帖世,可能是使用了其他版本的ansible啟動(dòng)舊版本集群
[解決方案]
1.建議通過(guò)修改 tidb-ansible/roles/tikv/templates/run_tikv_binary.sh.j2 方式進(jìn)行升級(jí)
???以后盡量使用ip地址安裝
2. 使用原版本ansible啟動(dòng)集群
[參考案例]
安裝TiKV組件之后弄慰,status-addr的默認(rèn)端口20180沒(méi)有啟動(dòng)女气,導(dǎo)致從v2.1.13升級(jí)到v3.0.3失敗
https://asktug.com/t/tikv-status-addr-20180-v2-1-13-v3-0-3/1137
tidb 2.0 升級(jí)到3.0最新版本無(wú)響應(yīng)
https://asktug.com/t/topic/2280/3
[學(xué)習(xí)引申點(diǎn)]
TiDB 3.0升級(jí)操作指南
https://pingcap.com/docs-cn/stable/how-to/upgrade/from-previous-version/
案例3
[問(wèn)題澄清]
集群升級(jí)過(guò)程中報(bào)錯(cuò):
fatal: [10.8.9.185]: FAILED! => changed=false msg: ‘Could not find the requested service pd-2379.service: host’
[原因分析]
TiDB集群2.1升級(jí)到3.0使用rolling_update.yml
[解決方案]
TiDB集群2.1升級(jí)到3.0使用excessive_rolling_update.yml
[參考案例]
https://asktug.com/t/tidb-2-1-3-0/2126
[學(xué)習(xí)引申點(diǎn)]
滾動(dòng)升級(jí) TiDB 集群組件
https://pingcap.com/docs-cn/stable/how-to/upgrade/from-previous-version/
案例4
[問(wèn)題澄清]
集群升級(jí)過(guò)程中報(bào)錯(cuò):
Ansible FAILED! => playbook: rolling_update.yml; TASK: wait until the TiKV port is up; message: {“changed”: false, “elapsed”: 300, “msg”: “the TiKV port 20160 is not up”}
[原因分析]
TiDB集群2.1升級(jí)到3.0使用rolling_update.yml
[解決方案]
TiDB集群2.1升級(jí)到3.0使用excessive_rolling_update.yml
[參考案例]
https://asktug.com/t/tidb-2-1-3-0/2126
[學(xué)習(xí)引申點(diǎn)]
滾動(dòng)升級(jí) TiDB 集群組件
https://pingcap.com/docs-cn/stable/how-to/upgrade/from-previous-version/