redis集羣因爲服務器斷電啓動後報錯

./bin/redis-trib.rb check 檢查集羣狀態有錯誤信息:

[ERR] Nodes don't agree about configuration!
>>> Check for open slots...
[WARNING] Node 192.168.100.222:7000 has slots in importing state (5781,6320,8331,9369,9454,9586,9743,9842,9938,9974).
[WARNING] Node 192.168.100.222:7001 has slots in importing state (5781,6320,8331,9369,9454,9586,9743,9842,9938,9974).
[WARNING] The following slots are open: 5781,6320,8331,9369,9454,9586,9743,9842,9938,9974
>>> Check slots coverage...
[OK] All 16384 slots covered.

 

清除對應散列槽中的任何導入/遷移狀態

./bin/redis-cli -h 192.168.100.222 -p 7000

cluster setslot 9369 stable

cluster setslot 9454 stable

cluster setslot 9586 stable

......

 

./bin/redis-cli -h 192.168.100.222 -p 7001

cluster setslot 5781 stable

cluster setslot 6320 stable

cluster setslot 8331 stable

......

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章