方案一:刪除原Cluster信息,重新生成Cluster 節點信息
1.暫停cluster各個node節點
2.刪除持久化文件和節點信息文件:
[root@centos1 6380]# ls
appendonly.aof dump.rdb nodes_6380.conf redis.conf
[root@centos1 6380]# pwd
/usr/local/cluster/6380
[root@centos1 6380]# rm -f appendonly.aof dump.rdb nodes_6380.conf
不刪除aof rdb文件會在接下來重新創建節點過程中出現原節點存在數據(Not Empty)異常
3.利用redis-trib.rb 初始化集羣信息
redis-trib.rb create --replicas 1 10.11.239.131:6379 10.11.239.131:6380 10.11.234.246:6379 10.11.234.246:6380 10.11.238.50:6379 10.11.238.50:6380